[issue8853] getaddrinfo should accept port of type long

2012-12-19 Thread Petri Lehtinen
Changes by Petri Lehtinen pe...@digip.org: -- nosy: +petri.lehtinen ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8853 ___ ___ Python-bugs-list

[issue16724] Rename `data` argument names to `bytes`

2012-12-19 Thread anatoly techtonik
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

[issue16724] Rename `data` argument names to `bytes`

2012-12-19 Thread Amaury Forgeot d'Arc
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

[issue16723] io.TextIOWrapper on urllib.request.urlopen terminates prematurely

2012-12-19 Thread Amaury Forgeot d'Arc
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

[issue16723] io.TextIOWrapper on urllib.request.urlopen terminates prematurely

2012-12-19 Thread Serhiy Storchaka
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

[issue15112] argparse: nargs='*' positional argument doesn't accept any items if preceded by an option and another positional

2012-12-19 Thread Tim Cuthbertson
Changes by Tim Cuthbertson tim3d.j...@gmail.com: -- nosy: +gfxmonk ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15112 ___ ___ Python-bugs-list

[issue9334] argparse does not accept options taking arguments beginning with dash (regression from optparse)

2012-12-19 Thread Tim Cuthbertson
Changes by Tim Cuthbertson tim3d.j...@gmail.com: -- nosy: +gfxmonk ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9334 ___ ___ Python-bugs-list

[issue16723] io.TextIOWrapper on urllib.request.urlopen terminates prematurely

2012-12-19 Thread Amaury Forgeot d'Arc
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 ___

[issue16725] Add 'ident' property to SysLogHandler like in Python 3.x

2012-12-19 Thread Jakob Eriksson
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:

[issue16725] Add 'ident' property to SysLogHandler like in Python 3.x

2012-12-19 Thread Jakob Eriksson
Changes by Jakob Eriksson ja...@aurorasystems.eu: -- type: - enhancement ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16725 ___ ___

[issue16726] expat ParseFile expects bytes, not string

2012-12-19 Thread Michiel de Hoon
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 =

[issue16725] Add 'ident' property to SysLogHandler like in Python 3.x

2012-12-19 Thread R. David Murray
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

[issue15565] pdb displays runt Exception strings

2012-12-19 Thread Hamish Downer
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.

[issue16727] Windows installers for 2.7.3 don't install python27.dll correctly

2012-12-19 Thread Keith Sabine
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

[issue16728] collections.abc.Sequence shoud provide __subclasshook__

2012-12-19 Thread INADA Naoki
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

[issue16728] collections.abc.Sequence shoud provide __subclasshook__

2012-12-19 Thread INADA Naoki
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 ___

[issue16719] Get rid of WindowsError. Use OSError instead

2012-12-19 Thread Roundup Robot
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

[issue16719] Get rid of WindowsError. Use OSError instead

2012-12-19 Thread Andrew Svetlov
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

[issue13615] setup.py register fails with -r argument

2012-12-19 Thread anatoly techtonik
anatoly techtonik added the comment: Soo.. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13615 ___ ___ Python-bugs-list mailing list

[issue16726] expat ParseFile expects bytes, not string

2012-12-19 Thread Wibowo Arindrarto
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

[issue16723] io.TextIOWrapper on urllib.request.urlopen terminates prematurely

2012-12-19 Thread Wibowo Arindrarto
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

[issue16729] Document how to provide defaults for setup.py commands options

2012-12-19 Thread anatoly techtonik
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':

[issue8853] getaddrinfo should accept port of type long

2012-12-19 Thread Petri Lehtinen
Changes by Petri Lehtinen pe...@digip.org: -- stage: test needed - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8853 ___ ___

[issue16723] io.TextIOWrapper on urllib.request.urlopen terminates prematurely

2012-12-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Indeed. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16723 ___ ___ Python-bugs-list mailing list

[issue8853] getaddrinfo should accept port of type long

2012-12-19 Thread Petri Lehtinen
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

[issue16730] _fill_cache in _bootstrap.py crashes without directory execute permissions

2012-12-19 Thread David Pritchard
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:

[issue16730] _fill_cache in _bootstrap.py crashes without directory execute permissions

2012-12-19 Thread David Pritchard
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

[issue16730] _fill_cache in _bootstrap.py crashes without directory execute permissions

2012-12-19 Thread Stefan Krah
Changes by Stefan Krah stefan-use...@bytereef.org: -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16730 ___ ___ Python-bugs-list

[issue15533] subprocess.Popen(cwd) documentation

2012-12-19 Thread Jan Lachnitt
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

[issue14266] pyunit script as shorthand for python -m unittest

2012-12-19 Thread Berker Peksag
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: -

[issue16724] Rename `data` argument names to `bytes`

2012-12-19 Thread anatoly techtonik
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

[issue16724] Rename `data` argument names to `bytes`

2012-12-19 Thread Amaury Forgeot d'Arc
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. --

[issue13153] IDLE crashes when pasting non-BMP unicode char on UCS-16 build

2012-12-19 Thread Chris Angelico
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

[issue16724] Rename `data` argument names to `bytes`

2012-12-19 Thread Amaury Forgeot d'Arc
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. --

[issue16728] collections.abc.Sequence shoud provide __subclasshook__

2012-12-19 Thread Amaury Forgeot d'Arc
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

[issue16727] Windows installers for 2.7.3 don't install python27.dll correctly

2012-12-19 Thread Amaury Forgeot d'Arc
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

[issue16714] Raise exceptions, don't throw

2012-12-19 Thread Serhiy Storchaka
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:

[issue16724] Rename `data` argument names to `bytes`

2012-12-19 Thread Andrew Svetlov
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 ___

[issue16727] Windows installers for 2.7.3 don't install python27.dll correctly

2012-12-19 Thread Keith Sabine
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 ___

[issue16724] Rename `data` argument names to `bytes`

2012-12-19 Thread anatoly techtonik
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

[issue16728] collections.abc.Sequence shoud provide __subclasshook__

2012-12-19 Thread Michele Orrù
Changes by Michele Orrù maker...@gmail.com: -- nosy: +maker ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16728 ___ ___ Python-bugs-list mailing

[issue16724] Rename `data` argument names to `bytes`

2012-12-19 Thread Amaury Forgeot d'Arc
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

[issue16728] collections.abc.Sequence shoud provide __subclasshook__

2012-12-19 Thread INADA Naoki
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. -

[issue16724] Rename `data` argument names to `bytes`

2012-12-19 Thread 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

[issue16724] Rename `data` argument names to `bytes`

2012-12-19 Thread 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

[issue16724] Rename `data` argument names to `bytes`

2012-12-19 Thread 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

[issue16724] Rename `data` argument names to `bytes`

2012-12-19 Thread R. David Murray
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

[issue16724] Define `binary data` representation in Python

2012-12-19 Thread anatoly techtonik
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.

[issue16076] xml.etree.ElementTree.Element and xml.etree.ElementTree.TreeBuilder are no longer pickleable

2012-12-19 Thread Daniel Shahaf
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

[issue16724] Define `binary data` representation in Python

2012-12-19 Thread Amaury Forgeot d'Arc
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 ___

[issue16718] Mysterious atexit fail

2012-12-19 Thread anatoly techtonik
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?

[issue16730] _fill_cache in _bootstrap.py crashes without directory execute permissions

2012-12-19 Thread Eric Snow
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

[issue16721] configure incorrectly adds -OPT:Olimit=0 for clang

2012-12-19 Thread Stefan Krah
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

[issue16690] Reference leak with custom tp_dealloc in PyType_FromSpec

2012-12-19 Thread Bradley Froehle
Changes by Bradley Froehle brad.froe...@gmail.com: -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16690 ___ ___ Python-bugs-list

[issue16686] audioop overflow issues

2012-12-19 Thread Serhiy Storchaka
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

[issue16718] Mysterious atexit fail

2012-12-19 Thread Amaury Forgeot d'Arc
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

[issue16731] xxlimited/xxmodule docstrings ambiguous

2012-12-19 Thread Daniel Shahaf
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

[issue16732] setup.py support for xxmodule without tkinker

2012-12-19 Thread Daniel Shahaf
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

[issue16730] _fill_cache in _bootstrap.py crashes without directory execute permissions

2012-12-19 Thread Brett Cannon
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 ___

[issue16730] _fill_cache in _bootstrap.py crashes without directory execute permissions

2012-12-19 Thread Brett Cannon
Changes by Brett Cannon br...@python.org: -- stage: - test needed type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16730 ___ ___

[issue16718] Mysterious atexit fail

2012-12-19 Thread Amaury Forgeot d'Arc
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...

[issue13153] IDLE crashes when pasting non-BMP unicode char on Py3

2012-12-19 Thread Terry J. Reedy
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

[issue16714] Raise exceptions, don't throw

2012-12-19 Thread Roundup Robot
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

[issue16714] Raise exceptions, don't throw

2012-12-19 Thread Andrew Svetlov
Andrew Svetlov added the comment: Committed. Thanks again, Serhiy! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16714 ___ ___ Python-bugs-list

[issue16714] Raise exceptions, don't throw

2012-12-19 Thread Roundup Robot
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)

[issue16722] __index__() overrides __bytes__() when bytes() is called

2012-12-19 Thread Benjamin Peterson
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 ___

[issue16718] Mysterious atexit fail

2012-12-19 Thread Serhiy Storchaka
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 ___

[issue16724] Define `binary data` representation in Python

2012-12-19 Thread Serhiy Storchaka
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 ___

[issue16722] __index__() overrides __bytes__() when bytes() is called

2012-12-19 Thread Roundup Robot
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)

[issue16722] __index__() overrides __bytes__() when bytes() is called

2012-12-19 Thread Benjamin Peterson
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

[issue14373] C implementation of functools.lru_cache

2012-12-19 Thread Alexey Kachayev
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:

[issue16722] __index__() overrides __bytes__() when bytes() is called

2012-12-19 Thread Benjamin Peterson
Changes by Benjamin Peterson benja...@python.org: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16722 ___

[issue14373] C implementation of functools.lru_cache

2012-12-19 Thread Andrew Svetlov
Changes by Andrew Svetlov andrew.svet...@gmail.com: -- nosy: +amaury.forgeotdarc, pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14373 ___

[issue16718] Mysterious atexit fail

2012-12-19 Thread Richard Oudkerk
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.

[issue16722] __index__() overrides __bytes__() when bytes() is called

2012-12-19 Thread Andrew Svetlov
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

[issue15559] Bad interaction between ipaddress addresses and the bytes constructor

2012-12-19 Thread Benjamin Peterson
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 ___

[issue16722] __index__() overrides __bytes__() when bytes() is called

2012-12-19 Thread Andrew Svetlov
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

[issue1075356] exceeding obscure weakproxy bug

2012-12-19 Thread Matthew Barnett
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

[issue16718] Mysterious atexit fail

2012-12-19 Thread Amaury Forgeot d'Arc
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 ___

[issue16718] Mysterious atexit fail

2012-12-19 Thread Richard Oudkerk
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

[issue16733] Solaris ctypes_test failures

2012-12-19 Thread yippi
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)

[issue16275] test_ctypes fails on Solaris 10 SPARC 2.7 (nitrogen/s10) (Sun C compiler)

2012-12-19 Thread STINNER Victor
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 ___ ___

[issue16733] Solaris ctypes_test failures

2012-12-19 Thread Jesús Cea Avión
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

[issue16690] Reference leak with custom tp_dealloc in PyType_FromSpec

2012-12-19 Thread Bradley Froehle
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

[issue16694] Add pure Python operator module

2012-12-19 Thread Zachary Ware
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

[issue16724] Define `binary data` representation in Python

2012-12-19 Thread Chris Jerdonek
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

[issue16722] __index__() overrides __bytes__() when bytes() is called

2012-12-19 Thread Руслан Ижбулатов
Руслан Ижбулатов 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

[issue16724] Define `binary data` representation in Python

2012-12-19 Thread Raymond Hettinger
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

[issue16694] Add pure Python operator module

2012-12-19 Thread Zachary Ware
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:

[issue16694] Add pure Python operator module

2012-12-19 Thread Zachary Ware
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 ___

[issue16734] Delay interpreter startup phase until script is read

2012-12-19 Thread anatoly techtonik
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

[issue16518] add buffer protocol to glossary

2012-12-19 Thread Chris Jerdonek
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 ___