Changes by Petri Lehtinen pe...@digip.org:
--
nosy: +petri.lehtinen
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8853
___
___
Python-bugs-list
New submission from anatoly techtonik:
http://docs.python.org/3/library/binascii
- binascii.hexlify(data)
+ binascii.hexlify(bytes)
tag:easy
--
assignee: docs@python
components: Documentation
messages: 177727
nosy: docs@python, techtonik
priority: normal
severity: normal
status: open
Amaury Forgeot d'Arc added the comment:
Why? The binascii module consistently uses data to refer to binary data. For
example:
Return the hexadecimal representation of the binary data. Every byte of data
is converted ...
--
nosy: +amaury.forgeotdarc
Amaury Forgeot d'Arc added the comment:
Hum, io objects are not supposed to close themselves when they run out of data.
Even if HTTPResponse chooses to close the underlying socket (to clean unused
resources?), it should not report itself as a closed io.IOBase.
Subsequent calls read() should
Serhiy Storchaka added the comment:
This looks as a known bug in io.TextIOWrapper which call read() even previous
read() returned an empty data. There was a related issue, I can't found it now.
--
nosy: +serhiy.storchaka
___
Python tracker
Changes by Tim Cuthbertson tim3d.j...@gmail.com:
--
nosy: +gfxmonk
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15112
___
___
Python-bugs-list
Changes by Tim Cuthbertson tim3d.j...@gmail.com:
--
nosy: +gfxmonk
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9334
___
___
Python-bugs-list
Amaury Forgeot d'Arc added the comment:
buffer.read() never returns empty data in this case.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16723
___
New submission from Jakob Eriksson:
Can we have the same ident property for the SysLogHandler in the Python 2.7
library, like it was introduced in the 3.x library?
( Like http://hg.python.org/cpython/rev/6baa90fa2b6d )
--
components: Library (Lib)
hgrepos: 165
messages: 177732
nosy:
Changes by Jakob Eriksson ja...@aurorasystems.eu:
--
type: - enhancement
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16725
___
___
New submission from Michiel de Hoon:
The expat parser in xml.parsers.expat has a Parse method and a ParseFile
method. The Parse method parses a string, however the ParseFile method wants
bytes.
This is a minimal example of the Parse method:
import xml.parsers.expat
p =
R. David Murray added the comment:
No, that would be a feature addition, and we don't do those in bug fix releases.
--
nosy: +r.david.murray
resolution: - rejected
stage: - committed/rejected
status: open - closed
___
Python tracker
Hamish Downer added the comment:
The bug affects me on python 2.7, as described by the original reporter.
I am using Ubuntu 12.04 which comes with python 2.7.3 - was this fixed for 2.7
quite recently?
However the python 3.2 that is packaged for Ubuntu 12.04 does not suffer from
this bug.
New submission from Keith Sabine:
The windows installers for Python 2.7.3 do not install the required
python27.dll correctly.
The Windows x86 MSI Installer (2.7.3) does not install a 32 bit python27.dll in
windows\system32 at all.
The Windows x86-64 MSI Installer (2.7.3) installs a 64 bit
New submission from INADA Naoki:
http://docs.python.org/3.3/glossary.html#term-sequence
__getitem__ and __len__ are required for sequence type.
(__iter__ is not required because types having __getitem__ are already
iterator.)
.__contains__(), .index() and .count() is not required for
INADA Naoki added the comment:
In Python 3.3:
In [33]: issubclass(Foo, collections.abc.Sequence)
Out[33]: False
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16728
___
Roundup Robot added the comment:
New changeset bb94f6222fef by Andrew Svetlov in branch 'default':
Issue #16719: Get rid of WindowsError. Use OSError instead
http://hg.python.org/cpython/rev/bb94f6222fef
--
nosy: +python-dev
___
Python tracker
Andrew Svetlov added the comment:
Sorry, Brian. I missed that you assign issue to yourself.
Committed patch contributed by Serhiy.
Close the issue. Feel free to reopen if needed.
--
resolution: - fixed
status: open - closed
___
Python tracker
anatoly techtonik added the comment:
Soo..
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13615
___
___
Python-bugs-list mailing list
Changes by Wibowo Arindrarto b...@bow.web.id:
--
nosy: +bow
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16726
___
___
Python-bugs-list mailing
Changes by Wibowo Arindrarto b...@bow.web.id:
--
nosy: +bow
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16723
___
___
Python-bugs-list mailing
New submission from anatoly techtonik:
The way to override defaults for setup.py commands is not documented. For
example, to change to name of build and dist dirs from setup.py, the following
entry should be added to setup parameters:
options={
'build': {'build_base':
Changes by Petri Lehtinen pe...@digip.org:
--
stage: test needed - patch review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8853
___
___
Serhiy Storchaka added the comment:
Indeed.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16723
___
___
Python-bugs-list mailing list
Petri Lehtinen added the comment:
Attached a new patch with a test case and fixed error handling.
--
Added file: http://bugs.python.org/file28358/issue8853_v2.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8853
New submission from David Pritchard:
In importlib/_bootstrap.py, there is a function _fill_cache which crashes when
you try to run Python in any environment that is so restricted that write
permissions are not allowed. You get a trace like:
Traceback (most recent call last):
In line:
David Pritchard added the comment:
Sorry, in the main text of my message, write permissions should say directory
execute permissions (permission to list contents of a directory)
--
___
Python tracker rep...@bugs.python.org
Changes by Stefan Krah stefan-use...@bytereef.org:
--
nosy: +pitrou
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16730
___
___
Python-bugs-list
Jan Lachnitt added the comment:
Hi all,
I have solved the problem by using absolute path of the executable. The reason
why the executable didn't work properly may be that the executable's relative
path was inconsistent with current directory. See the following example (I have
made an
Berker Peksag added the comment:
Antoine and Éric: Thank you for the reviews and suggestions.
Why the __unittest variable?
I added the __unittest variable after read issue 7815 and the related
changeset: http://hg.python.org/cpython/rev/2858cae540e4/
See also:
-
anatoly techtonik added the comment:
In Python 2 there was no 'binary data' type - everything was a string. Now we
have string, str, bytearray, array, list of ints. If hexlify is not accepting
anything except bytes, it is better be explicit.
When porting code from Python 2 the argument was
Amaury Forgeot d'Arc added the comment:
If hexlify is not accepting anything except bytes, it is better be explicit.
But it is very explicit in the link you provided: both a note at the top, and
the words binary data in the description of every function.
--
Chris Angelico added the comment:
I'm experiencing a similar issue. Fresh install of 3.3 today from the .msi
installer on the web site, identifies itself as:
Python 3.3.0 (v3.3.0:bd8afb90ebf2, Sep 29 2012, 10:55:48) [MSC v.1600 32 bit
(Intel)] on win32
To reproduce: Copy and paste this
Amaury Forgeot d'Arc added the comment:
If hexlify is not accepting anything except bytes, it is better be explicit.
But it is very explicit in the link you provided: both a note at the top, and
the words binary data in the description of every function.
--
Amaury Forgeot d'Arc added the comment:
Careful, though: dict also provides these methods, but I would not consider it
a Sequence.
--
nosy: +amaury.forgeotdarc
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16728
Amaury Forgeot d'Arc added the comment:
Did you select an option like install for all users/install just for me at
some point?
--
nosy: +amaury.forgeotdarc
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16727
Serhiy Storchaka added the comment:
I found one error. In Lib/email/header.py for 2.7 'raise' should be
reverted to 'throw'.
Also I miss a past form. Second patch replaces 'threw' with 'raised'.
--
Added file: http://bugs.python.org/file28360/throw_away.patch
Added file:
Andrew Svetlov added the comment:
I agree: the docs is good and don't needed to be modified.
--
nosy: +asvetlov
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16724
___
Keith Sabine added the comment:
I selected install for all users, even though there is only one...
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16727
___
anatoly techtonik added the comment:
Fact no.1: When people use docs as a reference, they don't read top notes.
Face no.2:
This is not explicit:
binascii.hexlify(data)
This is:
binascii.hexlify(bytes)
I understand that you like the wording in description, but can't understand why
don't
Changes by Michele Orrù maker...@gmail.com:
--
nosy: +maker
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16728
___
___
Python-bugs-list mailing
Amaury Forgeot d'Arc added the comment:
When people use docs as a reference, they don't read top notes.
Maybe, but they can read some words beyond the function name, can't they?
--
___
Python tracker rep...@bugs.python.org
INADA Naoki added the comment:
I think PySequence_Check() has same problem.
OTOH, mapping definition says:
A container object that supports arbitrary key lookups and implements the
methods specified in the Mapping or MutableMapping abstract base classes.
-
Serhiy Storchaka added the comment:
If hexlify is not accepting anything except bytes, it is better be explicit.
However hexlify is accepting something except bytes. It is accepting any object
which supports buffer protocol.
--
nosy: +serhiy.storchaka
Serhiy Storchaka added the comment:
If hexlify is not accepting anything except bytes, it is better be explicit.
However hexlify is accepting something except bytes. It is accepting any object
which supports buffer protocol.
--
nosy: +serhiy.storchaka
Serhiy Storchaka added the comment:
If hexlify is not accepting anything except bytes, it is better be explicit.
However hexlify is accepting something except bytes. It is accepting any object
which supports buffer protocol.
--
nosy: +serhiy.storchaka
R. David Murray added the comment:
We do not use data type names as formal parameter names. You will realize this
is sensible if you consider that in most cases in Python the formal parameter
name is something gets used in more than just the documentation, and that using
a type name would
anatoly techtonik added the comment:
The fact that array.array, bytearray and memoryview are also accepted is a
surprise for me. It will help if Python docs contained a definition of what can
be considered 'binary data' and link this term from hexlify description to this
definition.
Daniel Shahaf added the comment:
Re the problem from msg 177134 ('./python -mtest test___all__ test_xml_etree'
failing), it is a a preexisting problem, in the sense that applying just the
Lib/test/ part of this patch suffices to trigger it. Adding 'xml.etree' to the
blacklist in
Amaury Forgeot d'Arc added the comment:
Isn't such a definition already present in the top-level paragraphs?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16724
___
anatoly techtonik added the comment:
This is not repeatable in Python 3. Is it possible to fix it for Python 2 as
well?
Is it possible to postpone registration until the import is finished
successfully? Or at least give atexit handler a chance to run before global
variable stack is purged?
Eric Snow added the comment:
Patch looks good to me. Are there any other exceptions that might be included
here?
--
nosy: +brett.cannon, eric.snow
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16730
Stefan Krah added the comment:
If Irix support is the reason for the Olimit test, perhaps we can limit
the check to Irix?
http://www.gossamer-threads.com/lists/python/dev/689524?do=post_view_threaded#689524
--
nosy: +skrah
___
Python tracker
Changes by Bradley Froehle brad.froe...@gmail.com:
--
nosy: +pitrou
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16690
___
___
Python-bugs-list
Serhiy Storchaka added the comment:
6. reverse() and ratecv() lose 16 lowest bits for 4-bytes data.
7. rms() can returns negative value (-0x8000 instead 0x8000).
8. maxpp() and avgpp() overflow and return absolutely wrong result for large
peaks.
9. ratecv() crashes Python on empty
Amaury Forgeot d'Arc added the comment:
Infortunately, the behaviour is the same in 2.7 and 3.2, and only changes with
3.3, which means that this is probably related to the new implementation of the
import system.
This won't be backported.
[It would be interesting to understand why there is a
New submission from Daniel Shahaf:
Tweak the docstrings of xxmodule and xxlimited to clarify the difference
between them (as derived from setup.py). While at it also add a defensive
coding guard to xxlimited to ensure it remains Py_LIMITED_API-safe.
--
assignee: docs@python
New submission from Daniel Shahaf:
In setup.py, the logic or enabling xxmodule/xxlimited is currently in
detect_tkinker(), so it's not run when one of the 'return' statements in the
latter is executed. On a box without tk installed, xxmodule.o gets built with
the attached patch but not
Brett Cannon added the comment:
If Antoine can't think of any then I think there aren't any more. This does
need a test, though.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16730
___
Changes by Brett Cannon br...@python.org:
--
stage: - test needed
type: - behavior
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16730
___
___
Amaury Forgeot d'Arc added the comment:
OK, found the difference between 3.2 and 3.3:
The ImportError exception is still alive when atexit handlers are called, with
its __traceback__, and all local variables in Python frames.
And since 3.3 the import system is built with Python functions...
Terry J. Reedy added the comment:
Same on 64-bit 3.3. Changed title since 3.3 is no longer '16-bit build'.
--
title: IDLE crashes when pasting non-BMP unicode char on UCS-16 build - IDLE
crashes when pasting non-BMP unicode char on Py3
versions: +Python 3.4
Roundup Robot added the comment:
New changeset 0a5c5399f638 by Andrew Svetlov in branch '2.7':
revert comment wording (#16714)
http://hg.python.org/cpython/rev/0a5c5399f638
--
___
Python tracker rep...@bugs.python.org
Andrew Svetlov added the comment:
Committed. Thanks again, Serhiy!
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16714
___
___
Python-bugs-list
Roundup Robot added the comment:
New changeset b227f8f7242d by Andrew Svetlov in branch '2.7':
replace threw with raised (#16714)
http://hg.python.org/cpython/rev/b227f8f7242d
New changeset 74da2dbb5e50 by Andrew Svetlov in branch '3.2':
replace threw with raised (#16714)
Benjamin Peterson added the comment:
I'm afraid we can only fix this in 3.4 lest someone is relying on it.
--
nosy: +benjamin.peterson
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16722
___
Changes by Serhiy Storchaka storch...@gmail.com:
--
nosy: -serhiy.storchaka
versions: -Python 2.6
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16718
___
Changes by Serhiy Storchaka storch...@gmail.com:
--
nosy: -serhiy.storchaka
versions: -Python 3.1, Python 3.5
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16724
___
Roundup Robot added the comment:
New changeset c744b6f8a09a by Benjamin Peterson in branch '3.3':
try to call __bytes__ before __index__ (closes #16722)
http://hg.python.org/cpython/rev/c744b6f8a09a
New changeset 7c717d423160 by Benjamin Peterson in branch 'default':
merge 3.3 (#16722)
Changes by Benjamin Peterson benja...@python.org:
--
resolution: fixed -
stage: committed/rejected -
status: closed - open
versions: +Python 3.4
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16722
Alexey Kachayev added the comment:
Updated patch with next points:
* fix typedefs
* python implementation works normally without C acceleration
* test cases cover both python/c implementations
* several style fixes in C module
--
nosy: +kachayev
Added file:
Changes by Benjamin Peterson benja...@python.org:
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16722
___
Changes by Andrew Svetlov andrew.svet...@gmail.com:
--
nosy: +amaury.forgeotdarc, pitrou
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14373
___
Richard Oudkerk added the comment:
Things should be better in the future, when modules are cleared with true
garbage collection.
When is this future of which you speak?
I am not sure whether it would affect performance, but a weakrefable subclass
of dict could be used for module dicts.
Andrew Svetlov added the comment:
Is it coupled with #15559?
If true we can relax ipaddress with adding __index__ again for 3.4
--
nosy: +asvetlov
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16722
Benjamin Peterson added the comment:
I changed the precedence now, so __bytes__ is tried before __index__.
--
nosy: +benjamin.peterson
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15559
___
Andrew Svetlov added the comment:
BTW, Руслан, can you change your name to use latin alphabet?
I'm Андрей Светлов, but use Andrew Svetlov for tracker.
Latin transcription is much easier to remember for all python users who don't
speak Russian. For that guys your name looks like Chinese one for
Matthew Barnett added the comment:
The patch issue1075356.patch is my attempt to fix this bug.
'PyArg_ParseTuple', etc, eventually call 'convertsimple'. What this patch does
is to insert some code at the start of 'convertsimple' that checks whether the
argument is a weakref proxy and, if it
Amaury Forgeot d'Arc added the comment:
See issue812369 for the shutdown procedure and modules cleanup.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16718
___
Richard Oudkerk added the comment:
See issue812369 for the shutdown procedure and modules cleanup.
I am aware of that issue, but the original patch is 9 years old. Which is why
I ask if/when it will actually happen.
--
___
Python tracker
New submission from yippi:
Note I am building Python 3.3 with the Sun Studio compiler on Solaris 11. When
I run the tests, I get these 2 ctypes errors:
==
FAIL: test_ints (ctypes.test.test_bitfields.C_Test)
STINNER Victor added the comment:
I guess that #16733 is a duplicate of this issue.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16275
___
___
Changes by Jesús Cea Avión j...@jcea.es:
--
nosy: +jcea
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16733
___
___
Python-bugs-list mailing list
Bradley Froehle added the comment:
The attached file `heaptype_refcnt_testcases.py` runs through several test
cases (ssl.SSLError, a subclass of ssl.SSLError, and xxlimited.Xxo) seeing if
references are leaked in each instance.
Unfortunately `xxlimited.Xxo` isn't set to be a base type and I
Zachary Ware added the comment:
Sorry to have disappeared on this, other things took priority...
Thank you for the comments, Serhiy. v2 of the patch renames Modules/operator.c
to Modules/_operator.c, and changes that name every place I could find it.
I also tried to tidy up some of the error
Chris Jerdonek added the comment:
It will help if Python docs contained a definition of what can be considered
'binary data' and link this term from hexlify description to this definition.
I believe this is part of the goal of issue 16518, where bytes-like object is
being proposed as one of
Руслан Ижбулатов added the comment:
Yes, i saw #15559 ( well, actually, i saw the related discussion
http://mail.python.org/pipermail/python-dev/2012-August/121241.html ) while
looking for an answer. It's more narrow - i.e. manifestation of this issue in
ipaddress case where some people
Raymond Hettinger added the comment:
I concur with Amaury and Andrew. The docs are fine as-is.
--
nosy: +rhettinger
resolution: - invalid
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16724
Zachary Ware added the comment:
Considering what a huge headache it was to get my own patch to apply at home on
Linux rather than at work on Windows, here's a new version of the patch that
straightens out the line ending nightmare present in v2. No other changes made.
--
Added file:
Changes by Zachary Ware zachary.w...@gmail.com:
Removed file: http://bugs.python.org/file28373/py_operator.v2.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16694
___
New submission from anatoly techtonik:
Currently, when interpreter is launched it returns immediately to parent
process without waiting to read the entrypoint script. This causes problem when
you need to remove this script after executing.
Is it possible to delay return to child process until
Chris Jerdonek added the comment:
After this issue is resolved, the binascii docs can be updated as suggested in
issue 16724.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16518
___
92 matches
Mail list logo