[issue23718] strptime() can produce invalid date with negative year day

2016-03-12 Thread Roundup Robot
Roundup Robot added the comment: New changeset f03da87a79fa by Serhiy Storchaka in branch '3.5': Issue #23718: Fixed parsing time in week 0 before Jan 1. Original patch by https://hg.python.org/cpython/rev/f03da87a79fa New changeset 4fb167ec3108 by Serhiy Storchaka in branch '2.7': Issue #23718

[issue23718] strptime() can produce invalid date with negative year day

2016-03-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you Tamás for your contribution. -- resolution: -> fixed stage: commit review -> resolved status: open -> closed ___ Python tracker ___

[issue26226] Various test suite failures on Windows

2016-03-12 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue26205] Inconsistency concerning nested scopes

2016-03-12 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti type: -> enhancement ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

[issue26512] Vocabulary: Using "integral" in library/stdtypes.html

2016-03-12 Thread Julien
Julien added the comment: Hi Martin, awesome work you've done here. I was meditating those past days about the subject and came to a similar yet not that good conclusion that the table should have the same definitions than those from [library/math.html](https://docs.python.org/3.5/library/math

[issue25687] Error during test case and tearDown

2016-03-12 Thread HyeSoo Park
HyeSoo Park added the comment: I added 'additional' and (thus increasing the total number of error counts.) to 'teardown' explanation of the document to make it more clear. -- keywords: +patch nosy: +HyeSoo Park Added file: http://bugs.python.org/file42145/issue25687.diff _

[issue26512] Vocabulary: Using "integral" in library/stdtypes.html

2016-03-12 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +jyasskin ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue26250] no document for sqlite3.Cursor.connection

2016-03-12 Thread Varpu Rantala
Varpu Rantala added the comment: The sentencing was complicated. I changed the formulation and added an example of connection. -- nosy: +Varpu Rantala Added file: http://bugs.python.org/file42146/issue26250.diff ___ Python tracker

[issue18859] README.valgrind should mention --with-valgrind

2016-03-12 Thread Elena Oat
Elena Oat added the comment: I've combined the patch submitted by Sowmya and also added there clarifications from points 1, 2 mentioned by Martin Mokrejs. -- nosy: +Elena.Oat ___ Python tracker ___

[issue18859] README.valgrind should mention --with-valgrind

2016-03-12 Thread Elena Oat
Changes by Elena Oat : Added file: http://bugs.python.org/file42147/issue18859.diff ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue26544] platform.libc_ver() returns incorrect version number

2016-03-12 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: True. At the time the code was written, this was not an issue :-) Is the libc version information documented somewhere ? If so, we could probably add a better parser for it. -- ___ Python tracker

[issue26544] platform.libc_ver() returns incorrect version number

2016-03-12 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Adding other Python versions as well, since this is a bug. -- versions: +Python 2.7, Python 3.4, Python 3.6 ___ Python tracker ___ _

[issue26176] EmailMessage example doesn't work

2016-03-12 Thread HyeSoo Park
HyeSoo Park added the comment: Could you please specify which example of the Provisional API among 2 examples of the documentation and how does it not work? Thank you -- nosy: +flyjwayur ___ Python tracker ___

[issue25638] Verify the etree_parse and etree_iterparse benchmarks are working appropriately

2016-03-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I am not able to find the cause of the slowdown. I think this issue can be closed now. The etree_parse and etree_iterparse benchmarks are working appropriately and showing real regression in CPython 3.x. The cause of the regression is not known. --

[issue26014] Guide users to the newer package install instructions

2016-03-12 Thread Susan Sun
Susan Sun added the comment: Below two issues are fixed. * add See Also links to the modern docs from the legacy docs * append the (Legacy) suffix in the 2.x docs -- keywords: +patch nosy: +Susan Sun, ezio.melotti Added file: http://bugs.python.org/file42148/issue26014.diff __

[issue26483] docs unclear on difference between str.isdigit() and str.isdecimal()

2016-03-12 Thread Anna Koroliuk
Anna Koroliuk added the comment: Hi, all! At Helsinki Python sprint I with the kind help of Ezio found two things. 1) This code gives results which are attached in the file. I will just now show some interesting cases where isdigit() and isdecimal() give different results. for c in map(chr,

[issue26546] Provide translated french translation on docs.python.org

2016-03-12 Thread Julien
New submission from Julien: Hi, The [french translation of the Python documentation](https://github.com/afpy/python_doc_fr) just hit a 21% coverage in terms of pageviews (According to statistics [nicely provided by EWDurbin](https://github.com/AFPy/python_doc_fr/issues/32#issuecomment-1950713

[issue26226] Various test suite failures on Windows

2016-03-12 Thread Ezio Melotti
Ezio Melotti added the comment: > I'm surprised by the test_codecencodings_iso2022 failures. Example: == FAIL: test_incrementaldecoder (test.test_codecencodings_iso2022.Test_ISO2022_KR) --

[issue25687] Error during test case and tearDown

2016-03-12 Thread Ezio Melotti
Changes by Ezio Melotti : -- assignee: -> ezio.melotti stage: needs patch -> patch review ___ Python tracker ___ ___ Python-bugs-list

[issue26499] http.client.IncompleteRead from HTTPResponse read after part reading file

2016-03-12 Thread SilentGhost
SilentGhost added the comment: OK, here is the patch including the tests that seem to exercise the behaviour. -- Added file: http://bugs.python.org/file42151/issue26499_4.diff ___ Python tracker ___

[issue26513] platform.win32_ver() broken in 2.7.11

2016-03-12 Thread Steve Dower
Changes by Steve Dower : -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-li

[issue26513] platform.win32_ver() broken in 2.7.11

2016-03-12 Thread Roundup Robot
Roundup Robot added the comment: New changeset 5564cf3ba523 by Steve Dower in branch '3.5': Issue #26513: Fixes platform module detection of Windows Server https://hg.python.org/cpython/rev/5564cf3ba523 New changeset 9db5846f126d by Steve Dower in branch '2.7': Issue #26513: Fixes platform modul

[issue19450] Bug in sqlite in Windows binaries

2016-03-12 Thread Steve Dower
Steve Dower added the comment: Assigning to Benjamin to make the call for 2.7. Either close or assign it back if you want the update. -- assignee: steve.dower -> benjamin.peterson versions: -Python 3.5, Python 3.6 ___ Python tracker

[issue23606] ctypes.util.find_library("c") no longer makes sense

2016-03-12 Thread Roundup Robot
Roundup Robot added the comment: New changeset f9dc71b566fb by Steve Dower in branch '3.5': Issue #23606: Adds note to ctypes documentation regarding cdll.msvcrt. https://hg.python.org/cpython/rev/f9dc71b566fb New changeset 6d84fe4d8cb0 by Steve Dower in branch 'default': Issue #23606: Adds note

[issue23606] ctypes.util.find_library("c") no longer makes sense

2016-03-12 Thread Steve Dower
Steve Dower added the comment: That's a bit too much of a tangent for me to note in-place in the docs, but it'd be good content for a "Best practices" section (I seem to recall we had one somewhere, that basically started with "avoid ctypes if possible"...) Given we've heard no feedback about

[issue26079] Build with Visual Studio 2015 using PlatformToolset=v120

2016-03-12 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7617f5b3f263 by Steve Dower in branch '3.5': Issue #26079: Fixing the build output folder for tix-8.4.3.6. Patch by Bjoern Thiel. https://hg.python.org/cpython/rev/7617f5b3f263 New changeset f426178c9d6c by Steve Dower in branch 'default': Issue #2

[issue26079] Build with Visual Studio 2015 using PlatformToolset=v120

2016-03-12 Thread Steve Dower
Steve Dower added the comment: Python 2.7 has a different section in its tcltk.props file and doesn't need this fix (yet). Thanks for the patch, Bjoern! -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker

[issue25638] Verify the etree_parse and etree_iterparse benchmarks are working appropriately

2016-03-12 Thread Brett Cannon
Changes by Brett Cannon : -- resolution: -> not a bug status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue26483] docs unclear on difference between str.isdigit() and str.isdecimal()

2016-03-12 Thread Julien
Julien added the comment: To dig further, the DIGIT_MASK and DECIMAL_MASK used in `unicodeobject.c` are from `unicodectype.c` and they match values from `unicodetype_db.h` witch is generated by `Tools/unicode/makeunicodedata.py` which built those masks this way: # decimal digit, integer d

[issue26176] EmailMessage example doesn't work

2016-03-12 Thread Julien
Julien added the comment: Is this your bug: Traceback (most recent call last): File "/tmp/email_example.py", line 9, in with open(textfile) as fp: NameError: name 'textfile' is not defined ? If not, can you please provide us the full traceback ? -- nosy: +sizeof __

[issue26547] Undocumented use of the term dictproxy in vars() documentation

2016-03-12 Thread Julien
New submission from Julien: I spotted un undocumented term here : https://docs.python.org/3.5/library/functions.html#vars in: "Objects such as modules and instances have an updateable __dict__ attribute; however, other objects may have write restrictions on their __dict__ attributes (for exam

[issue23606] ctypes.util.find_library("c") no longer makes sense

2016-03-12 Thread Eryk Sun
Eryk Sun added the comment: I occasionally come across code snippets on Stack Overflow, and projects such as win-unicode-console (IIRC), that use ctypes to work with C stdio FILE streams (sometimes for dubious reasons, such as a DLL API that uses FILE streams). Maybe the _ctypes extension modu

[issue26548] Probably missing word in a sentence in the doc of bitwise operations on integer types

2016-03-12 Thread Julien
New submission from Julien: In https://docs.python.org/3.5/library/stdtypes.html#bitwise-operations-on-integer-types the sentence "this assumes a sufficiently large number of bits that no overflow occurs during the operation" looks wrong to me, so I asked on #python and got from @benzrf: "th

[issue26549] co_stacksize is calculated from unoptimized code

2016-03-12 Thread Antti Haapala
New submission from Antti Haapala: When answering a question on StackOverflow, I noticed that a function that only loads a constant tuple to a local variable still has a large `co_stacksize` as if it was built with BUILD_TUPLE. e.g. >>> def foo(): ... a = (1,2,3,4,5,6,7,8,9,10)

[issue19450] Bug in sqlite in Windows binaries

2016-03-12 Thread Mark Lawrence
Changes by Mark Lawrence : -- nosy: -BreamoreBoy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue747320] rfc2822 formatdate functionality duplication

2016-03-12 Thread Berker Peksag
Berker Peksag added the comment: -now = time.time() -year, month, day, hh, mm, ss, x, y, z = time.localtime(now) -s = "%02d/%3s/%04d %02d:%02d:%02d" % ( -day, self.monthname[month], year, hh, mm, ss) +s = time.strftime("%d/%b/%Y %H:%M:%S", time.loca

[issue26547] Undocumented use of the term dictproxy in vars() documentation

2016-03-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I would add a space between "dict" and "proxy". -- nosy: +martin.panter, serhiy.storchaka ___ Python tracker ___ _

[issue26550] documentation minor issue : "Step back: WSGI" section from "HOWTO Use Python in the web"

2016-03-12 Thread Alejandro Soini
New submission from Alejandro Soini: Bad article usage in the following sentence from the WSGI section on HOWTO Use Python in the web (https://docs.python.org/2/howto/webservers.html#wsgi) : "Authentication is another a problem easily solved using existing middleware." suggested change: "Auth

[issue23214] BufferedReader.read1(size) signature incompatible with BufferedIOBase.read1(size=-1)

2016-03-12 Thread Martin Panter
Martin Panter added the comment: Looking at this again, I think a less intrusive way forward would be to: * Document that in 3.6, the required signature is now BufferedIOBase.read1(size). An implementation no longer has to provide a default size, and no longer has to accept negative sizes. *

[issue26499] http.client.IncompleteRead from HTTPResponse read after part reading file

2016-03-12 Thread Martin Panter
Martin Panter added the comment: Thanks Silent Ghost, this patch looks pretty good. I did leave a couple more comments. Also I just realized that HTTPResponse.readline() and read1() are not really documented. The BufferedIOBase support was meant to be added in 3.5, although readline() was sup

[issue26314] interned strings are stored in a dict, a set would use less memory

2016-03-12 Thread Raymond Hettinger
Raymond Hettinger added the comment: I agree with Serhiy that this should not be done. IIRC, there were some discussions on python-dev or python-ideas about using sets for interning and the judgment was the dicts are conceptually the right type and that using sets would be hack. The other t

[issue26548] Probably missing word in a sentence in the doc of bitwise operations on integer types

2016-03-12 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: docs@python -> rhettinger nosy: +rhettinger priority: normal -> low ___ Python tracker ___ ___

[issue26548] Probably missing word in a sentence in the doc of bitwise operations on integer types

2016-03-12 Thread Roundup Robot
Roundup Robot added the comment: New changeset b9256d5f1ab4 by Raymond Hettinger in branch '3.5': Issue #26548: Minor fix to awkward wording in docs https://hg.python.org/cpython/rev/b9256d5f1ab4 -- nosy: +python-dev ___ Python tracker

[issue26548] Probably missing word in a sentence in the doc of bitwise operations on integer types

2016-03-12 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue26314] interned strings are stored in a dict, a set would use less memory

2016-03-12 Thread Gregory P. Smith
Gregory P. Smith added the comment: The space for the strings is a fixed cost, the structure used to store them for efficient lookup is the only overhead that can be trimmed and is all in one contiguous allocation. regardless, i agree, this isn't a large savings. priority low, feel free to dr

[issue26512] Vocabulary: Using "integral" in library/stdtypes.html

2016-03-12 Thread Raymond Hettinger
Raymond Hettinger added the comment: I don't think taking the table out makes the docs better. It just removes a source of information just because the OP stumbled on the word "integral" which has both a standard (albeit erudite) meaning in Engligh and a precise meaning in the context of PEP-

[issue26511] Add link to id() built-in in comparison operator documentation for "is"

2016-03-12 Thread Raymond Hettinger
Raymond Hettinger added the comment: I agree with the OP that is would be useful to link to id(). I also concur with Terry that integer caching is to remain an undocumented implementation specific detail (just an optimization). Also, Martin is correct that the proposed wording doesn't read w

[issue26535] Minor typo in the docs for struct.unpack

2016-03-12 Thread Raymond Hettinger
Raymond Hettinger added the comment: The proposed wording looks fine. -- nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list

[issue26511] Add link to id() built-in in comparison operator documentation for "is"

2016-03-12 Thread Ezio Melotti
Changes by Ezio Melotti : -- keywords: +easy nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue26314] interned strings are stored in a dict, a set would use less memory

2016-03-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Since interned strings table can only grow and contains exact strings, other data structure may be more appropriate (for example Modules/hashtable.c). But for now status quo is good to me. -- ___ Python tracker <

[issue26535] Minor typo in the docs for struct.unpack

2016-03-12 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue26545] os.walk is limited by python's recursion limit

2016-03-12 Thread Raymond Hettinger
Raymond Hettinger added the comment: I think the code should be left as-is (we've used some variation of recursion for walking a very long time with no reported real-world problems). Perhaps a documentation note can be added to the effect that the there is a recursion limit and that it can be

[issue26535] Minor typo in the docs for struct.unpack

2016-03-12 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- stage: patch review -> needs patch ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue26525] Documentation of ord(c) easy to misread

2016-03-12 Thread Raymond Hettinger
Raymond Hettinger added the comment: I concur that the Euro sign would be best (more recognizable and more likely to be renderable in a given font). -- nosy: +rhettinger ___ Python tracker

[issue26495] super() does not work in nested functions, genexps, listcomps, and gives misleading exceptions

2016-03-12 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- Removed message: http://bugs.python.org/msg261264 ___ Python tracker ___ ___ Python-bugs-list mailin

[issue25687] Error during test case and tearDown

2016-03-12 Thread Ezio Melotti
Ezio Melotti added the comment: Fixed, thanks for the report and the patch! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue25687] Error during test case and tearDown

2016-03-12 Thread Roundup Robot
Roundup Robot added the comment: New changeset cecd39887faa by Ezio Melotti in branch '3.5': #25687: clarify that errors in tearDown increase the total number of reported errors. Initial patch by HyeSoo Park. https://hg.python.org/cpython/rev/cecd39887faa New changeset d5f5a6f514f2 by Ezio Mel

[issue23214] BufferedReader.read1(size) signature incompatible with BufferedIOBase.read1(size=-1)

2016-03-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Shouldn't read1(-1) be the same as read1(sys.maxsize)? I.e. read from a buffer without limit. -- nosy: +benjamin.peterson, pitrou, serhiy.storchaka, stutzbach ___ Python tracker

[issue26547] Undocumented use of the term dictproxy in vars() documentation

2016-03-12 Thread Martin Panter
Martin Panter added the comment: In Python 2, the class was called “dictproxy”, the repr() used “dict_proxy” with an underscore, and it is exposed as types.DictProxyType. So I guess that is where the term comes from. In Python 3.3, Issue 14386 renamed the class and repr() to “mappingproxy”, an