[issue13043] Unexpected behavior of imp.find_module(".") with a package present in sys.path and also referenced in a .pth file

2011-09-25 Thread Arfrever Frehtes Taifersar Arahesis
New submission from Arfrever Frehtes Taifersar Arahesis : # python3.3 -c 'import imp; print(imp.find_module("."))' Traceback (most recent call last): File "", line 1, in ImportError: No module named '.' # mkdir /usr/lib64/python3.3/site-packages/something # touch /usr/lib64/python3.3/site-pac

[issue13043] Unexpected behavior of imp.find_module(".") with a package present in sys.path and also referenced in a .pth file

2011-09-25 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis added the comment: After thinking more about it, it's probably expected. -- resolution: -> invalid status: open -> closed ___ Python tracker ___

[issue13041] argparse: terminal width is not detected properly

2011-09-25 Thread Zbyszek Szmek
Zbyszek Szmek added the comment: I see that adding a separate module was proposed in issue #8408, which was rejected/closed. I don't have the rights to reopen, so I'll continue here. #8408 was proposing a new module, which seems a bit overkill, since the implementation for unix and windows is

[issue12806] argparse: Hybrid help text formatter

2011-09-25 Thread Zbyszek Szmek
Zbyszek Szmek added the comment: On 09/25/2011 01:50 AM, Graylin Kim wrote: > > Graylin Kim added the comment: > > I fully support taking blank line based line-wrapping approach and agree with > Zbyszek's suggested indentation approach as well. I am not sure why they > didn't occur to me at t

[issue12981] rewrite multiprocessing (senfd|recvfd) in Python

2011-09-25 Thread Charles-François Natali
Changes by Charles-François Natali : -- dependencies: -_XOPEN_SOURCE and _XOPEN_SOURCE_EXTENDED usage on Solaris resolution: -> fixed stage: -> committed/rejected ___ Python tracker _

[issue12981] rewrite multiprocessing (senfd|recvfd) in Python

2011-09-25 Thread Charles-François Natali
Changes by Charles-François Natali : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue13041] argparse: terminal width is not detected properly

2011-09-25 Thread Denilson Figueiredo de Sá
Denilson Figueiredo de Sá added the comment: > #8408 was proposing a new module, which seems a bit overkill If a module seems overkill, then maybe add this useful function to os module. Don't leave it private to argparse module. Maybe something along these lines: >>> import os >>> pri

[issue1621] Do not assume signed integer overflow behavior

2011-09-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset 3fb9464f9b02 by Mark Dickinson in branch 'default': Issue #1621: Fix undefined behaviour from signed overflow in datetime module hashes, array and list iterations, and get_integer (stringlib/string_format.h) http://hg.python.org/cpython/rev/3fb9464

[issue13044] pdb throws AttributeError at end of debugging session

2011-09-25 Thread akl
New submission from akl : Using Python 2.7.1 on OpenBSD-current and 2.7.2 on Arch Linux, pdb throws a (harmless, it appears) exception at the end of a debugging session. This does not happen for me using Python 2.5 or 2.6 or 3.2. Console Session (on linux): $ python2 --version Python 2.7.2

[issue13045] [PATCH] socket.getsockopt may require custom buffer contents

2011-09-25 Thread Artyom Gavrichenkov
New submission from Artyom Gavrichenkov : Currently the Python implementation of socket.getsockopt allows only option name, level name and buffer size as its arguments. However, IEEE Standard 1003.1-2008 allows one further argument -- an actual buffer to modify at the kernel level. POSIX does

[issue13046] imp.find_module() should not find unimportable modules

2011-09-25 Thread Arfrever Frehtes Taifersar Arahesis
New submission from Arfrever Frehtes Taifersar Arahesis : imp.find_module() can find files, which cannot be imported. I suggest that imp.find_module() raise an exception in such cases. $ cd /tmp $ touch .something.py $ python3.3 Python 3.3.0a0 (default:5e456e1a9e8c+, Sep 25 2011, 18:57:23) [G

[issue10588] imp.find_module raises unexpected SyntaxError

2011-09-25 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue13046] imp.find_module() should not find unimportable modules

2011-09-25 Thread Ezio Melotti
Ezio Melotti added the comment: I'm not sure they should be disallowed. We have ways to set variables and attributes with "invalid" names (like '.something') too. OTOH __import__ fails to import the .something due to the special meaning of the dot, but it imports things like foo-bar.py just

[issue13046] imp.find_module() should not find unimportable modules

2011-09-25 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis added the comment: I mean files, which cannot be imported even by __import__(). I know that __import__() can import foo-bar.py. -- ___ Python tracker ___

[issue11751] Increase distutils.filelist / packaging.manifest test coverage

2011-09-25 Thread Justin Love
Justin Love added the comment: Incorporated some formatting suggestions. Removed _actions. Just as well, as I accidentally left in the 'blarg' bogus action ;^) Added a test for implicit-include. Whether 'this cannot happen' can happen depends on the output of _parse_template_line. If you

[issue13045] socket.getsockopt may require custom buffer contents

2011-09-25 Thread Artyom Gavrichenkov
Changes by Artyom Gavrichenkov : -- title: [PATCH] socket.getsockopt may require custom buffer contents -> socket.getsockopt may require custom buffer contents ___ Python tracker __

[issue13047] imp.find_module("") and imp.find_module(".")

2011-09-25 Thread Arfrever Frehtes Taifersar Arahesis
New submission from Arfrever Frehtes Taifersar Arahesis : It's undocumented that imp.find_module("") and imp.find_module(".") try to find __init__.py. There is also a small difference in behavior between them. sys.path by default contains "" as the first element, which is sufficient for imp.f

[issue13047] imp.find_module("") and imp.find_module(".")

2011-09-25 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +brett.cannon, ezio.melotti, ncoghlan ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue13048] Handling of paths in first argument of imp.find_module()

2011-09-25 Thread Arfrever Frehtes Taifersar Arahesis
New submission from Arfrever Frehtes Taifersar Arahesis : It's undocumented that imp.find_module() supports paths with "/" as the first argument: $ mkdir /tmp/imp_tests $ cd /tmp/imp_tests $ mkdir a $ touch a/b.py $ python3.3 -c 'import imp; print(imp.find_module("a/b"))' (<_io.TextIOWrapper n

[issue11676] Improve imp.load_module and submodules doc

2011-09-25 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue12806] argparse: Hybrid help text formatter

2011-09-25 Thread Zbyszek Szmek
Zbyszek Szmek added the comment: [I now see that roundup ate half of my reply. I have no idea why, because the e-mail is formatted correctly. Maybe I'll have more luck this time, but since there's no preview, I must try to see.] On 09/25/2011 01:50 AM, Graylin Kim wrote: >>> if(list_match):

[issue13040] call to tkinter.messagebox.showinfo hangs the script on timer on Windows

2011-09-25 Thread Richard86
Changes by Richard86 : -- nosy: +gpolo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/m

[issue13044] pdb throws AttributeError at end of debugging session

2011-09-25 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: By modifying a bit the Python intepreter, I got this traceback: Traceback (most recent call last): File "/home/amauryfa/python/cpython2.7/Lib/_weakrefset.py", line 38, in _remove def _remove(item, selfref=ref(self)): File "/home/amauryfa/python/c

[issue13013] _ctypes.c: refleak

2011-09-25 Thread Meador Inge
Meador Inge added the comment: OK, I will just fix the ref leak in 2.7, 3.2, and 3.3. This is a pretty low-risk fix (as I mentioned before, I can't see how the error condition is even executed). -- ___ Python tracker

[issue13044] pdb throws AttributeError at end of debugging session

2011-09-25 Thread Meador Inge
Changes by Meador Inge : -- nosy: +meador.inge ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth