[issue33405] PYTHONCOERCECLOCALE no longer being respected

2018-05-02 Thread pmpp
pmpp added the comment: indeed a3+ says : PYTHONCOERCECLOCALE=0 LANG=C python3.7 -c "import sys; print(sys.stdin.encoding)" ANSI_X3.4-1968 but can reproduce on b3: PYTHONCOERCECLOCALE=0 LANG=C python3.7 -c "import sys; print(sys.stdin.encoding)" utf-8 -- nosy: +pmpp __

[issue33402] Change the fractions.Fraction class to convert to a unicode fraction string

2018-05-02 Thread Mark Dickinson
Mark Dickinson added the comment: -1 from me. Apart from anything else, the output for a general fraction looks (to my eyes) ugly in a fixed-width font: the tiny digits are harder to read, and there's too much space between successive numerator (or denominator) digits: those digits are design

[issue33405] PYTHONCOERCECLOCALE no longer being respected

2018-05-02 Thread STINNER Victor
STINNER Victor added the comment: > PYTHONCOERCECLOCALE=0 LANG=C python3.7 -c "import sys; > print(sys.stdin.encoding)" Are you aware of the PEP 540 "UTF-8 Mode"? It's also enabled automatically by the POSIX locale. If you hate UTF-8, you have to use: PYTHONCOERCECLOCALE=0 python3.7 -X utf8=

[issue33405] PYTHONCOERCECLOCALE no longer being respected

2018-05-02 Thread STINNER Victor
STINNER Victor added the comment: I cannot reproduce the issue with the future Python 3.7 beta4: vstinner@apu$ PYTHONCOERCECLOCALE=0 LANG=C ./python -X utf8=0 -c "import sys; print(sys.stdin.encoding)" ANSI_X3.4-1968 vstinner@apu$ LANG=C ./python -X utf8=0 -c "import sys; print(sys.stdin.enco

[issue33405] PYTHONCOERCECLOCALE no longer being respected

2018-05-02 Thread pmpp
pmpp added the comment: b3 is also ok with the -X parameter : PYTHONCOERCECLOCALE=0 LANG=C python3.7 -X utf8=0 -c "import sys; print(sys.stdin.encoding)" ANSI_X3.4-1968 -- ___ Python tracker

[issue33405] PYTHONCOERCECLOCALE no longer being respected

2018-05-02 Thread STINNER Victor
STINNER Victor added the comment: Ok, pmpp confirmed that the 3.7b2 bug has been fixed in 3.7b3. Thank you for your bug report Anthony Shaw! -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker

[issue28167] remove platform.linux_distribution()

2018-05-02 Thread STINNER Victor
STINNER Victor added the comment: IMHO it's now too late to remove it from Python 3.7. Moreover, if the current warning is *PendingDeprecationWarning*, the warning must first become in Python N, to then remove the feature in Python N+1. I'm ok to just change the warning and schedule a removal

[issue28167] remove platform.linux_distribution()

2018-05-02 Thread Christian Heimes
Christian Heimes added the comment: We still don't have a suitable replacement for the feature. Five years, Matthias suggested to add a parser for freedesktop's os-release file. -- nosy: +christian.heimes ___ Python tracker

[issue33406] [ctypes] increase the refcount of a callback function

2018-05-02 Thread Eryk Sun
Eryk Sun added the comment: There isn't a problem in most cases, since functions that take a callback usually call it before returning. If the library does keep a long-lived reference to a callback (e.g. a console control handler in Windows), there are ways to support this, depending on the c

[issue33391] leak in set_symmetric_difference?

2018-05-02 Thread miss-islington
Change by miss-islington : -- pull_requests: +6383 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue33391] leak in set_symmetric_difference?

2018-05-02 Thread INADA Naoki
INADA Naoki added the comment: New changeset 491bbedc209fea314a04cb3015da68fb0aa63238 by INADA Naoki (lekma) in branch 'master': bpo-33391: Fix refleak in set_symmetric_difference (GH-6670) https://github.com/python/cpython/commit/491bbedc209fea314a04cb3015da68fb0aa63238 -- nosy: +in

[issue33407] Implement Py_DEPRECATED() macro for Visual Studio

2018-05-02 Thread STINNER Victor
New submission from STINNER Victor : According to the following links, it would be possible to implement the Pc_DEPRECATED() macro for Visual Studio: https://mail.python.org/pipermail/python-dev/2018-May/153299.html https://stackoverflow.com/questions/295120/c-mark-as-deprecated/295229#295229

[issue33391] leak in set_symmetric_difference?

2018-05-02 Thread miss-islington
Change by miss-islington : -- pull_requests: +6384 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue33391] leak in set_symmetric_difference?

2018-05-02 Thread miss-islington
Change by miss-islington : -- pull_requests: +6385 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue33407] Implement Py_DEPRECATED() macro for Visual Studio

2018-05-02 Thread STINNER Victor
STINNER Victor added the comment: Oh, bpo-19569 is still open, for Visual Studio see: https://bugs.python.org/issue19569#msg227727 -- ___ Python tracker ___ ___

[issue33407] Implement Py_DEPRECATED() macro for Visual Studio

2018-05-02 Thread Antoine Pitrou
Antoine Pitrou added the comment: In Arrow we use the following: #if __cplusplus <= 201103L # ifdef __GNUC__ # define ARROW_DEPRECATED(...) __attribute__((deprecated(__VA_ARGS__))) # elif defined(_MSC_VER) # define ARROW_DEPRECATED(...) __declspec(deprecated(__VA_ARGS__)) # else # define ARR

[issue33391] leak in set_symmetric_difference?

2018-05-02 Thread miss-islington
miss-islington added the comment: New changeset 6a56790e0b50846f1f968e48c3a321c148b5e6cd by Miss Islington (bot) in branch '3.7': bpo-33391: Fix refleak in set_symmetric_difference (GH-6670) https://github.com/python/cpython/commit/6a56790e0b50846f1f968e48c3a321c148b5e6cd -- nosy: +m

[issue21822] KeyboardInterrupt during Thread.join hangs that Thread

2018-05-02 Thread STINNER Victor
Change by STINNER Victor : -- nosy: -vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue20104] expose posix_spawn(p)

2018-05-02 Thread STINNER Victor
STINNER Victor added the comment: > The current implementation looks half-baked to me. (...) I would prefer to see a full implementation before Python 3.7 final, or to remove the feature from Python 3.7 and redo it in Python 3.8. It seems doable to finish the implementation before Python 3.7

[issue33391] leak in set_symmetric_difference?

2018-05-02 Thread miss-islington
miss-islington added the comment: New changeset d5546991a2123b6ec84f7c4ecf37b62bedd78ea4 by Miss Islington (bot) in branch '3.6': bpo-33391: Fix refleak in set_symmetric_difference (GH-6670) https://github.com/python/cpython/commit/d5546991a2123b6ec84f7c4ecf37b62bedd78ea4 -- ___

[issue28167] remove platform.linux_distribution()

2018-05-02 Thread Matthias Klose
Matthias Klose added the comment: there is https://pypi.org/project/distro/ -- ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue33391] leak in set_symmetric_difference?

2018-05-02 Thread miss-islington
miss-islington added the comment: New changeset 6d3d02c69a65abcd64eb6d83baac5675f9208318 by Miss Islington (bot) in branch '2.7': bpo-33391: Fix refleak in set_symmetric_difference (GH-6670) https://github.com/python/cpython/commit/6d3d02c69a65abcd64eb6d83baac5675f9208318 -- ___

[issue33408] AF_UNIX is now supported in Windows

2018-05-02 Thread Filip *
New submission from Filip * : Unix socket (AF_UNIX) is now avalible in Windows 10 (April 2018 Update). Please add Python support for it. More details about it on https://blogs.msdn.microsoft.com/commandline/2017/12/19/af_unix-comes-to-windows/ -- components: Windows messages: 316067 no

[issue33391] leak in set_symmetric_difference?

2018-05-02 Thread INADA Naoki
Change by INADA Naoki : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ Py

[issue20104] expose posix_spawn(p)

2018-05-02 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- pull_requests: +6386 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue20104] expose posix_spawn(p)

2018-05-02 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: I have open https://github.com/python/cpython/pull/6693 to start iterating over the missing capabilities of posix_spawn (Passing various attributes of the created child process). Please, review to make sure that the design is OK and I will proceed to a

[issue33408] AF_UNIX is now supported in Windows

2018-05-02 Thread Eric V. Smith
Change by Eric V. Smith : -- nosy: +eric.smith versions: +Python 3.8 -Python 3.7 ___ Python tracker ___ ___ Python-bugs-list mailing

[issue33409] Clarify the interaction between locale coercion & UTF-8 mode

2018-05-02 Thread Nick Coghlan
New submission from Nick Coghlan : While Victor and I reconciled the respective designs & implementations of PEP 538/540 (with 538 relying on 540 to handle the "No suitable target locale" case, and 540 relying on 538 to handle extension modules like GNU readline), the interaction between the t

[issue1644818] Allow built-in packages and submodules as well as top-level modules

2018-05-02 Thread Fred L. Drake, Jr.
Change by Fred L. Drake, Jr. : -- nosy: +fdrake ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue22848] Subparser help does not respect SUPPRESS argument

2018-05-02 Thread Floreal
Floreal added the comment: Will this patch be integrated in future days / weeks / years? I still want to add a hidden subparser, but doing this by editing manually the metavar of the subparsers is not a good solution... -- nosy: +floreal ___ Python

[issue33275] glob.glob should explicitly note that results aren't sorted

2018-05-02 Thread Ben FrantzDale
Ben FrantzDale added the comment: I looked into it a bit more. With python 2.7 on macOS High Sierra on APFS (Encrypted) with a FAT32 thumb drive... I have a directory that glob.glob('/Volumes/thumb/tmp/*') shows as sorted. I cp -r that to /tmp with bash. glob.glob('/tmp/tmp/*') is now not sor

[issue33410] Using type in a format with padding causes TypeError

2018-05-02 Thread alex
New submission from alex : When trying to print a type in a formatted string with padding TypeError is raised. See examples below. These work: >>> a = 'abc' >>> print('{a}'.format(a=type(a))) >>> print('{a}'.format(a=str(type(a These don't: >>> print('{a: >10}'.format(a=type(a))) Traceba

[issue33411] All console message are in the error output in bash interpretor

2018-05-02 Thread Quentin Millardet
New submission from Quentin Millardet : The probleme is all display (normal and error message), in bash, are send to the screen by the error output. So it's impossible when someone make a bash script to get the error back in a log file for exemple, or just to display only the error on a screen

[issue33411] All console message are in the error output in bash interpretor

2018-05-02 Thread Quentin Millardet
Change by Quentin Millardet : -- status: open -> ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue33411] All console message are in the error output in bash interpretor

2018-05-02 Thread Quentin Millardet
Change by Quentin Millardet : -- status: -> open ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue1322] Deprecate platform.dist() and platform.linux_distribution() functions

2018-05-02 Thread Matthias Bussonnier
Change by Matthias Bussonnier : -- pull_requests: +6387 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue33410] Using type in a format with padding causes TypeError

2018-05-02 Thread Emanuel Barry
Emanuel Barry added the comment: `type` has a default `__format__` implementation which doesn't accept any formatting options. This is expected behaviour. -- nosy: +ebarry resolution: -> not a bug stage: -> resolved status: open -> closed ___ Pyth

[issue33411] All console message are in the error output in bash interpretor

2018-05-02 Thread Steven D'Aprano
Steven D'Aprano added the comment: Hello Quentin, and welcome. Please don't post screen shots of text. We don't edit our code with Photoshop, and using a screenshot makes it difficult to copy your code for testing, to verify the bug report, and prevents the blind and visually impaired from ta

[issue33402] Change the fractions.Fraction class to convert to a unicode fraction string

2018-05-02 Thread Raymond Hettinger
Raymond Hettinger added the comment: In the Monaco font, the superscripts ⁰¹²³⁴⁵⁶⁷⁸⁹ don't all line-up. The 1, 2, and 3 are lower which makes the fraction look weird. -- nosy: +rhettinger ___ Python tracker ___

[issue33402] Change the fractions.Fraction class to convert to a unicode fraction string

2018-05-02 Thread STINNER Victor
STINNER Victor added the comment: I dislike using non-ASCII characters for the default implementation. I don't think that this formatting is popular, and I expect many troubles on each platform. IMHO it's very easy to put such short function in your favorite module, or directly into your app

[issue33411] All console message are in the error output in bash interpretor

2018-05-02 Thread Quentin Millardet
Quentin Millardet added the comment: In a bash terminal, obtained result: $python > Normal.txt 2> Error.txt import a $cat Normal.txt $cat Error.txt Python 2.7.12 (default, Dec 4 2017, 14:50:18) [GCC 5.4.0 20160609] on linux2 Type "help", "copyright", "credits" or "license" for more informa

[issue32414] PyCapsule_Import fails when name is in the form 'package.module.capsule'

2018-05-02 Thread Petr Viktorin
Petr Viktorin added the comment: An option would be to use a colon to separate the module(s) from the attribute(s). The "inspect" module CLI does this, for example: https://docs.python.org/3/library/inspect.html#command-line-interface $ python3 -m inspect urllib.parse:SplitResult.geturl de

[issue33402] Change the fractions.Fraction class to convert to a unicode fraction string

2018-05-02 Thread Tim Peters
Tim Peters added the comment: -1. We should stop pretending this _ might_ happen ;-) -- nosy: +tim.peters ___ Python tracker ___ __

[issue33402] Change the fractions.Fraction class to convert to a unicode fraction string

2018-05-02 Thread Gabe Appleton
Change by Gabe Appleton : -- resolution: -> rejected stage: patch review -> resolved status: open -> closed ___ Python tracker ___ _

[issue33410] Using type in a format with padding causes TypeError

2018-05-02 Thread Eric V. Smith
Eric V. Smith added the comment: The problem is that type.__format__ doesn't exist, so object.__format__ is being called, and it throws an error if you provide a format spec. This is done for future expansion: if we do want to add type.__format__ in the future, we don't have to worry about ex

[issue33257] Race conditions in Tkinter with non-threaded Tcl

2018-05-02 Thread Ivan Pozdeev
Change by Ivan Pozdeev : Added file: https://bugs.python.org/file47561/TkinterHanders3.py ___ Python tracker ___ ___ Python-bugs-list mailing

[issue33412] Tkinter hangs if using multiple threads and event handlers

2018-05-02 Thread Ivan Pozdeev
New submission from Ivan Pozdeev : With threaded Tkinter, TkinterHanders3.py from https://bugs.python.org/issue33257 (attached) hangs. Tracing with thread_debug and a modified trace.py (to show TIDs, attached) shows that worker threads are waiting for the Tcl lock while the main thread that h

[issue33412] Tkinter hangs if using multiple threads and event handlers

2018-05-02 Thread Ivan Pozdeev
Change by Ivan Pozdeev : Added file: https://bugs.python.org/file47563/trace.zip ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue33412] Tkinter hangs if using multiple threads and event handlers

2018-05-02 Thread Ivan Pozdeev
Change by Ivan Pozdeev : Added file: https://bugs.python.org/file47564/trace.py ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue33412] Tkinter hangs if using multiple threads and event handlers

2018-05-02 Thread Ivan Pozdeev
Ivan Pozdeev added the comment: > worker threads are waiting for the Tcl lock Pardon. They are waiting for Tkapp_ThreadSend()s into the main thread to return. The effect is still the same. -- ___ Python tracker

[issue33275] glob.glob should explicitly note that results aren't sorted

2018-05-02 Thread Eryk Sun
Eryk Sun added the comment: FAT inserts a new file entry in a directory at the first available position. (If it's a long filename, this could be up to 21 contiguous dirents for a combined long/short dirent set.) This means a directory listing is usually in the same order that files were added

[issue33413] asyncio.gather should not use special Future

2018-05-02 Thread Martin Teichmann
New submission from Martin Teichmann : asyncio.gather() returns a _GatheringFuture, which inherits from asyncio.Future. This is weird in current asyncio, as futures are supposed to be created with loop.create_future(). So I tried to reimplement gather() without this weird special future. I suc

[issue33413] asyncio.gather should not use special Future

2018-05-02 Thread Martin Teichmann
Change by Martin Teichmann : -- keywords: +patch pull_requests: +6388 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-

[issue26834] Add truncated SHA512/224 and SHA512/256

2018-05-02 Thread Nick Timkovich
Nick Timkovich added the comment: Was this patch mostly ready to go? The additional SHA512 variants are appealing because they run ~40% faster than SHA256 on 64-bit hardware for longer messages. -- nosy: +nicktimko ___ Python tracker

[issue33257] Race conditions in Tkinter with non-threaded Tcl

2018-05-02 Thread Ivan Pozdeev
Ivan Pozdeev added the comment: Here are the possible courses of action to fix this. All require design changes, thus can be shot down on a whim. So I'll ask for advice and approval at python-dev first, to be sure that my efforts won't be scrapped. First, some terminology I'll be using: * A

[issue20104] expose posix_spawn(p)

2018-05-02 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: As for PR 6693: I think using keyword arguments would be more Pythonic. -- ___ Python tracker ___ __

[issue32387] Disallow untagged C extension import on major platforms

2018-05-02 Thread Barry A. Warsaw
Change by Barry A. Warsaw : -- nosy: +barry ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue26834] Add truncated SHA512/224 and SHA512/256

2018-05-02 Thread Gregory P. Smith
Change by Gregory P. Smith : -- versions: +Python 3.8 -Python 3.6 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue33316] Windows: PyThread_release_lock always fails

2018-05-02 Thread STINNER Victor
Change by STINNER Victor : -- title: PyThread_release_lock always fails -> Windows: PyThread_release_lock always fails ___ Python tracker ___ __

[issue33257] Race conditions in Tkinter with non-threaded Tcl

2018-05-02 Thread Guido van Rossum
Guido van Rossum added the comment: So this issue doesn't occur when linked with a thread-aware Tcl/Tk, right? Maybe we should just make sure that's the only configuration we ensure? -- nosy: +gvanrossum ___ Python tracker

[issue33412] Tkinter hangs if using multiple threads and event handlers

2018-05-02 Thread Guido van Rossum
Guido van Rossum added the comment: So it seems threads and Tkinter events don't mix. This doesn't surprise me much. (Similar issues can occur when mixing threads and asyncio if you don't follow the documentation's advice about how to send events across threads.) Perhaps event_generate() need

[issue33038] GzipFile doesn't always ignore None as filename

2018-05-02 Thread bbayles
bbayles added the comment: Is there someone who might be in a position to review the PR? It's pretty short. -- ___ Python tracker ___ __

[issue33257] Race conditions in Tkinter with non-threaded Tcl

2018-05-02 Thread Ivan Pozdeev
Ivan Pozdeev added the comment: > So this issue doesn't occur when linked with a thread-aware Tcl/Tk, right? Maybe we should just make sure that's the only configuration we ensure? This would break compatibility, including some usage patterns (see the "Reuse the threaded versions" option abo

[issue31706] urlencode should accept generator as values for mappings when doseq=True

2018-05-02 Thread François Freitag
Change by François Freitag : -- versions: +Python 3.8 -Python 3.7 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue27300] tempfile.TemporaryFile(): missing errors=... argument

2018-05-02 Thread Stephan Hohe
Change by Stephan Hohe : -- pull_requests: +6390 status: pending -> open ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue33257] Race conditions in Tkinter with non-threaded Tcl

2018-05-02 Thread Terry J. Reedy
Terry J. Reedy added the comment: I reproduced the error on installed 2.7.14, running tk 8.5.18. I ran TkinterCrash3-2-2.py 15 times on 64-bit Win10, installed x64 3.6.5, with tk 8.6.8, and experienced no crashes. I ran it another 10 times with 32-bit repository 3.8 debug and no crashes. My

[issue33391] leak in set_symmetric_difference?

2018-05-02 Thread Raymond Hettinger
Raymond Hettinger added the comment: I had assigned this to myself to review and apply. I would have appreciated you letting me complete that task when I had a chance to take a breath. This was a bug that I caused, so I should be the one responsible for fixing it. -- __

[issue33257] Race conditions in Tkinter with non-threaded Tcl

2018-05-02 Thread Terry J. Reedy
Terry J. Reedy added the comment: As I reported on the pydev thread "bpo-33257: seeking advice & approval on the course of action", Firefox cannot find the string 'thread' in the tkinter chapter of the official doc. Nor in the tkinter.ttk chapter. IDLE does not find it in tkinter.__init__.

[issue33257] Race conditions in Tkinter with non-threaded Tcl

2018-05-02 Thread Terry J. Reedy
Terry J. Reedy added the comment: Rerunning 2.7, I sometimes get the following almost immediately without clicking [launch]. Exception in thread Thread-1: Traceback (most recent call last): File "C:\Programs\Python27\lib\threading.py", line 801, in __bootstrap_inner self.run() File "f:

[issue33257] Race conditions in Tkinter with non-threaded Tcl

2018-05-02 Thread Ivan Pozdeev
Ivan Pozdeev added the comment: > I ran TkinterCrash3-2-2.py 15 times on 64-bit Win10, installed x64 3.6.5, > with tk 8.6.8, and experienced no crashes. I wrote in the initial message that this bug only happens with nonthreaded Tcl, regardless of Python version and Tcl version. I've built Py

[issue33257] Race conditions in Tkinter with non-threaded Tcl

2018-05-02 Thread Ivan Pozdeev
Ivan Pozdeev added the comment: > Ivan, as I also said there, it is not clear to me, given your subsequent > comments, what you consider to be the status of the PR. The PR fixes the problem exposed by TkinterCrash2-2.py and TkinterCrash3-2-2.py and only lacks an autotest (I asked for any idea

[issue33257] Race conditions in Tkinter with non-threaded Tcl

2018-05-02 Thread Terry J. Reedy
Terry J. Reedy added the comment: You did not say 'never with threaded tcl'. You also claimed that tkinter is so broken, with either threaded or non-threaded tcl/tk, that tkinter should be trashed. Anyway, I like to test things for myself. If 'never with threaded tcl' is true, then the cras

[issue33257] Race conditions in Tkinter with non-threaded Tcl

2018-05-02 Thread Terry J. Reedy
Terry J. Reedy added the comment: Is threaded tcl just a compile switch, as with CPython? -- ___ Python tracker ___ ___ Python-bugs-

[issue33391] leak in set_symmetric_difference?

2018-05-02 Thread INADA Naoki
INADA Naoki added the comment: I'm sorry. I just reviewed some easy pull requests when I have time. I'll skip pull requests you assigned yourself next time. -- ___ Python tracker

[issue33412] Tkinter hangs if using multiple threads and event handlers

2018-05-02 Thread Ivan Pozdeev
Ivan Pozdeev added the comment: > Do you have a suggestion for what to do short of dropping Tkinter support? Didn't really look into this. At first glance, from the trace log, the main thread seems to grab a lock at some initial point, and then tries to grab it again when running an event ha

[issue33257] Race conditions in Tkinter with non-threaded Tcl

2018-05-02 Thread Ivan Pozdeev
Ivan Pozdeev added the comment: > An automated test would need to fail more consistently, without needing to > click. Running faster would also be good (and perhaps increase failure > rate). The the test would be that the file runs in subprocess without an > error (perhaps multiple times).

[issue33412] Tkinter hangs if using multiple threads and event handlers

2018-05-02 Thread Guido van Rossum
Guido van Rossum added the comment: I guess nobody gives a damn. -- resolution: -> wont fix stage: -> resolved status: open -> closed ___ Python tracker ___ _

[issue33257] Race conditions in Tkinter with non-threaded Tcl

2018-05-02 Thread Ivan Pozdeev
Ivan Pozdeev added the comment: > Is threaded tcl just a compile switch, as with CPython? Yes. In tcl.vcxproj, tk.vcxproj and tix.vcxproj, there are parameters named like TclOpts that are passed as OPTS arg to the lib's makefiles. For Tcl 8.5, you need to pass "threads" to build with threads

[issue33257] Race conditions in Tkinter with non-threaded Tcl

2018-05-02 Thread Ivan Pozdeev
Ivan Pozdeev added the comment: ... Finally, since https://bugs.python.org/issue30916, the 3.x Windows build uses a binary external and needs even more patching to build and link against a debug and/or custom Tcl/Tk (too long to describe, can give a patch). -- ___

[issue27448] Race condition in subprocess.Popen which causes a huge memory leak

2018-05-02 Thread Glen Walker
Glen Walker added the comment: Correct me if I'm wrong, the change released in Python 2.7.15 doesn't actually fix this race condition. The race is: * T1: gc_was_enabled = gc.isenabled() # True * T1: gc.disable() * T2: gc_was_enabled = gc.isenabled() # False * T1: gc.enable() * T2: gc.disable(

[issue33414] Make shutil.copytree use os.scandir to take advantage of cached is_(dir|file|symlink)

2018-05-02 Thread Andrés Delfino
New submission from Andrés Delfino : Right now we are using os.path.is(dir|file|symlink) in shutil.copytree, but taking advantage of os.scandir's is_(dir|file|symlink) seems the way to go. I'll make a PR with to start the discussion with a proof of concept. -- components: Library (Lib)

[issue32813] SSL shared_ciphers implementation wrong - returns configured but not shared ciphers

2018-05-02 Thread Benjamin Peterson
Benjamin Peterson added the comment: It's looks like OpenSSL just fixed SSL_get_shared_ciphers to actually do what we would want here. https://github.com/openssl/openssl/commit/a216df599a6076147c27acea6c976fb11f505b1a -- ___ Python tracker

[issue33381] Incorrect documentation for strftime()/strptime() format code %f

2018-05-02 Thread Josh Rosenberg
Josh Rosenberg added the comment: Note: strftime follows the existing documentation: >>> datetime.datetime(1970, 1, 1, microsecond=1).strftime('%f') '01' The strptime behavior bug seems like a duplicate of #32267, which claims to be fixed in master as of early January; may not have made i