[issue21877] External.bat and pcbuild of tkinter do not match.

2014-10-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: I am quite aware that the two searches are different. tcl8xyz.dll and tkxyz.dll must be copied from ../tcltk/bin to pcbuild while init.tcl must be left in ../tcltk/lib/tcl8.x, where x is, now, '5' or '6'. Since compiling tcl/tk clears tcltk/, it is

[issue21877] External.bat and pcbuild of tkinter do not match.

2014-10-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: Since the two .dlls must now be copied manually (still undocumented?) for tkinter to work, I fail to see the problem with having the copying done automatically in external.bat right after the compile that creates them. --

[issue17896] Move Windows external libs from src\..\ to src\externals

2014-10-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: I could not find an issue specifically for the tcltk problem. I just explained the problem as I know it in msg230120 of #17896. Some sort of fix is required before we can merge multiple tcltk directories in isolated build directories of the sort you

[issue17846] Building Python on Windows - Supplementary info

2014-10-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: Because the name 'tcltk' is unversioned and contents rebuilt for each compile, isolated build directories of the sort diagrammed in msg214138 are required if one want to build and run both 2.7, which requires tcl8.5, and 3.4+, which require tcl8.6. Since

[issue22749] remove obsolete remark in time.clock() docs

2014-10-28 Thread Akira Li
New submission from Akira Li: time.clock() documentation [1] says: this is the function to use for benchmarking Python or timing algorithms. and Deprecated since version 3.3: The behaviour of this function depends on the platform: use perf_counter() or process_time() instead, depending

[issue22748] Porting Extension Modules to Python 3 documentation mention about PyString_* functions in Python 3

2014-10-28 Thread Georg Brandl
Georg Brandl added the comment: Correct, there are no PyString_ functions in 3.x. -- nosy: +georg.brandl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22748 ___

[issue22749] remove obsolete remark in time.clock() docs

2014-10-28 Thread Georg Brandl
Georg Brandl added the comment: LGTM. -- nosy: +georg.brandl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22749 ___ ___ Python-bugs-list mailing

[issue22725] improve documentation for enumerate() (built-in function)

2014-10-28 Thread Georg Brandl
Georg Brandl added the comment: rdm: your suggestion sounds good. Note that the argument name is iterable in Py3. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22725 ___

[issue22736] tutorial links at top, book recommendations at bottom of module documentation

2014-10-28 Thread Georg Brandl
Georg Brandl added the comment: I agree, the see also box is better off near the bottom, probably before the examples. -- nosy: +georg.brandl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22736

[issue22177] Incorrect version reported after downgrade

2014-10-28 Thread Ezio Melotti
Ezio Melotti added the comment: Can this be closed then? -- resolution: - wont fix status: open - pending ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22177 ___

[issue22173] Update lib2to3.tests and test_lib2to3 to use test discovery

2014-10-28 Thread Ezio Melotti
Ezio Melotti added the comment: LGTM -- nosy: +ezio.melotti stage: patch review - commit review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22173 ___

[issue22746] cgitb html: wrong encoding for utf-8

2014-10-28 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: What about open(..., encoding='latin-1', errors='xmlcharrefreplace') -- nosy: +amaury.forgeotdarc stage: resolved - needs patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22746

[issue22153] There is no standard TestCase.runTest implementation

2014-10-28 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +rbcollins stage: - patch review versions: +Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22153 ___

[issue22217] Reprs for zipfile classes

2014-10-28 Thread Ezio Melotti
Ezio Melotti added the comment: LGTM -- nosy: +ezio.melotti stage: patch review - commit review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22217 ___

[issue22746] cgitb html: wrong encoding for utf-8

2014-10-28 Thread Wolfgang Rohdewald
Wolfgang Rohdewald added the comment: What about open(..., encoding='latin-1', errors='xmlcharrefreplace') That works fine. I tested with a chinese character 与 But I do not think the application should work around something that cgitb is supposed to handle. More so since the documentation

[issue22746] cgitb html: wrong encoding for utf-8

2014-10-28 Thread Wolfgang Rohdewald
Wolfgang Rohdewald added the comment: correction: A bug for everyone using non-ascii characters. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22746 ___

[issue22233] http.client splits headers on none-\r\n characters

2014-10-28 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti stage: - needs patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22233 ___

[issue21877] External.bat and pcbuild of tkinter do not match.

2014-10-28 Thread Mark Lawrence
Changes by Mark Lawrence breamore...@yahoo.co.uk: -- nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21877 ___ ___

[issue22750] xmlapp.py display bug when validate XML by DTD

2014-10-28 Thread Ferdinand
New submission from Ferdinand: Code is working, but the TEXT variable is not showing the correct line of the XML file but the the line after correct one : Exemple : [u6v7mr@vl-a-txx-05 Python]$ ./validateXML.py DTD/herve.xml DTD/Tomcat.dtd ERROR: 'I' is not an allowed value for the 'value'

[issue22751] Fix test___all__ warning about modified environment

2014-10-28 Thread Michael Cetrulo
New submission from Michael Cetrulo: The following warning is being generated when running test case: Warning -- locale was modified by test___all__ According to the comment there, importing the rlcompleter module changes (or used to change) the locale so after the import it was being set

[issue22153] There is no standard TestCase.runTest implementation

2014-10-28 Thread Martin Panter
Martin Panter added the comment: The patch seems reasonable to me -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22153 ___ ___ Python-bugs-list

[issue22232] str.splitlines splitting on non-\r\n characters

2014-10-28 Thread Ezio Melotti
Ezio Melotti added the comment: Looks like str.splitlines is using STRINGLIB_ISLINEBREAK which in turn uses Py_UNICODE_ISLINEBREAK, so the behavior should be correct. If splitting on \n, \r, and \r\n only is common enough with might add a bool arg to splitlines to restrict the splitting on

[issue22196] namedtuple documentation could/should mention the new Enum type

2014-10-28 Thread Karmen Dykstra
Karmen Dykstra added the comment: Updated documentation with Enum example. -- keywords: +patch nosy: +ezio.melotti, kdykstra Added file: http://bugs.python.org/file37051/mywork.patch ___ Python tracker rep...@bugs.python.org

[issue22237] sorted() docs should state that the sort is stable

2014-10-28 Thread Roundup Robot
Roundup Robot added the comment: New changeset d44f7d229e00 by Ezio Melotti in branch '2.7': #22237: document that sorted() is guaranteed to be stable. Initial patch by Martin Panter. https://hg.python.org/cpython/rev/d44f7d229e00 New changeset 5dd4906daa62 by Ezio Melotti in branch '3.4':

[issue22237] sorted() docs should state that the sort is stable

2014-10-28 Thread Ezio Melotti
Ezio Melotti added the comment: Fixed, thanks for the patch! -- assignee: rhettinger - ezio.melotti nosy: +ezio.melotti resolution: - fixed stage: - resolved status: open - closed ___ Python tracker rep...@bugs.python.org

[issue22594] Add a link to the regex module in re documentation

2014-10-28 Thread anupama srinivas murthy
anupama srinivas murthy added the comment: I have modified the patch and listed the points I know. Could you review it? -- versions: -Python 3.4, Python 3.5 Added file: http://bugs.python.org/file37052/regex-link.patch ___ Python tracker

[issue22232] str.splitlines splitting on non-\r\n characters

2014-10-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: With Terry's explanation linebreak looks better to me. Yet one alternative is ascii=False (or unicode=True?). And may be worth to add this parameter to strip/rstrip/lstrip/split too. On other hand regular expressions can be used in such special cases.

[issue22746] cgitb html: wrong encoding for utf-8

2014-10-28 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- nosy: +ezio.melotti, serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22746 ___

[issue22232] str.splitlines splitting on non-\r\n characters

2014-10-28 Thread Ezio Melotti
Ezio Melotti added the comment: There are some ascii line breaks other than \n, \r, \r\n. unicode=True might be better, but might be confused with unicode strings. Maybe unicode_linebreaks or unicode_newlines? -- ___ Python tracker

[issue22237] sorted() docs should state that the sort is stable

2014-10-28 Thread Roundup Robot
Roundup Robot added the comment: New changeset af8f678a4a75 by Ezio Melotti in branch '2.7': #22237: fix patch attribution. https://hg.python.org/cpython/rev/af8f678a4a75 New changeset 2f697bcc8f86 by Ezio Melotti in branch '3.4': #22237: fix patch attribution.

[issue22153] There is no standard TestCase.runTest implementation

2014-10-28 Thread Antoine Pitrou
Antoine Pitrou added the comment: IMO hiding the existence of `runTest` would be best. It doesn't seem to make anything more flexible, and it complicates the documentation. -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org

[issue22177] Incorrect version reported after downgrade

2014-10-28 Thread Zachary Ware
Zachary Ware added the comment: I'd say so. -- stage: - resolved status: pending - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22177 ___

[issue22746] cgitb html: wrong encoding for utf-8

2014-10-28 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: You need to use codecs.open instead of open No, why? in python3 open() supports the errors handler. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22746

[issue22242] Doc fix in the Import section in language reference.

2014-10-28 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +brett.cannon stage: - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22242 ___

[issue22746] cgitb html: wrong encoding for utf-8

2014-10-28 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: -- components: +Unicode nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22746 ___

[issue22751] Fix test___all__ warning about modified environment

2014-10-28 Thread Brett Cannon
Changes by Brett Cannon br...@python.org: -- nosy: +brett.cannon ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22751 ___ ___ Python-bugs-list

[issue22242] Doc fix in the Import section in language reference.

2014-10-28 Thread Brett Cannon
Changes by Brett Cannon br...@python.org: -- assignee: docs@python - brett.cannon ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22242 ___ ___

[issue22746] cgitb html: wrong encoding for utf-8

2014-10-28 Thread R. David Murray
R. David Murray added the comment: In normal HTML utf-8 works fine, doesn't it?. It's only when reading from a file (where the browser doesn't know the encoding) that it fails. Do you have a use case for xmlcharrefreplace in the HTML context (which is what cgitb is primarily targeted at).

[issue22196] namedtuple documentation could/should mention the new Enum type

2014-10-28 Thread Roundup Robot
Roundup Robot added the comment: New changeset 2e3521e79d93 by Ezio Melotti in branch 'default': #22196: link to Enum in the nametuple documentation. Patch by Karmen Dykstra. https://hg.python.org/cpython/rev/2e3521e79d93 -- nosy: +python-dev ___

[issue22196] namedtuple documentation could/should mention the new Enum type

2014-10-28 Thread Roundup Robot
Roundup Robot added the comment: New changeset 701529f8ca93 by Ezio Melotti in branch '3.4': #22196: link to Enum in the nametuple documentation. Patch by Karmen Dykstra. https://hg.python.org/cpython/rev/701529f8ca93 -- ___ Python tracker

[issue22232] str.splitlines splitting on non-\r\n characters

2014-10-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: See also issue18236. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22232 ___ ___ Python-bugs-list mailing

[issue22752] incorrect time.timezone value

2014-10-28 Thread matrokhin oleg
New submission from matrokhin oleg: There was timezone change in Russia at 26 october (http://www.timeanddate.com/time/change/russia/moscow) But code in timemodule.c using first day of the year to get timezone t = (time((time_t *)0) / YEAR) * YEAR; p = localtime(t);

[issue22752] incorrect time.timezone value

2014-10-28 Thread matrokhin oleg
matrokhin oleg added the comment: $ date -R Tue, 28 Oct 2014 17:27:54 +0300 $ python -c import time; print time.timezone -14400 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22752

[issue19459] Python does not support the GEORGIAN-PS charset

2014-10-28 Thread Jakub Wilk
Changes by Jakub Wilk jw...@jwilk.net: -- nosy: +jwilk ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19459 ___ ___ Python-bugs-list mailing list

[issue22232] str.splitlines splitting on non-\r\n characters

2014-10-28 Thread Jakub Wilk
Changes by Jakub Wilk jw...@jwilk.net: -- nosy: +jwilk ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22232 ___ ___ Python-bugs-list mailing list

[issue22679] Add encodings of supported in glibc locales

2014-10-28 Thread Jakub Wilk
Changes by Jakub Wilk jw...@jwilk.net: -- nosy: +jwilk ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22679 ___ ___ Python-bugs-list mailing list

[issue21081] missing vietnamese codec TCVN 5712:1993 in Python

2014-10-28 Thread Jakub Wilk
Changes by Jakub Wilk jw...@jwilk.net: -- nosy: +jwilk ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21081 ___ ___ Python-bugs-list mailing list

[issue22681] Add support of KOI8-T encoding

2014-10-28 Thread Jakub Wilk
Changes by Jakub Wilk jw...@jwilk.net: -- nosy: +jwilk ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22681 ___ ___ Python-bugs-list mailing list

[issue22752] incorrect time.timezone value

2014-10-28 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +belopolsky ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22752 ___ ___ Python-bugs-list

[issue22196] namedtuple documentation could/should mention the new Enum type

2014-10-28 Thread Ezio Melotti
Ezio Melotti added the comment: Fixed, thanks for the patch! -- assignee: rhettinger - ezio.melotti resolution: - fixed stage: - resolved status: open - closed type: - enhancement versions: +Python 3.4, Python 3.5 ___ Python tracker

[issue22753] urllib2 localnet Changed test to lookup IP-address of localhost

2014-10-28 Thread Håkan Lövdahl
New submission from Håkan Lövdahl: Running this test gave me an error: ./python -m test -v test_urllib2_localnet == ERROR: test_proxy_qop_auth_works (test.test_urllib2_localnet.ProxyAuthTests)

[issue22753] urllib2 localnet Changed test to lookup IP-address of localhost

2014-10-28 Thread Daniel Eriksson
Changes by Daniel Eriksson dan...@starstable.com: -- nosy: +puppet ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22753 ___ ___ Python-bugs-list

[issue22753] urllib2 localnet Changed test to lookup IP-address of localhost

2014-10-28 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti, larstiq stage: - patch review type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22753 ___

[issue22753] urllib2 localnet Changed test to lookup IP-address of localhost

2014-10-28 Thread Håkan Lövdahl
Changes by Håkan Lövdahl ha...@llsdata.fi: -- keywords: +patch Added file: http://bugs.python.org/file37053/issue_22753.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22753 ___

[issue22753] urllib2 localnet Changed test to lookup IP-address of localhost

2014-10-28 Thread Håkan Lövdahl
Håkan Lövdahl added the comment: Ubuntu Linux 12.04 64bit -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22753 ___ ___ Python-bugs-list mailing

[issue22753] urllib2 localnet Changed test to lookup IP-address of localhost

2014-10-28 Thread R. David Murray
R. David Murray added the comment: Your description of the solution (change localhost to 127.0.0.1) does not match the content of the patch. The patch appears to be looking up the IP address associated with 'localhost' and using that. On most systems that would be 127.0.0.1, but perhaps on

[issue22746] cgitb html: wrong encoding for utf-8

2014-10-28 Thread Wolfgang Rohdewald
Wolfgang Rohdewald added the comment: You need to use codecs.open instead of open No, why? in python3 open() supports the errors handler. right, but not in python2 which has the same problem. I need my code to run with both. Do you have a use case for xmlcharrefreplace in the HTML

[issue22752] incorrect time.timezone value

2014-10-28 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: The time module cannot handle historical changes in timezone info. Try using datetime.datetime.astimezone() method (with no arguments) or a 3rd party timezone support library. https://docs.python.org/3/library/datetime.html#datetime.datetime.astimezone

[issue22721] pprint output for sets and dicts is not stable

2014-10-28 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: What if [some flavor of] pprint sorted items not by value, but by their repr() string? It's probably faster than any other algorithm, and guaranteed to produce consistent results. Or use this idea only for ambiguous cases? -- nosy:

[issue22721] pprint output for sets and dicts is not stable

2014-10-28 Thread Fred L. Drake, Jr.
Fred L. Drake, Jr. added the comment: Sorting by the repr sounds good, but if some dict keys or set members are strings containing single-quotes, the primary sort will be on the type of quote used for the repr, which would be surprising and significantly less useful. --

[issue22754] Implicit String Literal Concatenation Is Evil

2014-10-28 Thread Aaron Klish
New submission from Aaron Klish: Implicit string literal concatenation where string1 string2 becomes string1string2 should be a language syntax error - not a feature. This creates a silent error whenever someone builds a list of strings and forgets a comma. I can't think of any good reason

[issue22754] Implicit String Literal Concatenation Is Evil

2014-10-28 Thread R. David Murray
R. David Murray added the comment: This is a long established language feature and is not going to change. You could talk to one of the python linter projects about adding a lint option for detecting such; that would be the appropriate place for an option that would enable such checking.

[issue22754] Implicit String Literal Concatenation Is Evil

2014-10-28 Thread R. David Murray
R. David Murray added the comment: Also, if you really want to pursue it as a language level discussion the appropriate forum would be python-ideas. You might want to ask on python-list first about how it is used in practice, though, since it is used quite a bit (mostly in multiline

[issue22728] Deprecate spurious benchmarks

2014-10-28 Thread Roundup Robot
Roundup Robot added the comment: New changeset 100eee4adc4c by Antoine Pitrou in branch 'default': Fix #22728: deprecate spurious benchmarks https://hg.python.org/benchmarks/rev/100eee4adc4c -- nosy: +python-dev ___ Python tracker

[issue22728] Deprecate spurious benchmarks

2014-10-28 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- resolution: - fixed stage: patch review - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22728 ___

[issue18216] gettext doesn't check MO versions

2014-10-28 Thread Antoine Pitrou
Antoine Pitrou added the comment: Aaron, the patch looks fine, I'm going to commit it. -- versions: -Python 2.7, Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18216 ___

[issue18216] gettext doesn't check MO versions

2014-10-28 Thread Roundup Robot
Roundup Robot added the comment: New changeset 3b26a0983a3c by Antoine Pitrou in branch 'default': Issue #18216: gettext now raises an error when a .mo file has an unsupported major version number. Patch by Aaron Hill. https://hg.python.org/cpython/rev/3b26a0983a3c -- nosy:

[issue18216] gettext doesn't check MO versions

2014-10-28 Thread Antoine Pitrou
Antoine Pitrou added the comment: I've pushed it to 3.5 only. I don't think it's worth risking compatibility breakage in bugfix branches. Thank you for your contribution! -- resolution: - fixed stage: patch review - resolved status: open - closed

[issue1610654] cgi.py multipart/form-data

2014-10-28 Thread Antoine Pitrou
Antoine Pitrou added the comment: Thanks for the updated patch. I'll take a look soon if no-one beats me to it. -- stage: needs patch - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1610654

[issue18216] gettext doesn't check MO versions

2014-10-28 Thread Aaron Hill
Aaron Hill added the comment: Awesome! Thanks! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18216 ___ ___ Python-bugs-list mailing list

[issue22672] float arguments in scientific notation not supported by argparse

2014-10-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: If this issue is a duplicate of #9334, as it appears to be, this should be closed and a note added to #9334 that there is a patch here also. -- nosy: +terry.reedy ___ Python tracker rep...@bugs.python.org

[issue22749] remove obsolete remark in time.clock() docs

2014-10-28 Thread Roundup Robot
Roundup Robot added the comment: New changeset 5f086db3b51b by Georg Brandl in branch '3.4': Closes #22749: remove outdated advice to use clock() for accurate timing. https://hg.python.org/cpython/rev/5f086db3b51b -- nosy: +python-dev resolution: - fixed stage: - resolved status: open

[issue22748] Porting Extension Modules to Python 3 documentation mention about PyString_* functions in Python 3

2014-10-28 Thread Roundup Robot
Roundup Robot added the comment: New changeset 9141199800fe by Georg Brandl in branch '3.4': Closes #22748: there are no PyString C functions in 3.x. https://hg.python.org/cpython/rev/9141199800fe -- nosy: +python-dev resolution: - fixed stage: needs patch - resolved status: open -

[issue22736] tutorial links at top, book recommendations at bottom of module documentation

2014-10-28 Thread Roundup Robot
Roundup Robot added the comment: New changeset 4ad8b11ca309 by Georg Brandl in branch '3.4': Closes #22736: move seealso to the bottom of the section about RE syntax. https://hg.python.org/cpython/rev/4ad8b11ca309 -- nosy: +python-dev resolution: - fixed stage: - resolved status: open

[issue22748] Porting Extension Modules to Python 3 documentation mention about PyString_* functions in Python 3

2014-10-28 Thread Roundup Robot
Roundup Robot added the comment: New changeset 18f346abdfbe by Georg Brandl in branch '2.7': Closes #22748: there are no PyString C functions in 3.x. https://hg.python.org/cpython/rev/18f346abdfbe -- ___ Python tracker rep...@bugs.python.org

[issue22736] tutorial links at top, book recommendations at bottom of module documentation

2014-10-28 Thread Roundup Robot
Roundup Robot added the comment: New changeset 465892bb0c12 by Georg Brandl in branch '2.7': Closes #22736: move seealso to the bottom of the section about RE syntax. https://hg.python.org/cpython/rev/465892bb0c12 -- ___ Python tracker

[issue22678] An OSError subclass for no space left on device would be nice: NoSpaceError

2014-10-28 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: -- title: An OSError subclass for no space left on device would be nice - An OSError subclass for no space left on device would be nice: NoSpaceError ___ Python tracker rep...@bugs.python.org

[issue22249] Possibly incorrect example is given for socket.getaddrinfo()

2014-10-28 Thread Roundup Robot
Roundup Robot added the comment: New changeset 999e72ed3fbc by Georg Brandl in branch '2.7': Closes #22249: use IPPROTO_TCP constant instead of SOL_TCP constant for getaddrinfo() proto param https://hg.python.org/cpython/rev/999e72ed3fbc -- ___

[issue22249] Possibly incorrect example is given for socket.getaddrinfo()

2014-10-28 Thread Roundup Robot
Roundup Robot added the comment: New changeset 5611c7c20460 by Georg Brandl in branch '3.4': Closes #22249: use IPPROTO_TCP constant instead of SOL_TCP constant for getaddrinfo() proto param https://hg.python.org/cpython/rev/5611c7c20460 -- nosy: +python-dev resolution: - fixed stage:

[issue22305] Documentation on deepcopy's problems is misleading

2014-10-28 Thread Georg Brandl
Changes by Georg Brandl ge...@python.org: -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22305 ___ ___ Python-bugs-list

[issue22153] There is no standard TestCase.runTest implementation

2014-10-28 Thread Martin Panter
Martin Panter added the comment: Do you mean pretending there is no default “methodName” value, or pretending that the runTest() method is not invoked by discovery? I would have to check, but I think I have relied on the runTest() method being discovered in the past, when I did not think a

[issue22153] There is no standard TestCase.runTest implementation

2014-10-28 Thread Robert Collins
Robert Collins added the comment: runTest is part of the current API. I think if we're going to hide it we should do so as part of a deprecation path. (I'm +1 on hiding it). -- ___ Python tracker rep...@bugs.python.org

[issue22153] There is no standard TestCase.runTest implementation

2014-10-28 Thread Antoine Pitrou
Antoine Pitrou added the comment: Le 28/10/2014 23:01, Robert Collins a écrit : runTest is part of the current API. I think if we're going to hide it we should do so as part of a deprecation path. (I'm +1 on hiding it). We don't need a deprecation path to remove something from the

[issue18236] str.isspace should use the Unicode White_Space property

2014-10-28 Thread Martin Panter
Martin Panter added the comment: As uncovered in Issue 12855, str.splitlines() currently considers the FS, GS and RS (1C–1E), but not the US (1F), to be line breaks. It might be surprising if these are no longer considered white space but are still considered line breaks. -- nosy:

[issue22755] contextlib.closing documentation should use a new example

2014-10-28 Thread Martijn Pieters
New submission from Martijn Pieters: urllib.request.urlopen() now always produces a context manager (either a HTTPResponse or addinfourl object). The example for contextlib.closing still uses urllib.request.urlopen as an example for the context manager wrapper, see

[issue22755] contextlib.closing documentation should use a new example

2014-10-28 Thread Andrew Barnert
Andrew Barnert added the comment: It may be pretty hard to come up with a good example for closing in the stdlib that shouldn't just be turned into a context manager… There are some types where using it in a with statement is sensible, but unusual enough that you might want to make it

[issue21820] unittest: unhelpful truncating of long strings.

2014-10-28 Thread Robert Collins
Changes by Robert Collins robe...@robertcollins.net: -- nosy: +rbcollins ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21820 ___ ___

[issue22755] contextlib.closing documentation should use a new example

2014-10-28 Thread Martin Panter
Martin Panter added the comment: One exception that comes to mind is generators. According to Issue 13814, it is deliberate that you have to call close(), so perhaps someone could come up with an example based on that. -- nosy: +vadmium ___ Python

[issue11874] argparse assertion failure with brackets in metavars

2014-10-28 Thread Wolfgang Maier
Wolfgang Maier added the comment: It doesn't seem to be the exact same problem, but still this very simple example with parentheses in metavar fails to format correctly: import argparse parser = argparse.ArgumentParser() parser.add_argument(inputfiles, metavar = 'input_file(s)', nargs = +,

[issue22153] There is no standard TestCase.runTest implementation

2014-10-28 Thread Martin Panter
Martin Panter added the comment: Removing stuff from the documentation would make it hard to understand what existing code means that uses runTest(). Isn’t this a case where you would add a big red “Deprecated since version . . .” warning instead? Maybe a comprimise would be to “hide” its

[issue3453] PyType_Ready doesn't ensure that all bases are ready

2014-10-28 Thread Eldar Abusalimov
Eldar Abusalimov added the comment: It is possible to get a partially initialized class from inside a custom mro(). And extending such type results in passing NULL to PySequence_List inside mro_implementation, which in turn leads to PyErr_BadInternalCall. #22735 has a test reproducing it

[issue21081] missing vietnamese codec TCVN 5712:1993 in Python

2014-10-28 Thread Jean Christophe André
Changes by Jean Christophe André pyt...@andrele.org: Added file: http://bugs.python.org/file37054/TCVN5712-1.TXT ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21081 ___

[issue21081] missing vietnamese codec TCVN 5712:1993 in Python

2014-10-28 Thread Jean Christophe André
Changes by Jean Christophe André pyt...@andrele.org: Added file: http://bugs.python.org/file37055/TCVN5712-2.TXT ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21081 ___

[issue21081] missing vietnamese codec TCVN 5712:1993 in Python

2014-10-28 Thread Jean Christophe André
Changes by Jean Christophe André pyt...@andrele.org: Added file: http://bugs.python.org/file37056/TCVN5712-3.TXT ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21081 ___

[issue22153] There is no standard TestCase.runTest implementation

2014-10-28 Thread Antoine Pitrou
Antoine Pitrou added the comment: Le 29/10/2014 00:22, Martin Panter a écrit : Martin Panter added the comment: Removing stuff from the documentation would make it hard to understand what existing code means that uses runTest(). Isn’t this a case where you would add a big red “Deprecated

[issue22153] There is no standard TestCase.runTest implementation

2014-10-28 Thread Robert Collins
Robert Collins added the comment: Constructing test case objects directly is part of the protocol, and its needed for framework and extension authors. I've seen folk use runTest, but rarely enough that I think we could deprecate it. My argument is that while its supported we should be clear

[issue21081] missing vietnamese codec TCVN 5712:1993 in Python

2014-10-28 Thread Jean Christophe André
Jean Christophe André added the comment: I failed to find anything about TCVN 5712:1999 except the official announcement of it superseding TCVN 5712:1993 on TCVN's website. I also was not able to find any material using TCVN 5712:1999. My guess is that TCVN 6909:2001 having been released only

[issue21081] missing vietnamese codec TCVN 5712:1993 in Python

2014-10-28 Thread Jean Christophe André
Jean Christophe André added the comment: Marc-Andre, about “Please also provide a patch for the documentation”, could you please guide me on this? I can write some documentation, but I simply don't know in what form you expect it. Could you point me to some examples please? --

[issue22756] testAssertEqualSingleLine gives poor errors

2014-10-28 Thread Robert Collins
New submission from Robert Collins: found while backporting unittest fixes. The current test fails like so: == FAIL: testAssertEqualSingleLine (unittest2.test.test_case.Test_TestCase)

[issue22756] testAssertEqualSingleLine gives poor errors

2014-10-28 Thread Robert Collins
Robert Collins added the comment: There's comments in the test above about 'not testing ourself with ourselves' - but we're testing the rendering of an error case, so its entirely legitimate to use the same method's success path to check equality. --

  1   2   >