Message3277
This bug is actually invalid -- basically it lets futures 'leak' into
other imported modules, which although is a solution to this problem,
causes other problems (see #1886758 for an example).
So we can't support this -- CPython 2.2 doesn't support this leaking of
futures either. Basically simplejson needs to import generators from
future itself, or it's just not 2.2 compatible:
Python 2.2.3 (#1, Sep 19 2007, 11:27:07)
[GCC 4.0.1 (Apple Computer, Inc. build 5367)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from __future__ import generators
>>> import simplejson.scanner
simplejson/scanner.py:56: Warning: 'yield' will become a reserved
keyword in the future
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "simplejson/__init__.py", line 112, in ?
from decoder import JSONDecoder
File "simplejson/decoder.py", line 7, in ?
from simplejson.scanner import Scanner, pattern
File "simplejson/scanner.py", line 56
yield rval, matchend
^
SyntaxError: invalid syntax
>>>
i've reverted this part of the patch in trunk |
|
Date |
User |
Action |
Args |
2008-06-13 01:35:43 | pjenvey | set | spambayes_score: 0.00157269 -> 0.0015726906 messageid: <1213320943.59.0.346323692589.issue1691096@psf.upfronthosting.co.za> |
2008-06-13 01:35:43 | pjenvey | set | spambayes_score: 0.00157269 -> 0.00157269 recipients:
+ pjenvey, cgroves, sgala |
2008-06-13 01:35:43 | pjenvey | link | issue1691096 messages |
2008-06-13 01:35:42 | pjenvey | create | |
|