homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author kaizhu
Recipients collinwinter, kaizhu, loewis, pitrou
Date 2008年07月09日.11:27:49
SpamBayes Score 5.3895707e-05
Marked as misclassified No
Message-id <1215602873.21.0.42924575475.issue3238@psf.upfronthosting.co.za>
In-reply-to
Content
update: these 3k language features have been tested to work in python
2.5.2 w/ the backported opcodes
 pep3104 Access to Names in Outer Scopes
 pep3105 Make print a function
 pep3111 Simple input built-in in Python 3000
 pep3113 Removal of Tuple Parameter Unpacking
 pep3114 Renaming iterator.next() to .__next__()
 pep3115 Metaclasses in Python 3000
 pep3127 Integer Literal Support and Syntax
 pep3129 Class Decorators
 pep3132 Extended Iterable Unpacking
had to backport __build_class__ in bltinmodule.c to get metaclasses
working. u can go to http://www-rcf.usc.edu/~kaizhu/work/py3to2/ for
more info
install/usage summary:
 1. build python 2.5.2 w/ patched ceval.c & bltinmodule.c
 2. download scripts: py3to2.py & _py3to2.py
 3. ln -s python3.0 python3k
 4. run python2.5 & type 'import py3to2' # it will automatically run
the pep tests
the script provides 3 functions similar to those in __builtin__:
compile_py3k, exec_py3k, eval_py3k
right now, working on backporting pep 3102 & 3107 - annotations &
keyword-only arguments. apparently appending the co_kwonlyargcount attr
to codeobject in 2.5.2 doesn't seem to affect the build
History
Date User Action Args
2008年07月09日 11:27:53kaizhusetspambayes_score: 5.38957e-05 -> 5.3895707e-05
recipients: + kaizhu, loewis, collinwinter, pitrou
2008年07月09日 11:27:53kaizhusetspambayes_score: 5.38957e-05 -> 5.38957e-05
messageid: <1215602873.21.0.42924575475.issue3238@psf.upfronthosting.co.za>
2008年07月09日 11:27:51kaizhulinkissue3238 messages
2008年07月09日 11:27:50kaizhucreate

AltStyle によって変換されたページ (->オリジナル) /