[issue31557] tarfile: incorrectly treats regular file as directory

2017-09-29 Thread Terry J. Reedy
Change by Terry J. Reedy : -- nosy: +lars.gustaebel ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue11063] Rework uuid module: lazy initialization and add a new C extension

2017-09-29 Thread Łukasz Langa
Łukasz Langa added the comment: uuid fails to build for me on master since that change landed: cpython/Modules/_uuidmodule.c:13:11: error: implicit declaration of function 'uuid_generate_time_safe' is invalid in C99 [-Werror,-Wimplicit-function-declaration] res = uuid_generate_time_

[issue31581] Reduce the number of imports for functools

2017-09-29 Thread Terry J. Reedy
Terry J. Reedy added the comment: An option for deferred imports would be to leave a comment at the top where the import would otherwise be. Example: # import types, weakref # Deferred to single_dispatch() This accomplishes the PEP8 purpose of making all dependencies of the module visible

[issue31583] 2to3 call for file in current directory yields error

2017-09-29 Thread Terry J. Reedy
Change by Terry J. Reedy : -- nosy: +benjamin.peterson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue31574] Add dtrace hook for importlib

2017-09-29 Thread Łukasz Langa
Łukasz Langa added the comment: Amazing! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue31574] Add dtrace hook for importlib

2017-09-29 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 3d2b407da048b14ba6e5eb6079722a785d210590 by Łukasz Langa (Christian Heimes) in branch 'master': bpo-31574: importlib dtrace (#3749) https://github.com/python/cpython/commit/3d2b407da048b14ba6e5eb6079722a785d210590 --

[issue31574] Add dtrace hook for importlib

2017-09-29 Thread Łukasz Langa
Łukasz Langa added the comment: Merged. Thanks! ✨ 🍰 ✨ -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue31555] Windows pyd slower when not loaded via load_dynamic

2017-09-29 Thread Steve Dower
Steve Dower added the comment: The only difference between your two tests is the install tool, and neither setuptools nor wheel bugs are tracked here. -- resolution: -> third party stage: -> resolved status: open -> closed ___ Python tracker

[issue31620] asyncio.Queue leaks memory if the queue is empty and consumers poll it frequently

2017-09-29 Thread Caleb Hattingh
Caleb Hattingh added the comment: This looks like a dupe, or at least quite closely related to https://bugs.python.org/issue26259. If the PR resolves both issues that one should be closed too. -- nosy: +cjrh ___ Python tracker

[issue31645] openssl build fails in win32 if .pl extension is not associated with Perl

2017-09-29 Thread Ivan Pozdeev
New submission from Ivan Pozdeev : build_ssl.py:fix_makefile() removes "PERL=perl" line from externals\openssl-1.0.2j\ms\nt.mak . This results in lots of calls like: ./util/copy-if-different.pl "" "" (without the leading "perl") Which opens the file in the program associates with the extensi

[issue31645] openssl build fails in win32 if .pl extension is not associated with Perl

2017-09-29 Thread Ivan Pozdeev
Change by Ivan Pozdeev : -- type: -> compile error ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue31643] test_uuid: test_getnode and test_windll_getnode fail if connected to the Internet via an Android phone

2017-09-29 Thread Ivan Pozdeev
Ivan Pozdeev added the comment: Example failure: == FAIL: test_windll_getnode (test.test_uuid.TestInternals) -- Traceback (most recent call last): File "C:\I

[issue31642] None value in sys.modules no longer blocks import

2017-09-29 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This is a side effect of issue15767. The exception is raised in _find_and_load, but it is always silenced in _handle_fromlist. -- ___ Python tracker __

[issue31591] Closing socket raises AttributeError: 'collections.deque' object has no attribute '_decref_socketios'

2017-09-29 Thread Terry J. Reedy
Terry J. Reedy added the comment: reidfaiv: bpo issues are for patching cypthon, including the stdlib and docs. Debugging help should be requested on other forums, such as python-list or stackoverflow. On the other hand, segfaults in pure python code that uses *current* python and does not

[issue31590] CSV module incorrectly treats escaped newlines as new records if unquoted

2017-09-29 Thread Terry J. Reedy
Terry J. Reedy added the comment: In closing #15927, R. David Murray said "Although this is clearly a bug fix, it also represents a behavior change that could cause a working program to fail. I have therefore only applied it to 3.4, but I'm open to arguments that it should be backported."

[issue31594] Make bytes and bytearray maketrans accept dictionaries as first argument as it's done in str

2017-09-29 Thread Terry J. Reedy
Terry J. Reedy added the comment: Consistency between bytes and strings is not much of a concern here, or the change would have been make for bytes when it was made for strings. I would not approve the request without knowing who chose not to and why. I think an example like t = bytes.maketr

[issue31601] Availability of utimensat, futimens not checked correctly on macOS

2017-09-29 Thread Terry J. Reedy
Change by Terry J. Reedy : -- components: +macOS nosy: +ned.deily, ronaldoussoren title: Availability of utimensat and futimens not checked correctly on macOS -> Availability of utimensat,futimens not checked correctly on macOS ___ Python tracker

[issue31646] bug in time.mktime

2017-09-29 Thread Kadir Liano
New submission from Kadir Liano : import time fmt = '%d-%b-%y %H:%M:%S' print(time.mktime(time.strptime('09-Mar-14 02:00:00',fmt))) 1394348400.0 in Windows 7, Python 2.7 and 3.6 1394352000.0 in LinuxMint LMDE 2, Python 3.6 -- components: Library (Lib) messages: 303378 nosy: kliano prior

[issue30576] http.server should support HTTP compression (gzip)

2017-09-29 Thread Martin Panter
Martin Panter added the comment: Regarding the compressed data generator, it would be better if there were no restrictions on the generator yielding empty chunks. This would match how the upload “body” parameter for HTTPConnection.request can be an iterator without worrying about empty chunks

[issue31644] bug in datetime.datetime.timestamp

2017-09-29 Thread Eric V. Smith
Eric V. Smith added the comment: This is a daylight savings time folding problem. Without a timezone, those are in fact the same point in time, at least in my timezone (US Eastern). If you specify a timezone, you'll see the difference: datetime.datetime(2014,3,9,2,tzinfo=datetime.timezone(dat

[issue31590] CSV module incorrectly treats escaped newlines as new records if unquoted

2017-09-29 Thread R. David Murray
R. David Murray added the comment: I'm pretty hesitant to make this kind of change in python2. I'm going to punt, and let someone else make the decision. Which means if no one does, the status quo will win. Sorry about that. -- ___ Python tracke

[issue31590] CSV module incorrectly treats escaped newlines as new records if unquoted

2017-09-29 Thread Vaibhav Mallya (mallyvai)
Vaibhav Mallya (mallyvai) added the comment: If there's any way this can be documented that would be a big help, at least. There have been other folks who run into this, and the current behavior is implicit. On Sep 29, 2017 5:44 PM, "R. David Murray" wrote: R. David Murray added the comment:

[issue31613] Localize tkinter.simpledialog.Default buttons as with file dialogs.

2017-09-29 Thread Terry J. Reedy
Terry J. Reedy added the comment: Tkinter wraps the tcl/tk gui framework. The file dialogs and messageboxes are provided by tk. When possible, the file dialogs utilize the native OS file dialogs. The localization is done the by the OS. If the messageboxes are localized, then I presume the

[issue31613] Localize tkinter.simpledialog.Default buttons as with file dialogs.

2017-09-29 Thread Terry J. Reedy
Terry J. Reedy added the comment: I would make such new paremeters keyword-only. -- ___ Python tracker ___ ___ Python-bugs-list mail

[issue31623] Allow to build MSI installer from the official tarball

2017-09-29 Thread Terry J. Reedy
Change by Terry J. Reedy : -- components: +Windows nosy: +paul.moore, steve.dower, tim.golden, zach.ware ___ Python tracker ___ ___ P

[issue31644] bug in datetime.datetime.timestamp

2017-09-29 Thread Kadir Liano
Kadir Liano added the comment: The datetime object returned by strptime() does not have tzinfo. Whatever default timezone that was chosen should produce consistent timestamp. Reading a sequential datetime string and converting it to a sequence of timestamp results in expected time folding.

[issue31601] Availability of utimensat, futimens not checked correctly on macOS

2017-09-29 Thread Ronald Oussoren
Ronald Oussoren added the comment: This is true for other symbols as well, when deploying to older releases of macOS. I have added runtime checking for a number of symbols in the past, that could be extended to newer APIs. -- On the road, hence brief. Op 30 sep. 2017 om 09:17 heeft Terr

[issue15927] csv.reader() does not support escaped newline when quoting=csv.QUOTE_NONE

2017-09-29 Thread Terry J. Reedy
Terry J. Reedy added the comment: This issue was 'reopened' by #31590. I can understand inconsistency as a 'design bug', but design bugs are not code bugs, and fixing a design bugs is an enhancement issue, not a behavior issue. It is not clear to me why, with the specified dialect, "writer.

[issue31590] CSV module incorrectly treats escaped newlines as new records if unquoted

2017-09-29 Thread Terry J. Reedy
Terry J. Reedy added the comment: I explained on #15927 why I currently see it as an enhancement issue, and therefore not appropriate to be backported. In fact, based on the doc, I am puzzled why the line terminator was being escaped. -- ___ Pytho

[issue26259] Memleak when repeated calls to asyncio.queue.Queue.get is performed, without push to queue.

2017-09-29 Thread Suren Nihalani
Suren Nihalani added the comment: @cjrh brought up that this issue is the same as https://bugs.python.org/issue31620. I put up a PR there. Can people review that and then we can close this? -- nosy: +snihalani ___ Python tracker

[issue31646] bug in time.mktime

2017-09-29 Thread Eryk Sun
Eryk Sun added the comment: mktime() is the inverse of localtime(). With the given format string, strptime() sets tm_isdst to -1, for which mktime will use the system's timezone information to determine whether or not it's daylight saving time. You need to verify that the time zones are the s

[issue31647] asyncio: StreamWriter write_eof() after close raises mysterious AttributeError

2017-09-29 Thread twisteroid ambassador
New submission from twisteroid ambassador : Currently, if one attempts to do write_eof() on a StreamWriter after the underlying transport is already closed, an AttributeError is raised: Traceback (most recent call last): File "\scratch_3.py", line 34, in main_coro writer.write_eof() Fi

[issue31647] asyncio: StreamWriter write_eof() after close raises mysterious AttributeError

2017-09-29 Thread twisteroid ambassador
twisteroid ambassador added the comment: This issue is somewhat related to issue27223, in that both are caused by using self._sock after it has already been assigned None when the connection is closed. It seems like Transports in general may need better protection from this kind of behavior.

[issue31646] bug in time.mktime

2017-09-29 Thread Kadir Liano
Kadir Liano added the comment: time.mktime(time.strptime('09-Mar-14 01:00:00',fmt)) time.mktime(time.strptime('09-Mar-14 02:00:00',fmt)) Both statements produce 1394348400.0 in Win7. The answers are 1394348400.0 and 1394352000.0 in Linux which is the correct behavior. -- ___

[issue31555] Windows pyd slower when not loaded via load_dynamic

2017-09-29 Thread Safihre
Safihre added the comment: No, the difference is not wheel vs setuptools. They both generate the identical pyd file. The difference is python: if the module is loaded by just being available on the path or if the module is loaded via imp.load_dynamic I understand if it's closed because it's

[issue31555] Windows pyd slower when not loaded via load_dynamic

2017-09-29 Thread Safihre
Change by Safihre : -- resolution: third party -> ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue31646] bug in time.mktime

2017-09-29 Thread Eryk Sun
Eryk Sun added the comment: This depends on the way the platform mktime implements folding when the clock is advanced for daylight saving time. It appears the timezone on your systems is set to US/Canada Central Time, for which on March 9th the clocks were advanced forward at 02:00:00 [1]. Wi

[issue31642] None value in sys.modules no longer blocks import

2017-09-29 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +3815 stage: needs patch -> patch review ___ Python tracker ___ ___ P

[issue31642] None value in sys.modules no longer blocks import

2017-09-29 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: PR 3834 provide possible solution of this issue. Initially import errors were silenced for solving issue15715. An import error raised when import was blocked by setting None in sys.modules was not silenced because it has different error message. I don't kno

<    1   2