[issue15853] IDLE crashes selecting Preferences menu with OS X ActiveState Tcl/Tk 8.5.12.1

2012-10-11 Thread Kevin Walzer
Changes by Kevin Walzer : Added file: http://bugs.python.org/file27539/configDialog.diff ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue15853] IDLE crashes selecting Preferences menu with OS X ActiveState Tcl/Tk 8.5.12.1

2012-10-11 Thread Kevin Walzer
Changes by Kevin Walzer : Removed file: http://bugs.python.org/file27538/configDialog.diff ___ Python tracker ___ ___ Python-bugs-list mailing

[issue16205] update :class:`str` references to link to the str type section

2012-10-11 Thread Chris Jerdonek
Chris Jerdonek added the comment: The documentation seems to take a similar approach with dict: http://docs.python.org/dev/library/stdtypes.html#dict http://docs.python.org/dev/library/functions.html#func-dict -- ___ Python tracker

[issue13538] Improve doc for str(bytesobject)

2012-10-11 Thread Chris Jerdonek
Chris Jerdonek added the comment: This may have been addressed to some extent by issue 14783: http://hg.python.org/cpython/rev/3773c98d9da8 -- nosy: +chris.jerdonek ___ Python tracker _

[issue15853] IDLE crashes selecting Preferences menu with OS X ActiveState Tcl/Tk 8.5.12.1

2012-10-11 Thread Kevin Walzer
Kevin Walzer added the comment: The attached patch works around the crash for me on Python 2.7.3, Tk-Cocoa 8.5.12 (tip), on Lion. -- keywords: +patch nosy: +wordtech Added file: http://bugs.python.org/file27538/configDialog.diff ___ Python tracker

[issue16205] update :class:`str` references to link to the str type section

2012-10-11 Thread Chris Jerdonek
Chris Jerdonek added the comment: I'm not sure if Sphinx would allow it, but it would be nice if references to the function str() could link to the built-in function documentation, and references to the class str could link to the section on the str type. -- __

[issue16205] update :class:`str` references to link to the str type section

2012-10-11 Thread Chris Jerdonek
New submission from Chris Jerdonek: 3.3 added a dedicated section to the docs for the str type. However, references to :class:`str` still link to the documentation of the built-in function str(). This issue is to update references to the str class to point to the new section on the str type.

[issue16204] PyBuffer_FillInfo returns 'B' buffer, whose behavior has changed w.r.t. 3.1/3.2

2012-10-11 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- keywords: +3.3regression nosy: +skrah versions: +Python 3.4 ___ Python tracker ___ ___ Python-bugs-list

[issue16202] sys.path[0] security issues

2012-10-11 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue16199] 2to3 very minor doc change

2012-10-11 Thread Chris Jerdonek
Chris Jerdonek added the comment: Fixed. Thanks for the report, Mark! -- resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker ___ __

[issue16199] 2to3 very minor doc change

2012-10-11 Thread Roundup Robot
Roundup Robot added the comment: New changeset c7f11e450c31 by Chris Jerdonek in branch '3.2': Issue #16199: Fix typo in 2to3 docs. Thanks to Mark Lawrence for the report. http://hg.python.org/cpython/rev/c7f11e450c31 New changeset d83dfa6a381a by Chris Jerdonek in branch '3.3': Issue #16199: Me

[issue14621] Hash function is not randomized properly

2012-10-11 Thread Christian Heimes
Changes by Christian Heimes : -- nosy: +christian.heimes ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:/

[issue16204] PyBuffer_FillInfo returns 'B' buffer, whose behavior has changed w.r.t. 3.1/3.2

2012-10-11 Thread Daniele Varrazzo
New submission from Daniele Varrazzo: Definitely related to this change in Python 3.3: Accessing a memoryview element with format ‘B’ (unsigned bytes) now returns an integer (in accordance with the struct module syntax). For returning a bytes object the view must be cast to ‘c’ fir

[issue16202] sys.path[0] security issues

2012-10-11 Thread Robert Bradshaw
Robert Bradshaw added the comment: Alternatively, one could fix distutils.util.byte_compile() to execute the script in safe, empty temp directory. Running scripts in /tmp remains, as it has always been, a bad idea. Trying to determine if an import is "safe" can be arbitrarily complicated (e.g

[issue7735] python creates IPv6 DNS requests even when built with --disable-ipv6

2012-10-11 Thread Ralf Schmitt
Ralf Schmitt added the comment: The OPs description is pretty clear. There's no good reason to ask for IPv6 addresses if IPv6 is disabled. The create_connection will try them all, and if connections to IPv4 addresses fail, you'll end up with a TypeError. -- ___

[issue16199] 2to3 very minor doc change

2012-10-11 Thread Chris Jerdonek
Changes by Chris Jerdonek : -- assignee: docs@python -> chris.jerdonek nosy: +chris.jerdonek ___ Python tracker ___ ___ Python-bugs-li

[issue7735] python creates IPv6 DNS requests even when built with --disable-ipv6

2012-10-11 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Why do you think I'm disabling IPv6 because I have a "system level > problem"? So please explain the problem you're having. -- ___ Python tracker

[issue7735] python creates IPv6 DNS requests even when built with --disable-ipv6

2012-10-11 Thread Ralf Schmitt
Ralf Schmitt added the comment: Why do you think I'm disabling IPv6 because I have a "system level problem"? I am not recompiling python to workaround system level problems. And I don't recompile any other program. The problem is in python, it can be fixed with a one line patch. but you prefer

[issue7735] python creates IPv6 DNS requests even when built with --disable-ipv6

2012-10-11 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Telling me to disable IPv6 in my system configuration is just > arrogant. No, it's perfectly reasonable. On the other hand, recompiling Python without IPv6 to workaround a system-level problem with IPv6 is totally silly. Do you recompile all other programs whi

[issue16203] Proposal: add re.fullmatch() method

2012-10-11 Thread Tim Peters
Tim Peters added the comment: Antoine, that's certainly the conceptual intent here. Can't say whether your attempt works in all cases. The docs don't guarantee it. For example, if the original regexp started with (?x), the docs explicitly say the effect of (?x) is undefined "if there are no

[issue7735] python creates IPv6 DNS requests even when built with --disable-ipv6

2012-10-11 Thread Ralf Schmitt
Ralf Schmitt added the comment: The fact is I have disabled IPv6 with python's --disable-ipv6 switch. If you think that this switch shouldn't be supported anymore, either remove it or document it as obsolete. Telling me to disable IPv6 in my system configuration is just arrogant. I may not b

[issue16198] IDLE - tabbing in a string always brings up file completion window

2012-10-11 Thread Terry J. Reedy
Terry J. Reedy added the comment: On windows, one tab brings up the box and in 3.2.3 and 2.7.3 also. Perhaps they should be revised also. The difference is that in those latter two, dismisses the box whereas in 3.3.0, it does not, making it even more obnoxious. Two more tabs inserts somethin

[issue7735] python creates IPv6 DNS requests even when built with --disable-ipv6

2012-10-11 Thread Antoine Pitrou
Antoine Pitrou added the comment: I would suggest closing as won't fix. The way I understand it, --disable-ipv6 simply allows building on systems without IPv6 support. It's not meant to disable IPv6 requests on an IPv6-compliant system. If your IPv6 connectivity doesn't work properly, you shou

[issue16201] socket.gethostbyname incorrectly parses ip

2012-10-11 Thread Santoso Wijaya
Santoso Wijaya added the comment: Attaching patch to trim leading and trailing whitespaces prior to processing. Incidentally, this also means: >>> socket.gethostbyname('') '0.0.0.0' >>> socket.gethostbyname(' ') Traceback (most recent call last): File "", line 1, in socket.gaierror: [Errno -

[issue14937] IDLE's deficiency in the completion of file names (Python 32, Windows XP)

2012-10-11 Thread Terry J. Reedy
Terry J. Reedy added the comment: This patch (I suspect it is this one) disabled the use of '/' in filenames on windows when using filename completion. 'c:\in 3.2.3 and 3.3.0> (If there is no 'r' prefix, it really should require '\\' to be safe.) "c:/ ditto for 3.2.3. In 3.3.0, (and, I p

[issue16203] Proposal: add re.fullmatch() method

2012-10-11 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Note that this really can't be done in user-level code. Well, how about: def fullmatch(regex, input, flags=0): return re.match("(:?" + regex + ")$", input, flags) -- nosy: +pitrou ___ Python tracker

[issue16203] Proposal: add re.fullmatch() method

2012-10-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: What will be with non-greedy qualifiers? Should '.*?' full match any string? >>> re.match('.*?$', 'abc').group() 'abc' >>> re.match('.*?', 'abc').group() '' -- nosy: +serhiy.storchaka ___ Python tracker

[issue16203] Proposal: add re.fullmatch() method

2012-10-11 Thread Tim Peters
Tim Peters added the comment: +1. Note that this really can't be done in user-level code. For example, consider matching the pattern a|ab against the string ab Without being _forced_ to consider the "ab" branch, the regexp will match just the "a" branch. So, e.g., the example code you po

[issue16202] sys.path[0] security issues

2012-10-11 Thread Christian Heimes
Changes by Christian Heimes : -- nosy: +christian.heimes ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:/

[issue16203] Proposal: add re.fullmatch() method

2012-10-11 Thread Guido van Rossum
New submission from Guido van Rossum: I've noticed a subtle bug in some of our internal code. Someone wants to ensure that a certain string (e.g. a URL path) matches a certain pattern in its entirety. They use re.match() with a regex ending in $. Fine. Now someone else comes along and modi

[issue16176] platform.platform() identifies Windows 8 as post2008Server

2012-10-11 Thread Brian Curtin
Changes by Brian Curtin : -- resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker ___ ___ Pyt

[issue16176] platform.platform() identifies Windows 8 as post2008Server

2012-10-11 Thread Roundup Robot
Roundup Robot added the comment: New changeset e3acc945f0cb by Brian Curtin in branch '2.7': Fix #16176. Properly identify Windows 8 via platform.platform() http://hg.python.org/cpython/rev/e3acc945f0cb -- ___ Python tracker

[issue16176] platform.platform() identifies Windows 8 as post2008Server

2012-10-11 Thread Roundup Robot
Roundup Robot added the comment: New changeset 8245333db1e5 by Brian Curtin in branch '3.2': Fix #16176. Properly identify Windows 8 via platform.platform() http://hg.python.org/cpython/rev/8245333db1e5 -- nosy: +python-dev ___ Python tracker

[issue8492] Addition to readline module to get dictionary of keystrokes and commands

2012-10-11 Thread anand jeyahar
anand jeyahar added the comment: Here's what the original maintainer chet romney had to say about this functionality not being a part of readline, and should be implemented by the calling application. From Chet Ramey: -- The answer is that this is very similar to the operate-and-get-nex

[issue16201] socket.gethostbyname incorrectly parses ip

2012-10-11 Thread Santoso Wijaya
Changes by Santoso Wijaya : -- components: +Extension Modules nosy: +santa4nt type: -> behavior versions: +Python 2.7 ___ Python tracker ___

[issue16202] sys.path[0] security issues

2012-10-11 Thread Ralf Schmitt
Changes by Ralf Schmitt : -- nosy: +schmir ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue16061] performance regression in string replace for 3.3

2012-10-11 Thread STINNER Victor
STINNER Victor added the comment: > You can hybridize them. First just compare chars and if not match then use > memcmp(). This speed up the case of repeated chars. Oh, you're patch is simple and it's amazing fast! I compare unicode with Python 2.7, 3.2, 3.4 and 3.4 patched, and bytes with 2.7.

[issue15945] memoryview + bytes fails

2012-10-11 Thread Antoine Pitrou
Antoine Pitrou added the comment: Well, the fact that memoryview + bytes wouldn't return you a memoryview object might be a good reason to disallow it. Compare with: >>> bytearray(b"x") + b"y" bytearray(b'xy') >>> b"x" + bytearray(b"y") b'xy' -- ___

[issue15945] memoryview + bytes fails

2012-10-11 Thread Glyph Lefkowitz
Glyph Lefkowitz added the comment: Yes, it would be *possible* to fix it with that alone, but that still makes it a pointless 'gotcha' in differing behavior between memoryview and buffer, especially given that bytes+memoryview does something semantically different than memoryview+bytes for no

[issue16202] sys.path[0] security issues

2012-10-11 Thread Alan WiIliams
Changes by Alan WiIliams : -- nosy: +Alan.WiIliams ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue15945] memoryview + bytes fails

2012-10-11 Thread Antoine Pitrou
Antoine Pitrou added the comment: > The case where copies are avoided is documented here ... which would be handled nicely by issue15958. -- ___ Python tracker ___ _

[issue15945] memoryview + bytes fails

2012-10-11 Thread Glyph Lefkowitz
Glyph Lefkowitz added the comment: Le Oct 11, 2012 à 12:13 PM, Antoine Pitrou a écrit : > > Antoine Pitrou added the comment: > > I'm not sure what you're talking about since: > b = buffer("abc") b + "xyz" > 'abcxyz' (b + "xyz") is b > False > > ... doesn't look like it avoid

[issue16202] sys.path[0] security issues

2012-10-11 Thread Jeroen Demeyer
New submission from Jeroen Demeyer: There is a serious security problem with Python's default sys.path. If I execute $ python /tmp/somescript.py then Python will add /tmp as sys.path[0], such that an "import foobar" will cause Python to read /tmp/foobar (or variations). This vulnerability e

[issue9290] IDLE and Command line present different behavior for sys.stdin

2012-10-11 Thread Roger Serwy
Roger Serwy added the comment: I tried the patch for 3.3 and it works for me on Linux. It correctly handles prior issues like #13532, #15318, #15319, and #7163, as well as providing good support for .read, .readline, .readlines. Each of those methods respond correctly to Ctrl+C and Ctrl+D. On

[issue11566] hypot define in pyconfig.h clashes with g++'s cmath

2012-10-11 Thread Ralf Schmitt
Ralf Schmitt added the comment: yes, mingw. it may have some problems and this is one of them! -- ___ Python tracker ___ ___ Python-bu

[issue11566] hypot define in pyconfig.h clashes with g++'s cmath

2012-10-11 Thread Petri Lehtinen
Petri Lehtinen added the comment: On MinGW? I'm not a Windows user, but IIRC building extensions with gcc on MinGW has many problems and isn't officially supported. -- components: +Windows -None nosy: +brian.curtin, loewis, tim.golden ___ Python trac

[issue16201] socket.gethostbyname incorrectly parses ip

2012-10-11 Thread Michele Orrù
New submission from Michele Orrù: Buggy due to the use of scanf at Modueles/socketmodule.c:868 Broken from python2.7 to tip on my machine (GNU/Linux) >>> import socket [64481 refs] >>> socket.gethostbyname('4294967306.4294967296.4294967296.1') '10.0.0.1' [67764 refs] >>> socket.gethostbyname('19

[issue16186] shlex bug?

2012-10-11 Thread Roger Serwy
Roger Serwy added the comment: The .posix = True bug is a separate issue, now in #16200. -- ___ Python tracker ___ ___ Python-bugs-lis

[issue16200] Setting .posix=True for shlex object causes infinite loop in __next__

2012-10-11 Thread Roger Serwy
Roger Serwy added the comment: Attached is a patch to make the .posix property read-only, along with a test. The patch is against 3.4. -- keywords: +patch Added file: http://bugs.python.org/file27535/shlex_posix_readonly.patch ___ Python tracker

[issue7735] python creates IPv6 DNS requests even when built with --disable-ipv6

2012-10-11 Thread Ralf Schmitt
Ralf Schmitt added the comment: they are noticeable! If the sock.connect fails with the IPv4 address, it will then try to connect to an IPv6 address (which fails with an TypeError then). The original error is hidden! -- ___ Python tracker

[issue15945] memoryview + bytes fails

2012-10-11 Thread Antoine Pitrou
Antoine Pitrou added the comment: I'm not sure what you're talking about since: >>> b = buffer("abc") >>> b + "xyz" 'abcxyz' >>> (b + "xyz") is b False ... doesn't look like it avoid copies to me. -- ___ Python tracker

[issue16200] Setting .posix=True for shlex object causes infinite loop in __next__

2012-10-11 Thread Roger Serwy
New submission from Roger Serwy: The documentation for shlex does not prohibit the user from setting .posix=True after creating a shlex object. When doing so, the .eof attribute is inconsistent, creating an infinite loop in the __next__ method. Here's some sample code to recreate the issue: i

[issue15945] memoryview + bytes fails

2012-10-11 Thread Glyph Lefkowitz
Glyph Lefkowitz added the comment: It's worth noting that the "buffer()" built-in in Python2 had this behavior, and it enabled a copy-reduction optimization within Twisted's outgoing transport buffer. There are of course other ways to do this, but it seems like it would be nice to restore thi

[issue11566] hypot define in pyconfig.h clashes with g++'s cmath

2012-10-11 Thread Ralf Schmitt
Ralf Schmitt added the comment: Sorry, if I haven't been clear enough. This happens on windows when compiling extensions with "g++ -std=gnu++0x ..." -- status: pending -> open ___ Python tracker __

[issue11566] hypot define in pyconfig.h clashes with g++'s cmath

2012-10-11 Thread Petri Lehtinen
Petri Lehtinen added the comment: Cannot reproduce, and cannot find the define in pyconfig.h. It's in PC/pyconfig.h, but shouldn't affect compiling with gcc. -- nosy: +petri.lehtinen status: open -> pending ___ Python tracker

[issue16199] 2to3 very minor doc change

2012-10-11 Thread Mark Lawrence
New submission from Mark Lawrence: http://docs.python.org/library/2to3.html#using-2to3 second paragraph second sentence reads "The directories are to recursively traversed for Python sources." The "to" is not needed. -- assignee: docs@python components: Documentation messages: 172673

[issue16197] Several small errors in winreg documentation

2012-10-11 Thread Zachary Ware
Zachary Ware added the comment: Here's the patch against 3.2, hopefully I caught everything I meant to :) Unfortunately, I can't build Python or the docs on this machine, so I can't guarantee I didn't break anything. I tried to be careful though, especially with changing linebreaks in the doc

[issue15939] make *.rst files in Doc/ parseable by doctest

2012-10-11 Thread Chris Jerdonek
Chris Jerdonek added the comment: > FTR there were a few actual errors that I fixed (mostly about bytes vs > string). Great! Note that for the others, I was just trying to make the files parseable rather than passing. Currently, doctest aborts out on the files I fixed without even attemptin

[issue16198] IDLE - tabbing in a string always brings up file completion window

2012-10-11 Thread Roger Serwy
Roger Serwy added the comment: Attached is a preliminary patch. It checks to see if the cursor is on a line within a multiline string in order to avoid displaying the ACW. As a last resort, it checks to make sure that a valid match exists before opening the ACW when mode == COMPLETE_FILES. A

[issue15939] make *.rst files in Doc/ parseable by doctest

2012-10-11 Thread Ezio Melotti
Ezio Melotti added the comment: > A way to do it could be to register new doctest directives that skip > the marked test based on the value of sys.platform. That can be done for 3.4+ only though. > If we remove the directives, we lose that information and won't > be able to do it anymore. It a

[issue16193] display full e-mail name in hg.python.org annotate pages

2012-10-11 Thread Chris Jerdonek
Chris Jerdonek added the comment: This is the suggested change in the bug report I linked to above (providing we are using 2.3 or later): > If you'd like the latter in hgweb, you can get it by editing '|user' [to > '|emailuser'] in the templates. (from http://bz.selenic.com/show_bug.cgi?id=22

[issue16193] display full e-mail name in hg.python.org annotate pages

2012-10-11 Thread Ezio Melotti
Ezio Melotti added the comment: I usually don't care about the author, but about the changeset. The 'name@rev' provides an easy way to distinguish chunks of code that got changed in the same commit, and usually gives you enough information to figure out who the author is. Once I identified the

[issue16193] display full e-mail name in hg.python.org annotate pages

2012-10-11 Thread Georg Brandl
Georg Brandl added the comment: AFAIU, the current behavior would be to shorten "g.bra...@gmx.net" to "g", if I used my other email address for committing. That's a little short and not at all illuminating :) -- ___ Python tracker

[issue16076] xml.etree.ElementTree.Element is no longer pickleable

2012-10-11 Thread Santoso Wijaya
Santoso Wijaya added the comment: OTOH, xml.etree.cElementTree.Element in Python 3.2 and earlier has never been pickleable, either. Python 3.2.3+ (3.2:24499eebbc2f, Oct 10 2012, 13:54:45) [GCC 4.6.3] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from xml.

[issue15939] make *.rst files in Doc/ parseable by doctest

2012-10-11 Thread Chris Jerdonek
Chris Jerdonek added the comment: > Either there's another way to run those tests on selected platforms that can > be used instead A way to do it could be to register new doctest directives that skip the marked test based on the value of sys.platform. If we remove the directives, we lose tha

[issue16198] IDLE - tabbing in a string always brings up file completion window

2012-10-11 Thread Roger Serwy
New submission from Roger Serwy: Pressing while the cursor is in a string will bring up the file completion dialog rather than inserting a tab (or 4 spaces). This behavior is rather annoying in a text editor especially when editing multiline doc strings. This behavior is new to the 3.3 series

[issue16194] imp.load_dynamic imports wrong module when called several times on a multi-module .so

2012-10-11 Thread Brett Cannon
Brett Cannon added the comment: The new functional equivalent is importlib.machinery.ExtensionFileLoader (http://docs.python.org/dev/py3k/library/importlib.html#importlib.machinery.ExtensionFileLoader), but underneath the hood it uses the same code as imp.load_dynamic() did. -- __

[issue16197] Several small errors in winreg documentation

2012-10-11 Thread Zachary Ware
Zachary Ware added the comment: Okie doke. I'll try to have a patch ready for review later this afternoon. -- ___ Python tracker ___

[issue15776] Allow pyvenv to work in existing directory

2012-10-11 Thread Andrew Svetlov
Andrew Svetlov added the comment: Looks good. Thank you. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue16194] imp.load_dynamic imports wrong module when called several times on a multi-module .so

2012-10-11 Thread Václav Šmilauer
Václav Šmilauer added the comment: I did not notice it was not documented in python 3.3 anymore -- my fault, sorry. In case there is no functional replacement for it, I will try to raise it on the ML. I am currently writing some code in 2.7 which relies on it (I don't see another way of packin

[issue15776] Allow pyvenv to work in existing directory

2012-10-11 Thread Roundup Robot
Roundup Robot added the comment: New changeset c3c188a0325a by Vinay Sajip in branch 'default': Closes #15776: pyvenv now works with existing directories. http://hg.python.org/cpython/rev/c3c188a0325a -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> clos

[issue16197] Several small errors in winreg documentation

2012-10-11 Thread Brian Curtin
Brian Curtin added the comment: The patch looks alright, but I would remove the lining up of definitions. It's probably easiest to do a patch against 3.2 and I can handle the porting on commit. -- assignee: docs@python -> brian.curtin components: +Windows type: -> behavior ___

[issue16194] imp.load_dynamic imports wrong module when called several times on a multi-module .so

2012-10-11 Thread Václav Šmilauer
Václav Šmilauer added the comment: I found the cause of the behavior (perhaps it is common knowledge, but I am new to python source); imp.load_dynamic calls the following functions Python/import.c: imp_load_dynamic (http://hg.python.org/cpython/file/ad51ed93377c/Python/import.c#l1777)

[issue16197] Several small errors in winreg documentation

2012-10-11 Thread Zachary Ware
New submission from Zachary Ware: There are several small inconsistencies in the winreg module documentation (docstrings and winreg.rst). Mostly these are discrepancies between "res" and "reserved", "sam" and "access", and whether or not those two are keyword arguments, but there are some oth

[issue16194] imp.load_dynamic imports wrong module when called several times on a multi-module .so

2012-10-11 Thread Brett Cannon
Brett Cannon added the comment: Before this gets out of control I want to clarify that it is not "quite absurd" to label this a documentation bug and that is the proper classification for this bug. The documentation was not clear enough for you to understand what the behavior would be, so it s

[issue15452] Improve the security model for logging listener()

2012-10-11 Thread Vinay Sajip
Changes by Vinay Sajip : -- keywords: +patch Added file: http://bugs.python.org/file27531/3d0ca1e82c46.diff ___ Python tracker ___ ___

[issue15452] Improve the security model for logging listener()

2012-10-11 Thread Vinay Sajip
Changes by Vinay Sajip : -- hgrepos: +154 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.or

[issue16194] imp.load_dynamic imports wrong module when called several times on a multi-module .so

2012-10-11 Thread Václav Šmilauer
Václav Šmilauer added the comment: While I understand that this behavior went unnoticed for ages and can be seen therefore as unimportant, designating this as documentation bug is quite absurd; perhaps the following wording would be appropriate: .. note:: If this function is called multip

[issue9720] zipfile writes incorrect local file header for large files in zip64

2012-10-11 Thread Ronald Oussoren
Ronald Oussoren added the comment: I'd write the extended header when the current file size is larger than the zip64 limit (that is, when 'st.st_size > ZIP64_LIMIT' in the write method. That way the minimal header size is used whenever possible. As you noted this can cause problems when the fi

[issue16194] imp.load_dynamic imports wrong module when called several times on a multi-module .so

2012-10-11 Thread Brett Cannon
Brett Cannon added the comment: It's actually a documentation bug. -- assignee: -> docs@python components: +Documentation -Library (Lib) keywords: +easy nosy: +docs@python ___ Python tracker __

[issue16194] imp.load_dynamic imports wrong module when called several times on a multi-module .so

2012-10-11 Thread Václav Šmilauer
Václav Šmilauer added the comment: No, it is an old bug, since the behavior does something else than documented (http://docs.python.org/library/imp.html#imp.load_dynamic) and reasonably expected -- imp.load_dynamic("baz","foo.so") imports the "foo" module under some circumstances. --

[issue16194] imp.load_dynamic imports wrong module when called several times on a multi-module .so

2012-10-11 Thread R. David Murray
R. David Murray added the comment: This is an enhancement request, then. -- nosy: +r.david.murray stage: -> needs patch type: behavior -> enhancement versions: +Python 3.4 -Python 2.7 ___ Python tracker __

[issue9720] zipfile writes incorrect local file header for large files in zip64

2012-10-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: What the conclusion about the patches? Which variant I should backport for older versions? -- versions: +Python 3.4 ___ Python tracker ___ ___

[issue16194] imp.load_dynamic imports wrong module when called several times on a multi-module .so

2012-10-11 Thread Václav Šmilauer
Václav Šmilauer added the comment: I tried with python 2.4.5 and 2.5.2 in chroot (using ubuntu hardy, which packaged both of them) and the result is exactly the same for both. I doubt I am able to install anything older in a sensible manner. -- status: pending -> open

[issue1634034] Show "expected" token on syntax error

2012-10-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I'm attaching a new version of the patch, based on Dave's (from 2.5 years ago). This patch is against the 3.4. Previous patches contained an error in the message formatting. "buf" variable out of scope before "msg" used. Appending '\0' to the format string i

[issue16178] atexit._run_exitfuncs should be a public API

2012-10-11 Thread Philip Mountifield
Changes by Philip Mountifield : -- nosy: +Philip.Mountifield ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue15650] PEP 3121, 384 refactoring applied to dbm module

2012-10-11 Thread Andrew Svetlov
Andrew Svetlov added the comment: Robin, after thinking I would to agree with your decision to hold reference to type into type instance. Please, can you describe your check like: if((void *)type->tp_dealloc == (void *)dbm_dealloc) { Py_DECREF(type); } Why you decref only if type->tp_deal

[issue16196] Typo in devguide stdlibchanges.html

2012-10-11 Thread Ezio Melotti
Ezio Melotti added the comment: Fixed in 291342c08dd6. Thanks for the report! -- assignee: -> ezio.melotti resolution: -> fixed stage: -> committed/rejected status: open -> closed type: -> enhancement ___ Python tracker

[issue15939] make *.rst files in Doc/ parseable by doctest

2012-10-11 Thread Ezio Melotti
Ezio Melotti added the comment: The attached patch fixes the doctests in Doc/library/ctypes.rst. -- stage: -> patch review versions: +Python 3.4 Added file: http://bugs.python.org/file27529/issue15939-ctypes.diff ___ Python tracker

[issue16195] Difficult or impossible to figure out how garbage collector and weak references should interact for user-defined extension types

2012-10-11 Thread Antoine Pitrou
Antoine Pitrou added the comment: I think Cython is wrong here. The only thing to do is to call PyObject_ClearWeakRefs() in the deallocator. Everything else is handled by the interpreter. Agreed improving the documentation would be good. -- nosy: +pitrou, scoder stage: -> needs patch

[issue16195] Difficult or impossible to figure out how garbage collector and weak references should interact for user-defined extension types

2012-10-11 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- nosy: +asvetlov ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue1634774] locale 1251 does not convert to upper case properly

2012-10-11 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- components: +Interpreter Core -Library (Lib) versions: +Python 2.7 -Python 2.6, Python 3.0 ___ Python tracker ___ _

[issue1634774] locale 1251 does not convert to upper case properly

2012-10-11 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- components: +Windows ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://

[issue16196] Typo in devguide stdlibchanges.html

2012-10-11 Thread Mike Hoy
New submission from Mike Hoy: Typo in: http://docs.python.org/devguide/stdlibchanges.html#adding-to-the-stdlib Reads: This document it meant to explain... Should read: This document is meant to explain... -- components: Devguide messages: 172640 nosy: ezio.melotti, mikehoy priority: no

[issue16195] Difficult or impossible to figure out how garbage collector and weak references should interact for user-defined extension types

2012-10-11 Thread Jean-Paul Calderone
New submission from Jean-Paul Calderone: There appears to be very little, if any, documentation about how to handle the list at tp_weaklistoffset for types supporting being weak referenced, particularly with respect to garbage collection. Who owns the list? Who owns the objects in the list?

[issue13440] Explain the "status quo wins a stalemate" principle in the devguide

2012-10-11 Thread Nick Coghlan
Nick Coghlan added the comment: I'd suggest two things: Clearly separate "Essential Reading" and "Additional Resources" headings on the main page. Add "Tips & Tricks" and "Design Philosophy" sections somewhere. -- ___ Python tracker

[issue16194] imp.load_dynamic imports wrong module when called several times on a multi-module .so

2012-10-11 Thread Brett Cannon
Brett Cannon added the comment: Did this actually work in a previous version of Python, and if so what version? -- nosy: +brett.cannon status: open -> pending ___ Python tracker

[issue16190] Misleading warning in random module docs

2012-10-11 Thread STINNER Victor
STINNER Victor added the comment: See also the issue #15213 (and the issue #12754). -- ___ Python tracker ___ ___ Python-bugs-list mai

[issue8402] glob returns empty list with "[" character in the folder name

2012-10-11 Thread a1abhishek
a1abhishek added the comment: i m agree with answer number 6. the resolution mentioned is quite easy and very effectve thanks http://www.packersmoversdirectory.net/ -- nosy: +a1abhishek ___ Python tracker

[issue15939] make *.rst files in Doc/ parseable by doctest

2012-10-11 Thread Ezio Melotti
Ezio Melotti added the comment: If they don't work I see no reasons to leave them there. Either there's another way to run those tests on selected platforms that can be used instead, of if there's no way the tests should just be skipped. -- ___ Pytho

  1   2   >