[issue18713] Enable surrogateescape on stdin and stdout when appropriate

2013-08-21 Thread STINNER Victor
STINNER Victor added the comment: "The surrogateescape error handler works with any codec." The surrogatepass only works with utf-8 if I remember correctly. The surrogateescape error handler works with any codec, especially ascii. "As a side effect of this change an input from stdin will be inc

[issue16685] Deprecate accepting strings as arguments in audioop functions

2013-08-21 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- assignee: -> serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue15809] IDLE console uses incorrect encoding.

2013-08-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Use cp1256 encoding in your source file. It is expected that usually your source files encoding is same as your locale encoding. In such case printing string literals and Unicode string literals produces same result (as they look in the sources). s1 is '\xd

[issue18713] Enable surrogateescape on stdin and stdout when appropriate

2013-08-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The surrogateescape error handler works only with UTF-8. As a side effect of this change an input from stdin will be incompatible in general with extensions which implicitly encode a string to bytes with UTF-8 (e.g. tkinter, XML parsers, sqlite3, datetime, l

[issue18806] socketmodule: fix/improve setipaddr() numeric addresses handling

2013-08-21 Thread Charles-François Natali
New submission from Charles-François Natali: Currently, setipaddr() has this code to special-case numeric IPv4 addresses and avoid a name resolution: """ if (sscanf(name, "%d.%d.%d.%d%c", &d1, &d2, &d3, &d4, &ch) == 4 && 0 <= d1 && d1 <= 255 && 0 <= d2 && d2 <= 255 && 0 <= d

[issue15809] IDLE console uses incorrect encoding.

2013-08-21 Thread irdb
irdb added the comment: I really think this information might help, if not, I promise not to post anything else. :) This is a sample program I run: ''' # -*- coding: utf-8 -*- import sys import locale de = sys.getdefaultencoding() pd = locale.getpreferredencoding() print de, pd s1 = 'سلام' p

[issue18772] Fix gdb plugin for new sets dummy object

2013-08-21 Thread Raymond Hettinger
Raymond Hettinger added the comment: Thank you. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs

[issue18805] ipaddress netmask/hostmask parsing bugs

2013-08-21 Thread Nick Coghlan
Nick Coghlan added the comment: Right, I don't see any issues with backporting these fixes. One of the reasons for the PEP 411 provisional status of the API was to ensure there were no questions about what should be backported. -- ___ Python tracker

[issue18606] Add statistics module to standard library

2013-08-21 Thread Steven D'Aprano
Steven D'Aprano added the comment: On 20/08/13 22:43, Mark Dickinson wrote: > I agree with Oscar about sum for decimal.Decimal. The *ideal* sum for > Decimal instances would return the correctly rounded result (i.e., the exact > result, rounded to the current context just once using the curre

[issue12641] Remove -mno-cygwin from distutils

2013-08-21 Thread Renato Silva
Changes by Renato Silva : -- nosy: -renatosilva ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue18805] ipaddress netmask/hostmask parsing bugs

2013-08-21 Thread Eric V. Smith
Eric V. Smith added the comment: I haven't had time to review this yet, but at least several of these, if true, are definitely bugs that should be backported. "254.192.128.0" as a netmask? Descending octets as the condition? Yikes. -- nosy: +eric.smith stage: -> patch review

[issue18324] set_payload does not handle binary payloads correctly

2013-08-21 Thread R. David Murray
R. David Murray added the comment: Thanks, Vajrasky. The v2 patch was almost correct. What you couldn't know without being as deeply enmeshed in this code as I am is that the test failures from the encoders module were actually invalid. We'd previously "fixed" them, but the fixes were incorr

[issue17400] ipaddress.is_private needs to take into account of rfc6598

2013-08-21 Thread pmoody
pmoody added the comment: is_private was, as you note, basically shorthand for is_RFC1918 (and is_RFC4193 for v6). It's not a particularly well-named method, but at the time that I wrote it (~5 years ago?), it did what I needed it to do. I'm not sure what you mean by an 'is_natted()' method; t

[issue1717] Get rid of more references to __cmp__

2013-08-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset 64e004737837 by R David Murray in branch '3.3': #18324: set_payload now correctly handles binary input. http://hg.python.org/cpython/rev/64e004737837 -- nosy: +python-dev ___ Python tracker

[issue14360] email.encoders.encode_quopri doesn't work with python 3.2

2013-08-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset 64e004737837 by R David Murray in branch '3.3': #18324: set_payload now correctly handles binary input. http://hg.python.org/cpython/rev/64e004737837 -- ___ Python tracker

[issue18324] set_payload does not handle binary payloads correctly

2013-08-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset 64e004737837 by R David Murray in branch '3.3': #18324: set_payload now correctly handles binary input. http://hg.python.org/cpython/rev/64e004737837 New changeset a4afcf93ef7b by R David Murray in branch 'default': Merge #18324: set_payload now cor

[issue16564] email.generator.BytesGenerator fails with bytes payload

2013-08-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset 64e004737837 by R David Murray in branch '3.3': #18324: set_payload now correctly handles binary input. http://hg.python.org/cpython/rev/64e004737837 -- ___ Python tracker

[issue18802] ipaddress documentation errors

2013-08-21 Thread R. David Murray
R. David Murray added the comment: Documentation fixes are always backported. -- nosy: +r.david.murray ___ Python tracker ___ ___ Pyth

[issue18805] ipaddress netmask/hostmask parsing bugs

2013-08-21 Thread Jon Foster
New submission from Jon Foster: Short version: Validation of netmasks and hostmasks in IPv4Network is wrong: it rejects many valid netmasks, it accepts many invalid netmasks and hostmasks, and it sometimes throws the wrong exception. Patch attached. Long version: Wrongly rejecting hostmasks

[issue18802] ipaddress documentation errors

2013-08-21 Thread Jon Foster
Jon Foster added the comment: (If this is accepted, please consider it for backport to 3.3 too. It is just a documentation improvement). -- type: -> enhancement versions: +Python 3.3 ___ Python tracker _

[issue18713] Enable surrogateescape on stdin and stdout when appropriate

2013-08-21 Thread STINNER Victor
STINNER Victor added the comment: Attached patch changes the error handle of stdin, stdout and stderr to surrogateescape by default. It can still be changed explicitly using the PYTHONIOENCODING environment variable. -- keywords: +patch Added file: http://bugs.python.org/file31414/surr

[issue18571] Implementation of the PEP 446: non-inheritable file descriptors

2013-08-21 Thread STINNER Victor
Changes by STINNER Victor : Removed file: http://bugs.python.org/file31412/43697011a273.diff ___ Python tracker ___ ___ Python-bugs-list maili

[issue18571] Implementation of the PEP 446: non-inheritable file descriptors

2013-08-21 Thread STINNER Victor
Changes by STINNER Victor : Added file: http://bugs.python.org/file31413/775890a666bf.diff ___ Python tracker ___ ___ Python-bugs-list mailing

[issue18326] Mention 'keyword only' for list.sort, improve glossary.

2013-08-21 Thread R. David Murray
R. David Murray added the comment: In this expository context, I prefer the issue18326.that.diff version, but the index link to the keyword-only_parameter ref should still be added to it (on "only be passed by keyword"). -- ___ Python tracker

[issue18571] Implementation of the PEP 446: non-inheritable file descriptors

2013-08-21 Thread STINNER Victor
Changes by STINNER Victor : Removed file: http://bugs.python.org/file31378/00df7fc6d2ef.diff ___ Python tracker ___ ___ Python-bugs-list maili

[issue18571] Implementation of the PEP 446: non-inheritable file descriptors

2013-08-21 Thread STINNER Victor
Changes by STINNER Victor : Removed file: http://bugs.python.org/file31235/e4e6f45668c7.diff ___ Python tracker ___ ___ Python-bugs-list maili

[issue18571] Implementation of the PEP 446: non-inheritable file descriptors

2013-08-21 Thread STINNER Victor
Changes by STINNER Victor : Added file: http://bugs.python.org/file31412/43697011a273.diff ___ Python tracker ___ ___ Python-bugs-list mailing

[issue18804] pythorun.c: is_valid_fd() should not duplicate the file descriptor

2013-08-21 Thread Antoine Pitrou
Antoine Pitrou added the comment: Thanks. I guess is_valid_fd() could be improved to check for EBADF, but other than that I don't see the problem. dup() is better than fstat() which may do some actual I/O. Did you encounter this in real life? -- ___

[issue18804] pythorun.c: is_valid_fd() should not duplicate the file descriptor

2013-08-21 Thread STINNER Victor
STINNER Victor added the comment: > By the way, can you please mention the actual changeset id? (not only the > parent) Oh, I failed to copy/paste the changeset, sorry :-) It is the changeset f15943505db0: changeset: 73775:f15943505db0 branch: 3.2 parent: 73773:661fb211f220 user:

[issue18804] pythorun.c: is_valid_fd() should not duplicate the file descriptor

2013-08-21 Thread Antoine Pitrou
Antoine Pitrou added the comment: By the way, can you please mention the actual changeset id? (not only the parent) -- ___ Python tracker ___ ___

[issue18804] pythorun.c: is_valid_fd() should not duplicate the file descriptor

2013-08-21 Thread Antoine Pitrou
Antoine Pitrou added the comment: > > Why should it? > > fstat() does not need to create a new file descriptor. Creating a new > file descriptor can fail (ex: limit of the number of open files). Why should I care? fstat() can fail too. The only important thing is whether dup() returns EBADF or

[issue18804] pythorun.c: is_valid_fd() should not duplicate the file descriptor

2013-08-21 Thread STINNER Victor
STINNER Victor added the comment: > Why should it? fstat() does not need to create a new file descriptor. Creating a new file descriptor can fail (ex: limit of the number of open files). -- ___ Python tracker ___

[issue18804] pythorun.c: is_valid_fd() should not duplicate the file descriptor

2013-08-21 Thread Antoine Pitrou
Antoine Pitrou added the comment: > is_valid_fd() of Python/pythorun.c should use fstat() to check if a > file descriptor is valid, instead of duplicating it using dup() (and > then closing it). Why should it? fstat() may be expensive, while dup() is cheap. -- _

[issue18804] pythorun.c: is_valid_fd() should not duplicate the file descriptor

2013-08-21 Thread STINNER Victor
New submission from STINNER Victor: is_valid_fd() of Python/pythorun.c should use fstat() to check if a file descriptor is valid, instead of duplicating it using dup() (and then closing it). If Windows needs a special check, it would be better to run checks on the handle of the file descripto

[issue18792] test_ftplib timeouts

2013-08-21 Thread Antoine Pitrou
Antoine Pitrou added the comment: Done, thanks :) -- resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed ___ Python tracker ___

[issue18792] test_ftplib timeouts

2013-08-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset 48de8df194d9 by Antoine Pitrou in branch '2.7': Issue #18792: Use "127.0.0.1" or "::1" instead of "localhost" as much as possible, since "localhost" goes through a DNS lookup under recent Windows versions. http://hg.python.org/cpython/rev/48de8df19

[issue18792] test_ftplib timeouts

2013-08-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7728b073c77c by Antoine Pitrou in branch '3.3': Issue #18792: Use "127.0.0.1" or "::1" instead of "localhost" as much as possible, since "localhost" goes through a DNS lookup under recent Windows versions. http://hg.python.org/cpython/rev/7728b073c

[issue17070] PEP 433: Use the new cloexec to improve security and avoid bugs

2013-08-21 Thread STINNER Victor
STINNER Victor added the comment: > Time to close this one, since the PEP has been superseeded by PEP 446? I prefer to wait until Guido decided for the PEP 446. -- ___ Python tracker __

[issue18792] test_ftplib timeouts

2013-08-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset 085ba7d85eb2 by Antoine Pitrou in branch 'default': Issue #18792: Use "127.0.0.1" or "::1" instead of "localhost" as much as possible, since "localhost" goes through a DNS lookup under recent Windows versions. http://hg.python.org/cpython/rev/085ba

[issue18772] Fix gdb plugin for new sets dummy object

2013-08-21 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Antoine, can you please verify the gdb plug-in is working again? test_gdb works fine here, yes. -- ___ Python tracker ___ ___

[issue18763] subprocess: file descriptors should be closed after preexec_fn is called

2013-08-21 Thread STINNER Victor
STINNER Victor added the comment: You don't want to fix Python 2.7 and 3.3? It is a bug in my opinion. -- ___ Python tracker ___ ___ P

[issue18763] subprocess: file descriptors should be closed after preexec_fn is called

2013-08-21 Thread STINNER Victor
STINNER Victor added the comment: Your change looks perfectly valid, except this minor nit: +self.assertTrue(remaining_fds <= set([0, 1, 2])) Using self.assertLessEqual() would provide better message on error. Note: with the PEP 446, you would not have to care of closing file descripto

[issue12641] Remove -mno-cygwin from distutils

2013-08-21 Thread STINNER Victor
Changes by STINNER Victor : -- title: Test -> Remove -mno-cygwin from distutils ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue18794] select.devpoll objects have no close() method

2013-08-21 Thread STINNER Victor
STINNER Victor added the comment: Charles-François Natali and Guido van Rossum: thanks for your reviews ;-) -- ___ Python tracker ___

[issue18794] select.devpoll objects have no close() method

2013-08-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset ccbe2132392b by Victor Stinner in branch 'default': Close #18794: Add a fileno() method and a closed attribute to select.devpoll http://hg.python.org/cpython/rev/ccbe2132392b -- nosy: +python-dev resolution: -> fixed stage: needs patch -> c

[issue16396] Importing ctypes.wintypes on Linux gives a traceback

2013-08-21 Thread Benjamin Peterson
Benjamin Peterson added the comment: We can argue about whether it's a bugfix or not. But I don't see how having this patch in 2.7 helps anyone, since ctypes.wintypes is useless on non-Windows platforms. -- ___ Python tracker

[issue17576] PyNumber_Index() is not int-subclass friendly (or operator.index() docos lie)

2013-08-21 Thread Nick Coghlan
Nick Coghlan added the comment: On 21 Aug 2013 15:47, "Mark Dickinson" wrote: > > > Mark Dickinson added the comment: > > > Shouldn't it be PendingDeprecationWarning? > > Hmm. Possibly. I'm not sure what the policy is any more regarding DeprecationWarning versus PendingDeprecationWarning. Nic

[issue18803] Fix more typos in .py files

2013-08-21 Thread Févry Thibault
New submission from Févry Thibault: Just like issue 18741 and 18705. It also fixes one typo in a C file. -- assignee: docs@python components: Documentation files: more_typos.diff keywords: patch messages: 195823 nosy: docs@python, iwontbecreative priority: normal severity: normal status

[issue18802] ipaddress documentation errors

2013-08-21 Thread R. David Murray
Changes by R. David Murray : -- nosy: +ncoghlan, pmoody ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://

[issue18795] pstats - allow stats sorting by cumulative time per call and total time per call

2013-08-21 Thread R. David Murray
R. David Murray added the comment: There may not be a problem. I'm not familiar enough with the pstats code to review the patch for real without some study. -- ___ Python tracker _

[issue18802] ipaddress documentation errors

2013-08-21 Thread Jon Foster
New submission from Jon Foster: I recently looked at using the ipaddress module in a project, and noticed some discrepencies between the code and the documentation, and some things that weren't documented. A patch to fix these is attached. * The IPv4Network.__init__ documentation wrongly clai

[issue12641] Test

2013-08-21 Thread Benjamin Peterson
Changes by Benjamin Peterson : Removed file: http://bugs.python.org/file31409/test1.html ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue12641] Test

2013-08-21 Thread Éric Araujo
Changes by Éric Araujo : -- Removed message: http://bugs.python.org/msg195820 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue12641] Test

2013-08-21 Thread gaudyallure52
gaudyallure52 added the comment: Test -- nosy: +gaudyallure52 title: Remove -mno-cygwin from distutils -> Test Added file: http://bugs.python.org/file31409/test1.html ___ Python tracker

[issue18795] pstats - allow stats sorting by cumulative time per call and total time per call

2013-08-21 Thread Alexandre Dias
Alexandre Dias added the comment: Average time would indeed be a better description. As for its usefulness: let's say that for example you would want to find the function in which your code spends the most time on average, in order to later optimise said function. If one of the calls to anoth

[issue12641] Remove -mno-cygwin from distutils

2013-08-21 Thread Christian Heimes
Changes by Christian Heimes : -- title: Test -> Remove -mno-cygwin from distutils ___ Python tracker ___ ___ Python-bugs-list mailing

[issue18801] inspect.classify_class_attrs() misclassifies object.__new__()

2013-08-21 Thread Eric Snow
New submission from Eric Snow: >>> pprint.pprint(inspect.classify_class_attrs(object)) [Attribute(name='__class__', kind='data', defining_class=, object=), ... Attribute(name='__init__', kind='method', defining_class=, object=), ... Attribute(name='__new__', kind='data', defining_class=, obj

[issue12641] Test

2013-08-21 Thread Éric Araujo
Changes by Éric Araujo : Removed file: http://bugs.python.org/file31408/test1.html ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue12641] Test

2013-08-21 Thread Éric Araujo
Changes by Éric Araujo : Removed file: http://bugs.python.org/file31406/test1.html ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue12641] Test

2013-08-21 Thread Éric Araujo
Changes by Éric Araujo : Removed file: http://bugs.python.org/file31407/test1.html ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue17972] inspect module docs omits many functions

2013-08-21 Thread Eric Snow
Changes by Eric Snow : -- nosy: +eric.snow ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue12641] Test

2013-08-21 Thread spiffykismet73
Changes by spiffykismet73 : -- title: Remove -mno-cygwin from distutils -> Test Added file: http://bugs.python.org/file31408/test1.html ___ Python tracker ___ ___

[issue16938] pydoc confused by __dir__

2013-08-21 Thread Eric Snow
Changes by Eric Snow : -- nosy: +eric.snow ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue12641] Test

2013-08-21 Thread fancyguidebook6
Changes by fancyguidebook6 : -- title: Remove -mno-cygwin from distutils -> Test Added file: http://bugs.python.org/file31407/test1.html ___ Python tracker ___ __

[issue12641] Remove -mno-cygwin from distutils

2013-08-21 Thread Charles-François Natali
Changes by Charles-François Natali : -- title: Test -> Remove -mno-cygwin from distutils ___ Python tracker ___ ___ Python-bugs-list m

[issue15175] pydoc -k zip throws segmentation fault

2013-08-21 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- status: open -> pending ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:/

[issue12641] Remove -mno-cygwin from distutils

2013-08-21 Thread vengefulgash45
Changes by vengefulgash45 : Added file: http://bugs.python.org/file31406/test1.html ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue17119] Integer overflow when passing large string or tuple to Tkinter

2013-08-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset 6bc533d06cf1 by Serhiy Storchaka in branch '3.3': Issue #17119: Fixed integer overflows when processing large strings and tuples http://hg.python.org/cpython/rev/6bc533d06cf1 New changeset b500daaee7d0 by Serhiy Storchaka in branch 'default': Issue

[issue18794] select.devpoll objects have no close() method

2013-08-21 Thread Guido van Rossum
Changes by Guido van Rossum : -- nosy: -gvanrossum ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue18762] error in test_multiprocessing_forkserver

2013-08-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset e1fdd79cfb01 by Richard Oudkerk in branch 'default': Issue #18762: Print debug info on failure to create new forkserver process. http://hg.python.org/cpython/rev/e1fdd79cfb01 -- nosy: +python-dev ___ Pyth

[issue6923] Need pthread_atfork-like functionality in CPython

2013-08-21 Thread Charles-François Natali
Changes by Charles-François Natali : -- resolution: -> duplicate stage: needs patch -> committed/rejected status: open -> closed superseder: -> Add an 'atfork' module ___ Python tracker ___

[issue18793] occasional test_multiprocessing_forkserver failure on FreeBSD 10.0

2013-08-21 Thread Richard Oudkerk
Changes by Richard Oudkerk : -- resolution: -> duplicate stage: -> committed/rejected status: open -> closed ___ Python tracker ___

[issue18794] select.devpoll objects have no close() method

2013-08-21 Thread STINNER Victor
STINNER Victor added the comment: Updated patch: move tests to the right test files and test that close() can be called more than once. -- Added file: http://bugs.python.org/file31404/devpoll_close-2.patch ___ Python tracker

[issue16611] Cookie.py does not parse httponly or secure cookie flags

2013-08-21 Thread R. David Murray
R. David Murray added the comment: Corrected patch. -- Added file: http://bugs.python.org/file31405/cookie_flags.patch ___ Python tracker ___

[issue18780] SystemError when formatting int subclass

2013-08-21 Thread Ethan Furman
Ethan Furman added the comment: I'll get my patch separated and over here when I get back home (on a business trip at the moment). -- ___ Python tracker ___

[issue16611] Cookie.py does not parse httponly or secure cookie flags

2013-08-21 Thread R. David Murray
Changes by R. David Murray : Removed file: http://bugs.python.org/file31403/cookie_flags.patch ___ Python tracker ___ ___ Python-bugs-list mai

[issue16611] Cookie.py does not parse httponly or secure cookie flags

2013-08-21 Thread R. David Murray
R. David Murray added the comment: Woops, corrupted patch, and I see a bug... -- ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue16611] Cookie.py does not parse httponly or secure cookie flags

2013-08-21 Thread R. David Murray
R. David Murray added the comment: Backward compatibility is a concern. However, having the flags test true when present, which they don't currently, should be considered a bug fix, I think. So, I added a some tests to confirm the current behavior, and wrote a new patch that *just* fixes the

[issue18797] Don't needlessly change refcounts of dummy objects for sets

2013-08-21 Thread Raymond Hettinger
Raymond Hettinger added the comment: > I think we shouldn't distinguish between debug and non-debug mode. That makes good sense. Attaching a new patch without the #ifdefs. -- Added file: http://bugs.python.org/file31402/no_refcnt_dummy2.diff ___ Pyth

[issue18763] subprocess: file descriptors should be closed after preexec_fn is called

2013-08-21 Thread Charles-François Natali
Changes by Charles-François Natali : -- nosy: +sbt ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue12641] Remove -mno-cygwin from distutils

2013-08-21 Thread Oscar Benjamin
Oscar Benjamin added the comment: I just noticed today that the fix that implemented by these patches (only providing -mno-cygwin if gcc_ver < 4) is also used by numpy's distutils. You can see the relevant code here: https://github.com/numpy/numpy/blob/master/numpy/distutils/mingw32ccompiler.py#

[issue18800] Document Fraction's numerator and denominator properties

2013-08-21 Thread icedream91
New submission from icedream91: The document (http://docs.python.org/3/library/fractions.html) doesn't mention Fraction's numerator and denominator properties, I knew these properties from dir(). Since sometimes these two properties are very useful, for example: http://projecteuler.net/proble

[issue18799] Resurrect and fix test_404 in Lib/test/test_xmlrpc.py

2013-08-21 Thread R. David Murray
R. David Murray added the comment: "A lot of false alarms" means usually it works, but then sometimes it doesn't. So just testing it on a couple of platforms isn't sufficient, unfortunately. -- nosy: +r.david.murray ___ Python tracker

[issue18792] test_ftplib timeouts

2013-08-21 Thread Charles-François Natali
Charles-François Natali added the comment: LGTM -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue15233] atexit: guarantee order of execution of registered functions?

2013-08-21 Thread Charles-François Natali
Charles-François Natali added the comment: Backported to 2.7. -- resolution: -> fixed stage: commit review -> committed/rejected status: open -> closed versions: -Python 3.2 ___ Python tracker ___

[issue18747] Re-seed OpenSSL's PRNG after fork

2013-08-21 Thread Charles-François Natali
Charles-François Natali added the comment: >> Another, probably cleaner way would be to finally add the atfork() >> module (issue #16500), and register this reseed hook (which could then >> be implemented in ssl.py). > > Wouldn't that still suffer from the double-fork() issue? Not for the "offic

[issue15233] atexit: guarantee order of execution of registered functions?

2013-08-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset 84d74eb7a341 by Charles-François Natali in branch '2.7': Issue #15233: Python now guarantees that callables registered with the atexit http://hg.python.org/cpython/rev/84d74eb7a341 -- ___ Python tracker

[issue18747] Re-seed OpenSSL's PRNG after fork

2013-08-21 Thread Christian Heimes
Christian Heimes added the comment: Oh heck, signal, threads and fork really don't mix. :( Under which condition can a non-async safe function cause trouble? Is it just fork() inside a signal handler or can an incoming signal during fork() also cause havoc? The OpenSSL PRNG is only buggy when

[issue16853] add a Selector to the select module

2013-08-21 Thread Guido van Rossum
Guido van Rossum added the comment: On Wed, Aug 21, 2013 at 2:37 AM, STINNER Victor wrote: > > STINNER Victor added the comment: > > I like the idea of renaming select to _select, and add Lib/select.py > for the high-level wrapper (Selector). In my opinion, adding a module > just for 5 classes i

[issue18799] Resurrect and fix test_404 in Lib/test/test_xmlrpc.py

2013-08-21 Thread Vajrasky Kok
New submission from Vajrasky Kok: There is a dormant test in Lib/test/test_xmlrpc.py (line 579): # [ch] The test 404 is causing lots of false alarms. def XXXtest_404(self): # send POST with http.client, it should return 404 header and # 'Not Found' message. conn =

[issue18772] Fix gdb plugin for new sets dummy object

2013-08-21 Thread Raymond Hettinger
Raymond Hettinger added the comment: Antoine, can you please verify the gdb plug-in is working again? -- ___ Python tracker ___ ___ Py

[issue18747] Re-seed OpenSSL's PRNG after fork

2013-08-21 Thread Antoine Pitrou
Antoine Pitrou added the comment: > [snip insightful explanation] > So it's not really safe either, although the window is narrower. Gosh. Well, the narrower window would be fine with me :-) -- ___ Python tracker

[issue18747] Re-seed OpenSSL's PRNG after fork

2013-08-21 Thread Richard Oudkerk
Richard Oudkerk added the comment: On 21/08/2013 3:46pm, Charles-François Natali wrote: > Another, probably cleaner way would be to finally add the atfork() > module (issue #16500), and register this reseed hook (which could then > be implemented in ssl.py). Wouldn't that still suffer from the d

[issue18747] Re-seed OpenSSL's PRNG after fork

2013-08-21 Thread Charles-François Natali
Charles-François Natali added the comment: 2013/8/21 Antoine Pitrou : > Instead of reseeding in the child, you can perturb the state in the parent > after fork. > As far as I understand, only the "child" callback in pthread_atfork() needs > to be async-signal-safe: That's not completely true: f

[issue15809] IDLE console uses incorrect encoding.

2013-08-21 Thread irdb
irdb added the comment: Oops! My problem is that I get "Unsupported characters in input" when trying to type any Unicode string in IDLE's interactive mode. e.g. a simple command like: s = u'Русский текст' gives: Unsupported characters in input Probably unrelated to the issue at hand. I don't

[issue18713] Enable surrogateescape on stdin and stdout when appropriate

2013-08-21 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue18780] SystemError when formatting int subclass

2013-08-21 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +barry, eli.bendersky, eric.smith, ethan.furman ___ Python tracker ___ ___ Python-bugs-list mai

[issue18738] String formatting (% and str.format) issues with Enum

2013-08-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I rather think that two discussions about two almost unrelated series of patches in same issue will be confused. -- ___ Python tracker ___ __

[issue18738] String formatting (% and str.format) issues with Enum

2013-08-21 Thread Eli Bendersky
Eli Bendersky added the comment: Serhiy, if you feel this is related to #18780 maybe they can be merged into a single issue (since the comment on #18780 says the fix here will work there too)? -- ___ Python tracker

[issue15809] IDLE console uses incorrect encoding.

2013-08-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > How about passing on UnicodeError? I don't see how it will resolve any problem. -- ___ Python tracker ___ _

  1   2   >