[issue28829] Tkinter messagebox cx_freeze Python 3.4

2016-11-29 Thread Parviz Karimli
New submission from Parviz Karimli: Tkinter messagebox doesn't work when trying to make an exectuable by cx_freeze in Python 3.4. It works fine with Python 3.4 alone. But after I create an exe of this file, the messagebox does not pop up. -- components: Tkinter files: messagebox cx_fre

[issue28821] generate_opcode_h.py crash when run with python2

2016-11-29 Thread STINNER Victor
STINNER Victor added the comment: > Whenever I did a fresh clone, the Tools/scripts/generate_opcode_h.py would be > called. Can you please test "make touch"? This command "fixes" timestamps. -- ___ Python tracker

[issue28822] Fix indices handling in PyUnicode_FindChar

2016-11-29 Thread STINNER Victor
STINNER Victor added the comment: Serhiy: I don't think that it's worth it to add a new function to _testcapi to test PyUnicode_FindChar. The implementation of the function seems simple. At least, I would prefer to only see a few unit tests, not 17 test for this simple function! I mean "chara

[issue28821] generate_opcode_h.py crash when run with python2

2016-11-29 Thread Florin Papa
Florin Papa added the comment: I tested and the script is no longer called if you do a "make touch" beforehand. -- ___ Python tracker ___

[issue28821] generate_opcode_h.py crash when run with python2

2016-11-29 Thread STINNER Victor
STINNER Victor added the comment: Florin Papa added the comment: > I tested and the script is no longer called if you do a "make touch" > beforehand. Oh ok, thanks for the test. It confirms that you don't need to run the script to build Python 3. It's a side effect of the Mercurial clone.

[issue28808] Make PyUnicode_CompareWithASCIIString() never failing

2016-11-29 Thread STINNER Victor
STINNER Victor added the comment: >> The function was already documented in Python 3.5, so please add a ".. >> versionchanged:: 3.6" to document the API chnange. > No, this behavior is not documented in any released Python version. The note > about the failure was added in issue28701. Ah wait,

[issue28822] Fix indices handling in PyUnicode_FindChar

2016-11-29 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I think it is nice to add tests for C API. Especially if there is no direct mapping between Python and C API ("character in str" don't call PyUnicode_FindChar()). Tests should cover all corner cases, otherwise we can miss bugs. Some C API can be not used in

[issue28808] Make PyUnicode_CompareWithASCIIString() never failing

2016-11-29 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Usually we don't add "versionchanged" for every fixed bug. -- ___ Python tracker ___ ___ Python-bu

[issue14845] list() != []

2016-11-29 Thread Mark Dickinson
Mark Dickinson added the comment: @wolma: I don't think PEP 479 is relevant here: we're not raising StopIteration inside a generator function, which is the situation that PEP 479 covers. The behaviour in 3.6 matches that originally reported: Python 3.6.0b3 (default, Nov 2 2016, 08:15:32) [GC

[issue28441] Change sys.executable to include executable suffix

2016-11-29 Thread Masayuki Yamamoto
Masayuki Yamamoto added the comment: I updated a patch to check the made path because previous patch has added suffix even to symbolic link. New patch works that If made path is invalid, revert to original. -- Added file: http://bugs.python.org/file45684/sys-executable-suffix-3.patch

[issue28441] Change sys.executable to include executable suffix

2016-11-29 Thread Masayuki Yamamoto
Changes by Masayuki Yamamoto : Removed file: http://bugs.python.org/file45684/sys-executable-suffix-3.patch ___ Python tracker ___ ___ Python-

[issue14845] list() != []

2016-11-29 Thread Wolfgang Maier
Wolfgang Maier added the comment: Mark, PEP479 is not fully in effect in 3.6 yet. 3.7 will raise the RuntimeError, but 3.6 still only gives a DeprecationWarning. -- ___ Python tracker _

[issue28441] Change sys.executable to include executable suffix

2016-11-29 Thread Masayuki Yamamoto
Changes by Masayuki Yamamoto : Added file: http://bugs.python.org/file45685/sys-executable-suffix-3.patch ___ Python tracker ___ ___ Python-bu

[issue28822] Fix indices handling in PyUnicode_FindChar

2016-11-29 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Would be nice to test corner cases: 1. Search UCS2 or UCS4 character with zero lower 8 bits: U+XX00. 2. Search UCS2 or UCS4 character with lower 8 bits that match high bits of string characters. For example search U+0404 in the string that consists of U+04X

[issue14845] list() != []

2016-11-29 Thread Wolfgang Maier
Wolfgang Maier added the comment: running with "-W always": >>> def five(x): ... for _ in range(5): ... yield x ... >>> F = five('x') >>> [next(F) for _ in range(10)] Traceback (most recent call last): File "", line 1, in File "", line 1, in StopIteration >>> list(next(F) f

[issue14845] list() != []

2016-11-29 Thread Mark Dickinson
Mark Dickinson added the comment: Wolfgang: ah, thanks, that makes more sense. I misunderstood; sorry for the noise. -- ___ Python tracker ___ __

[issue28733] Show how to use mock_open in modules other that __main__

2016-11-29 Thread Michael Foord
Michael Foord added the comment: open shouldn't always be patched in builtins, it's much better to patch it in the specific namespace it's being called from. So the doc patch here shouldn't be applied as is. -- ___ Python tracker

[issue28820] Typo in section 6 of the Python 3.4 documentation

2016-11-29 Thread Julien Palard
Julien Palard added the comment: Hi Martin, Removed the removing of the double new line at end of file. -- Added file: http://bugs.python.org/file45686/issue28820-2.diff ___ Python tracker

[issue28830] Typo in whatsnew entry for 3.6

2016-11-29 Thread Lele Gaifax
New submission from Lele Gaifax: At https://hg.python.org/cpython/rev/52038705827d#l1.18 there is an "as part" where probably a "are part" was meant. -- assignee: docs@python components: Documentation messages: 281977 nosy: docs@python, lelit priority: normal severity: normal status: op

[issue28830] Typo in whatsnew entry for 3.6

2016-11-29 Thread SilentGhost
SilentGhost added the comment: Reads just fine to me. -- nosy: +SilentGhost ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue28781] On Installation of 3.5 Python get error message

2016-11-29 Thread Mark Harris
Mark Harris added the comment: I installed python just for my user, attempted to run python just out of interest in the command line and again the same error appeared (missing python35.dll). I uninstalled that then reinstalled for all users, and again during installation the message missing p

[issue28830] Typo in whatsnew entry for 3.6

2016-11-29 Thread Lele Gaifax
Lele Gaifax added the comment: Ok, thank you. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue28830] Typo in whatsnew entry for 3.6

2016-11-29 Thread SilentGhost
Changes by SilentGhost : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bug

[issue28831] Python 3's shutil.make_archive is truncating filenames

2016-11-29 Thread Dan “locallycompact” Firth
New submission from Dan “locallycompact” Firth: I have made an example of this bug here: https://github.com/locallycompact/py3_make_archive_bug Using shutil.make_archive() in python2 works fine, where as in python3 one of the filenames has been truncated by five characters after unpacking the

[issue28831] Python 3's shutil.make_archive is truncating filenames

2016-11-29 Thread Decorater
Decorater added the comment: hmm This shows a bug in shutil.make_archive in python3. Run ./test.sh to run shutil.make_archive in both python2 and python3 on the wdir and then extract each of them for comparison. The file called '/usr/share/ca-certificates/mozilla/TÜBİTAK_UEKAE_Kök_Sertifika_Hiz

[issue28831] Python 3's shutil.make_archive is truncating filenames

2016-11-29 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This looks as a duplicate of issue24838. -- nosy: +serhiy.storchaka resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> tarfile.py: fix GNU and USTAR formats to properly handle paths with special characters that are en

[issue28831] Python 3's shutil.make_archive is truncating filenames

2016-11-29 Thread STINNER Victor
STINNER Victor added the comment: An entry in a TAR archive has a name. The name field has a size of 100 bytes. The field is padded with zero bytes. I don't know if it must or must not end with a zero byte. '/usr/share/ca-certificates/mozilla/TÜBİTAK_UEKAE_Kök_Sertifika_Hizmet_Sağlayıcısı_-_Sü

[issue28831] Python 3's shutil.make_archive is truncating filenames

2016-11-29 Thread STINNER Victor
STINNER Victor added the comment: Oh, Serhiy just closed the issue as a duplicate. -- ___ Python tracker ___ ___ Python-bugs-list mail

[issue24838] tarfile.py: fix GNU and USTAR formats to properly handle paths with special characters that are encoded with more than one byte each

2016-11-29 Thread STINNER Victor
STINNER Victor added the comment: FYI the first release including the fix 78ede2baa146 is Python 3.5.2. -- ___ Python tracker ___ ___

[issue28831] Python 3's shutil.make_archive is truncating filenames

2016-11-29 Thread STINNER Victor
STINNER Victor added the comment: FYI the first release including the fix 78ede2baa146 is Python 3.5.2. -- ___ Python tracker ___ ___

[issue13721] ssl.wrap_socket on a connected but failed connection succeeds and .peer_certificate gives AttributeError

2016-11-29 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: fyi, I just observed this in the field in 2.7.3 using requests 2.5.3 I don't think requests has a workaround for 2.7 from reading the release logs. -- nosy: +kristjan.jonsson ___ Python tracker

[issue28832] Reduce memset in dict creation

2016-11-29 Thread INADA Naoki
New submission from INADA Naoki: This patch delays initialization of dk_entries. Entries are initialized when first use (when dk_netries is incremented). Minimum dk_entries of 64bit arch is 5 * 8 * 3 = 120bytes. So it can save 4 cache lines! I'm running benchmark for now. -- assignee:

[issue25658] PyThread assumes pthread_key_t is an integer, which is against POSIX

2016-11-29 Thread Erik Bray
Erik Bray added the comment: To me, Masayuki's patch is an acceptable work-around for the time being. I don't *like* it because the fact remains that native TLS can work on these platforms and falling back on Python's slower implementation isn't necessary. That said, the previous patch attem

[issue28733] Show how to use mock_open in modules other that __main__

2016-11-29 Thread Michał Bultrowicz
Michał Bultrowicz added the comment: Then where it should be patched in? Can you give an example? From what I've checked patching only works in __main__ and builtins. -- ___ Python tracker

[issue28781] On Installation of 3.5 Python get error message

2016-11-29 Thread Steve Dower
Steve Dower added the comment: Could you attach those three sets of logs? I'm running low on ideas and need all the inspiration I can get :) -- ___ Python tracker ___ __

[issue28833] cross compilation of third-party extension modules

2016-11-29 Thread Xavier de Gaye
New submission from Xavier de Gaye: With this patch, cross compiling a third-party extension module is done with the command: XBUILD_PYTHON_DIR=/path/to/python/dir python setup.py build where XBUILD_PYTHON_DIR is the location of the directory of the cross-compiled python executable. It may

[issue28781] On Installation of 3.5 Python get error message

2016-11-29 Thread Mark Harris
Mark Harris added the comment: I've attached the logs, Thanks, Mark -- Added file: http://bugs.python.org/file45689/Python logs 3.zip ___ Python tracker ___ ___

[issue14845] list() != []

2016-11-29 Thread R. David Murray
R. David Murray added the comment: OK, then this issue can be closed unless someone thinks it is worth documenting the lack of PEP 479 in 3.5 and 3.6. -- ___ Python tracker ___

[issue28833] cross compilation of third-party extension modules

2016-11-29 Thread Matthias Klose
Matthias Klose added the comment: This approach will not work with a "multiarch" enabled environment, and break cross builds on Debian and Ubuntu. Afaics, the proposal assumes that the python executable for the target architecture is installed (which it is not for the multiarch cross-build la

[issue26273] Expose TCP_CONGESTION and TCP_USER_TIMEOUT to the socket module

2016-11-29 Thread Antoine Pitrou
Antoine Pitrou added the comment: +1 for this. The patch looks fine, and there's no need to add any documentation or tests. -- nosy: +pitrou stage: -> patch review versions: +Python 3.7 -Python 3.6 ___ Python tracker

[issue28833] cross compilation of third-party extension modules

2016-11-29 Thread Matthias Klose
Matthias Klose added the comment: > * The sysconfigdata file name was terminated with a dangling > underscore when 'multiarch' is not defined. That only solves part of the problem in that the kernel/os version gets encoded as well, e.g. gnukfreebsd9, gnukfreebsd10, which is nasty when the ver

[issue28663] Higher virtual memory usage on recent Linux versions

2016-11-29 Thread Antoine Pitrou
Antoine Pitrou added the comment: Your script works fine here (Ubuntu 16.04). Besides, if you're seeing differences between two Linux versions with the same Python version, it is quite unlikely to be a Python issue. -- nosy: +pitrou ___ Python track

[issue28822] Fix indices handling in PyUnicode_FindChar

2016-11-29 Thread Xiang Zhang
Xiang Zhang added the comment: Thanks for your reviews. :-) v2 updated the test codes. -- Added file: http://bugs.python.org/file45690/PyUnicode_FindChar-v2.patch ___ Python tracker ___

[issue26273] Expose TCP_CONGESTION and TCP_USER_TIMEOUT to the socket module

2016-11-29 Thread Roundup Robot
Roundup Robot added the comment: New changeset 674fb9644eaa by Victor Stinner in branch 'default': Add TCP_CONGESTION and TCP_USER_TIMEOUT https://hg.python.org/cpython/rev/674fb9644eaa -- nosy: +python-dev ___ Python tracker

[issue26273] Expose TCP_CONGESTION and TCP_USER_TIMEOUT to the socket module

2016-11-29 Thread STINNER Victor
STINNER Victor added the comment: @Ned Deily: Would you be ok to add these two constants to Python 3.6? I cannot image any regression if 674fb9644eaa is backported to Python 3.6. @Serhiy, Yury: Any opinion on the backport? -- nosy: +haypo, ned.deily, serhiy.storchaka _

[issue26273] Expose TCP_CONGESTION and TCP_USER_TIMEOUT to the socket module

2016-11-29 Thread STINNER Victor
STINNER Victor added the comment: Sorry, I missed this issue. TCP_USER_TIMEOUT is super useful! It helps a lot to detect when a server is down, especially when using keep alive: at kernel level (TCP keepalive) or application level (ex: RabbitMQ heart beat). Linux default timeout is more somet

[issue26273] Expose TCP_CONGESTION and TCP_USER_TIMEOUT to the socket module

2016-11-29 Thread Antoine Pitrou
Antoine Pitrou added the comment: Le 29/11/2016 à 16:59, STINNER Victor a écrit : > > TCP_USER_TIMEOUT is super useful! It is :-) -- ___ Python tracker ___

[issue28832] Reduce memset in dict creation

2016-11-29 Thread INADA Naoki
INADA Naoki added the comment: $ ./python-default -m perf compare_to default.json patched.json -G Slower (2): - xml_etree_iterparse: 328 ms +- 26 ms -> 350 ms +- 29 ms: 1.07x slower - fannkuch: 1.58 sec +- 0.09 sec -> 1.65 sec +- 0.09 sec: 1.05x slower Faster (9): - scimark_sor: 870 ms +- 59 ms

[issue28663] Higher virtual memory usage on recent Linux versions

2016-11-29 Thread STINNER Victor
STINNER Victor added the comment: It's very hard to estimate the water high-mark for memory because the memory includes different things: read-only memory, mmap() on files, read-only memory pages shared between multiple processes for libraries, etc. I suggest to use the tracemalloc module to h

[issue26273] Expose TCP_CONGESTION and TCP_USER_TIMEOUT to the socket module

2016-11-29 Thread Omar Sandoval
Omar Sandoval added the comment: Glad to see this finally get in :) -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

[issue28663] Higher virtual memory usage on recent Linux versions

2016-11-29 Thread STINNER Victor
STINNER Victor added the comment: rlimit_tracemalloc.txt: Oh, my idea was only to see the total, https://docs.python.org/dev/library/tracemalloc.html#tracemalloc.get_traced_memory Current and peak memory usage. -- ___ Python tracker

[issue28832] Reduce memset in dict creation

2016-11-29 Thread STINNER Victor
STINNER Victor added the comment: Can you please attached the two JSON files, compressed with gzip (.gz files). perf is also to read gzipped JSON. -- ___ Python tracker ___

[issue26273] Expose TCP_CONGESTION and TCP_USER_TIMEOUT to the socket module

2016-11-29 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Shouldn't we add something like versionadded/versionchanged or a mentioning in What's New? -- ___ Python tracker ___

[issue26273] Expose TCP_CONGESTION and TCP_USER_TIMEOUT to the socket module

2016-11-29 Thread Yury Selivanov
Yury Selivanov added the comment: Would be nice to have in 3.6. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue28663] Higher virtual memory usage on recent Linux versions

2016-11-29 Thread ProgVal
ProgVal added the comment: (4350362, 4376669) -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue28832] Reduce memset in dict creation

2016-11-29 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I think that clearing 120 bytes at a time is faster than clear it later entry-by-entry. Your patch removes some asserts, this looks not good. Could your provide microbenchmarks that show the largest speed up and the largest slow down? So we would see what t

[issue28663] Higher virtual memory usage on recent Linux versions

2016-11-29 Thread STINNER Victor
STINNER Victor added the comment: ProgVal: "(4350362, 4376669)" is it the same result on Python 3.4 and Python 3.5? I don't understand your comment :-/ Can you please elaborate? -- ___ Python tracker _

[issue26273] Expose TCP_CONGESTION and TCP_USER_TIMEOUT to the socket module

2016-11-29 Thread Ned Deily
Ned Deily added the comment: OK for 3.6.0rc1 (before it times out) -- stage: patch review -> commit review versions: +Python 3.6 ___ Python tracker ___ __

[issue28822] Fix indices handling in PyUnicode_FindChar

2016-11-29 Thread STINNER Victor
STINNER Victor added the comment: PyUnicode_FindChar-v2.patch LGTM with a minor comment on the review, but I would prefer that Serhiy also reviews it ;-) Remaining question: what is the behaviour for direction=0, direction=100 or direction=-2? Maybe we can add a few unit tests for strange valu

[issue28832] Reduce memset in dict creation

2016-11-29 Thread STINNER Victor
STINNER Victor added the comment: You might experiment Python_Calloc(). I'm not sure that this allocator is well optimized (especially the pymalloc allocator) :-/ Last time I played with it, it was slower, especially for allocations smaller than 1 MB. -- _

[issue26273] Expose TCP_CONGESTION and TCP_USER_TIMEOUT to the socket module

2016-11-29 Thread Roundup Robot
Roundup Robot added the comment: New changeset 6d69da76be6a by Victor Stinner in branch '3.6': Add TCP_CONGESTION and TCP_USER_TIMEOUT https://hg.python.org/cpython/rev/6d69da76be6a -- ___ Python tracker __

[issue26273] Expose TCP_CONGESTION and TCP_USER_TIMEOUT to the socket module

2016-11-29 Thread STINNER Victor
STINNER Victor added the comment: Serhiy Storchaka: "Shouldn't we add something like versionadded/versionchanged or a mentioning in What's New?" Oh right, we did that for other new constants added to Python 3.6 like SO_DOMAIN. Attached socket_doc.patch documents the additional of the two new

[issue28791] update sqlite to 3.15.2

2016-11-29 Thread Mariatta Wijaya
Changes by Mariatta Wijaya : -- components: +Installation, Windows, macOS nosy: +ned.deily, paul.moore, ronaldoussoren, steve.dower, tim.golden, zach.ware ___ Python tracker ___

[issue28822] Fix indices handling in PyUnicode_FindChar

2016-11-29 Thread Xiang Zhang
Xiang Zhang added the comment: > Remaining question: what is the behaviour for direction=0, direction=100 or > direction=-2? Maybe we can add a few unit tests for strange values of > direction? (Not sure if it's worth it.) It's not documented so I also doubt it. Expect Serhiy's comment. -

[issue28208] update sqlite to 3.14.2

2016-11-29 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: sqlite 3.15.2 was just released. I can prepare a patch if that's what we want. -- ___ Python tracker ___ __

[issue28790] Error when using Generic and __slots__

2016-11-29 Thread Guido van Rossum
Guido van Rossum added the comment: OK, having thought about it some more, given that you don't seem to object too strenuously, I'm going to merge the fix. May it be the last one! -- ___ Python tracker ___

[issue25658] PyThread assumes pthread_key_t is an integer, which is against POSIX

2016-11-29 Thread Ed Schouten
Ed Schouten added the comment: Looks good to me! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue28790] Error when using Generic and __slots__

2016-11-29 Thread Guido van Rossum
Changes by Guido van Rossum : -- resolution: -> fixed stage: -> commit review status: open -> closed type: -> behavior ___ Python tracker ___ _

[issue28790] Error when using Generic and __slots__

2016-11-29 Thread Roundup Robot
Roundup Robot added the comment: New changeset 0bbd29405c9d by Guido van Rossum in branch '3.5': Issue #28790: Fix error when using Generic and __slots__ (Ivan L) https://hg.python.org/cpython/rev/0bbd29405c9d New changeset 2dd08b5b5ee6 by Guido van Rossum in branch '3.6': Issue #28790: Fix erro

[issue28781] On Installation of 3.5 Python get error message

2016-11-29 Thread Steve Dower
Steve Dower added the comment: That's only the most recent set, and all it shows is that the per-user install didn't help. Do you have the earlier sets of install logs for the per-user install and uninstall? I'd like to see why those didn't have the effect I expected. --

[issue28663] Higher virtual memory usage on recent Linux versions

2016-11-29 Thread ProgVal
ProgVal added the comment: Sorry. That's the result of |||get_traced_memory|on Python 3.5 and Linux 4.7. -- ___ Python tracker ___ ___

[issue28754] Argument Clinic for bisect.bisect_left

2016-11-29 Thread Julien Palard
Julien Palard added the comment: I tried myself at Argument Clinic custom converters to create the "optional ssize_t converter" and it works, so as advised by Raymond, pydoc now shows None, and the C implementation now allows for both default values None and -1, as the custom converter returns

[issue24469] Py2.x int free list can grow without bounds

2016-11-29 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ _

[issue24469] Py2.x int free list can grow without bounds

2016-11-29 Thread Roundup Robot
Roundup Robot added the comment: New changeset fd0842f34602 by Serhiy Storchaka in branch '2.7': Issue #24469: Fixed memory leak caused by int subclasses without overridden https://hg.python.org/cpython/rev/fd0842f34602 -- nosy: +python-dev ___ Python

[issue28754] Argument Clinic for bisect.bisect_left

2016-11-29 Thread Stefan Krah
Stefan Krah added the comment: Julien, the syntax converters look pretty clever. Do we need AC everywhere though? I wonder (once again) if this is really more readable than the existing code. -- nosy: +skrah ___ Python tracker

[issue11145] '%o' % user-defined instance

2016-11-29 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I read the code multiple times but still don't see any issues with the last path. If anybody know issues with it, please point on them. Otherwise I'll commit the patch. -- assignee: -> serhiy.storchaka ___ Python

[issue28208] update sqlite to 3.14.2

2016-11-29 Thread Big Stone
Big Stone added the comment: As far as I test, the novelties from 0.15.2 don't break any API (just nice SQL-syntax sugar), and correct some old 3.8.0 bugs. and ".2" is the same level of stabilisation as current "0.14.2" -- ___ Python tracker

[issue25658] PyThread assumes pthread_key_t is an integer, which is against POSIX

2016-11-29 Thread Masayuki Yamamoto
Masayuki Yamamoto added the comment: Elik, Ed, I have overlooked tracemalloc module raises deadlock if apply the patch. I found out a source comment on Modules/_tracemalloc.c:161 /* If your OS does not provide native thread local storage, you can implement it manually using a lock. Functions

[issue21818] cookielib documentation references Cookie module, not cookielib.Cookie class

2016-11-29 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thus the only way to fix links is to specify full names? Does docs_class_links-2.7.patch look good to you? -- stage: -> patch review ___ Python tracker

[issue22039] PyObject_SetAttr doesn't mention value = NULL

2016-11-29 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +martin.panter ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue20612] cElementTree has problems with StringIO object containing unicode content

2016-11-29 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- status: open -> pending ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:

[issue28790] Error when using Generic and __slots__

2016-11-29 Thread Ned Deily
Changes by Ned Deily : -- stage: commit review -> resolved ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue28791] update sqlite to 3.15.2

2016-11-29 Thread Ned Deily
Ned Deily added the comment: Yes, we're not going to change library versions for the 3.6.0 installers at this point. Upgrade for 3.7.0 is fine and possibly for a 3.6.x maintenance release if warranted. I suggest holding off on any patches until we're closer to those releases as there may be

[issue28834] Type checking in set comparisons.

2016-11-29 Thread nyoshimizu
New submission from nyoshimizu: The non-operator versions of set comparisons (intersection(), union(), etc.) exhibit inconsistent type checking. They only check the first input before deciding whether or not to raise a TypeError exception. Therefore, it's possible to pass a set first, then ot

[issue24015] timeit should start with 1 loop, not 10

2016-11-29 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: That was implemented in issue28240. $ time ./python -m timeit "import time; time.sleep(1.0)" 1 loop, best of 5: 1 sec per loop real0m6.176s user0m0.160s sys 0m0.004s -- resolution: -> duplicate stage: -> resolved status: open -> closed

[issue28754] Argument Clinic for bisect.bisect_left

2016-11-29 Thread STINNER Victor
STINNER Victor added the comment: Stefan Krah added the comment: > Julien, the syntax converters look pretty clever. Do we need AC > everywhere though? Please see previous comments for advantages of AC (signature object, docstring, speed). -- ___ Py

[issue28834] Type checking in set comparisons.

2016-11-29 Thread SilentGhost
SilentGhost added the comment: You seem to be misunderstanding how the intersection/union/etc are supposed to be used: >>> ab = {'a', 'b'} >>> ab.intersection('bc') {'b'} Using set.intersection (where set is a built-in class, rather than an instance thereof) requires the first argument to be

[issue28834] Type checking in set comparisons.

2016-11-29 Thread nyoshimizu
nyoshimizu added the comment: I see. Sorry & thanks! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue28833] cross compilation of third-party extension modules

2016-11-29 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- nosy: +barry ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue28754] Argument Clinic for bisect.bisect_left

2016-11-29 Thread Stefan Krah
Stefan Krah added the comment: Signature and docstring can be done manually with very little effort. Currently METH_FASTCALL is AC only, but I hope that will change. -- ___ Python tracker __

[issue26861] shutil.copyfile() doesn't close the opened files

2016-11-29 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: As I see, shutil.copyfile() uses the "with" statements and closes files just after copying. -- status: open -> pending ___ Python tracker ___

[issue28820] Typo in section 6 of the Python 3.4 documentation

2016-11-29 Thread Josh Rosenberg
Josh Rosenberg added the comment: Just OOC, what version of English are the docs supposed to use? In American English, noun vs. verb doesn't matter, it's always "practice" (there is no such word as "practise"). In this case it doesn't matter (it's a noun, and everyone agrees on the spelling),

[issue28833] cross compilation of third-party extension modules

2016-11-29 Thread Xavier de Gaye
Xavier de Gaye added the comment: > This approach will not work with a "multiarch" enabled environment, and break > cross builds on Debian and Ubuntu. No, the patch does not break cross builds on Debian and Ubuntu, unless you can demonstrate it does. > Afaics, the proposal assumes that the py

[issue28820] Typo in section 6 of the Python 3.4 documentation

2016-11-29 Thread R. David Murray
R. David Murray added the comment: We at least used to point to Apple's style guide. I'm not sure where we point at the moment (it's in the documentation somewhere :). But yes, it's pretty much formal American English, though I'm sure there are places where other spelling has crept in.

[issue28833] cross compilation of third-party extension modules

2016-11-29 Thread Xavier de Gaye
Changes by Xavier de Gaye : -- nosy: +Chi Hsuan Yen ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue27142] Default int value with xmlrpclib / xmlrpc.client

2016-11-29 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This format doesn't conform the XML-RPC specification. Adding the support of it is a new feature. The question is whether there is a need of this feature. Are there some common XML-RPC servers or clients that produce such format? -- type: behavior ->

[issue25750] tp_descr_get(self, obj, type) is called without owning a reference to "self"

2016-11-29 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- assignee: -> serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue28795] Misleading stating, that SIGINT handler is installed by default

2016-11-29 Thread Julien Palard
Julien Palard added the comment: Proposed as patches but english is not my native language so please review carefully. -- keywords: +patch Added file: http://bugs.python.org/file45695/issue28795-tip.diff ___ Python tracker

[issue28795] Misleading stating, that SIGINT handler is installed by default

2016-11-29 Thread Julien Palard
Changes by Julien Palard : Added file: http://bugs.python.org/file45696/issue28795-2.7.diff ___ Python tracker ___ ___ Python-bugs-list mailin

[issue24339] iso6937 encoding missing

2016-11-29 Thread John Helour
John Helour added the comment: > Please also check whether it's not possible to reuse the charmap codec > functions we have I've found nothing useful, maybe you (as the author) can find something really useful which can improve code readability or increase the performance. Please look at the

  1   2   >