[issue16088] http.server's send_error could set the content-length of the error body

2012-10-11 Thread Roundup Robot
Roundup Robot added the comment: New changeset ee34cb049a10 by Senthil Kumaran in branch 'default': Issue #16088: BaseHTTPRequestHandler's send_error method includes a http://hg.python.org/cpython/rev/ee34cb049a10 -- nosy: +python-dev ___ Python

[issue16088] http.server's send_error could set the content-length of the error body

2012-10-11 Thread Senthil Kumaran
Senthil Kumaran added the comment: I took the privilege of testing, adding news and docs and committing it. Thank you! -- resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org

[issue16192] ctypes - documentation example

2012-10-11 Thread Chris Jerdonek
Chris Jerdonek added the comment: Perhaps if some machines expect otherwise that should be documented, otherwise might we change them. The very beginning of the ctypes documentation has documentation to that effect: Note: Some code samples reference the ctypes c_int type. This type is an

[issue16192] ctypes - documentation example

2012-10-11 Thread Brian Thorne
Brian Thorne added the comment: The very beginning of the ctypes documentation has documentation to that effect Does that address your suggestion? Thanks Chris, that explains why the difference is present on non 32 bit platforms. Would using c_long for the examples produce the expected

[issue4749] Issue with RotatingFileHandler logging handler on Windows

2012-10-11 Thread Yongzhi Pan
Changes by Yongzhi Pan fossi...@users.sourceforge.net: -- nosy: +fossilet ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4749 ___ ___

[issue16192] ctypes - documentation example

2012-10-11 Thread Chris Jerdonek
Chris Jerdonek added the comment: I don't know off-hand. But maybe an additional note or code comment at the first instance in a code example would help. Switching the examples to c_long might serve only to shift potential confusion from the examples to someone's personal machine.

[issue16190] Misleading warning in random module docs

2012-10-11 Thread Raymond Hettinger
Changes by Raymond Hettinger raymond.hettin...@gmail.com: -- assignee: docs@python - rhettinger components: +Documentation nosy: +rhettinger priority: normal - low ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16190

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

2012-10-11 Thread Chris Jerdonek
Chris Jerdonek added the comment: I'll say it again, the devguide should be short enough to be practical for someone learning to contribute. Better organization could help here. I could see the devguide being a combination of (1) a brief document meant to be read cover to cover that

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

2012-10-11 Thread anand jeyahar
Changes by anand jeyahar anand.jeya...@gmail.com: -- nosy: +anand.jeyahar ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8492 ___ ___

[issue16061] performance regression in string replace for 3.3

2012-10-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I compared performances of the two methods: dummy loop vs find. You can hybridize them. First just compare chars and if not match then use memcmp(). This speed up the case of repeated chars. -- Added file:

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

2012-10-11 Thread Chris Jerdonek
Chris Jerdonek added the comment: Would this be the appropriate place for the links to the two essays: Personally, I would start out with a question in the FAQ. It could be called something like, When is a change to Python justified? and go after or in the same section as the question,

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

2012-10-11 Thread Andrew Svetlov
Changes by Andrew Svetlov andrew.svet...@gmail.com: -- nosy: +asvetlov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8492 ___ ___ Python-bugs-list

[issue14799] Tkinter ttk tests hang on linux

2012-10-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: $ ./python -m test.regrtest -u gui test_ttk_guionly For me (on 32-bit Ubuntu 10.04, Tk 8.5) it failed: test test_ttk_guionly failed -- Traceback (most recent call last): File /home/serhiy/py/cpython/Lib/tkinter/test/test_ttk/test_widgets.py, line 579, in

[issue14799] Tkinter ttk tests hang on linux

2012-10-11 Thread Andrew Svetlov
Andrew Svetlov added the comment: For me it still fails. I use Ubuntu 12.04, 11.10 was failed also IIRC. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14799 ___

[issue16190] Misleading warning in random module docs

2012-10-11 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti, haypo stage: - needs patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16190 ___

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

2012-10-11 Thread Václav Šmilauer
New submission from Václav Šmilauer: I have several compiled modules linked into one .so file and import them using imp.load_dynamic. Only the first module imported with load_dynamic is imported properly, all subsequent calls of load_dynamic on the same file ignore the first argument (name)

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

2012-10-11 Thread Ezio Melotti
Ezio Melotti added the comment: I don't think it's necessary to have the full email name for each line. The current format already allows you to distinguish users and reversions. If you need more information you can click on it and look at the changeset info. There might be problems if two

[issue16186] shlex bug?

2012-10-11 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- components: +Library (Lib) nosy: +ezio.melotti stage: - needs patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16186 ___

[issue1043134] Add preferred extensions for MIME types

2012-10-11 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti versions: +Python 3.4 -Python 2.7, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1043134 ___

[issue15114] Deprecate strict mode of HTMLParser

2012-10-11 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- keywords: +patch Added file: http://bugs.python.org/file27528/issue15114-2.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15114 ___

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

[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 rep...@bugs.python.org

[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 rep...@bugs.python.org http://bugs.python.org/issue16190 ___ ___

[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 rep...@bugs.python.org http://bugs.python.org/issue16194

[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 rep...@bugs.python.org

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

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

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

2012-10-11 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- components: +Windows ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1634774 ___ ___

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

2012-10-11 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- components: +Interpreter Core -Library (Lib) versions: +Python 2.7 -Python 2.6, Python 3.0 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1634774

[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 andrew.svet...@gmail.com: -- nosy: +asvetlov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16195 ___ ___

[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

[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

[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 rep...@bugs.python.org

[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

[issue16178] atexit._run_exitfuncs should be a public API

2012-10-11 Thread Philip Mountifield
Changes by Philip Mountifield phi...@mountifield.org: -- nosy: +Philip.Mountifield ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16178 ___ ___

[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

[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

[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 rep...@bugs.python.org http://bugs.python.org/issue9720

[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 rep...@bugs.python.org

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

[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 rep...@bugs.python.org http://bugs.python.org/issue16194

[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

[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

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

2012-10-11 Thread Vinay Sajip
Changes by Vinay Sajip vinay_sa...@yahoo.co.uk: -- hgrepos: +154 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15452 ___ ___ Python-bugs-list

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

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

[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

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

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

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

[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

[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 rep...@bugs.python.org http://bugs.python.org/issue15776 ___ ___ Python-bugs-list mailing

[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 rep...@bugs.python.org http://bugs.python.org/issue16197 ___

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

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

2012-10-11 Thread Roger Serwy
New submission from Roger Serwy: Pressing Tab 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

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

[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

[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

[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

[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

[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

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

[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

[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

[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 rep...@bugs.python.org

[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 rep...@bugs.python.org http://bugs.python.org/issue11566

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

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

[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 rep...@bugs.python.org

[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

[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

[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 rep...@bugs.python.org http://bugs.python.org/issue16186 ___

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

[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

[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 rep...@bugs.python.org http://bugs.python.org/issue11566 ___

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

[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

[issue15945] memoryview + bytes fails

2012-10-11 Thread Glyph Lefkowitz
Glyph Lefkowitz added the comment: Le Oct 11, 2012 à 12:13 PM, Antoine Pitrou rep...@bugs.python.org 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

[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 rep...@bugs.python.org http://bugs.python.org/issue15945

[issue16202] sys.path[0] security issues

2012-10-11 Thread Alan WiIliams
Changes by Alan WiIliams astropil...@gmail.com: -- nosy: +Alan.WiIliams ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16202 ___ ___

[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

[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(bx) + by bytearray(b'xy') bx + bytearray(by) b'xy' -- ___ Python

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

[issue16202] sys.path[0] security issues

2012-10-11 Thread Ralf Schmitt
Changes by Ralf Schmitt python-b...@systemexit.de: -- nosy: +schmir ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16202 ___ ___ Python-bugs-list

[issue16201] socket.gethostbyname incorrectly parses ip

2012-10-11 Thread Santoso Wijaya
Changes by Santoso Wijaya santoso.wij...@gmail.com: -- components: +Extension Modules nosy: +santa4nt type: - behavior versions: +Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16201

[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

[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

[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 rep...@bugs.python.org

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

2012-10-11 Thread Brian Curtin
Changes by Brian Curtin br...@python.org: -- resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16176 ___

[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

[issue16202] sys.path[0] security issues

2012-10-11 Thread Christian Heimes
Changes by Christian Heimes li...@cheimes.de: -- nosy: +christian.heimes ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16202 ___ ___

[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

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

[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:\ wait, tab, ^space bring up box in 3.2.3 and 3.3.0 (If there is no 'r' prefix, it really should require '\\' to be safe.) c:/ ditto

[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 stdin, line 1, in module socket.gaierror:

[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

[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, space dismisses the box whereas in 3.3.0, it does not, making it even more obnoxious. Two more tabs inserts

[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

  1   2   >