[issue21166] Bus error in pybuilddir.txt 'python -m sysconfigure --generate-posix-vars' build step

2014-08-12 Thread koobs

koobs added the comment:

:DDD

This was an awesome experience working with you Ned, thanks for all the help.

Attaching my debugging  isolation steps for additional detail, posterity and 
reference.

--
Added file: 
http://bugs.python.org/file36356/python-buildbot-broken-debugging.txt

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21166
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22184] lrucache should reject maxsize as a function

2014-08-12 Thread Serhiy Storchaka

Changes by Serhiy Storchaka storch...@gmail.com:


--
nosy: +serhiy.storchaka

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22184
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 rep...@bugs.python.org
http://bugs.python.org/issue21725
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: +Ari.Koivula

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12954
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2014-08-12 Thread Serhiy Storchaka

Changes by Serhiy Storchaka storch...@gmail.com:


--
assignee:  - serhiy.storchaka
nosy: +serhiy.storchaka
stage: patch review - commit review

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17923
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 rep...@bugs.python.org
http://bugs.python.org/issue21725
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 #17923: glob() patterns ending with a slash no longer match non-dirs on
http://hg.python.org/cpython/rev/5033589a752d

New changeset 6a71d3c79653 by Serhiy Storchaka in branch 'default':
Issue #17923: glob() patterns ending with a slash no longer match non-dirs on
http://hg.python.org/cpython/rev/6a71d3c79653

--
nosy: +python-dev

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17923
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 accept SMTPUTF8 
without it

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21795
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 rep...@bugs.python.org
http://bugs.python.org/issue21725
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19494
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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':
Issue #21448: Fixed FeedParser feed() to avoid O(N**2) behavior when parsing 
long line.
http://hg.python.org/cpython/rev/1b1f92e39462

New changeset f296d7d82675 by Serhiy Storchaka in branch 'default':
Issue #21448: Fixed FeedParser feed() to avoid O(N**2) behavior when parsing 
long line.
http://hg.python.org/cpython/rev/f296d7d82675

--
nosy: +python-dev

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21448
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21448
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22148] frozen.c should #include importlib.h 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 to be used outside of the build I don't want to 
make it a header that gets installed with the other headers Python provides for 
expressing APIs.

--
resolution:  - not a bug
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22148
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 rep...@bugs.python.org
http://bugs.python.org/issue17923
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11822] Improve disassembly to show embedded code objects

2014-08-12 Thread Josh Lee

Changes by Josh Lee jlee...@gmail.com:


--
nosy: +jleedev

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11822
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 in .py files
type: enhancement
Added file: http://bugs.python.org/file36358/spelling.diff

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22186
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 requirements of new tests added in issue21448.
http://hg.python.org/cpython/rev/c19d3465965f

New changeset f07b17de3b0d by Serhiy Storchaka in branch 'default':
Decreased memory requirements of new tests added in issue21448.
http://hg.python.org/cpython/rev/f07b17de3b0d

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21448
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 5.1 (clang-503.0.40) (based on LLVM 3.4svn)
Target: x86_64-apple-darwin13.3.0
Thread model: posix

Version:5.1.1 (5B1008)
  Location: /Applications/Xcode.app
  Applications:
  Xcode:5.1.1 (5085)
  Instruments:  5.1.1 (55045)
  SDKs:
  OS X:
  10.8: (12F37)
  10.9: (13C64)
  iOS:
  7.1:  (11D167)
  iOS Simulator:
  7.1:  (11D167)


python2 test.py
True

--
nosy: +seanmccully

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22171
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 unfortunately not compatible with the way bash splits arguments in some 
locales.
The problem is that in a few East Asian encodings (at least BIG5, BIG5-HKSCS, 
GB18030, GBK), the 0x5C byte (backslash in ASCII) could be the second byte of a 
two-byte character; and bash apparently decodes the strings before splitting.

PoC:

$ sh --version | head -n1
GNU bash, version 4.3.22(1)-release (i486-pc-linux-gnu)

$ LC_ALL=C python test-mkargs.py
crw-rw-rw- 1 root root 1, 3 Aug 12 16:00 /dev/null
ls: cannot access  ; python -c 'import this' | grep . | shuf | head -n1 | 
cowsay -y ; : No such file or directory

$ LC_ALL=zh_CN.GBK python test-mkargs.py
crw-rw-rw- 1 root root 1, 3 8月  12 16:00 /dev/null
ls: 无法访问乗: No such file or directory
 
 Simple is better than complex. 
 
\   ^__^
 \  (..)\___
(__)\   )\/\
||w |
|| ||
sh: 乗: 未找到命令

--
components: Library (Lib)
files: test-mkargs.py
messages: 225235
nosy: jwilk
priority: normal
severity: normal
status: open
title: commands.mkarg() buggy in East Asian locales
type: security
versions: Python 2.7
Added file: http://bugs.python.org/file36359/test-mkargs.py

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22187
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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_options'] now.
8BITMIE is accepted if decode_data=False and SMTPUTF8 is accepted if 
enable_SMTPUTF8=True (which implies decode_data=False).

--
keywords: +patch
Added file: http://bugs.python.org/file36360/issue21795.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21795
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22184] lrucache should reject maxsize as a function

2014-08-12 Thread Jakub Wilk

Changes by Jakub Wilk jw...@jwilk.net:


--
nosy: +jwilk

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22184
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 tracker rep...@bugs.python.org
http://bugs.python.org/issue22186
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 rep...@bugs.python.org
http://bugs.python.org/issue22186
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 (where 
the function was further moved to shlex), and use that instead of mkarg.

--
nosy: +r.david.murray

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22187
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 installed version was newer.

As for your issue, such an in-place downgrade isn't quite supported (as you 
see), nor do I think it's a particularly good idea.  You should be able to 
achieve your goals with much less headache by uninstalling 2.7.8 completely 
with its own installer, then installing 2.7.5 where you want it.

Steve: is this something that would be easy/worthwhile to support in future 2.7 
installers?

--
components: +Installation, Windows
nosy: +steve.dower, zach.ware

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22177
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21308] PEP 466: backport ssl changes

2014-08-12 Thread Jakub Wilk

Changes by Jakub Wilk jw...@jwilk.net:


--
nosy: +jwilk

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21308
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 tracker rep...@bugs.python.org
http://bugs.python.org/issue22184
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22184] lrucache should reject maxsize as a function

2014-08-12 Thread Raymond Hettinger

Changes by Raymond Hettinger raymond.hettin...@gmail.com:


--
resolution:  - fixed
stage: patch review - resolved
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22184
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11822] Improve disassembly to show embedded code objects

2014-08-12 Thread Raymond Hettinger

Changes by Raymond Hettinger raymond.hettin...@gmail.com:


--
stage: needs patch - patch review
versions: +Python 3.5 -Python 3.4

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11822
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 rep...@bugs.python.org
http://bugs.python.org/issue20729
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22014
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 rep...@bugs.python.org
http://bugs.python.org/issue20729
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
status: open
title: test_gdb fails on invalid gdbinit
type: behavior
versions: Python 3.4

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22188
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19777
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2014-08-12 Thread Antoine Pitrou

Changes by Antoine Pitrou pit...@free.fr:


--
stage:  - needs patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21516
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 copy.

We don't really have the disk space constraints any more that justify the 
suffering caused by sharing libraries like this (though I'm prepared to be 
shouted down on that, and if minimal disk usage is a principle that we ought to 
uphold then I'll back down too :) )

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22177
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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.PseudoOutputFile.write.

I agree with Martin that this is not a bug. [step] is supposed to step into 
python-coded functions and skip over non-python functions and that is what it 
is doing. Whether *any* stdlib function is coded in python, or something else, 
or something else and wrapped in python, and therefore whether it will be 
stepped into or over, is a matter of implementation, version, and local setup. 
In particular, 'print' was changed from statement keyword to builtin name 
partly so it could be wrapped or replaced.

However, I agree that stepping through .write is not especially desirable and 
would not mind if the class were moved from PyShell.py to rpc.py.  I think it 
fits there better anyway.  

I wrote a 'rpc.py', not in idlelib, and tried to debug it. Debugger silently 
ran the whole module and quit, as if I had hit [run] with no breakpoints. This, 
I think, *is* a bug; in_rpc_code() should only skip over idlelib.rpc code.

--
stage:  - test needed
title: IDLE - debugger steps through run.py internals - IDLE - debugger steps 
into print and over rpc.py code

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15335
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 frozen 
importlib._bootstrap 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 experimental. Run commands in the 
shell under the debugger 

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15335
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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.

1. There are 5 action buttons: They could be labelled as such, and maybe spaced 
out a big.  They could all use an explanatory popup.  [quit], for instance, 
means quit the current session *without* closing the window.

2. There are 4 display checkboxes. They could be labelled as such on a line 
under the action buttons. The buttons could then be spread out a bit.

3. In the middle of the gray field, I see, for instance,
  tem.py:1 module0  # or
  pyshell#0:1 module0  # if enter statement interactively
'tem.py' is the file name, either 0 or 1 or both are line numbers (Python 0, tk 
1). module seems redundant here as nothing else can be run,  unless importing 
another module in an open window would 

4. The first line in the Stack box (not labelled, unlike Locals and Globals 
boxes), always has 
'bdb'.run(), line 431: exec(cmd, globals, locals)
This seems like noise, better suppressed if possible. Next line:
'__main__'.module0, line 1: pass

5. If one only has [locals], globals == module-level locals is displayed in a 
'locals' box. If one hits [globals], that box is relabeled 'globals' and an 
empty 'locals' box open above.  Perhaps the initial box should be 
'globals/locals' and relabeled to either when stepping into a class or function.

--
title: IDLE Debugger: names, values misaligned - IDLE Debugger: Improve GUI

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17942
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 rep...@bugs.python.org
http://bugs.python.org/issue22184
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17942
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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

importing multiprocessing
hello

Run with same, but on Windows I get

importing multiprocessing
importing multiprocessing
hello
importing multiprocessing
hello
(recursively)

Now if I put the last part into an if:

if __name__ == '__main__':
p = Process(target=foo)
p.start()

the Windows version no longer recurses, but I still get the double print 
message.

In linux the child process is created with `os.fork`, which makes a copy of the 
parent.  The script is only loaded and run once.

In windows, the child is created by issuing a new call to Python with the 
script.  The script is loaded and run by the child as well as the parent, hence 
the double print.

So any action that you don't want run when the child is created should be in 
the 'if __name__' block.

I can picture modifying the log_to_stderr function so that it checks the 
logger's 'handlers' list for one that already writes to stderr.  It should be 
easy to add to your own code.  But isn't it easier just to segregate all the 
'main' actions from the 'child' ones?

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12954
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 rep...@bugs.python.org
http://bugs.python.org/issue22184
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 be 
available on UserString as well.

--
messages: 225255
nosy: ncoghlan
priority: low
severity: normal
stage: needs patch
status: open
title: collections.UserString missing some str methods
type: enhancement

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22189
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com