[issue21725] RFC 6531 (SMTPUTF8) support in smtpd

2014-08-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Adding new parameter in the middle of positional argument list can break existing code. If you want change arguments order, make their keyword-only. -- nosy: +serhiy.storchaka ___ Python tracker

[issue12954] Multiprocessing logging under Windows

2014-08-12 Thread Ari Koivula
Ari Koivula added the comment: I encountered this problem on Python 3.2.5 on Windows and don't think a vague warning about initializing modules is a proper solution. A better solution would be to simply not add multiple handlers, even if log_to_stderr is called more than once. -- nosy

[issue17923] test glob with trailing slash fail on AIX 6.1

2014-08-12 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- assignee: -> serhiy.storchaka nosy: +serhiy.storchaka stage: patch review -> commit review ___ Python tracker ___ __

[issue21725] RFC 6531 (SMTPUTF8) support in smtpd

2014-08-12 Thread Milan Oberkirch
Milan Oberkirch added the comment: Thanks for your review comments, serhiy.storchaka! I may be blind right now, but where did I add a positional parameter? -- Added file: http://bugs.python.org/file36357/issue21725v5.4.patch ___ Python tracker

[issue17923] test glob with trailing slash fail on AIX 6.1

2014-08-12 Thread Roundup Robot
Roundup Robot added the comment: New changeset e430973149ed by Serhiy Storchaka in branch '2.7': Issue #17923: glob() patterns ending with a slash no longer match non-dirs on http://hg.python.org/cpython/rev/e430973149ed New changeset 5033589a752d by Serhiy Storchaka in branch '3.4': Issue #1792

[issue21795] smtpd.SMTPServer should announce 8BITMIME when supported and accept SMTPUTF8 without it

2014-08-12 Thread Milan Oberkirch
Milan Oberkirch added the comment: Also the server should accept the SMTPUTF8 mail argument completely independently of 8BITMIME if both are enabled. -- title: smtpd.SMTPServer should announce 8BITMIME when supported -> smtpd.SMTPServer should announce 8BITMIME when supported and accep

[issue21725] RFC 6531 (SMTPUTF8) support in smtpd

2014-08-12 Thread Milan Oberkirch
Milan Oberkirch added the comment: Sorry, I was blind (switching between languages to much)! Anyway there should be no existing code using decode_data as it was introduced in this development circle. -- ___ Python tracker

[issue19494] urllib2.HTTPBasicAuthHandler (or urllib.request.HTTPBasicAuthHandler) doesn't work with GitHub API v3 and similar

2014-08-12 Thread Matej Cepl
Matej Cepl added the comment: Which are all reasons why I believe more conservative approach (i.e., new separate handler) is better. It seems to be a little more silly to have 21 lines long module separately in PyPI for 2.7, but whatever. -- ___ Py

[issue21448] Email Parser use 100% CPU

2014-08-12 Thread Roundup Robot
Roundup Robot added the comment: New changeset ba90bd01c5f1 by Serhiy Storchaka in branch '2.7': Issue #21448: Fixed FeedParser feed() to avoid O(N**2) behavior when parsing long line. http://hg.python.org/cpython/rev/ba90bd01c5f1 New changeset 1b1f92e39462 by Serhiy Storchaka in branch '3.4':

[issue21448] Email Parser use 100% CPU

2014-08-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > The test_parser.diff file catches the bug in fix_email_parse.diff I don't see this. But well, it does no harm. Please commit fix_prepending2.diff yourself. -- assignee: serhiy.storchaka -> rhettinger versions: -Python 2.7, Python 3.4

[issue22148] frozen.c should #include instead of "importlib.h"

2014-08-12 Thread Brett Cannon
Brett Cannon added the comment: The key point here is that importlib.h isn't installed with the other header files; it's purely for compilation since it doesn't expose any API. I'm not sure how you tweaked your build environment to break that assumption, but since importlib.h is not expected t

[issue17923] test glob with trailing slash fail on AIX 6.1

2014-08-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you Delhallt. Mark, yes, you are right, but the code can be simplified even more, to do less syscalls. -- resolution: -> fixed stage: commit review -> resolved status: open -> closed ___ Python tracker

[issue11822] Improve disassembly to show embedded code objects

2014-08-12 Thread Josh Lee
Changes by Josh Lee : -- nosy: +jleedev ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org

[issue22186] Typos in .py files

2014-08-12 Thread Févry Thibault
New submission from Févry Thibault: The patch removes several typos found in .py files. -- assignee: docs@python components: Documentation files: spelling.diff keywords: patch messages: 225232 nosy: docs@python, iwontbecreative priority: normal severity: normal status: open title: Typos

[issue21448] Email Parser use 100% CPU

2014-08-12 Thread Roundup Robot
Roundup Robot added the comment: New changeset 71cb8f605f77 by Serhiy Storchaka in branch '2.7': Decreased memory requirements of new tests added in issue21448. http://hg.python.org/cpython/rev/71cb8f605f77 New changeset c19d3465965f by Serhiy Storchaka in branch '3.4': Decreased memory requirem

[issue22171] stack smash when using ctypes/libffi to access union

2014-08-12 Thread Sean McCully
Sean McCully added the comment: For what it is worth, I was not able to reproduce, on the current Python 2.7.8 branch and Mac OS X. ./python2 Python 2.7.8+ (2.7:ba90bd01c5f1, Aug 12 2014, 12:21:58) gcc --version Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-g

[issue22187] commands.mkarg() buggy in East Asian locales

2014-08-12 Thread Jakub Wilk
New submission from Jakub Wilk: This is how shell quoting in commands.mkarg() is implemented: def mkarg(x): if '\'' not in x: return ' \'' + x + '\'' s = ' "' for c in x: if c in '\\$"`': s = s + '\\' s = s + c s = s + '"' return s This is

[issue21795] smtpd.SMTPServer should announce 8BITMIME when supported and accept SMTPUTF8 without it

2014-08-12 Thread Milan Oberkirch
Milan Oberkirch added the comment: The proposed patch extends process_message with an **kwargs catch-all which is filled with 'mail_options' and 'rcpt_options' if decode_data is False. I also removed process_smtputf8_message as one can detect the need for supporting SMTPUTF8 from kwargs['mail_

[issue22184] lrucache should reject maxsize as a function

2014-08-12 Thread Jakub Wilk
Changes by Jakub Wilk : -- nosy: +jwilk ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org

[issue22186] Typos in .py files

2014-08-12 Thread Georg Brandl
Georg Brandl added the comment: Looks good except for this one: -# Remove the 'Current' link, that way we don't accidentally mess +# Remove the 'Current' link, that way we don't accidentaly mess -- nosy: +georg.brandl ___ Python track

[issue22186] Typos in .py files

2014-08-12 Thread Févry Thibault
Févry Thibault added the comment: Right, must have done something wrong at some point. Here is an updated diff. -- Added file: http://bugs.python.org/file36361/spelling.diff ___ Python tracker _

[issue22187] commands.mkarg() buggy in East Asian locales

2014-08-12 Thread R. David Murray
R. David Murray added the comment: For the record, neither this module nor this routine exist in python3, so this is a python2 only issue. I'm not sure I fully understand the problem, but perhaps a possible strategy is to apply the fixes to python2's pipes.quote that were applied in python3 (w

[issue22177] Incorrect version reported after downgrade

2014-08-12 Thread Zachary Ware
Zachary Ware added the comment: 'python.exe' in the installation folder doesn't really matter -- it's just a tiny executable that embeds python27.dll, which contains the interpreter and is installed in C:\Windows\system32. I suspect the installer didn't downgrade python27.dll because the inst

[issue21308] PEP 466: backport ssl changes

2014-08-12 Thread Jakub Wilk
Changes by Jakub Wilk : -- nosy: +jwilk ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org

[issue22184] lrucache should reject maxsize as a function

2014-08-12 Thread Roundup Robot
Roundup Robot added the comment: New changeset 780693490c84 by Raymond Hettinger in branch '3.4': Issue 22184: Early detection and reporting of missing lru_cache parameters http://hg.python.org/cpython/rev/780693490c84 -- nosy: +python-dev ___ Python

[issue22184] lrucache should reject maxsize as a function

2014-08-12 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue11822] Improve disassembly to show embedded code objects

2014-08-12 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- stage: needs patch -> patch review versions: +Python 3.5 -Python 3.4 ___ Python tracker ___ ___ Pyth

[issue20729] mailbox.Mailbox does odd hasattr() check

2014-08-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: If there are no objections I'll commit this patch. -- assignee: -> serhiy.storchaka versions: +Python 3.5 -Python 3.3 ___ Python tracker ___

[issue22014] Add summary table for OS exception <-> errno mapping

2014-08-12 Thread Jon Poler
Jon Poler added the comment: I will give this a shot if it is just hard-coding a table with errno names. Dynamically scraping the errno names and inserting them with the exception hierarchy might be beyond me since I've never used Sphinx before. -- nosy: +jon.poler ___

[issue20729] mailbox.Mailbox does odd hasattr() check

2014-08-12 Thread R. David Murray
R. David Murray added the comment: Committing the patch seems like the right thing to do at this point in time. -- ___ Python tracker ___

[issue22188] test_gdb fails on invalid gdbinit

2014-08-12 Thread Peter Wu
New submission from Peter Wu: I had a stale ~/.gdbinit file which tried to executed python code causing an exception. The tests should probably run with `-nx` or `-nh` to avoid reading ~/.gdbinit. -- components: Tests messages: 225245 nosy: lekensteyn priority: normal severity: normal

[issue19777] Provide a home() classmethod on Path objects

2014-08-12 Thread Antoine Pitrou
Antoine Pitrou added the comment: > IMO, this functionality is subsumed by http://bugs.python.org/issue19776 Roughly, yes, but it can also be a useful convenience (expanduser('~') isn't that user-friendly, especially for Windows users). -- nosy: +serhiy.storchaka _

[issue21516] pathlib.Path(...).is_dir() crashes on some directories (Windows)

2014-08-12 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- stage: -> needs patch ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue22177] Incorrect version reported after downgrade

2014-08-12 Thread Steve Dower
Steve Dower added the comment: Not in future 2.7 installers, certainly. As for 3.5 and later, I'm not a fan of the global install anyway. I'd much rather Python applications install a private copy of python##.dll, and I count python.exe as just another application that should have a private co

[issue15335] IDLE - debugger steps into print and over rpc.py code

2014-08-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: Since there is currently no '_RPCFile' in idlelib, I presume it was the predecessor of PyShell.PseudoFile. Was it in run.py rather than PyShell.py? Stepping through print (only 1 is needed) steps through the two 'if's and 'return' statements of PyShell.Pseud

[issue15335] IDLE - debugger steps into print and over rpc.py code

2014-08-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: FWIW: stepping into an import statement now steps into and for many more statements than the three for print/write. I am already aware that the debugger 'doc' needs to be expanded from "Debugger (toggle) This feature is not complete and considered experimenta

[issue17942] IDLE Debugger: Improve GUI

2014-08-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: With more debugger use experience, I decided that there are many possible small improvements that would make it easier to use for beginners. 0. The window strikes me as overall 'blah', if not ugly. The difference between inactive and active could be brighter.

[issue22184] lrucache should reject maxsize as a function

2014-08-12 Thread Jason R. Coombs
Jason R. Coombs added the comment: Awesome. Thanks for the quick implementation. -- ___ Python tracker ___ ___ Python-bugs-list mailin

[issue17942] IDLE Debugger: Improve GUI

2014-08-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: 6. The offset with my current screen is two pixels, as determined by ___='__' and not as bad as I remember it. Probably due to padding differences. 7. The font and fontsize of Debug Control are fixed, as with dialogs. --

[issue12954] Multiprocessing logging under Windows

2014-08-12 Thread paul j3
paul j3 added the comment: I added a print line to a 'windows' example from the documentation: from multiprocessing import Process print 'importing multiprocessing' def foo(): print 'hello' p = Process(target=foo) p.start() Run with Python 2.7.0 on linux I get i

[issue22184] lrucache should reject maxsize as a function

2014-08-12 Thread Raymond Hettinger
Raymond Hettinger added the comment: > Awesome. Thanks for the quick implementation. Happy to do it. Thanks for the clean bug report. -- ___ Python tracker ___

[issue22189] collections.UserString missing some str methods

2014-08-12 Thread Nick Coghlan
New submission from Nick Coghlan: str currently implements some methods that UserString doesn't: >>> set(dir(str)) - set(dir(UserString)) {'__rmod__', 'casefold', 'isprintable', 'maketrans', 'format_map', '__getnewargs__'} casefold, isprintable & format_map (and perhaps __rmod__) should likely

[issue20729] mailbox.Mailbox does odd hasattr() check

2014-08-12 Thread Roundup Robot
Roundup Robot added the comment: New changeset 5fd1f8271e8a by Serhiy Storchaka in branch '3.4': Issue #20729: Restored the use of lazy iterkeys()/itervalues()/iteritems() http://hg.python.org/cpython/rev/5fd1f8271e8a New changeset acb30ed7eceb by Serhiy Storchaka in branch 'default': Issue #207

[issue22189] collections.UserString missing some str methods

2014-08-12 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: -> rhettinger components: +Library (Lib) nosy: +rhettinger ___ Python tracker ___ ___ Pyt

[issue22190] Integrate tracemalloc into regrtest refleak hunting

2014-08-12 Thread Nick Coghlan
New submission from Nick Coghlan: Trying to debug issue #22166, I realised it would be nice if there was an easy way to use tracemalloc to get a clear idea of *what's* leaking when regrtest -R reports a refleak. For that specific issue, I'm just trying to hack something together as a learning

[issue22190] Integrate tracemalloc into regrtest refleak hunting

2014-08-12 Thread Ezio Melotti
Ezio Melotti added the comment: Isn't this the same as #19816? -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mail

[issue16773] int() half-accepts UserString

2014-08-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Looks as there is no easy fix of this issue. This issue is particular case of issue232493. -- resolution: -> duplicate stage: needs patch -> resolved status: open -> closed superseder: -> UserString can not be used as string in calls to C routines