[issue36084] Threading: add builtin TID attribute to Thread objects

2019-05-13 Thread STINNER Victor
STINNER Victor added the comment: > """Native integral thread ID of this thread or 0 if it has not been started. > (...) Why not set the attribute to None before a thread starts? It would be more consistent with the the "ident" attribute behavior, no? Extract __repr__(): def __repr__(se

[issue36084] Threading: add builtin TID attribute to Thread objects

2019-05-13 Thread STINNER Victor
STINNER Victor added the comment: I dislike adding a function which always return 0 when the feature is not supported: unsigned long PyThread_get_thread_native_id(void) { ... #if ... ... #else unsigned long native_id; native_id = 0; #endif return (unsigned long) native_id;

[issue36728] Remove PyEval_ReInitThreads() from the public C API

2019-05-13 Thread STINNER Victor
STINNER Victor added the comment: > i double checked in our massive internal codebase at work and found no calls > other than python interpreters themselves. Thanks. It confirms what I understood using GitHub code search (see my initial message). --

[issue36778] test_site.StartupImportTests.test_startup_imports fails if default code page is cp65001

2019-05-13 Thread STINNER Victor
STINNER Victor added the comment: New changeset 3aef48e3157f52a8bcdbacf47a35d0016348735e by Victor Stinner in branch 'master': bpo-36778: Update cp65001 codec documentation (GH-13240) https://github.com/python/cpython/commit/3aef48e3157f52a8bcdbacf47a35d0016348735e -- _

[issue36898] Add parameter @case_sensitive to glob and rglob in pathlib

2019-05-13 Thread Chuang Men
Chuang Men added the comment: It is a good solution but when pattern is long, it might be a little inconvenient. Anyway, just an advice. Thank you for your reply! -- ___ Python tracker

[issue6584] gzip module has no custom exception

2019-05-13 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ _

[issue6584] gzip module has no custom exception

2019-05-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset cf599f6f6f1c392d8f12936982a370d533782195 by Serhiy Storchaka (Zackery Spytz) in branch 'master': bpo-6584: Add a BadGzipFile exception to the gzip module. (GH-13022) https://github.com/python/cpython/commit/cf599f6f6f1c392d8f12936982a370d53378

[issue36898] Add parameter @case_sensitive to glob and rglob in pathlib

2019-05-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: You can use the pattern '*.[Tt][Ii][Ff]'. -- nosy: +serhiy.storchaka ___ Python tracker ___ ___

[issue36783] No documentation for _FromXandFold C API functions

2019-05-13 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: Thank you for your PR. @Cherryl, the PR 13204 was not merged and the issue was closed :/ -- ___ Python tracker ___ _

[issue36783] No documentation for _FromXandFold C API functions

2019-05-13 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: New changeset d28772ab6967fea136c0707f0207673ebad66f61 by Stéphane Wirtel (Edison A) in branch 'master': bpo-36783: Add new references for C API Documentation changes (GH-13204) https://github.com/python/cpython/commit/d28772ab6967fea136c0707f0207673ebad66f61

[issue36898] Add parameter @case_sensitive to glob and rglob in pathlib

2019-05-13 Thread Chuang Men
New submission from Chuang Men : In pathlib, I add a parameter @case_sensitive to glob and rglob. Sometimes the extension would be in upper case but sometimes it would be lower case, for example: *.tif and *.TIF. So the parameter @case_sensitive may be useful in some cases. Usage example: In

[issue36898] Add parameter @case_sensitive to glob and rglob in pathlib

2019-05-13 Thread SilentGhost
Change by SilentGhost : -- pull_requests: +13179 stage: -> patch review versions: +Python 3.8 -Python 3.7 ___ Python tracker ___ __

<    1   2   3