Re: python39.dll not found

2021-10-01 Thread Eryk Sun
On 10/1/21, Sravan Kumar Chitikesi wrote: > You might copy the installation files from one to another computer, but you > missed the copying pytho**.dll from from windows/system32 folder.> The PSF installer 3.4 and earlier installs "pythonXY.dll" in the system directory when it peforms an

[issue17792] Unhelpful UnboundLocalError due to del'ing of exception target

2021-10-01 Thread SP Praveen
Change by SP Praveen : -- components: +Tkinter -Interpreter Core type: enhancement -> crash versions: +Python 3.11 -Python 3.10 ___ Python tracker ___

Problems with desinatlation

2021-10-01 Thread TONI MORAL SEGURA
Hi, I can not remove the program Python 2.7.10 in my Windows 10 What can I do to resolve this problema? Thank you [cid:image003.png@01D7B6E5.51F6E520] -- https://mail.python.org/mailman/listinfo/python-list

Re: How to pass a method as argument?

2021-10-01 Thread Anil Anvesh
On Friday, October 1, 2021 at 6:04:34 AM UTC+5:30, Mats Wichmann wrote: > On 9/29/21 23:11, Anil Anvesh wrote: > > I want to write a python calculator program that has different methods to > > add, subtract, multiply which takes 2 parameters. I need to have an execute > > method when passed

Re: python39.dll not found

2021-10-01 Thread Sravan Kumar Chitikesi
You might copy the installation files from one to another computer, but you missed the copying pytho**.dll from from windows/system32 folder. Regards, *Sravan Chitikesi* AWS Solutions Architect - Associate On Fri, Oct 1, 2021 at 12:38 AM jitendrabeura001 wrote: >Please someone help me to

Re: Definitive guide for Regex

2021-10-01 Thread Jach Feng
Shaozhong SHI 在 2021年9月30日 星期四下午7:29:47 [UTC+8] 的信中寫道: > Dear All, > > I am trying to look for a definitive guide for Regex in Python. > Can anyone help? > > Regards, > > David Try the rexegg.com which is a site dedicate to this subject and has many resources. --Jach --

[issue44828] Using tkinter.filedialog crashes on macOS Python 3.9.6

2021-10-01 Thread David Melgar
David Melgar added the comment: Same issue. Running Monterey beta. Experiencing crash. Is there any plan for a fix or is the plan to wait for Monterey to release? -- nosy: +enki1711 ___ Python tracker

[issue45341] Update "Python Package Index" in Docs

2021-10-01 Thread Terry J. Reedy
Terry J. Reedy added the comment: The Python Packaging User Guide, Python Packaging Authority, and packaging.python.org are correct and stay as is. I verified the name at pypi.org. I found 7 occurrences of "Python Packaging Index" in /Doc. F:\dev\3x\Doc\distributing\index.rst: 34: * the

[issue45341] Update "Python Package Index" in Docs

2021-10-01 Thread Terry J. Reedy
Change by Terry J. Reedy : -- keywords: +patch pull_requests: +27051 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/28687 ___ Python tracker

[issue45344] Have zipapp respect SOURCE_DATE_EPOCH

2021-10-01 Thread Nate Woods
New submission from Nate Woods : I have a small patch that would make zipapp respect SOURCE_DATE_EPOCH. This will ensure the zip bundles created by zipapp have consistent hashes regardless of when the source files were last touched. This idea came to my attention recently when I came

[issue45303] ast module classes missing __text_signature__ attribute

2021-10-01 Thread Terry J. Reedy
Terry J. Reedy added the comment: I believe that multiple modules have not yet been converted to use argument clinic. (I marked 'test needed' but am not sure if this attribute is tested.) I don't think that I would put ast as highest priority, although it might be easiest. --

[issue25066] Better repr for multiprocessing.synchronize objects

2021-10-01 Thread Nihir Patel
Nihir Patel added the comment: Given https://github.com/python/cpython/pull/20534 is merged and the multiprocessing.synchronize objects inherit from the corresponding threading module objects, is this still needed? -- nosy: +nihir27 ___ Python

[issue45302] 10 built-in functions need non-None .__text_signature__

2021-10-01 Thread Terry J. Reedy
Terry J. Reedy added the comment: I agree that finishing this would be nice. In branch main (3.11.0a0), open and print now have non-None versions of this attribute. However, for ob in builtins.__dict__.values(): if (str(ob).startswith(' So there are still some to do. for ob

[issue45330] dulwich_log performance regression in 3.10

2021-10-01 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: We use a pinned version of pyperformance so the code has not changed. I need to manually bump the version and when they happens I wipe all previous benchmarks -- nosy: +pablogsal -vstinner title: speed.python.org: dulwich_log performance

[issue45330] speed.python.org: dulwich_log performance regression

2021-10-01 Thread STINNER Victor
STINNER Victor added the comment: The pyperformance version in pinned on speed.python.org. Moreover, the timeline tracks the main branch, not the 3.10 branch. -- nosy: +vstinner title: dulwich_log performance regression in 3.10 -> speed.python.org: dulwich_log performance regression

[issue45288] Inspect - Added sort_result parameter on getmembers function.

2021-10-01 Thread Terry J. Reedy
Change by Terry J. Reedy : -- resolution: -> rejected stage: -> resolved status: open -> closed type: -> enhancement versions: +Python 3.11 -Python 3.8 ___ Python tracker

[issue41021] ctypes callback with structure crashes in Python 3.8 on Windows x86

2021-10-01 Thread Steve Dower
Steve Dower added the comment: Judging from https://github.com/libffi/libffi, they could do with more contributors/support over there. I see a bunch of reports along these lines from a few years back, apparently someone has a test suite that covers it, but hasn't merged it into the libffi

[issue44687] io.BufferedReader:peek() closes underlying file, breaking peek/read expectations

2021-10-01 Thread Steve Dower
Steve Dower added the comment: New changeset 6035d650a322cec9619b306af2a877f3cead1580 by Miss Islington (bot) in branch '3.9': bpo-44687: Ensure BufferedReader objects with unread buffers can peek even when the underlying file is closed (GH-28457)

[issue44687] io.BufferedReader:peek() closes underlying file, breaking peek/read expectations

2021-10-01 Thread Steve Dower
Change by Steve Dower : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue45338] Add key argument to collections.Counter

2021-10-01 Thread kubat aytekin
kubat aytekin added the comment: Or keep the reverse mapping in another dict: count = Counter() reverse_mapping = dict() for x in all_the_items: count.update(keyfunc(x)) reverse_mapping[keyfunc(x)] = x Anyways I'm closing it as it is a partial duplicate of

[issue44687] io.BufferedReader:peek() closes underlying file, breaking peek/read expectations

2021-10-01 Thread miss-islington
miss-islington added the comment: New changeset 2221207f44c2abd34406ee590e6b13afaca53ee8 by Miss Islington (bot) in branch '3.10': bpo-44687: Ensure BufferedReader objects with unread buffers can peek even when the underlying file is closed (GH-28457)

[issue45338] Add key argument to collections.Counter

2021-10-01 Thread Dennis Sweeney
Dennis Sweeney added the comment: The values of a Counter are generally integers, not lists. Maybe you want: items_by_keyfunc = defaultdict(list) for x in all_the_items: items_by_keyfunc[keyfunc(x)].append(x) Then items_by_keyfunc[42] is a list of the things with key 42.

[issue45338] Add key argument to collections.Counter

2021-10-01 Thread kubat aytekin
kubat aytekin added the comment: I was thinking about use cases where one might want to preserve the original key. I was not however aware of PEP 455 and the reasons for it's rejection. My bad. Yet It is still unclear to me what the best practice would be to reverse lookup unhashable

[issue44687] io.BufferedReader:peek() closes underlying file, breaking peek/read expectations

2021-10-01 Thread Steve Dower
Steve Dower added the comment: Thanks for sticking through it! Sorry about the delays, but I think we ended up with a good fix. -- ___ Python tracker ___

[issue44687] io.BufferedReader:peek() closes underlying file, breaking peek/read expectations

2021-10-01 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 3.0 -> 4.0 pull_requests: +27049 pull_request: https://github.com/python/cpython/pull/28685 ___ Python tracker

[issue44687] io.BufferedReader:peek() closes underlying file, breaking peek/read expectations

2021-10-01 Thread miss-islington
Change by miss-islington : -- pull_requests: +27050 pull_request: https://github.com/python/cpython/pull/28686 ___ Python tracker ___

[issue44687] io.BufferedReader:peek() closes underlying file, breaking peek/read expectations

2021-10-01 Thread Steve Dower
Steve Dower added the comment: New changeset a450398933d265011e1e8eae7f771b70f97945fb by AngstyDuck in branch 'main': bpo-44687: Ensure BufferedReader objects with unread buffers can peek even when the underlying file is closed (GH-28457)

[issue45343] Update bundled pip to 21.2.4 and setuptools to 58.1.0

2021-10-01 Thread Illia Volochii
Change by Illia Volochii : -- keywords: +patch pull_requests: +27048 stage: -> patch review pull_request: https://github.com/python/cpython/pull/28684 ___ Python tracker ___

[issue45343] Update bundled pip to 21.2.4 and setuptools to 58.1.0

2021-10-01 Thread Illia Volochii
Change by Illia Volochii : -- components: Distutils nosy: dstufft, eric.araujo, illia-v priority: normal severity: normal status: open title: Update bundled pip to 21.2.4 and setuptools to 58.1.0 versions: Python 3.10, Python 3.11, Python 3.9 ___

[issue45338] Add key argument to collections.Counter

2021-10-01 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45338] Add key argument to collections.Counter

2021-10-01 Thread Dennis Sweeney
Dennis Sweeney added the comment: How is Counter(numbers, key=abs) any better than Counter(map(abs, numbers))? It seems to me that "apply a function to each thing" (map) and "count the numbers of each thing" (Counter) are two orthogonal concepts, and there's no reason to entangle them.

[issue38435] Start the deprecation cycle for subprocess preexec_fn

2021-10-01 Thread Gregory P. Smith
Gregory P. Smith added the comment: Another use case someone had for preexec_fn popped up today: prctl(PR_SET_PDEATHSIG, SIGTERM) -- ___ Python tracker ___

[issue45020] Freeze all modules imported during startup.

2021-10-01 Thread Guido van Rossum
Guido van Rossum added the comment: And it's most definitely 3.11, not 3.9. (Did you mean to change a different issue?) -- versions: +Python 3.11 -Python 3.9 ___ Python tracker

[issue45020] Freeze all modules imported during startup.

2021-10-01 Thread Guido van Rossum
Guido van Rossum added the comment: @santhu_reddy12, why did you assign this to the Parser category? IMO this issue is clearly in the Build category. (We haven't met, I assume you have triage permissions?) -- ___ Python tracker

[issue45020] Freeze all modules imported during startup.

2021-10-01 Thread santhosh
Change by santhosh : -- components: +Parser -Build nosy: +lys.nikolaou, pablogsal, santhu_reddy12 versions: +Python 3.9 -Python 3.11 ___ Python tracker ___

[issue41710] threading.Lock.acquire(timeout) should use sem_clockwait(CLOCK_MONOTONIC)

2021-10-01 Thread STINNER Victor
STINNER Victor added the comment: Jonas Norling: Thanks for the bug report! It's now fixed in 3.9, 3.10 and main branches. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.10, Python 3.9 ___

[issue41710] threading.Lock.acquire(timeout) should use sem_clockwait(CLOCK_MONOTONIC)

2021-10-01 Thread STINNER Victor
STINNER Victor added the comment: New changeset 0e1aeab5d7de3f328876aea8ccabbc6db146a883 by Miss Islington (bot) in branch '3.9': bpo-41710: PyThread_acquire_lock_timed() uses sem_clockwait() (GH-28671) (GH-28683)

[issue41710] threading.Lock.acquire(timeout) should use sem_clockwait(CLOCK_MONOTONIC)

2021-10-01 Thread STINNER Victor
STINNER Victor added the comment: New changeset 6df8c327532627d6a1993c52e8e4a9b34968 by Victor Stinner in branch '3.10': bpo-41710: PyThread_acquire_lock_timed() uses sem_clockwait() (GH-28671) https://github.com/python/cpython/commit/6df8c327532627d6a1993c52e8e4a9b34968 --

[issue41710] threading.Lock.acquire(timeout) should use sem_clockwait(CLOCK_MONOTONIC)

2021-10-01 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 4.0 -> 5.0 pull_requests: +27047 pull_request: https://github.com/python/cpython/pull/28683 ___ Python tracker

[issue45342] wrap_socket fails when load_cert_chain is called without setting the ciphers

2021-10-01 Thread Christian Heimes
Christian Heimes added the comment: The module level function ssl.wrap_socket() is deprecated, dangerous, and should not be used. I strongly recommend that you use SSLContext. -- ___ Python tracker

[issue45342] wrap_socket fails when load_cert_chain is called without setting the ciphers

2021-10-01 Thread shreya
New submission from shreya : Example: self.socket = ssl.wrap_socket(socket.socket(self.address_family, self.socket_type), keyfile=keys, certfile=certs, server_side=True, ciphers="DEFAULT@SECLEVEL=1") Gives the following exception - File

[issue45020] Freeze all modules imported during startup.

2021-10-01 Thread Eric Snow
Change by Eric Snow : -- pull_requests: +27045 pull_request: https://github.com/python/cpython/pull/28655 ___ Python tracker ___

[issue45341] Update "Python Package Index" in Docs

2021-10-01 Thread Steven Hsu
Change by Steven Hsu : -- type: -> enhancement ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45332] Decimal test and benchmark are broken

2021-10-01 Thread Dong-hee Na
Dong-hee Na added the comment: Now the code is fixed. Thanks Serhiy for the report and review :) -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue45332] Decimal test and benchmark are broken

2021-10-01 Thread miss-islington
miss-islington added the comment: New changeset 282992b36f9fe27183037051f3b37210884600af by Miss Islington (bot) in branch '3.10': bpo-45332: Fix broken Decimal test and benchmark (GH-28680) https://github.com/python/cpython/commit/282992b36f9fe27183037051f3b37210884600af --

[issue44811] Change default signature algorithms for context in the ssl library

2021-10-01 Thread ramikg
ramikg added the comment: As a side note, while the ideal solution would be for Python to expose the appropriate API, there exists a hacky solution using ctypes: https://github.com/ramikg/ssl-context-configurator -- nosy: +ramikg ___ Python

[issue45332] Decimal test and benchmark are broken

2021-10-01 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 4.0 -> 5.0 pull_requests: +27044 pull_request: https://github.com/python/cpython/pull/28681 ___ Python tracker

[issue45332] Decimal test and benchmark are broken

2021-10-01 Thread Dong-hee Na
Dong-hee Na added the comment: New changeset 9eed75fde226cec5a02301cfac1dc8039b5a183e by Dong-hee Na in branch 'main': bpo-45332: Fix broken Decimal test and benchmark (GH-28680) https://github.com/python/cpython/commit/9eed75fde226cec5a02301cfac1dc8039b5a183e --

[issue45341] Update "Python Package Index" in Docs

2021-10-01 Thread Steven Hsu
New submission from Steven Hsu : The full name of PyPI is "Python Package Index" at https://pypi.org/ , but it is still "Python Packaging Index" in Docs (https://github.com/python/cpython/blob/main/Doc/distributing/index.rst). Therefore, an update of the term in the Docs is suggested. The

[issue45332] Decimal test and benchmark are broken

2021-10-01 Thread Dong-hee Na
Change by Dong-hee Na : -- keywords: +patch nosy: +corona10 nosy_count: 3.0 -> 4.0 pull_requests: +27043 stage: -> patch review pull_request: https://github.com/python/cpython/pull/28680 ___ Python tracker

[issue45125] Improve tests and docs of how `pickle` works with `SharedMemory` obejcts

2021-10-01 Thread miss-islington
miss-islington added the comment: New changeset fc3511f18e92ea345092aa59a4225218bd19e153 by Miss Islington (bot) in branch '3.10': bpo-45125: Improves pickling docs and tests for `shared_memory` (GH-28294) https://github.com/python/cpython/commit/fc3511f18e92ea345092aa59a4225218bd19e153

[issue44594] AsyncExitStack.enter_async_context() is mishandling exception __context__

2021-10-01 Thread John Belmonte
Change by John Belmonte : -- type: -> behavior versions: +Python 3.10, Python 3.11, Python 3.7, Python 3.8, Python 3.9 ___ Python tracker ___

[issue32307] Bad assumption on thread stack size makes python crash with musl libc

2021-10-01 Thread 4-launchpad-kalvdans-no-ip-org
Change by 4-launchpad-kalvdans-no-ip-org : -- nosy: +4-launchpad-kalvdans-no-ip-org ___ Python tracker ___ ___ Python-bugs-list

[issue41710] threading.Lock.acquire(timeout) should use sem_clockwait(CLOCK_MONOTONIC)

2021-10-01 Thread STINNER Victor
STINNER Victor added the comment: New changeset 833fdf126c8fe77fd17e8a8ffbc5c571b3bf64bd by Victor Stinner in branch 'main': bpo-41710: Add private _PyDeadline_Get() function (GH-28674) https://github.com/python/cpython/commit/833fdf126c8fe77fd17e8a8ffbc5c571b3bf64bd --

[issue41710] threading.Lock.acquire(timeout) should use sem_clockwait(CLOCK_MONOTONIC)

2021-10-01 Thread STINNER Victor
STINNER Victor added the comment: New changeset 54957f16a63ecb6b15f77b01fa7c55ada892604a by Victor Stinner in branch 'main': bpo-41710: gc_collect_main() uses _PyTime_GetPerfCounter() (GH-28676) https://github.com/python/cpython/commit/54957f16a63ecb6b15f77b01fa7c55ada892604a --

[issue45340] Lazily create dictionaries for plain Python objects

2021-10-01 Thread Mark Shannon
New submission from Mark Shannon : A "Normal" Python objects is conceptually just a pair of pointers, one to the class, and one to the dictionary. With shared keys, the dictionary is redundant as it is no more than a pair of pointers, one to the keys and one to the values. By adding a

[issue41710] threading.Lock.acquire(timeout) should use sem_clockwait(CLOCK_MONOTONIC)

2021-10-01 Thread STINNER Victor
STINNER Victor added the comment: New changeset 98d282700221234157159df4af76423d89490ad9 by Victor Stinner in branch 'main': bpo-41710: Fix PY_TIMEOUT_MAX on Windows (GH-28673) https://github.com/python/cpython/commit/98d282700221234157159df4af76423d89490ad9 --

[issue41710] threading.Lock.acquire(timeout) should use sem_clockwait(CLOCK_MONOTONIC)

2021-10-01 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +27042 pull_request: https://github.com/python/cpython/pull/28676 ___ Python tracker ___

[issue45125] Improve tests and docs of how `pickle` works with `SharedMemory` obejcts

2021-10-01 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 3.0 -> 4.0 pull_requests: +27041 pull_request: https://github.com/python/cpython/pull/28675 ___ Python tracker

[issue45125] Improve tests and docs of how `pickle` works with `SharedMemory` obejcts

2021-10-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 746d648d47d12d16c2afedaeff626fc6aaaf6a46 by Nikita Sobolev in branch 'main': bpo-45125: Improves pickling docs and tests for `shared_memory` (GH-28294) https://github.com/python/cpython/commit/746d648d47d12d16c2afedaeff626fc6aaaf6a46

[issue45339] concurrent.future.ThreadPoolExecutor should parameterize class used for threads

2021-10-01 Thread Erick
New submission from Erick : Currently the only way to use a class other than `threading.Thread` with `concurrent.futures.ThreadPoolExecutor` is to extend `ThreadPoolExecutor` and override the private method `_adjust_thread_count()`. For example, suppose I have a class that applies some

[issue41710] threading.Lock.acquire(timeout) should use sem_clockwait(CLOCK_MONOTONIC)

2021-10-01 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +27039 pull_request: https://github.com/python/cpython/pull/28674 ___ Python tracker ___

[issue45310] test_multiprocessing_forkserver: test_shared_memory_basics() failed with FileExistsError: [Errno 17] File exists: '/test01_tsmb'

2021-10-01 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue45330] dulwich_log performance regression in 3.10

2021-10-01 Thread Ken Jin
Ken Jin added the comment: Ooh thanks Irit, I hadn't considered that. I thought that versions were fixed, but it seems that we *do* change the 3rd party package versions once in a while. In that time period, we bumped dulwich from 0.20.20 to 0.20.21

Re: Definitive guide for Regex

2021-10-01 Thread Shaozhong SHI
Hi, Barry, In cases of automating checking, validation and producing reports in the context of data quality control and giving specific feedback to production teams, regex is perhaps the only way. Perhaps, we can give each element of data specifications a name, that are associated with a regex

[issue45310] test_multiprocessing_forkserver: test_shared_memory_basics() failed with FileExistsError: [Errno 17] File exists: '/test01_tsmb'

2021-10-01 Thread miss-islington
miss-islington added the comment: New changeset 4e6681d0cf9e7ce5621c34ff87055fa1f9786108 by Miss Islington (bot) in branch '3.10': bpo-45310: Fix parrallel shared memory tests (GH-28661) https://github.com/python/cpython/commit/4e6681d0cf9e7ce5621c34ff87055fa1f9786108 --

[issue45310] test_multiprocessing_forkserver: test_shared_memory_basics() failed with FileExistsError: [Errno 17] File exists: '/test01_tsmb'

2021-10-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 4d5d161d2aae41738d28e22bac5e1e08c01394bb by Serhiy Storchaka in branch '3.9': [3.9] bpo-45310: Fix parrallel shared memory tests (GH-28661) (GH-28670) https://github.com/python/cpython/commit/4d5d161d2aae41738d28e22bac5e1e08c01394bb

[issue41710] threading.Lock.acquire(timeout) should use sem_clockwait(CLOCK_MONOTONIC)

2021-10-01 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +27038 pull_request: https://github.com/python/cpython/pull/28673 ___ Python tracker ___

[issue41111] [C API] Convert a few stdlib extensions to the limited C API (PEP 384)

2021-10-01 Thread Christian Heimes
Change by Christian Heimes : -- nosy: +christian.heimes ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35747] Python threading event wait influenced by date change

2021-10-01 Thread STINNER Victor
Change by STINNER Victor : -- superseder: Use the monotonic clock for thread conditions on POSIX platforms -> NewGIL should use CLOCK_MONOTONIC if possible. ___ Python tracker

[issue41710] threading.Lock.acquire(timeout) should use sem_clockwait(CLOCK_MONOTONIC)

2021-10-01 Thread STINNER Victor
STINNER Victor added the comment: > There are already a number of closed bugs for this and related issues: bpo > 23428, bpo 31267, bpo 35747. Fixed bpo-12822 modified threading.Condition.wait(timeout) to use a monotonic clock: use pthread_condattr_setclock(CLOCK_MONOTONIC). bpo-23428,

[issue12822] threading.Condition.wait(timeout) should use a monotonic clock: use pthread_condattr_setclock(CLOCK_MONOTONIC)

2021-10-01 Thread STINNER Victor
Change by STINNER Victor : -- title: NewGIL should use CLOCK_MONOTONIC if possible. -> threading.Condition.wait(timeout) should use a monotonic clock: use pthread_condattr_setclock(CLOCK_MONOTONIC) ___ Python tracker

[issue31267] threading.Timer object is affected by changes to system time: Python locks should use a monotonic clock if available

2021-10-01 Thread STINNER Victor
Change by STINNER Victor : -- superseder: Use the monotonic clock for thread conditions on POSIX platforms -> NewGIL should use CLOCK_MONOTONIC if possible. ___ Python tracker

[issue23428] Use the monotonic clock for thread conditions on POSIX platforms

2021-10-01 Thread STINNER Victor
Change by STINNER Victor : -- resolution: fixed -> duplicate superseder: -> NewGIL should use CLOCK_MONOTONIC if possible. ___ Python tracker ___

[issue41710] threading.Lock.acquire(timeout) should use sem_clockwait(CLOCK_MONOTONIC)

2021-10-01 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +27037 pull_request: https://github.com/python/cpython/pull/28672 ___ Python tracker ___

[issue41710] threading.Lock.acquire(timeout) should use sem_clockwait(CLOCK_MONOTONIC)

2021-10-01 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +27036 pull_request: https://github.com/python/cpython/pull/28671 ___ Python tracker ___

[issue45338] Add key argument to collections.Counter

2021-10-01 Thread kubat aytekin
New submission from kubat aytekin : Counter has become the default tool for counting occurences of objects in an iterable. However by construction it only works on hashable objects as it is a subclass of dict. Would it be possible to implement a "key=" keyword argument as in sort etc.?

[issue45310] test_multiprocessing_forkserver: test_shared_memory_basics() failed with FileExistsError: [Errno 17] File exists: '/test01_tsmb'

2021-10-01 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +27035 pull_request: https://github.com/python/cpython/pull/28670 ___ Python tracker ___

[issue41710] threading.Lock.acquire(timeout) should use sem_clockwait(CLOCK_MONOTONIC)

2021-10-01 Thread STINNER Victor
STINNER Victor added the comment: With sem_clockwait(CLOCK_MONOTONIC) on Fedora 34 (glibc-2.33-20.fc34.x86_64, Linux kernel 5.13.19-200.fc34.x86_64), time_test.py now works as expected: $ sudo ./python time_test.py Took 2.000 s Took 2.000 s Took 2.000 s Took 2.000 s Took 2.000 s Took 2.000 s

[issue45229] Always use unittest for collecting tests in regrtests

2021-10-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset e9d5cdda1ffa369550a634a3ec220db93433e0f4 by Serhiy Storchaka in branch '3.9': Revert "Revert "bpo-45229: Make datetime tests discoverable (GH-28615). (GH-28645)" (GH-28660)" (GH-28666)

[issue45229] Always use unittest for collecting tests in regrtests

2021-10-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 2f205920127bd93eebed044cb1b61834764478ba by Serhiy Storchaka in branch 'main': Revert "Revert "bpo-45229: Make datetime tests discoverable (GH-28615)" (GH-28650)" (GH-28667)

[issue45310] test_multiprocessing_forkserver: test_shared_memory_basics() failed with FileExistsError: [Errno 17] File exists: '/test01_tsmb'

2021-10-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset eb4495e8e275c83d691add116c4f2b74e73e3cc8 by Serhiy Storchaka in branch 'main': bpo-45310: Fix parrallel shared memory tests (GH-28661) https://github.com/python/cpython/commit/eb4495e8e275c83d691add116c4f2b74e73e3cc8 --

[issue45310] test_multiprocessing_forkserver: test_shared_memory_basics() failed with FileExistsError: [Errno 17] File exists: '/test01_tsmb'

2021-10-01 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 2.0 -> 3.0 pull_requests: +27034 pull_request: https://github.com/python/cpython/pull/28669 ___ Python tracker

[issue41710] acquire(timeout) of threading.Lock and threading.Condition is affected by jumps in system time: Python should use sem_clockwait(CLOCK_MONOTONIC)

2021-10-01 Thread STINNER Victor
STINNER Victor added the comment: New changeset 1ee0f94d16f150356a4b9b0a39d44ba1d2d5b9fc by Victor Stinner in branch 'main': bpo-41710: PyThread_acquire_lock_timed() uses sem_clockwait() (GH-28662) https://github.com/python/cpython/commit/1ee0f94d16f150356a4b9b0a39d44ba1d2d5b9fc --

[issue45229] Always use unittest for collecting tests in regrtests

2021-10-01 Thread miss-islington
miss-islington added the comment: New changeset ef7c7294e8404d844c1add892a8f6684e6cf4f31 by Miss Islington (bot) in branch '3.10': bpo-45229: Make datetime tests discoverable (GH-28615) https://github.com/python/cpython/commit/ef7c7294e8404d844c1add892a8f6684e6cf4f31 --

[issue41710] acquire(timeout) of threading.Lock and threading.Condition is affected by jumps in system time: Python should use sem_clockwait(CLOCK_MONOTONIC)

2021-10-01 Thread Mike Crowe
Mike Crowe added the comment: vstinner wrote: > The glibc 2.30 adds pthread_cond_clockwait() which could be used to use > CLOCK_MONOTONIC. But if pthread_cond_clockwait() is available (glibc > 2.30 or newer), it expects that pthread_condattr_setclock() is also > available. So I'm not sure

[issue45229] Always use unittest for collecting tests in regrtests

2021-10-01 Thread miss-islington
Change by miss-islington : -- pull_requests: +27033 pull_request: https://github.com/python/cpython/pull/28668 ___ Python tracker ___

[issue45229] Always use unittest for collecting tests in regrtests

2021-10-01 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +27032 pull_request: https://github.com/python/cpython/pull/28667 ___ Python tracker ___

[issue45229] Always use unittest for collecting tests in regrtests

2021-10-01 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +27031 pull_request: https://github.com/python/cpython/pull/28666 ___ Python tracker ___

[issue40058] Running test_datetime twice fails with: module 'datetime' has no attribute '_divide_and_round'

2021-10-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Fixed in issue40173. -- nosy: +serhiy.storchaka resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue40173] test.support.import_fresh_module fails to correctly block submodules when fresh is specified

2021-10-01 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[Python-announce] NLTK 3.6.4 released

2021-10-01 Thread Ilia Kurenkov
We are making our debut on this mailing list with a release that fixes a security vulnerability . This release is intended to be a drop-in replacement. It contains the following changes: * deprecate nltk.usage(obj) in favor of