[INN] #78: Add support for Python 3.0
INN
rra at stanford.edu
Tue Dec 23 12:00:47 UTC 2008
#78: Add support for Python 3.0
---------------------+------------------------------------------------------
Reporter: iulius | Owner: eagle
Type: defect | Status: new
Priority: medium | Milestone: 2.5.0
Component: general | Version: 2.4.5
Severity: normal | Resolution:
Keywords: |
---------------------+------------------------------------------------------
Comment(by iulius):
(In [8250]) In Python samples:
* Remove tabulations for indentations (not allowed by
Python 3.0 when spaces are used for that purpose).
* Add a comment for "except Exception *as* errmsg"
(new syntax).
* Add a comment for memoryview() instead of buffer()
which is absent from Python 3.0.
* Remove occurrences of types.InstanceType (absent
from Python 3.0).
* Use parenthesis for print().
* Add a hook to use sys.intern() instead of intern()
for Python 3.0.
All the samples are for directly use with Python 2.x.
Commented lines are present wherever the syntax has
changed with Python 3.x.
see #78
--
Ticket URL: <http://inn.eyrie.org/trac/ticket/78#comment:1>
INN <http://www.eyrie.org/~eagle/software/inn/>
InterNetNews
More information about the inn-bugs
mailing list