New submission from Francesco Ricciardi francesco.riccia...@hp.com:
Tested with version 3.2a2. Not tested on version 2.7.
The current implementation of functools.total_ordering generates a stack
overflow because it implements the new comparison functions with inline
operator, which the Python
Francesco Ricciardi francesco.riccia...@hp.com added the comment:
Attached there is a solution of the problem, by implementing each comparison
only with the class __xx__ and __eq__ operators.
Also in the file there is a complete test suite for it.
--
Added file: http://bugs.python.org
New submission from Francesco Ricciardi [EMAIL PROTECTED]:
Each entry of a zip file, as read by the zipfile module, can be accessed
via a ZipInfo object. The filename attribute of ZipInfo is a string.
However, the read method of a ZipFile object expects a binary as
argument, or at least
Francesco Ricciardi francesco.riccia...@hp.com added the comment:
If that is what is requested, then the manual entry for ZipFile.read
must be corrected, because it states:
ZipFile.read(name[, pwd]) name is the name of the file in the
archive, or a ZipInfo object.
However, Eddie, you
New submission from Francesco Ricciardi francesco.riccia...@hp.com:
The first page of the Python Tutorial in version 3.1
(http://docs.python.org/3.1/tutorial/index.html) has the previous topic link
pointing to What’s New in Python 2.0 instead of What’s New in Python 3.1.
--
assignee
Francesco Ricciardi francesco.riccia...@hp.com added the comment:
As written in the description, it should point to the What's New in Python
3.1 page, shouldn't it?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7683
New submission from Francesco Ricciardi francesco.riccia...@hp.com:
At the end of section 2.9.1 of the Library Reference, i.e. the introduction to
the importlib module manual page, there is the See Also box that often we can
find in the manual pages. The last PEP of the box has the title
Francesco Ricciardi francescor2...@yahoo.it added the comment:
I think the whole issue is indeed how NotImplemented is treated. To me saying
that 'not NotImplemented' is True is wrong. About the stack overflow I found
there are various possible fixes, however none will nice.
By definition
Francesco Ricciardi francescor2...@yahoo.it added the comment:
On the one hand, it's not just a matter of total_ordering and rich comparison
operators, because all user defined operators may return NotImplemented when
they get types that they don't know how to handle.
On the other hand
New submission from Francesco Ricciardi :
Attributes of pathlib classes (e.g. 'stem' or 'root') cannot be searched for in
Python Windows help file index.
--
assignee: docs@python
components: Documentation
messages: 352630
nosy: docs@python, francescor
priority: normal
severity: normal
10 matches
Mail list logo