[issue25711] Rewrite zipimport from scratch

2017-12-03 Thread Decorater
Decorater added the comment: Alright, just wanted to make sure because I did not want to have something break when loading up the entire standard library from an zip file with it. -- ___ Python tracker

Re: urllib2 urlopen takes too much time

2017-12-03 Thread Python
On Sun, Dec 03, 2017 at 09:49:45AM -0800, cpol...@vt.edu wrote: > On Tuesday, June 23, 2009 at 11:09:30 PM UTC-4, Aahz wrote: > > In article , > > =?UTF-8?Q?Filip_Gruszczy=C5=84ski?= wrote: > > > > > >I have encountered a

[issue28503] [Patch] '_crypt' module: fix implicit declaration of crypt(), use crypt_r() where available

2017-12-03 Thread Ed Schouten
Ed Schouten added the comment: Ah, you folks switched to Git + Github in the mean time. Nice! I've just sent this pull request: https://github.com/python/cpython/pull/4691 -- ___ Python tracker

[issue28503] [Patch] '_crypt' module: fix implicit declaration of crypt(), use crypt_r() where available

2017-12-03 Thread Roundup Robot
Change by Roundup Robot : -- pull_requests: +4604 stage: -> patch review ___ Python tracker ___

[issue32146] multiprocessing freeze_support needed outside win32

2017-12-03 Thread Antoine Pitrou
Antoine Pitrou added the comment: Thank you for reporting this. Would you like to submit a PR? -- nosy: +davin, pitrou stage: -> needs patch versions: -Python 2.7, Python 3.4, Python 3.5, Python 3.8 ___ Python tracker

[issue19610] Give clear error messages for invalid types used for setup.py params (e.g. tuple for classifiers)

2017-12-03 Thread Éric Araujo
Éric Araujo added the comment: I am sorry this snowballed. The intent in my messages here and in my PR review was to exchange a late, unfriendly traceback with a clear, early message, but only for package authors. I forgot that a Python 3.7 could execute an invalid

[issue32137] Stack overflow in repr of deeply nested dicts

2017-12-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 1fb72d2ad243c965d4432b4e93884064001a2607 by Serhiy Storchaka in branch 'master': bpo-32137: The repr of deeply nested dict now raises a RecursionError (#4570)

[issue32137] Stack overflow in repr of deeply nested dicts

2017-12-03 Thread Roundup Robot
Change by Roundup Robot : -- pull_requests: +4602 ___ Python tracker ___

[issue31619] Strange error when convert hexadecimal with underscores to int

2017-12-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 29ba688034fc4eef0693b86002cf7bee55d692af by Serhiy Storchaka in branch 'master': bpo-31619: Fixed integer overflow in converting huge strings to int. (#3884)

[issue31619] Strange error when convert hexadecimal with underscores to int

2017-12-03 Thread Roundup Robot
Change by Roundup Robot : -- pull_requests: +4603 ___ Python tracker ___

[issue31619] Strange error when convert hexadecimal with underscores to int

2017-12-03 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue31619] Strange error when convert hexadecimal with underscores to int

2017-12-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 30a6bc842945e3e9c9c7db887ab495c428ec7074 by Serhiy Storchaka (Miss Islington (bot)) in branch '3.6': bpo-31619: Fixed integer overflow in converting huge strings to int. (GH-3884) (#4690)

[issue27240] 'UnstructuredTokenList' object has no attribute '_fold_as_ew'

2017-12-03 Thread R. David Murray
R. David Murray added the comment: New changeset 85d5c18c9d83a1d54eecc4c2ad4dce63194107c6 by R. David Murray in branch 'master': bpo-27240 Rewrite the email header folding algorithm. (#3488)

[issue27240] 'UnstructuredTokenList' object has no attribute '_fold_as_ew'

2017-12-03 Thread R. David Murray
R. David Murray added the comment: New changeset a87ba60fe56ae2ebe80ab9ada6d280a6a1f3d552 by R. David Murray (Miss Islington (bot)) in branch '3.6': bpo-27240 Rewrite the email header folding algorithm. (GH-3488) (#4693)

[issue32182] Infinite recursion in email.message.as_string()

2017-12-03 Thread R. David Murray
R. David Murray added the comment: I checked, and your example works correctly with the patch applied. I've committed the PR. Let me know if you find any other issues (there are several open issues with exactly how headers are wrapped, but I don't think there are any

[issue32208] Improve semaphore docmentation

2017-12-03 Thread Garrett Berg
Garrett Berg added the comment: It may be desirable to change: > Once awoken, decrement the counter by 1. to > Once awoke, decrement the counter (which is guaranteed to be positive) by 1. Although this could be considered obvious since the counter can never go below

[issue30213] ZipFile from 'a'ppend-mode file generates invalid zip

2017-12-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The problem is that seek() doesn't work properly with files opened in append mode. with open('file', 'ab') as f: f.write(b'abcd') f.seek(0) f.write(b'efgh') f.flush() with open('file', 'rb') as f:

[issue27240] 'UnstructuredTokenList' object has no attribute '_fold_as_ew'

2017-12-03 Thread Roundup Robot
Change by Roundup Robot : -- pull_requests: +4605 ___ Python tracker ___

[issue30213] ZipFile from 'a'ppend-mode file generates invalid zip

2017-12-03 Thread BoppreH
BoppreH added the comment: I'm not sure this is a duplicate of issue29094. That issue includes random data at the start of the file, while this issue uses the 'ab' mode solely for a creating the file if it doesn't exist (and thus is either empty or already a valid zip

[issue32209] Crash in set_traverse Within the Garbage Collector's collect_generations()

2017-12-03 Thread Connor W Fitzgerald
New submission from Connor W Fitzgerald : This is my first time submitting a bug report, so forgive me if I miss on important information. I am writing code that makes heavy use of sets (8GB+ of them). It segfaults semi-randomly during the processing of them.

[issue32207] IDLE: run's tk update adds extra traceback on callback error

2017-12-03 Thread Terry J. Reedy
New submission from Terry J. Reedy : import tkinter as tk root = tk.Tk() def bad(): print(a, 'bad') def good(): print('good') root.after(1000, bad) root.after(1500, good) root.mainloop() # Correctly gives this traceback and output: Exception in Tkinter callback Traceback

[issue32207] IDLE: run's tk update adds context traceback on callback error

2017-12-03 Thread Terry J. Reedy
Change by Terry J. Reedy : -- title: IDLE: run's tk update adds extra traceback on callback error -> IDLE: run's tk update adds context traceback on callback error ___ Python tracker

[issue32208] Improve semaphore docmentation

2017-12-03 Thread Garrett Berg
Garrett Berg added the comment: Also, is "The order in which threads are awoken should not be relied on" actually true? Would it not be up to the OS specific scheduler? For instance, wouldn't the POSIX scheduler use a priority queue of some kind? --

[issue32207] IDLE: run's tk update adds context traceback on callback error

2017-12-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: try: seq, request = rpc.request_queue.get(block=True, timeout=0.05) except queue.Empty: request = None if request is None: handle_tk_events()

[issue31831] EmailMessage.add_attachment(filename="long or spécial") crashes or produces invalid output

2017-12-03 Thread R. David Murray
R. David Murray added the comment: The PR has been committed. -- resolution: -> fixed stage: -> resolved status: open -> closed type: crash -> behavior versions: -Python 3.4, Python 3.5 ___ Python tracker

[issue30862] parent logger should also check the level

2017-12-03 Thread TaoQingyun
TaoQingyun <845767...@qq.com> added the comment: Maybe I misunderstand. At least the basicConfig should also set the level of the handler that it created. -- ___ Python tracker

[issue32208] Improve semaphore docmentation

2017-12-03 Thread Garrett Berg
New submission from Garrett Berg : The definition of threading.Semaphore is confusing (for all versions of python docs) https://docs.python.org/2/library/threading.html#semaphore-objects acquire([blocking]) It currently states the following: > When invoked without

[issue32140] IDLE debugger fails with non-trivial __new__ super call

2017-12-03 Thread ppperry
ppperry added the comment: Simplified reproducer for same bug without any imports: class BadRepr: def __repr__(self): 1/0 def broken(): x=BadRepr() x=x #filler line for debugger In this case, the problematic BadRepr object in the "broken"

[issue32208] Improve semaphore documentation

2017-12-03 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- title: Improve semaphore docmentation -> Improve semaphore documentation ___ Python tracker

[issue30788] email.policy.SMTP.fold() issue for long filenames with spaces

2017-12-03 Thread R. David Murray
R. David Murray added the comment: The PR has been committed. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: -Python 3.5 ___ Python tracker

[issue30213] ZipFile from 'a'ppend-mode file generates invalid zip

2017-12-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This may be related to issue18876 or issue20082. -- ___ Python tracker ___

[issue17611] Move unwinding of stack for "pseudo exceptions" from interpreter to compiler.

2017-12-03 Thread Antoine Pitrou
Antoine Pitrou added the comment: I would point out that Serhiy posted some comments in the followup PR which aren't addressed by Neil's followup PR. They relate to tracing. -- ___ Python tracker

[issue32204] async/await performance is very low

2017-12-03 Thread Liran Nuna
Liran Nuna added the comment: The PR is merely a finding I ran into while benchmarking. In my executions I saw a consistent ~3-5% performance increase. At my company we are attempting to migrate from asynq to asyncio but performance suffers (our servers response times

[issue32200] Full docs build of 3.6 and 3.7 failing since 2017-10-15

2017-12-03 Thread jfbu
jfbu added the comment: For info, the xetex problem "Improper discretionary list" is presumably the one seen at https://github.com/sphinx-doc/sphinx/issues/3546. I asked on xetex mailing list at http://tug.org/pipermail/xetex/2017-March/027056.html to which xetex bug it was

[issue32200] Full docs build of 3.6 and 3.7 failing since 2017-10-15

2017-12-03 Thread Julien Palard
Julien Palard added the comment: Japanese is failing expectedly (may work with platex but not xelatex), but I hoped french to build. But the build server is giving: ! Improper discretionary list. } l.359 ...{PyObject}

[issue32204] async/await performance is very low

2017-12-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I don't see any difference after applying PR 4186. -- nosy: +serhiy.storchaka ___ Python tracker

[issue32204] async/await performance is very low

2017-12-03 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- versions: +Python 3.7 -Python 3.6 ___ Python tracker ___

[issue31589] Links for French documentation PDF is broken: LaTeX issue with non-ASCII characters?

2017-12-03 Thread Julien Palard
Julien Palard added the comment: Due to issue 32200, we switched on xelatex, it however did **not** fixed the french builds as expected, maybe because we're using an old version of xelatex. The issue: ! Improper discretionary list. }

[issue32204] async/await performance is very low

2017-12-03 Thread Liran Nuna
New submission from Liran Nuna : The performance of async/await is very low when compared to similar code that implements similar functionality via iterators, such as Quora's asynq library (https://github.com/quora/asynq/tree/master/asynq). Based on my benchmarks, asynq is

[issue31589] Links for French documentation PDF is broken: LaTeX issue with non-ASCII characters?

2017-12-03 Thread jfbu
jfbu added the comment: I can confirm the "Improper discretionary list" error from xetex build is a xetex bug which is present at XeTeX 0.2 and absent at XeTeX 0.6 and presumably all more recent releases. It was seen at https://github.com/sphinx-doc/sphinx/issues/3546

[issue32204] async/await performance is very low

2017-12-03 Thread Liran Nuna
Liran Nuna added the comment: Added comparable benchmark in asynq -- Added file: https://bugs.python.org/file47314/batch_asynq.py ___ Python tracker

[issue19610] Give clear error messages for invalid types used for setup.py params (e.g. tuple for classifiers)

2017-12-03 Thread Antoine Pitrou
Antoine Pitrou added the comment: Le 03/12/2017 à 05:57, Neil Schemenauer a écrit : > > I like Nick's idea of calling list() to fix the argument. I don't think that's a good idea. Suppose someone is passing a string by mistake: setup(..., classifiers='Programming

[issue29519] weakref spewing exceptions during finalization when combined with multiprocessing

2017-12-03 Thread Warwick Chapman
Warwick Chapman added the comment: Ditto. On Sun, 03 Dec 2017 at 16:53, INADA Naoki wrote: > > INADA Naoki added the comment: > > It seems it is merged in 2.7.14. > But I can't find this in changelog of 2.7.14. > > >

[issue32028] Syntactically wrong suggestions by the new custom print statement error message

2017-12-03 Thread Sanyam Khurana
Change by Sanyam Khurana : -- keywords: +patch pull_requests: +4601 stage: test needed -> patch review ___ Python tracker

[issue31589] Links for French documentation PDF is broken: LaTeX issue with non-ASCII characters?

2017-12-03 Thread Julien Palard
Julien Palard added the comment: For me, french compile correctly with current state of cpython's conf.py and texlive-xetex 2017.20171128-1, if it helps. I tried (not enough) and fail to test locally with a texlive-xetex from 2013 (I should try with a VM maybe,

[issue32196] Rewrite plistlib with functional style

2017-12-03 Thread Ronald Oussoren
Ronald Oussoren added the comment: I don't have time to perform a review right now, I'm trying to get PEP 447 through review and that takes most of my available time at the moment. I'm not convinced that the speedup of plistlib is relevant for real-world code, plist

pip3 file in Scripts folder is missing - Python installation - Tensor flow upgrade

2017-12-03 Thread pavan kopparthi
Hi, Installed Python 3.6.3 Amd64 in Windows 10 OS. Want to install Tensor flow using native pip as suggested... C:\> *pip3 install --upgrade tensorflow* But, observed that pip3 file in Scripts folder is missing. Also, Scripts folder is empty. Reg, Pavan Kumar K.

[issue32205] test.pythoninfo does not print the cross-built sysconfig data

2017-12-03 Thread Xavier de Gaye
New submission from Xavier de Gaye : When cross-compiling the only useful information printed by pythoninfo is the cross-built sysconfig data since everything else is related to the native python process used during the cross-build. Currently pythoninfo prints the native

[issue32206] Run modules with pdb

2017-12-03 Thread Mario Corchero
New submission from Mario Corchero : Since PEP 338 we can run python modules as a script via `python -m module_name` but there is no way to run pdb on those (AFAIK). The proposal is to add a new argument "-m" to the pdb module to allow users to run `python -m pdb -m

[issue32176] Zero argument super is broken in 3.6 for methods with a hacked __class__ cell

2017-12-03 Thread Nick Coghlan
Nick Coghlan added the comment: Thanks for the issue report! The fix will be released in 3.6.4 and 3.7.0a3 (both of which are expected to be later this month). -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.7

[issue32107] Improve MAC address calculation and fix test_uuid.py

2017-12-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Ah, good catch! I missed this. Do you mind to create a PR Xavier? -- ___ Python tracker

[issue32107] Improve MAC address calculation and fix test_uuid.py

2017-12-03 Thread Xavier de Gaye
Xavier de Gaye added the comment: 1. Before the regression made by 23df2d1304ece169d7e0dfc843dfb8026b413d9f, on the first invocation of getnode(), the returned value is cached in '_node' (a global variable) and getnode() is idempotent. 2. After

[issue32107] Improve MAC address calculation and fix test_uuid.py

2017-12-03 Thread Xavier de Gaye
Xavier de Gaye added the comment: When I am the author of a regression (as I have been too many times unfortunately), I prefer to be the one that reverts the changes and I would not like someone else to do it. -- ___ Python

[issue31589] Links for French documentation PDF is broken: LaTeX issue with non-ASCII characters?

2017-12-03 Thread jfbu
jfbu added the comment: On-going discussion at http://tug.org/pipermail/xetex/2017-December/027212.html has brought new element that polyglossia's French module is broken with xetex since TeXLive2016. We had only one problem, we now have two on our hands. Possibly Sphinx could

[issue32107] Improve MAC address calculation and fix test_uuid.py

2017-12-03 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: I missed it too. Serhiy, do you want to add that fix to your already open PR 4677? -- ___ Python tracker

[issue32204] async/await performance is very low

2017-12-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: ~3-5% difference is a random variance. Add 1/0 in this method and repeat the benchmark. -- ___ Python tracker

[issue31589] Links for French documentation PDF is broken: LaTeX issue with non-ASCII characters?

2017-12-03 Thread Julien Palard
Julien Palard added the comment: XeTeX 0.6 was released in march 2016, so it's not even in Ubuntu 16.04 Xenial Xerus. On docs.iad1.psf.io we're having Ubuntu 14.04 (an LTS ending around february 2019). -- ___ Python

[issue32147] improve performance of binascii.unhexlify() by using conversion table

2017-12-03 Thread Antoine Pitrou
Antoine Pitrou added the comment: (platform is Ubuntu 16.04, 64-bit, on a Core i5-2500K CPU) -- ___ Python tracker ___

[issue32147] improve performance of binascii.unhexlify() by using conversion table

2017-12-03 Thread Antoine Pitrou
Antoine Pitrou added the comment: Here are the results here: - Before: $ ./python -m timeit -s "from binascii import unhexlify; b = b'aa'*2**20" "unhexlify(b)" 50 loops, best of 5: 4.37 msec per loop - After: $ ./python -m timeit -s "from binascii import unhexlify; b =

[issue32176] Zero argument super is broken in 3.6 for methods with a hacked __class__ cell

2017-12-03 Thread Nick Coghlan
Nick Coghlan added the comment: New changeset c8f32aae0aa173e122cf4c0592caec620d0d1de9 by Nick Coghlan in branch '3.6': [3.6] bpo-32176: Set CO_NOFREE in the code object constructor (GH-4684) https://github.com/python/cpython/commit/c8f32aae0aa173e122cf4c0592caec620d0d1de9

[issue19610] Give clear error messages for invalid types used for setup.py params (e.g. tuple for classifiers)

2017-12-03 Thread Nick Coghlan
Nick Coghlan added the comment: Prohibiting strings and bytes on the grounds of "Yes they're iterable, but are more likely intended as atomic here, so treat them as ambiguous and refuse to guess" would be fine. (Although I'll also note the classifier case will already

[issue32205] test.pythoninfo does not print the cross-built sysconfig data

2017-12-03 Thread Xavier de Gaye
Change by Xavier de Gaye : -- keywords: +patch pull_requests: +4600 stage: needs patch -> patch review ___ Python tracker ___

[issue31589] Links for French documentation PDF is broken: LaTeX issue with non-ASCII characters?

2017-12-03 Thread jfbu
jfbu added the comment: Related https://github.com/sphinx-doc/sphinx/issues/4272 It is stated there that using babel-french in place of polyglossia-french avoids the "Improper discretionary list" xetex problem starting with xetex 0.2 (i.e. TeXLive 2015) whereas with

[issue29519] weakref spewing exceptions during finalization when combined with multiprocessing

2017-12-03 Thread INADA Naoki
INADA Naoki added the comment: It seems it is merged in 2.7.14. But I can't find this in changelog of 2.7.14. https://raw.githubusercontent.com/python/cpython/c707893f9cee870bba8364b3a06eb9cfa3b80e58/Misc/NEWS -- ___ Python

[issue32204] async/await performance is very low

2017-12-03 Thread Yury Selivanov
Yury Selivanov added the comment: In general, implementing coroutines using 'yield' expressions (not 'yield from'!) is slower than async/await, because the former approach needs a trampoline to manage the stack, whereas CPython itself handles that for 'yield from' and

[issue32206] Run modules with pdb

2017-12-03 Thread Eric N. Vander Weele
Change by Eric N. Vander Weele : -- nosy: +ericvw ___ Python tracker ___ ___

Meaning of "Add Python to environment variables"

2017-12-03 Thread John Yeung
In the custom installation options for Python 3.6, what *exactly* does "Add Python to environment variables" mean? Which environment variables are we talking about? I imagine one of them would have to be PATH. Are there any others? John Y. --

Re: urllib2 urlopen takes too much time

2017-12-03 Thread cpollio
On Tuesday, June 23, 2009 at 11:09:30 PM UTC-4, Aahz wrote: > In article , > =?UTF-8?Q?Filip_Gruszczy=C5=84ski?= wrote: > > > >I have encountered a performance problem using suds, which was traced > >down to _socket.recv. I

Re: Meaning of "Add Python to environment variables"

2017-12-03 Thread Thomas Jollans
On 03/12/17 18:32, John Yeung wrote: > In the custom installation options for Python 3.6, what *exactly* does "Add > Python to environment variables" mean? > > Which environment variables are we talking about? I imagine one of them would > have to be PATH. Are there any others? If the note on

[issue31392] Upgrade installers to OpenSSL 1.1.0g and 1.0.2m

2017-12-03 Thread Ned Deily
Ned Deily added the comment: 1.1.0g and 1.0.2m are out as of 2017-11-02 so both Windows and Mac installer builds for 3.7 and 3.6 should be updated. (I'll take care of the Mac ones.) -- assignee: ned.deily -> stage: patch review -> needs patch title: Upgrade

[issue32200] Full docs build of 3.6 and 3.7 failing since 2017-10-15

2017-12-03 Thread Ned Deily
Ned Deily added the comment: OK, I'm going to close this. We can discuss further steps elsewhere. Thanks for reporting the problem, Carol, and thanks for the quick response, Julien! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed