[issue18764] The pdb print command prints repr instead of str in python3

2013-09-24 Thread Connor Osborn
Connor Osborn added the comment: In 2.7 there is no documented command *print, the docs are explicit on this (it's just the built in statement). However, 3.4 treats print like a feature of 2.7. Is this to maintain backwards compatibility? I would suggest preserving the original direction of

[issue17777] Unrecognized string literal escape sequences give SyntaxErrors

2013-09-24 Thread Tim Golden
Tim Golden added the comment: Closing as Works for me in the absence of any clear proposal for docs improvement. -- resolution: - works for me stage: needs patch - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org

[issue19079] chameleon benchmark fails on 3.4

2013-09-24 Thread Brett Cannon
Brett Cannon added the comment: Decorator sounds reasonable. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19079 ___ ___ Python-bugs-list

[issue19079] chameleon benchmark fails on 3.4

2013-09-24 Thread Brett Cannon
Brett Cannon added the comment: Actually, one perk of the ranges is 2n3 can be auto-calculated. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19079 ___

[issue16038] ftplib: unlimited readline() from connection

2013-09-24 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: I believe the problem is the set of next_retr_data attribute here: def test_retrlines_too_long(self): self.server.handler.next_retr_data = 'x' * self.client.maxline * 2 ...because self.server.handler runs in a different thread (different than

[issue16038] ftplib: unlimited readline() from connection

2013-09-24 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Sep 24, 2013, at 01:12 PM, Giampaolo Rodola' wrote: Giampaolo Rodola' added the comment: I believe the problem is the set of next_retr_data attribute here: def test_retrlines_too_long(self): self.server.handler.next_retr_data = 'x' *

[issue18764] The pdb print command prints repr instead of str in python3

2013-09-24 Thread R. David Murray
R. David Murray added the comment: Looks good to me. This seems like a mistake in the python3 port to me. I'm in favor of fixing it as a bug. As release manager and pdb expert, what do you think, Georg? -- ___ Python tracker

[issue19082] Lib/xmlrpc/client.py demo code points to the dead server

2013-09-24 Thread Vajrasky Kok
New submission from Vajrasky Kok: Lib/xmlrpc/client.py tries to connect to http://time.xmlrpc.com/RPC2 which has been dead for a while. I see there is no light in the end of tunnel. Since this code is meant to be a demo not a general purpose tool, I say why don't we direct it to localhost

[issue19082] Lib/xmlrpc/client.py demo code points to the dead server

2013-09-24 Thread Vajrasky Kok
Changes by Vajrasky Kok sky@speaklikeaking.com: Removed file: http://bugs.python.org/file31856/xmlrpc_server_client_demo.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19082 ___

[issue19082] Lib/xmlrpc/client.py demo code points to the dead server

2013-09-24 Thread Vajrasky Kok
Changes by Vajrasky Kok sky@speaklikeaking.com: Added file: http://bugs.python.org/file31857/xmlrpc_server_client_demo.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19082 ___

[issue19083] IDNA prefix should be case insensitive

2013-09-24 Thread Pepijn de Vos
New submission from Pepijn de Vos: RFC 3490 states that The ACE prefix for IDNA is xn-- or any capitalization thereof. But the following does not work str(bXN--pythn-mua.org., idna) -- components: Library (Lib) files: upper-idna.patch keywords: patch messages: 198360 nosy:

[issue19082] Lib/xmlrpc/client.py demo code points to the dead server

2013-09-24 Thread R. David Murray
R. David Murray added the comment: Sure :) If you want some bonus points, can you figure out whether or not the test in test_xmlrpc_net is worth moving to test_xmlrpc using a similar local-server approach, or if it is redundant and should just be deleted? (time.xmlrcp.com has come and gone

[issue19081] zipimport behaves badly when the zip file changes while the process is running

2013-09-24 Thread Gregory P. Smith
Gregory P. Smith added the comment: Here's a fix (the test is now in the patch). -- keywords: +needs review stage: - patch review Added file: http://bugs.python.org/file31860/issue19081-gps01.diff ___ Python tracker rep...@bugs.python.org

[issue19084] No way to use TLS-PSK from python ssl

2013-09-24 Thread Barry A. Warsaw
Changes by Barry A. Warsaw ba...@python.org: -- nosy: +barry ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19084 ___ ___ Python-bugs-list mailing

[issue19084] No way to use TLS-PSK from python ssl

2013-09-24 Thread Karl Palsson
New submission from Karl Palsson: OpenSSL supports TLS-PSK which some people (myself obviously) find to be substantially easier to use than setting up certs. However, there's no way to use PSK via the current SSL api in python. It would be very nice to be able to use PSK from python. For

[issue19084] No way to use TLS-PSK from python ssl

2013-09-24 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: Python 2.7 is open only for bugfixes. No new features. Do you dare to write a patch for Python 3.4? :-). If you do, remember to sign a Contributor Agreement. Give it a try! :) -- nosy: +jcea versions: -Python 2.7

[issue19084] No way to use TLS-PSK from python ssl

2013-09-24 Thread Roger Light
Changes by Roger Light ro...@atchoo.org: -- nosy: +ralight ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19084 ___ ___ Python-bugs-list mailing

[issue19081] zipimport behaves badly when the zip file changes while the process is running

2013-09-24 Thread Daniel Stutzbach
Changes by Daniel Stutzbach stutzb...@google.com: -- nosy: +stutzbach ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19081 ___ ___ Python-bugs-list

[issue19084] No way to use TLS-PSK from python ssl

2013-09-24 Thread Antoine Pitrou
Antoine Pitrou added the comment: Is it different from TLS SRP, which already has a feature request in issue11943? As Jesus said, feel free to propose a patch, even a proof of concept so that we start discussing the API. -- nosy: +christian.heimes, giampaolo.rodola, janssen, pitrou

[issue19085] Add tkinter basic options tests

2013-09-24 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: The proposed patch adds tests for all options of all widgets. They test that widgets support all documented options, accepts valid values in different formats, reject invalid values, and return values in expected format. This would be helpful for

[issue18844] allow weights in random.choice

2013-09-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Most existing implementation produce just index. That is why weighted_choice() accepts singular weights list and returns index. On the other hand, I think working with mapping will be wished feature too (especially because Counter is in stdlib). Indexable

[issue17618] base85 encoding

2013-09-24 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17618 ___ ___ Python-bugs-list mailing

[issue19077] More robust TemporaryDirectory cleanup

2013-09-24 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19077 ___ ___ Python-bugs-list

[issue1820] Enhance Object/structseq.c to match namedtuple and tuple api

2013-09-24 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1820 ___ ___ Python-bugs-list

[issue19050] crash while writing to a closed file descriptor

2013-09-24 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19050 ___ ___ Python-bugs-list

[issue19058] test_sys.test_ioencoding_nonascii() fails with ASCII locale encoding

2013-09-24 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: -- title: test_ioencoding_nonascii (test_sys) fails on Snow Leopard - test_sys.test_ioencoding_nonascii() fails with ASCII locale encoding ___ Python tracker rep...@bugs.python.org

[issue16038] ftplib: unlimited readline() from connection

2013-09-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is a patch. -- Added file: http://bugs.python.org/file31862/ftplib_maxline.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16038 ___

[issue19046] SystemError: ..\Objects\weakrefobject.c:903: bad argument to internal function

2013-09-24 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19046 ___ ___ Python-bugs-list

[issue19058] test_sys.test_ioencoding_nonascii() fails with ASCII locale encoding

2013-09-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Shouldn't FS_NONASCII be None with ASCII locale encoding? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19058 ___

[issue19058] test_sys.test_ioencoding_nonascii() fails with ASCII locale encoding

2013-09-24 Thread STINNER Victor
STINNER Victor added the comment: Shouldn't FS_NONASCII be None with ASCII locale encoding? See the description of the variable in test.support: # FS_NONASCII: non-ASCII character encodable by os.fsencode(), # or None if there is no such character. The file system encoding an the locale

[issue16038] ftplib: unlimited readline() from connection

2013-09-24 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Sep 24, 2013, at 09:59 PM, Serhiy Storchaka wrote: Added file: http://bugs.python.org/file31862/ftplib_maxline.patch This looks great and fixes the test failure problem. Thanks! Serhiy, please feel free to apply this to the 2.6 branch, or let me know if

[issue18844] allow weights in random.choice

2013-09-24 Thread Madison May
Madison May added the comment: You have me convinced, Serhiy. I see the value in making the two functions distinct. For naming purposes, perhaps weighted_index() would be more descriptive. -- ___ Python tracker rep...@bugs.python.org

[issue19085] Add tkinter basic options tests

2013-09-24 Thread Ned Deily
Changes by Ned Deily n...@acm.org: -- nosy: +ned.deily ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19085 ___ ___ Python-bugs-list mailing list

[issue19071] Documentation on what self is for module-level functions is misleading/wrong.

2013-09-24 Thread A. Jesse Jiryu Davis
Changes by A. Jesse Jiryu Davis je...@emptysquare.net: -- nosy: +emptysquare ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19071 ___ ___

[issue19058] test_sys.test_ioencoding_nonascii() fails with ASCII locale encoding

2013-09-24 Thread R. David Murray
R. David Murray added the comment: Also note that on OS X I believe the fsencoding is always utf-8, but the locale can of course be something else. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19058

[issue19011] Enum should have a __getattr__ that makes all the instances available from an instance

2013-09-24 Thread Ethan Furman
Ethan Furman added the comment: As discussed on PyDev[1], Enum members are bonafide class attributes, as in they show on the class, not on the instances. Documentation patch attached. [1] https://mail.python.org/pipermail/python-dev/2013-September/128874.html -- stage: - patch

[issue19040] Problems with overriding Enum.__new__

2013-09-24 Thread Ethan Furman
Ethan Furman added the comment: Doc patch is in #19011. I'll close this one when that one is closed. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19040 ___

[issue18596] enable usage of AddressSanitizer in CPython [PATCH]

2013-09-24 Thread Nick Coghlan
Changes by Nick Coghlan ncogh...@gmail.com: -- nosy: +ncoghlan ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18596 ___ ___ Python-bugs-list