Message158819
| Author |
mark.dickinson |
| Recipients |
brechtm, mark.dickinson, pitrou, skrah |
| Date |
2012年04月20日.11:53:11 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1334922791.66.0.451260420395.issue14630@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
Self-contained example that fails for me on 32-bit OS X.
class Integer(int):
def __new__(cls, value, base=10, indirect=False):
try:
obj = int.__new__(cls, value, base)
except TypeError:
obj = int.__new__(cls, value)
return obj
def __init__(self, value, base=10, indirect=False):
self.indirect = indirect
integers = []
for i in range(1000):
integer = Integer(b'0')
integers.append(integer)
for integer in integers:
assert int(integer) == 0 |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2012年04月20日 11:53:11 | mark.dickinson | set | recipients:
+ mark.dickinson, pitrou, skrah, brechtm |
| 2012年04月20日 11:53:11 | mark.dickinson | set | messageid: <1334922791.66.0.451260420395.issue14630@psf.upfronthosting.co.za> |
| 2012年04月20日 11:53:11 | mark.dickinson | link | issue14630 messages |
| 2012年04月20日 11:53:11 | mark.dickinson | create |
|