FreeBSD Bugzilla – Attachment 67138 Details for
Bug 99009
py24-yaml fails to load
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 1.17 KB, created by
Joseph Koshy
on 2006-06-16 07:00:35 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Joseph Koshy
Created:
2006-06-16 07:00:35 UTC
Size:
1.17 KB
patch
obsolete
>Index: pyyaml/trunk/lib/yaml/constructor.py >=================================================================== >--- pyyaml/trunk/lib/yaml/constructor.py (revision 147) >+++ pyyaml/trunk/lib/yaml/constructor.py (revision 168) >@@ -232,5 +232,7 @@ > return sign*int(value) > >- inf_value = 1e300000 >+ inf_value = 1e300 >+ while repr(inf_value) != repr(inf_value*inf_value): >+ inf_value *= inf_value > nan_value = inf_value/inf_value > >Index: pyyaml/trunk/lib/yaml/representer.py >=================================================================== >--- pyyaml/trunk/lib/yaml/representer.py (revision 152) >+++ pyyaml/trunk/lib/yaml/representer.py (revision 168) >@@ -193,7 +193,12 @@ > return self.represent_scalar(u'tag:yaml.org,2002:int', unicode(data)) > >- repr_pos_inf = repr(1e300000) >- repr_neg_inf = repr(-1e300000) >- repr_nan = repr(1e300000/1e300000) >+ inf_value = 1e300 >+ while repr(inf_value) != repr(inf_value*inf_value): >+ inf_value *= inf_value >+ nan_value = inf_value/inf_value >+ >+ repr_pos_inf = repr(inf_value) >+ repr_neg_inf = repr(-inf_value) >+ repr_nan = repr(inf_value/inf_value) > > def represent_float(self, data):
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 99009
: 67138