[issue17795] backwards-incompatible change in SysLogHandler with unix domain sockets

2013-04-22 Thread Roundup Robot
Roundup Robot added the comment: New changeset 32a5de0e91d5 by Vinay Sajip in branch '2.7': Issue #17795: Reverted backwards-incompatible change in SysLogHandler with Unix domain sockets. http://hg.python.org/cpython/rev/32a5de0e91d5 New changeset d03784713786 by Vinay Sajip in branch '3.3':

[issue17732] distutils.cfg Can Break venv

2013-04-22 Thread Ilya Konkov
Changes by Ilya Konkov eru...@gmail.com: -- nosy: +eruart ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17732 ___ ___ Python-bugs-list mailing

[issue15809] IDLE console uses incorrect encoding.

2013-04-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The problem (as I understand it) is that if Martin's patch fixes an unicode literals, it breaks a string literals. LC_ALL=ru_RU.cp1251 LANG=ru_RU.cp1251 ./python Lib/idlelib/idle.py print u'йцук' йцук print 'йцук' йцук Here is a different patch,

[issue17348] Unicode - encoding seems to be lost for inputs of unicode chars in IDLE

2013-04-22 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- resolution: - duplicate superseder: - IDLE console uses incorrect encoding. ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17348 ___

[issue17403] Robotparser fails to parse some robots.txt

2013-04-22 Thread Mher Movsisyan
Mher Movsisyan added the comment: Can you share the link of the new robots.txt standard? I may help to implement it. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17403 ___

[issue17646] traceback.py has a lot of code duplication

2013-04-22 Thread Martin Morrison
Martin Morrison added the comment: Attached another diff, which includes new test cases to cover all functions that weren't covered before - expect print_last. I couldn't see a way of getting sys.last_* set to test that function (it seems to require an unhandled exception). However, the

[issue17804] streaming struct unpacking

2013-04-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I'm not against adding useful C tools to itertools, but you may have to convince Raymond ;) C implementation speeds up the benchmark only 1.5x. Granting the fact that this idiom is used in stdlib less than two dozens times (without tests and iobench), I do

[issue17736] Misleading method comment in _elementtree.c : get_attrib_from_keywords

2013-04-22 Thread Roundup Robot
Roundup Robot added the comment: New changeset 041960bf92fe by Eli Bendersky in branch '3.3': Issue #17736: fix misleading comment in _elementtree.c http://hg.python.org/cpython/rev/041960bf92fe -- nosy: +python-dev ___ Python tracker

[issue17736] Misleading method comment in _elementtree.c : get_attrib_from_keywords

2013-04-22 Thread Roundup Robot
Roundup Robot added the comment: New changeset 3bfe8327612a by Eli Bendersky in branch 'default': Issue #17736: fix misleading comment in _elementtree.c http://hg.python.org/cpython/rev/3bfe8327612a -- ___ Python tracker rep...@bugs.python.org

[issue17736] Misleading method comment in _elementtree.c : get_attrib_from_keywords

2013-04-22 Thread Eli Bendersky
Changes by Eli Bendersky eli...@gmail.com: -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17736 ___

[issue17403] Robotparser fails to parse some robots.txt

2013-04-22 Thread R. David Murray
R. David Murray added the comment: I haven't a clue, that was part of the research I was going to do but haven't done yet (and probably won't for now...I'll wait to see if you or Lukaz pick it up first :). I see he didn't nosy himself on the issue yet, though, so I've done that. Maybe he'll

[issue15809] IDLE console uses incorrect encoding.

2013-04-22 Thread R. David Murray
R. David Murray added the comment: I've combined the nosy lists and will close the other issue. Serhiy, what if the source already has a coding cookie line? -- nosy: +Pradyun.Gedam, Tomoki.Imai, ned.deily, r.david.murray ___ Python tracker

[issue17348] Unicode - encoding seems to be lost for inputs of unicode chars in IDLE

2013-04-22 Thread R. David Murray
R. David Murray added the comment: Serhiy has proposed a patch on the older issue, closing this one since it is a duplicate. -- stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org

[issue17403] Robotparser fails to parse some robots.txt

2013-04-22 Thread Łukasz Langa
Łukasz Langa added the comment: robotparser implements http://www.robotstxt.org/orig.html, there's even a link to this document at http://docs.python.org/3/library/urllib.robotparser.html. As mher points out, there's a newer version of that spec formed as RFC:

[issue17403] Robotparser fails to parse some robots.txt

2013-04-22 Thread Senthil Kumaran
Senthil Kumaran added the comment: My suggestion for this issue is going ahead with patch2 of Mher. It does a simple normalization and does the right thing. The case in the question is an empty query string and behavior or Allow and Disallow for that and patch addresses that. (I don't know

[issue15392] Create a unittest framework for IDLE

2013-04-22 Thread Tomoki Imai
Tomoki Imai added the comment: Oh, no support for Python2? I think, it is too old, but still needs bug-fix supports. IDLE for Python2 is really buggy. For example, unicode problems in my environment. http://bugs.python.org/issue17348 It might be GUI related problem. By the way, your proposal

[issue17732] distutils.cfg Can Break venv

2013-04-22 Thread Nick Sloan
Nick Sloan added the comment: Éric, Fixed the mention of packages, and made a frozenset of ignore_options. Think this thing is ready to go. I have tested it, and it does the trick. Thanks for helping me get this patch merged in. -- Added file:

[issue15809] IDLE console uses incorrect encoding.

2013-04-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: A coding cookie line will be ignored. Note that this affects only very obscure case when you are pasting a multiline code with a coding cookie line into IDLE shell (this is only way to get a coding cookie line in the shell). Running a file does not pass

[issue15642] Integrate pickle protocol version 4 GSoC work by Stefan Mihaila

2013-04-22 Thread Stefan Mihaila
Stefan Mihaila added the comment: Hello. I apologize once again for not finalizing my work, but once I have started my final year of faculty and a job, I have been busy pretty much all the time. I would really like to finish this as I've really enjoyed working on it, and everything on PEP

[issue17815] itertools.combinations example is overly complicated

2013-04-22 Thread Theodoros Ikonomou
New submission from Theodoros Ikonomou: I find the code presented as equivalent for itertools.combinations is overly complex. I think we can change it to something easier like the following: def combinations(iterable, r): i, size = 0, len(iterable) while i + r - 1 size:

[issue9607] Test file 'test_keyword.py' submission for use with keyword.py

2013-04-22 Thread Éric Araujo
Éric Araujo added the comment: Just wanted to note that addCleanup is smarter than many core devs think: self.addCleanup(lambda: setattr(keyword, 'kwlist', oldlist)) self.addCleanup(setattr, keyword, 'kwlist', oldlist) -- nosy: +eric.araujo ___

[issue15809] IDLE console uses incorrect encoding.

2013-04-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: An interactive Python console ignores a coding cookie line too. $ cat test.py # -*- coding: koi8-r -*- print repr('йцук'), 'йцук', repr(u'йцук'), u'йцук' $ LC_ALL=ru_RU.cp1251 LANG=ru_RU.cp1251 ./python test.py '\xe9\xf6\xf3\xea' йцук

[issue17815] itertools.combinations example is overly complicated

2013-04-22 Thread Theodoros Ikonomou
Changes by Theodoros Ikonomou thiko...@gmail.com: -- resolution: - postponed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17815 ___

[issue15392] Create a unittest framework for IDLE

2013-04-22 Thread R. David Murray
R. David Murray added the comment: I think the issue of whether/how to test Python2 idle should be discussed on idle-dev. One strategy is to make the tests backward compatible (so no mock). Another possible strategy is to have an extra bit of test framework for IDLE in 2.7 that copies the

[issue17717] Set up nasm from external.bat

2013-04-22 Thread Zachary Ware
Zachary Ware added the comment: I agree it would be nice, but I'm not sure how easy or practical it would be to implement, particularly making sure that NASM is on the PATH. And besides, at some point, we have to draw the line between what we can reasonably do for a user and what we can

[issue17816] Weak*Dictionary KeyErrors during callbacks

2013-04-22 Thread Nils Bruin
New submission from Nils Bruin: The following program is a little dependent on memory layout but will usually generate lots of Exception KeyError: (A(9996),) in function remove at 0xa47050 ignored messages in Python 2.7. import weakref class A(object): def

[issue17816] Weak*Dictionary KeyErrors during callbacks

2013-04-22 Thread Volker Braun
Volker Braun added the comment: This is http://bugs.python.org/issue7105. The patch from there could easily be backported, I think. -- nosy: +vbraun ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17816

[issue16624] subprocess.check_output should allow specifying stdin as a string

2013-04-22 Thread Roundup Robot
Roundup Robot added the comment: New changeset 5c45d0ca984f by Serhiy Storchaka in branch 'default': Issue #16624: `subprocess.check_output` now accepts an `input` argument, http://hg.python.org/cpython/rev/5c45d0ca984f -- nosy: +python-dev ___

[issue16624] subprocess.check_output should allow specifying stdin as a string

2013-04-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thanks Zack for you patch. Thanks Mark for testing. -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16624

[issue17817] ¿Bug Python 2.7.4 and version 3.3.1?

2013-04-22 Thread Ricardo González
New submission from Ricardo González: Hello, There seems to be a bug in versions 2.7.4 and 3.3.1 by typing the following error in IDLE (Python GUI) Windows 8 64 bit: Python 2.7.4 (default, Apr 6 2013, 19:55:15) [MSC v.1500 64 bit (AMD64)] on win32 Type copyright, credits or license() for

[issue15301] os.chown: OverflowError: Python int too large to convert to C long

2013-04-22 Thread Larry Hastings
Larry Hastings added the comment: Can I get an LGTM? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15301 ___ ___ Python-bugs-list mailing list

[issue17817] ¿Bug Python 2.7.4 and version 3.3.1?

2013-04-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Those bugs likely were fixed in issue17585 and issue14735 last week. -- nosy: +kbk, roger.serwy, serhiy.storchaka, terry.reedy versions: +Python 2.7, Python 3.4 ___ Python tracker rep...@bugs.python.org

[issue17816] Weak*Dictionary KeyErrors during callbacks

2013-04-22 Thread Nils Bruin
Nils Bruin added the comment: Have you tried if the fix at issue7105 solves the problem? I don't see the patch there introduce a `clear` method override for WeakValueDictionary or WeakKeyDictionary. The one for WeakSet still calls self.data.clear(), which for dictionaries would still result

[issue15301] os.chown: OverflowError: Python int too large to convert to C long

2013-04-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New tests needed (with Decimal and Fraction). And what is purpose of changing Py_TYPE(o) to o-ob_type? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15301

[issue7475] codecs missing: base64 bz2 hex zlib hex_codec ...

2013-04-22 Thread Phil Connell
Changes by Phil Connell pconn...@gmail.com: -- nosy: +pconnell ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7475 ___ ___ Python-bugs-list mailing

[issue15301] os.chown: OverflowError: Python int too large to convert to C long

2013-04-22 Thread Larry Hastings
Larry Hastings added the comment: Latest patch incorporating Serihy's comments. -- Added file: http://bugs.python.org/file29977/larry.chown.unsigned.uid.gid.4.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15301

[issue15301] os.chown: OverflowError: Python int too large to convert to C long

2013-04-22 Thread Larry Hastings
Larry Hastings added the comment: Whoops, meant to throw in a Fraction too. Added that. Also hoisted the imports out of the function call, just to be a good guy. -- Added file: http://bugs.python.org/file29978/larry.chown.unsigned.uid.gid.5.diff

[issue17717] Set up nasm from external.bat

2013-04-22 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- nosy: -terry.reedy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17717 ___ ___ Python-bugs-list

[issue17802] html.HTMLParser raises UnboundLocalError:

2013-04-22 Thread Thomas Barlow
Thomas Barlow added the comment: Just adding a patch here with a few unit tests to demonstrate the issue, comments here are welcome. This is my first patch, I believe I have put the tests in the correct place. It appears the problem only occurs if there is an incomplete XML entity where a

[issue3132] implement PEP 3118 struct changes

2013-04-22 Thread Paul Hoffman
Paul Hoffman added the comment: Following up on http://mail.python.org/pipermail/python-ideas/2011-March/009656.html, I would like to request that struct also handle half-precision floats directly. It's a short change, and half-precision floats are becoming much more popular in applications.

[issue17818] aifc.Aifc_read/Aifc_write.getparams can return a namedtuple

2013-04-22 Thread Claudiu.Popa
New submission from Claudiu.Popa: Hello! Given the fact that issue 17487 was accepted, I think that is a good idea for aifc.Aifc_read/Aifc_write.getparams to return a namedtuple as well, so that both modules will behave consistently with each other. I've attached a patch for this. Thanks in

[issue10513] sqlite3.InterfaceError after commit

2013-04-22 Thread Paul Melis
Paul Melis added the comment: Here's a patch that removes the pysqlite_do_all_statements(self, ACTION_RESET, 0); call. It also adds the sqlite error code to one of the exceptions raised, as the error message is misleading in case the ACTION_RESET is left in (I forgot what sqlite error is

[issue11714] threading.Semaphore does not use try...finally

2013-04-22 Thread Roundup Robot
Roundup Robot added the comment: New changeset 2253b8a18bbf by Serhiy Storchaka in branch '2.7': Issue #11714: Use 'with' statements to assure a Semaphore releases a http://hg.python.org/cpython/rev/2253b8a18bbf New changeset af30c5cb248f by Serhiy Storchaka in branch '3.3': Issue #11714: Use

[issue15392] Create a unittest framework for IDLE

2013-04-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: When I opened this last July, I intentionally left off 2.7 for multiple reasons. 1. I knew that the new-in-3.3 mock module would probably be needed for some types of testing. (As for 3.2: at that time, I expected 3.2.4 to be released in September or October,

[issue11714] threading.Semaphore does not use try...finally

2013-04-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you for the patch. 'try/finally' can't be replaced by 'with' statements in the _Event class because a conditional variable should be reinitialized in _reset_internal_locks() after fork. -- resolution: - fixed stage: commit review -

[issue3132] implement PEP 3118 struct changes

2013-04-22 Thread Mark Dickinson
Mark Dickinson added the comment: Paul: there's already an open issue for adding float16 to the struct module: see issue 11734. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3132 ___

[issue11734] Add half-float (16-bit) support to struct module

2013-04-22 Thread Mark Dickinson
Mark Dickinson added the comment: I'll take a look at the numerics. -- assignee: - mark.dickinson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11734 ___

[issue3132] implement PEP 3118 struct changes

2013-04-22 Thread Paul Hoffman
Paul Hoffman added the comment: Whoops, never mind. Thanks for the pointer to 11734. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3132 ___ ___

[issue11734] Add half-float (16-bit) support to struct module

2013-04-22 Thread Paul Hoffman
Paul Hoffman added the comment: Just another voice for seeing this put in a deployed version of Python. Half-precision floats are becoming more common in applications. Question: does adding this affect math.isnan and math.isinf? -- nosy: +paulehoffman

[issue10513] sqlite3.InterfaceError after commit

2013-04-22 Thread Ned Deily
Changes by Ned Deily n...@acm.org: -- nosy: -ned.deily ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10513 ___ ___ Python-bugs-list mailing list

[issue17729] advocacy howto improvements

2013-04-22 Thread A.M. Kuchling
A.M. Kuchling added the comment: I suggest just dropping this HOWTO. It was written to contrast using Python with using only a low-level language such as C. Today there may still be some people arguing over whether to use a low-level or high-level language, but I think the idea of using

[issue17729] advocacy howto improvements

2013-04-22 Thread Tshepang Lekhonkhobe
Tshepang Lekhonkhobe added the comment: That's great to hear, especially coming from the author. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17729 ___

[issue17742] Add _PyBytesWriter API

2013-04-22 Thread STINNER Victor
STINNER Victor added the comment: I expect that replacing *p++ = c; with *writer.str++ = c; would not add an important overhead, especially because writer is a local variable, and str is the first attribute of the structure. I hope that the machine code will be exactly the same. I ran some

[issue14191] argparse doesn't allow optionals within positionals

2013-04-22 Thread paul j3
paul j3 added the comment: The attached file has a 'parse_intermixed_args()' that has the same API as 'parse_known_args()'. It follows the two parse step model args, remaining_args = optionals.parse_known_args() args, extras = positionals.parse_known_args(remaining_args, args) except

[issue12238] Readline module loading in interactive mode

2013-04-22 Thread STINNER Victor
STINNER Victor added the comment: We may add a command line option and/or an environment variable to not add the current directory to sys.path. Changing the current behaviour may break many applications / use cases. -- ___ Python tracker

[issue16499] CLI option for isolated mode

2013-04-22 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16499 ___ ___ Python-bugs-list

[issue12238] Readline module loading in interactive mode

2013-04-22 Thread STINNER Victor
STINNER Victor added the comment: We may add a command line option and/or an environment variable to not add the current directory to sys.path. Oh, this is exactly what the issue #16499 proposes. -- ___ Python tracker rep...@bugs.python.org

[issue17819] removes need for CONFIG_SITE external configuration

2013-04-22 Thread Antonio Cavallo
New submission from Antonio Cavallo: This patch introduces two new options (--enable-ptmx, --enable-ptc) to the configure script. In cross compile the actual code requires an external config.site config file to set the result values for the AC_CHECK_FILE macros on /dev/ptmx, /dev/ptc. These

[issue9682] socket.create_connection error message for domain subpart with invalid length is very confusing

2013-04-22 Thread Mike Milkin
Mike Milkin added the comment: There are a few of interesting parts. 1.) I noticed that the ToASCII class is not tested. 2.) I had some unreachable branches due to concatenation of constant variable ace_prefix. 3) I also found it weird that we only check the max of labels[-1], but decided

[issue9682] socket.create_connection error message for domain subpart with invalid length is very confusing

2013-04-22 Thread Mike Milkin
Changes by Mike Milkin mmil...@gmail.com: Removed file: http://bugs.python.org/file29850/Issue9682-full.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9682 ___

[issue9682] socket.create_connection error message for domain subpart with invalid length is very confusing

2013-04-22 Thread Mike Milkin
Changes by Mike Milkin mmil...@gmail.com: Removed file: http://bugs.python.org/file29984/Issue9682.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9682 ___

[issue9682] socket.create_connection error message for domain subpart with invalid length is very confusing

2013-04-22 Thread Mike Milkin
Changes by Mike Milkin mmil...@gmail.com: Added file: http://bugs.python.org/file29985/Issue9682-42213.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9682 ___

[issue17817] ¿Bug Python 2.7.4 and version 3.3.1?

2013-04-22 Thread Roger Serwy
Roger Serwy added the comment: Ricardo, you are correct that 2.7.4 and 3.3.1 have these bugs but they have been fixed, as shown by Serhiy. Unfortunately, these fixes won't be released for a while but they exist as patches and in version control. I am closing this issue as a duplicate of

[issue17804] streaming struct unpacking

2013-04-22 Thread Meador Inge
Meador Inge added the comment: This seems reasonable to me to. So +1. Small bikeshed on the name: I think 'unpack_iter' would be more consistent with what is already there, e.g. 'unpack' and 'unpack_from'. In fact, when experimenting with this patch I found myself typing 'unpack_iter' several

[issue17816] Weak*Dictionary KeyErrors during callbacks

2013-04-22 Thread Nils Bruin
Nils Bruin added the comment: I think the difference in behaviour between Py3 and Py2 is coming from: http://hg.python.org/cpython/file/a26df2d03989/Objects/dictobject.c#l1275 which first clears all values before removing any keys. For a WeakValueDictionary that means all the weakrefs are

[issue17820] Nothing about editors in Key Resources

2013-04-22 Thread Guilherme Simões
New submission from Guilherme Simões: In devguide/setup#editors-and-tools we have: For editors and tools which the core developers have felt some special comment is needed for coding in Python, see Key Resources. Since emacs and other tools are mentioned in Additional Resources instead I

[issue17820] Nothing about editors in Key Resources

2013-04-22 Thread Roundup Robot
Roundup Robot added the comment: New changeset df85ed024e96 by Ned Deily in branch 'default': Issue #17820: Provide more appropriate link in devguide editor section. http://hg.python.org/devguide/rev/df85ed024e96 -- nosy: +python-dev ___ Python

[issue17820] Nothing about editors in Key Resources

2013-04-22 Thread Ned Deily
Ned Deily added the comment: Thanks for the suggestion! -- nosy: +ned.deily resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17820

[issue15809] IDLE console uses incorrect encoding.

2013-04-22 Thread Roger Serwy
Roger Serwy added the comment: Here's a tangentially related issue: #14326 IDLE doesn't handle pasting multi-line code properly (issue3559), IDLE2 will silently ignore code after the first executable statement. IDLE3 may give an error. Can't we just make IDLE's shell default to UTF-8?

[issue17802] html.HTMLParser raises UnboundLocalError:

2013-04-22 Thread Ezio Melotti
Ezio Melotti added the comment: Thanks for the patch Thomas! Starting from your work I made an updated patch that fixes the bug, but at the same time the tests revealed another possible issue. In case of invalid character references, HTMLParser still calls handle_entityref instead of reporting