[issue47238] Python threading.Event().wait() depends on the system time

2022-04-06 Thread Aleksandr
New submission from Aleksandr : This happens on Ubuntu on Python versions 3.8.5 and 3.10.4 I have two threads that can change the system time to a day ago. If the change in the system time for a day occurs at the time of wait, then I hang for one day plus the waiting time. I thought

[issue46226] User specific paths added to System PATH environment variable

2022-01-10 Thread Aleksandr Krymskiy
Aleksandr Krymskiy added the comment: I installed 3.10, and then removed 3.9 that I had installed previously. Python is installed in "C:\Program Files\Python310". The only thing that exists under %LocalAppData% is an empty directory "C:\Users\avk\AppData\Local\Programs\P

[issue46226] User specific paths added to System PATH environment variable

2022-01-07 Thread Aleksandr Krymskiy
Aleksandr Krymskiy added the comment: I did not find install logs in my user %TEMP% or C:\Windows\Temp. I did select "install for all users" during setup just like I always do, but I did not override the default location of "C:\Program Files\Python310". I attached screen

[issue46226] User specific paths added to System PATH environment variable

2022-01-02 Thread Aleksandr Krymskiy
New submission from Aleksandr Krymskiy : Installed Python 3.10.1 using Windows 64-bit installer from python.org. Upon examining the PATH environment variables I noticed that my local user paths (C:\Users\avk\AppData\...) have been added to the System-level PATH variable instead of User level

[issue43076] str.split() indexing issue

2021-01-30 Thread Aleksandr Sigalov
New submission from Aleksandr Sigalov : The following code ran in Google Colab... = import sys print (sys.version) string = 'WORD=BIRD\nBIRD\nBIRD' print(string.split()) print('') print(string.split('=')[0][0:3])

[issue37347] Reference-counting problem in sqlite

2019-06-25 Thread Aleksandr Balezin
Aleksandr Balezin added the comment: I've pushed changes https://github.com/python/cpython/pull/14268/commits/bce7fdc952b14c23821e184e82b3944f6e10aaa9. Could I ask for clarification on callback and Py_DECREF(something)? -- ___ Python tr

[issue37347] Reference-counting problem in sqlite

2019-06-24 Thread Aleksandr Balezin
Aleksandr Balezin added the comment: At my point of view, dererencing from sqlite destructor has next flaws: - relying on external library which can has bugs - using different routine for reference-counting(complicates code) - loosing support for old sqlite version Of cause, if it's nece

[issue37347] Reference-counting problem in sqlite

2019-06-21 Thread Aleksandr Balezin
Aleksandr Balezin added the comment: Because destructor can be registered only for particular functions. For example sqlite3_progress_handler() can't register destructor. -- ___ Python tracker <https://bugs.python.org/is

[issue37347] Reference-counting problem in sqlite

2019-06-20 Thread Aleksandr Balezin
Change by Aleksandr Balezin : -- pull_requests: -14092 ___ Python tracker <https://bugs.python.org/issue37347> ___ ___ Python-bugs-list mailing list Unsub

[issue37347] Reference-counting problem in sqlite

2019-06-20 Thread Aleksandr Balezin
Change by Aleksandr Balezin : -- pull_requests: +14094 pull_request: https://github.com/python/cpython/pull/14268 ___ Python tracker <https://bugs.python.org/issue37

[issue37347] Reference-counting problem in sqlite

2019-06-20 Thread Aleksandr Balezin
Change by Aleksandr Balezin : -- keywords: +patch pull_requests: +14092 stage: -> patch review pull_request: https://github.com/python/cpython/pull/14265 ___ Python tracker <https://bugs.python.org/issu

[issue37347] Reference-counting problem in sqlite

2019-06-20 Thread Aleksandr Balezin
Change by Aleksandr Balezin : Added file: https://bugs.python.org/file48430/bug.py ___ Python tracker <https://bugs.python.org/issue37347> ___ ___ Python-bugs-list mailin

[issue37347] Reference-counting problem in sqlite

2019-06-20 Thread Aleksandr Balezin
New submission from Aleksandr Balezin : There are a couple of bugs in sqlite bindings have been found related to reference-counting. Short info: sqlite connection class uses a dict to keep references to callbacks. This mechanism is not suitable for objects which equals but not the same. con

[issue36613] asyncio._wait() don't remove callback in case of exception

2019-04-12 Thread Aleksandr Balezin
Change by Aleksandr Balezin : -- keywords: +patch pull_requests: +12728 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue36613> ___ _

[issue36613] asyncio._wait() don't remove callback in case of exception

2019-04-12 Thread Aleksandr Balezin
New submission from Aleksandr Balezin : Attached script shows unexpected behavior of the wait() function. The wait_ function adds done callback on every call and removes it only if a waiter is successfully awaited. In case of CancelledError exception during "await waiter", callbacks

[issue32816] Python's json dumps/loads make integer keys of the dict str

2018-02-10 Thread Korabelnikov Aleksandr via Python-bugs-list
New submission from Korabelnikov Aleksandr : when i serialize and deserialize python built-in structure I'm expect output same as input arr2 = [1,2,'3'] arr2_json = json.dumps(arr2) json.loads(arr2_json) Out[16]: [1, 2, '3'] BUT when I'm tring do it with dict I g

[issue20825] containment test for "ip_network in ip_network"

2017-05-23 Thread Aleksandr Balezin
Aleksandr Balezin added the comment: I've reviewed this patch and want to make some advices. - hasattr is unwanted here. There is no any similar usage hasattr in this module. Also before hasattr there is a call of _ipversion method. If other is not instance of BaseNetwork it will

[issue25430] speed up ipaddress __contain__ method

2017-05-23 Thread Aleksandr Balezin
Aleksandr Balezin added the comment: I think this patch can be easily applied. There are no any breaking changes. My colleagues and I assume that ipaddress module would work fast because it is easy to imagine tasks, operate with ton of networks. Also, current comparison implementation works as

[issue27601] Minor inaccuracy in hash documentation

2016-07-24 Thread Aleksandr Koshkin
Aleksandr Koshkin added the comment: Originally I emphasized that this bug occurs at every py3k version since 3.2. For some reason version list somehow shrinked to only tow of them - 3.5 and 3.6. I am very sorry, this is probably my fault. -- resolution: fixed -> status: clo

[issue27608] Something wrong with str.upper().lower() chain?

2016-07-24 Thread Aleksandr Koshkin
Aleksandr Koshkin added the comment: Conclusion made: not a bug (not a python bug at least). -- status: open -> closed ___ Python tracker <http://bugs.python.org/issu

[issue27608] Something wrong with str.upper().lower() chain?

2016-07-24 Thread Aleksandr Koshkin
Aleksandr Koshkin added the comment: So, yes, unicode table seems to be a bit inconsistent. In str documentation it worth to emphasize that something.upper().lower() in general not equals to something. -- ___ Python tracker <http://bugs.python.

[issue27608] Something wrong with str.upper().lower() chain?

2016-07-24 Thread Aleksandr Koshkin
Aleksandr Koshkin added the comment: Note, that >>> ord('µ') 181 there is another Mu like symbol chr(956), on which this code passes -- ___ Python tracker <http://bugs

[issue27608] Something wrong with str.upper().lower() chain?

2016-07-24 Thread Aleksandr Koshkin
New submission from Aleksandr Koshkin: For some reason >>> 'µ'.upper().lower() == 'µ' False -- components: Unicode messages: 271174 nosy: ezio.melotti, haypo, magniff priority: normal severity: normal status: open title: Something wrong with str.upper().

[issue27601] Minor inaccuracy in hash documentation

2016-07-23 Thread Aleksandr Koshkin
Changes by Aleksandr Koshkin : -- status: open -> closed ___ Python tracker <http://bugs.python.org/issue27601> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue27601] Minor inaccuracy in hash documentation

2016-07-23 Thread Aleksandr Koshkin
Aleksandr Koshkin added the comment: Thanks) -- resolution: -> fixed versions: +Python 3.2, Python 3.3, Python 3.4, Python 3.5 ___ Python tracker <http://bugs.python.org/issu

[issue27601] Minor inaccuracy in hash documentation

2016-07-23 Thread Aleksandr Koshkin
Aleksandr Koshkin added the comment: Moreover this example contains following code if hash_ == -1: hash_ == -2 return hash_ that doesn`t make too much sense. -- ___ Python tracker <http://bugs.python.org/issue27

[issue27601] Minor inaccuracy in hash documentation

2016-07-23 Thread Aleksandr Koshkin
New submission from Aleksandr Koshkin: https://docs.python.org/3.6/library/stdtypes.html#hashing-of-numeric-types Look at semantics example for hash_complex function. The variable 'hash' is clearly misused - it is not defined or refers to builtin function 'hash'. Eithe

[issue25431] implement address in network in ipaddress module

2016-03-28 Thread Aleksandr Balezin
Aleksandr Balezin added the comment: Any news? -- ___ Python tracker <http://bugs.python.org/issue25431> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue25431] implement address in network in ipaddress module

2015-10-17 Thread Aleksandr Balezin
Changes by Aleksandr Balezin : -- versions: +Python 3.4, Python 3.6 ___ Python tracker <http://bugs.python.org/issue25431> ___ ___ Python-bugs-list mailin

[issue25430] speed up ipaddress __contain__ method

2015-10-17 Thread Aleksandr Balezin
Changes by Aleksandr Balezin : -- versions: +Python 3.4, Python 3.6 ___ Python tracker <http://bugs.python.org/issue25430> ___ ___ Python-bugs-list mailin

[issue22583] C stack overflow in the Python 2.7 compiler

2015-04-16 Thread Aleksandr Yeganov
Aleksandr Yeganov added the comment: This is a backport of https://bugs.python.org/issue5765. I've pretty much taken the patch directly and applied it. I did have to modify the test code to use a different method. -- keywords: +patch nosy: +ayeganov Added file: http://bugs.pytho