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: nor
Francesco Ricciardi 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, if such a decisio
Francesco Ricciardi 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, NotImplemented
Francesco Ricciardi 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/file19145
New submission from Francesco Ricciardi :
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 interpreter might reverse
New submission from Francesco Ricciardi :
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 ("Using UTF-8
as the De
Francesco Ricciardi 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
<http://bu
New submission from Francesco Ricciardi :
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".
---
Francesco Ricciardi 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 haven't
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 leas
10 matches
Mail list logo