[issue27647] Update Windows build to Tcl/Tk 8.6.6

2016-11-29 Thread Benjamin Peterson
Benjamin Peterson added the comment: Doesn't seem terribly urgent, so maybe not 2.7.13. -- ___ Python tracker ___ ___ Python-bugs-list

[issue5322] Python 2.6 object.__new__ argument calling autodetection faulty

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

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

2016-11-29 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue28754] Argument Clinic for bisect.bisect_left

2016-11-29 Thread Raymond Hettinger
Raymond Hettinger added the comment: > If adding proper support for hi=None, maybe lo=None should > also be supported. That would be gratuitous. Lo already has a reasonable, useful, and self-explanatory value. This would add more complexity to the signature while reducing clarity. I really

[issue28836] Throw concurrent.futures.TimeoutError instead of concurrent.futures.__base.TimeoutError

2016-11-29 Thread Decorater
Decorater added the comment: Wait actually BotErrors.CommandTimeoutError cubaclasses concurrent.futures.TimeoutError -- ___ Python tracker ___ __

[issue28836] Throw concurrent.futures.TimeoutError instead of concurrent.futures.__base.TimeoutError

2016-11-29 Thread Decorater
Decorater added the comment: oh wait nvm -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue28836] Throw concurrent.futures.TimeoutError instead of concurrent.futures.__base.TimeoutError

2016-11-29 Thread Decorater
Decorater added the comment: Here is my corouytine and the traceback on it to verify my issue too: Task exception was never retrieved future: exception=TimeoutError()> Traceback (most recent call last): File "asyncio\tasks.py", line 239, in _step File "E:\Users\Elsword\Desktop\DecoraterBo

[issue28836] Throw concurrent.futures.TimeoutError instead of concurrent.futures.__base.TimeoutError

2016-11-29 Thread Decorater
Decorater added the comment: I handle concurrent.futures.TimeoutError on my coroutine that is fired with create_task yet it sitll don't handle it though... so it still is a issue -- ___ Python tracker

[issue28836] Throw concurrent.futures.TimeoutError instead of concurrent.futures.__base.TimeoutError

2016-11-29 Thread Guido van Rossum
Guido van Rossum added the comment: concurrent.futures.TimeoutError and concurrent.futures.__base.TimeoutError are the same class. So there is nothing to do here. -- resolution: -> rejected status: open -> closed ___ Python tracker

[issue28836] Throw concurrent.futures.TimeoutError instead of concurrent.futures.__base.TimeoutError

2016-11-29 Thread Decorater
New submission from Decorater: So, concurrent.futures.TimeoutError subclasses concurrent.futures.__base.TimeoutError. Why not have asyncio throw that instead of the __base class for Timeout Error? There is a huge issue with this for starters for those know knows this they cannot handle it eas

[issue28835] Change in behavior when overriding warnings.showwarning and with catch_warnings(record=True)

2016-11-29 Thread Thomas Robitaille
New submission from Thomas Robitaille: In Python 3.5, the following code: import warnings def deal_with_warning(*args, **kwargs): print("warning emitted") with warnings.catch_warnings(record=True): warnings.showwarning = deal_with_warning warnings.warn("This

[issue26363] __builtins__ propagation is misleading described in exec and eval documentation

2016-11-29 Thread Xavier Combelle
Xavier Combelle added the comment: It is not the dictionary of builtin module, which is inserted in , but the current __builtin__ global which happen to be normally the dictionnary of builtin. Hence in the following code, the builtins propagation works has expected. >>> eval("""eval('spam("he

[issue20215] socketserver.TCPServer can not listen IPv6 address

2016-11-29 Thread Jan Pokorný
Changes by Jan Pokorný : -- nosy: +jpokorny ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue28427] WeakValueDictionary next bug (with multithreading)

2016-11-29 Thread Antoine Pitrou
Antoine Pitrou added the comment: (or we bite the bullet and add a C helper function for the atomic test-and-delete thing) -- ___ Python tracker ___

[issue28427] WeakValueDictionary next bug (with multithreading)

2016-11-29 Thread Antoine Pitrou
Antoine Pitrou added the comment: One possibility would be to always delay removals (always put them in _pending_removals). We would then have to enforce removals from time to time, but synchronously. -- nosy: +pitrou, tim.peters ___ Python tracker

[issue15533] subprocess.Popen(cwd) documentation

2016-11-29 Thread Jan Lachnitt
Jan Lachnitt added the comment: Thank Wolfgang Maier for reminding this issue and providing various details and observations. Having taken a look at my old comments (and at others' comments, too), I feel that the cwd issue deserves a clearer description. Let's use the following simple C progra

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

2016-11-29 Thread Josh Rosenberg
Josh Rosenberg added the comment: Agreed. 2.7 source is definitely using with: https://hg.python.org/cpython/file/2.7/Lib/shutil.py#l82 -- nosy: +josh.r status: pending -> open ___ Python tracker _

[issue15533] subprocess.Popen(cwd) documentation

2016-11-29 Thread Wolfgang Maier
Wolfgang Maier added the comment: Just found issue15451, which reports a similar inconsistency between Windows and POSIX for 'PATH' provided through the Popen env parameter as for cwd. It seems that, on POSIX-platforms, the PATH environment variable passed through env affects the executable lo

[issue28754] Argument Clinic for bisect.bisect_left

2016-11-29 Thread Martin Panter
Martin Panter added the comment: If adding proper support for hi=None, maybe lo=None should also be supported. Also, I would think the main Doc/library/bisect.rst documentation needs updating, and a test and What’s New entry added. -- ___ Python tra

[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

[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

[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

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

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

[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

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

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

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

[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

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

[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

[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

[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

[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

[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

[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

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

[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

[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

[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

[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

[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

[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

[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

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

[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

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

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

[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

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

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

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

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

[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

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

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

[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

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

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

[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 ProgVal
ProgVal added the comment: (4350362, 4376669) -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[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

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

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

[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

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

[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

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

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

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

[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

[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

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

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

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

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

[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

[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

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

[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

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

[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: Oh, Serhiy just closed the issue as a duplicate. -- ___ Python tracker ___ ___ Python-bugs-list mail

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

[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

[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

[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 SilentGhost
SilentGhost added the comment: Reads just fine to me. -- nosy: +SilentGhost ___ Python tracker ___ ___ Python-bugs-list mailing list U

  1   2   >