[issue16166] Add PY_BYTE_ORDER macro to get endianess of platform

2012-10-17 Thread Antoine Pitrou
Antoine Pitrou added the comment: Looks fine to me. I suppose you'll have to check the big endian buildbots. -- stage: needs patch -> commit review ___ Python tracker ___ ___

[issue16269] multiprocessing.Queue uses select()

2012-10-17 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +sbt versions: +Python 3.2, Python 3.3, Python 3.4 ___ Python tracker ___ ___ Python-bugs-list ma

[issue16270] ftplib hangs when closing connection

2012-10-17 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: I guess this is about urllib, not ftplib. -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue16166] Add PY_BYTE_ORDER macro to get endianess of platform

2012-10-17 Thread Roundup Robot
Roundup Robot added the comment: New changeset d2127cdec10e by Christian Heimes in branch 'default': Issue #16166: Add PY_LITTLE_ENDIAN and PY_BIG_ENDIAN macros and unified http://hg.python.org/cpython/rev/d2127cdec10e -- nosy: +python-dev ___ Python

[issue16269] multiprocessing.Queue uses select()

2012-10-17 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : -- nosy: +giampaolo.rodola ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:

[issue15298] _sysconfigdata is generated in srcdir, not builddir

2012-10-17 Thread Roundup Robot
Roundup Robot added the comment: New changeset 1250498db562 by Trent Nelson in branch '3.3': Issue #15298: refactor previous fix from 66959d419369. http://hg.python.org/cpython/rev/1250498db562 New changeset a0614e041bc8 by Trent Nelson in branch 'default': Merge issue #15298. http://hg.python.o

[issue16166] Add PY_BYTE_ORDER macro to get endianess of platform

2012-10-17 Thread Christian Heimes
Changes by Christian Heimes : -- resolution: -> fixed stage: commit review -> committed/rejected status: open -> closed ___ Python tracker ___ __

[issue16269] multiprocessing.Queue uses select()

2012-10-17 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: On one hand this seems reasonable to me, on the other hand I'm not sure. select() other than being supported on all platforms has the advantage of being simple and quick to use (you just call it once by passing a set of fds and then you're done). poll() / e

[issue1283110] Give __len__() advice for "don't know"

2012-10-17 Thread Todd Rovito
Changes by Todd Rovito : Removed file: http://bugs.python.org/file27589/DataModel__len__.patch ___ Python tracker ___ ___ Python-bugs-list m

[issue16269] multiprocessing.Queue uses select()

2012-10-17 Thread Richard Oudkerk
Richard Oudkerk added the comment: > select() other than being supported on all platforms has the advantage of > being simple and quick to use (you just call it once by passing a set of fds > and then you're done). Do you mean at the C level? Wouldn't you just do struct pollfd pfd = {fd, P

[issue16271] weird dual behavior with changing __qualname__; different values observed through attribute and descriptor

2012-10-17 Thread Christopher the Magnificent
New submission from Christopher the Magnificent: The output below is NOT typed at the Python interactive interpeter. The ">>> " shows what is being evaluated and the line below it shows what the result it. The output gets generated here: (lines 418-449 of the attached file) def name_glob

[issue16269] multiprocessing.Queue uses select()

2012-10-17 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: > Do you mean at the C level? No, Python of course. > poll(), unlike select(), does not have to scan an fd_set > (of 1024 bits?) so I would have expected it to be faster if anything. That might be true in a continuous loop (e.g. a reactor). Judging from wh

[issue16269] multiprocessing.Queue uses select()

2012-10-17 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Speaking of which, it seems this is a duplicate of issue 10527. -- ___ Python tracker ___ ___ Pyt

[issue10527] multiprocessing.Pipe problem: "handle out of range in select()"

2012-10-17 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : -- nosy: +giampaolo.rodola ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:

[issue1283110] Give __len__() advice for "don't know"

2012-10-17 Thread Todd Rovito
Todd Rovito added the comment: New patch with a better reference to the source for the test case. This was suggested by PythonMentors list. I think the patch improves the documentation. This works on Python 3.4. -- Added file: http://bugs.python.org/file27605/DataModel__len__.patch

[issue16272] C-API documentation clarification for tp_dictoffset

2012-10-17 Thread Chris Colbert
New submission from Chris Colbert: The documentation of the tp_dictoffset is a bit unclear when describing the responsibilities of a base type with a nonzero tp_dictoffset. http://docs.python.org/c-api/typeobj.html I feel there should some statement to the effect of: """ If a type defines a n

[issue16269] multiprocessing.Queue uses select()

2012-10-17 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : -- resolution: -> duplicate status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing

[issue15032] Provide a select.select implemented using select.poll

2012-10-17 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: It's not clear to me how you intend to provide this exactly. To me it looks like a good candidate for a recipe, otherwise I don't see it as a good fit for the stdlib. -- nosy: +giampaolo.rodola ___ Python tracker

[issue16270] ftplib hangs when closing connection

2012-10-17 Thread R. David Murray
R. David Murray added the comment: Well, urllib calls ftplib for ftp urls, so it might be about ftplib. But in that case it would be better to have a reproducer that *just* uses ftplib. -- nosy: +r.david.murray ___ Python tracker

[issue16270] ftplib hangs when closing connection

2012-10-17 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: I can reproduce the issue on python 3.3. To have a clearer understanding on what's going on use: import urllib.request import ftplib ftplib.FTP.debugging = 4 url = "ftp://ftp.fu-berlin.de/pub/misc/movies/database/ratings.list.gz"; with urllib.request.urlopen(

[issue16270] urllib hangs when closing connection

2012-10-17 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : -- title: ftplib hangs when closing connection -> urllib hangs when closing connection ___ Python tracker ___

[issue16268] dir(closure) does not find __dir__

2012-10-17 Thread Chris Jerdonek
Chris Jerdonek added the comment: Here is a somewhat simpler way to reproduce (following the same definition of x): >>> dir(x) ... TypeError: object does not provide __dir__ >>> x.__dir__ >>> dir(x) ['__class__', '__delattr__', '__dir__', '__doc__', '__eq__', '__format__', '__ge__', '__geta

[issue16273] f.tell() returning negative number on Windows build

2012-10-17 Thread Raymond Hettinger
New submission from Raymond Hettinger: On a fresh 64-bit install of Windows 2.7.3 running on Windows 7, f.tell() is producing unexpected (and unusable) results: >>> f = open('sample.txt') >>> f.read(3) >>> f.read(3) >>> f.tell() -5L -- components: Interpreter Core messages: 173226 nosy

[issue16266] Rephrase sentence in tutorial about universal newlines

2012-10-17 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7b2a13b20b33 by Chris Jerdonek in branch '3.2': Clarify universal-newline wording in tutorial (issue #16266). http://hg.python.org/cpython/rev/7b2a13b20b33 New changeset b5439bca219f by Chris Jerdonek in branch '3.3': Merge from 3.2: clarify univers

[issue16266] Rephrase sentence in tutorial about universal newlines

2012-10-17 Thread Chris Jerdonek
Chris Jerdonek added the comment: Committed. Thanks for the report! -- resolution: -> fixed stage: -> committed/rejected status: open -> closed type: behavior -> enhancement ___ Python tracker __

[issue15032] Provide a select.select implemented using select.poll

2012-10-17 Thread Gregory P. Smith
Gregory P. Smith added the comment: indeed, i don't know that there is any point to this idea. i'm all for just getting rid of all uses of select in the stdlib and making them poll only in 3.4 unless someone can point to a modern system that does not support poll. --

[issue16248] Security bug in tkinter allows for untrusted, arbitrary code execution.

2012-10-17 Thread mani and ram
mani and ram added the comment: On 17 October 2012 23:46, Guilherme Polo wrote: > > Guilherme Polo added the comment: > > It is a well known fact that the readprofile function uses exec, and it > has been like that for more than 18 years. The parameters baseName and > className defines the exec

[issue16248] Security bug in tkinter allows for untrusted, arbitrary code execution.

2012-10-17 Thread Ramchandra Apte
Ramchandra Apte added the comment: Apparently when replying by email my old account name is shown ("mani and ram") Just so you know that "mani and ram" is me. -- ___ Python tracker

[issue16257] test_socket.test_create_connection tests for wrong errno on Solaris

2012-10-17 Thread Roundup Robot
Roundup Robot added the comment: New changeset 8599036d9140 by Trent Nelson in branch '2.7': Issue #16257: make test_create_connection() handle ENETUNREACH. http://hg.python.org/cpython/rev/8599036d9140 -- ___ Python tracker

[issue1723038] Curses Menu

2012-10-17 Thread Benjamin Trofatter
Benjamin Trofatter added the comment: I took the curses.panel module as a starting point as well but have made rather a bit more progress with the extension. The attached patch includes a full wrapper around the curses menu extension, tests, documentation, and the necessary additions to setup

[issue16273] f.tell() returning negative number on Windows build

2012-10-17 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +pitrou priority: normal -> high ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue16220] wsgiref does not call close() on iterable response

2012-10-17 Thread Brent Tubbs
Brent Tubbs added the comment: Updated patch with test attached. -- Added file: http://bugs.python.org/file27608/wsgiref_close_plus_test.patch ___ Python tracker ___

<    1   2