[issue24053] Define EXIT_SUCCESS and EXIT_FAILURE constants in sys

2022-02-18 Thread Golubev Alexander
Golubev Alexander added the comment: Any reasons the PR still not merged? -- nosy: +Fat-Zer ___ Python tracker <https://bugs.python.org/issue24053> ___ ___ Pytho

[issue46730] Please consider mentioning property without setter when an attribute can't be set

2022-02-12 Thread Alexander
Alexander added the comment: Added the PR. (I have signed the CLA, just haven't got the response yet, doesn't affect the discussion I guess) -- ___ Python tracker <https://bugs.python.o

[issue46730] Please consider mentioning property without setter when an attribute can't be set

2022-02-12 Thread Alexander
Change by Alexander : -- keywords: +patch pull_requests: +29472 stage: -> patch review pull_request: https://github.com/python/cpython/pull/31311 ___ Python tracker <https://bugs.python.org/issu

[issue46730] Please consider mentioning property without setter when an attribute can't be set

2022-02-12 Thread Alexander
Alexander added the comment: Indeed, the error message does not help to identify the problem. Moreover, it collides with similar errors in namedtuple and DynamicClassAttribute which may lead to even more confusion. I made a draft patch that could help with it (https://github.com/Alex-Blade

[issue44665] asyncio.create_task() documentation should mention user needs to keep reference to the task

2022-01-06 Thread Alexander Hartl
Alexander Hartl added the comment: I just found this PR when a task of mine spontaneously crashed with a "Task was destroyed but it is pending" in the middle of program execution. I think the warning should be added to `loop.create_task()`, too. Not sure if `loop.call_la

[issue33080] regen-importlib is causing build races against other regen-all targets in Makefile.pre.in

2021-12-07 Thread Alexander Kanavin
Alexander Kanavin added the comment: (removed both the workaround, and regen-all itself) -- ___ Python tracker <https://bugs.python.org/issue33080> ___ ___ Pytho

[issue33080] regen-importlib is causing build races against other regen-all targets in Makefile.pre.in

2021-12-07 Thread Alexander Kanavin
Alexander Kanavin added the comment: We have long ago updated to a much newer python and removed the workaround, so the whatever the issue was, it is completely obsolete. Thanks! -- resolution: -> works for me stage: -> resolved status: open -&g

[issue44637] Quoting issue on header Reply-To and other address headers

2021-12-02 Thread Alexander Mohr
Alexander Mohr added the comment: btw my work-around was to set maxheaderlen=sys.maxsize, worked for AWS SES at least -- ___ Python tracker <https://bugs.python.org/issue44

[issue45945] compileall.py throws a traceback when using -j0 and thus 'make install' locks up

2021-12-01 Thread Alexander Kanavin
Alexander Kanavin added the comment: Here's the full log where you can see what happens. -- Added file: https://bugs.python.org/file50464/log.do_install.1905494 ___ Python tracker <https://bugs.python.org/is

[issue45945] compileall.py throws a traceback when using -j0 and thus 'make install' locks up

2021-12-01 Thread Alexander Kanavin
New submission from Alexander Kanavin : Hello, Yocto project has had to disable -j0 for compileall, so that it runs serially. If it doesn't, then 'make install' locks up sporadically, with hanging processes: ``` 3837320 ?SN 0:00 \_ make -j 16 -l 52

[issue45932] EmailMessage incorrectly splits name and address header

2021-11-29 Thread Alexander Mohr
Change by Alexander Mohr : -- title: EmailMessage incorrectly splits reply-to header -> EmailMessage incorrectly splits name and address header ___ Python tracker <https://bugs.python.org/issu

[issue45932] EmailMessage incorrectly splits reply-to header

2021-11-29 Thread Alexander Mohr
New submission from Alexander Mohr : If you have a reply-to list that contains a name with a comma it must be quoted, however if the line length is just right python with split the name incorrectly and not keep the quote. Note that the CC line keeps the quote in the name but the reply-to

[issue45564] shutil.rmtree and os.walk are implemented using recursion, fail on deep hierarchies

2021-10-21 Thread Alexander Patrakov
New submission from Alexander Patrakov : It is possible to create deep directory hierarchies that cannot be removed via shutil.rmtree or walked via os.walk, because these functions exceed the interpreter recursion limit. This may have security implications for web services (e.g. various

[issue45426] PANDAS INSTALLATION PIP FAILED ON WINDOWS 11

2021-10-10 Thread Jimmy Alexander
Jimmy Alexander added the comment: descarga la version 3.10 se supone es estable pero al momento de instalar PANDAS usando PIP en el CMD de windows 11 FALLA y empieza a buscar otras vesiones de menores de pandas para intentar instalar via pip pero todas fallan! -- type

[issue45426] PANDAS INSTALLATION PIP FAILED ON WINDOWS 11

2021-10-10 Thread Jimmy Alexander
Jimmy Alexander added the comment: C:\Users\ufx>pip install pandas Collecting pandas Using cached pandas-1.3.3.tar.gz (4.7 MB) Installing build dependencies ... error ERROR: Command errored out with exit status 1: command: 'C:\Users\ufx\AppData\Local\Programs\Python\P

[issue45426] PANDAS INSTALLATION PIP FAILED ON WINDOWS 11

2021-10-10 Thread Jimmy Alexander
New submission from Jimmy Alexander : Generating code Finished generating code building 'pandas._libs.parsers' extension C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29910\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /D

[issue45223] test_spawn_doesnt_hang (test.test_pty.PtyTest) fails when stdin isn't readable

2021-09-16 Thread Alexander Kanavin
New submission from Alexander Kanavin : I am observing the following under yocto's test harness: == ERROR: test_spawn_doesnt_hang (test.test_pty.Pt

[issue45128] test_multiprocessing fails sporadically on the release artifacts

2021-09-15 Thread Alexander Kanavin
Alexander Kanavin added the comment: I am seeing this one too in my yocto builds of 3.10rc2. What is bizarre is that the issue does not occur if the multiprocessing test is run in isolation: python3 -m test -v test_multiprocessing_fork but quite reliably does occur (three times in three

[issue44831] Inconsistency between datetime.now() and datetime.fromtimestamp(time.time(), None)

2021-08-06 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Can someone try to replicate this while disabling the C acceleration: import sys sys.modules[‘_datetime’] = None (Before any other imports.) If anything, this is likely to be a problem with the C implementation

[issue15870] PyType_FromSpec should take metaclass as an argument

2021-07-28 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I'll reopen this issue to resume the discussion. The motivating case - PEP 3121 refactoring of the ctypes module - is still open. See bpo-15884. -- resolution: rejected -> stage: resolved -> patch review status: closed ->

[issue15787] [meta issue] PEP 3121, 384 Refactoring

2021-07-28 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: > The work is now tracked at bpo-1635741. Which work? bpo-1635741 does not appear to be a meta-issue and in msg381432 it loops back here. -- versions: +Python 3.11 -Python 3.4 ___ Python tracker <

[issue43344] RotatingFileHandler breaks file type associations

2021-07-28 Thread Alexander Smirnov
Alexander Smirnov added the comment: the namer was implemented to add "*.log" extension, to avoid broken file association problem. ``` log_handler.namer = lambda name: name.replace(".log", "") + ".log" ``` >implemented carefully enough Could you p

[issue44753] backupCount is not respected in TimedRotatingFileHandler when namer is specified

2021-07-27 Thread Alexander Smirnov
New submission from Alexander Smirnov : after adding namer callable (like it is described in https://bugs.python.org/issue43344) to log handler configuration, it stopped removing old files log_filename = os.path.join(log_dir, "application.log") l

[issue43344] RotatingFileHandler breaks file type associations

2021-07-27 Thread Alexander Smirnov
Alexander Smirnov added the comment: the problem with namer solution is that it will stop respecting backupCount parameter -- nosy: +alexander.smirnoff ___ Python tracker <https://bugs.python.org/issue43

[issue44603] REPL: exit when the user types exit instead of asking them to explicitly type exit()

2021-07-12 Thread Taylor Alexander
Taylor Alexander added the comment: Am I correct in thinking that the proposed change only affects the use case where a user types exit in to the REPL and hits return? And that any other case is unaffected? I can only imagine that the majority of users who type exit in to the interpreter

[issue44603] REPL: exit when the user types exit instead of asking them to explicitly type exit()

2021-07-12 Thread Taylor Alexander
Taylor Alexander added the comment: Makes sense. Thanks for taking a look. -- ___ Python tracker <https://bugs.python.org/issue44603> ___ ___ Python-bugs-list m

[issue44603] REPL: exit when the user types exit instead of asking them to explicitly type exit()

2021-07-12 Thread Taylor Alexander
Taylor Alexander added the comment: Hello all. Curious issue. Thanks Stargirl for opening it. Would it be possible for the __repr__ function to examine the calling commands and determine if the origin is the special case where exit is typed in the REPL? Then only when Quitter repr is called

[issue44523] weakref.proxy documentation might be outdated

2021-06-28 Thread Alexander Neumann
New submission from Alexander Neumann : The documentation currently states: > Proxy objects are not hashable regardless of the referent; this avoids a > number of problems related to their fundamentally mutable nature, and prevent > their use as dictionary keys. callback is the sa

[issue44440] logging does not work as documented (setLevel)

2021-06-17 Thread Alexander Dietz
Alexander Dietz added the comment: I was not asking for a solution or a workaround. I simply wanted to submit this bug in either the code or the documentation. -- ___ Python tracker <https://bugs.python.org/issue44

[issue44440] logging does not work as documented (setLevel)

2021-06-17 Thread Alexander Dietz
New submission from Alexander Dietz : Using python 3.8.10 and the documentation https://docs.python.org/3.8/library/logging.html it seems that either the documentation is incorrect/unclear, or that the logging module does not work as described. Reading on the Logger Object and the setLevel

[issue43991] asyncio lock does not get released after task is canceled

2021-05-03 Thread Alexander Niederbühl
Alexander Niederbühl added the comment: That makes sense, thanks! -- stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/i

[issue43991] asyncio lock does not get released after task is canceled

2021-04-30 Thread Alexander Niederbühl
New submission from Alexander Niederbühl : If a task gets canceled while holding a lock, the lock is not automatically released. Is that expected, it seems like it could cause a deadlock? Failing test adapted from Lib/test/test_asyncio/test_locks.py (commit 6bd9288b80): def

[issue15443] datetime module has no support for nanoseconds

2021-04-07 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: > In telemetry, a nanosecond often translates to about a foot and 5 hours gets you to Pluto. Telemetry is exactly an application where absolute timestamps rarely make any sense. -- ___ Python trac

[issue15443] datetime module has no support for nanoseconds

2021-04-07 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Is there high enough demand for nanoseconds in datetime and time instances? How often nanosecond timestamps contain anything other than 0s or garbage in the last three digits? In my experience, all people want to do with such timestamps is to convert

[issue15443] datetime module has no support for nanoseconds

2021-04-07 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: @pganssle - let's keep the substantive discussions in the tracker so that they are not lost on github. You wrote: """ what is still blocking / needs to be done on this? Beta freeze for Python 3.10 is coming up at the beginning o

[issue43714] re.split(), re.sub(): '\Z' must consume end of string if it matched

2021-04-03 Thread Alexander Grigoriev
Alexander Grigoriev added the comment: For example, sed: $ sed --version sed (GNU sed) 4.8 Copyright (C) 2020 Free Software Foundation, Inc. $ sed -e 's/-\?$/x/g' <<<'a-b-' a-bx Perl: $ perl --version This is perl 5, version 32, subversion 0 (v5.32.0) built

[issue43714] re.split(), re.sub(): '\Z' must consume end of string if it matched

2021-04-03 Thread Alexander Grigoriev
New submission from Alexander Grigoriev : If '\Z' matches as part of a pattern in re.sub() or re.split(), it should consume the end of string, and then '\Z' alone should not match the end of string again. Current behavior: Python 3.9.2 (tags/v3.9.2:1a79785, Feb 19 20

[issue43686] re.match appears to hang with certain combinations of pattern and string

2021-03-31 Thread Alexander Grigoriev
New submission from Alexander Grigoriev : Certain patterns and input strings cause re.match to take exponentially longer time. This can be expected because of recursive nature of matching some patterns, but it can take surprisingly long time with some combination of a pattern and input data

[issue35935] threading.Event().wait() not interruptable with Ctrl-C on Windows

2021-03-03 Thread Alexander Grigoriev
Alexander Grigoriev added the comment: @ericsun: Windows calls the console event handler in a separate thread. The console event handler receives CTRL_C_EVENT, CTRL_BREAK_EVENT, console close, logoff, system shutdown events. Originally, Windows devised an APC mechanism to simulate

[issue42938] [security][CVE-2021-3177] ctypes double representation BoF

2021-02-22 Thread Alexander Riccio
Alexander Riccio added the comment: Yes, I definitely should. I work on https://bugs.python.org/issue25878 sometimes, which encompasses this. -- ___ Python tracker <https://bugs.python.org/issue42

[issue42938] [security][CVE-2021-3177] ctypes double representation BoF

2021-02-22 Thread Alexander Riccio
Alexander Riccio added the comment: Petition to remove all uses of the unchecked string handling functions from CPython? Sidenote: if C4996 was on, this would be a warning. -- nosy: +Alexander Riccio ___ Python tracker <https://bugs.python.

[issue33935] shutil.copyfile throws incorrect SameFileError on Google Drive File Stream

2021-02-17 Thread Alexander
Alexander added the comment: Hi, This issue was also confirmed by a Verge3D user (Python 3.7.7) https://www.soft8soft.com/topic/export-gltf-error -- nosy: +alexkowel ___ Python tracker <https://bugs.python.org/issue33

[issue38905] venv python reports wrong sys.executable in a subprocess on Windows

2021-01-29 Thread Alexander Stepanov
Alexander Stepanov added the comment: Another victim of this change in `venv` behavior is Ray, which hangs forever because the workers fail to register as parent does not recognize their PIDs. https://github.com/ray-project/ray/issues/13794 -- nosy: +nirvana-msu

[issue42958] filecmp.cmp(shallow=True) isn't actually shallow when only mtime differs

2021-01-18 Thread Alexander Vandenbulcke
Change by Alexander Vandenbulcke : -- keywords: +patch pull_requests: +23067 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24246 ___ Python tracker <https://bugs.python.org/issu

[issue42958] filecmp.cmp(shallow=True) isn't actually shallow when only mtime differs

2021-01-18 Thread Alexander Vandenbulcke
New submission from Alexander Vandenbulcke : Consider the case where 2 files are shallow compared where only the mtime differs (i.e. the mode and size is identical). With filecmp.cmp(f1, f2, shallow=True) a deep compare would be performed behind the scenes since the guard clauses fell

[issue42538] AsyncIO strange behaviour

2020-12-02 Thread Alexander Greckov
Alexander Greckov added the comment: Thanks! That's resolved my problem, but this thing wasn't really obvious as for me. Probably it would be better to write about this explicitly in docs for the create_task. All in all this issue can

[issue42538] AsyncIO strange behaviour

2020-12-02 Thread Alexander Greckov
New submission from Alexander Greckov : Hi! I've met strange behaviour related to the coroutine execution. Probably it's somehow related to the asyncio.Queue get() method. I have the following lines of code: class WeightSource: def __init__(self): self._queue = asy

[issue25538] Traceback from __exit__ method is misleading

2020-11-27 Thread Alexander Kurakin
Change by Alexander Kurakin : -- nosy: +kuraga ___ Python tracker <https://bugs.python.org/issue25538> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue42372] A crash in do_richcompare

2020-11-18 Thread Alexander Kurakin
Alexander Kurakin added the comment: Ok, close. -- stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue42372> ___ __

[issue42372] A crash in do_richcompare

2020-11-16 Thread Alexander Kurakin
Alexander Kurakin added the comment: Thanks for reply! Is it call of NULL? If so, shoudn't do_richcompare check it? -- ___ Python tracker <https://bugs.python.org/is

[issue42372] A crash in do_richcompare

2020-11-16 Thread Alexander Kurakin
New submission from Alexander Kurakin : Sometimes test.py causes a crash in 3.7.9 (and lower to 2018 year or more) on Linux. See also: https://github.com/pandas-dev/pandas/issues/21968 -- components: Interpreter Core files: issue.zip messages: 381113 nosy: kuraga priority: normal

[issue41904] datetime.datetime.today makes no sense and should be removed

2020-10-14 Thread Alexander Belopolsky
Change by Alexander Belopolsky : -- resolution: -> wont fix stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue41904] datetime.datetime.today makes no sense and should be removed

2020-10-14 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I agree that having some of datetime.now([tz]) functionality replicated in datetime.today() makes little sense. However, the presence of this method in datetime class is a consequence of datetime being a subclass of the date class. The latter was a

[issue41965] distutils.spawn.find_executable() fails to find .py files on Windows

2020-10-07 Thread Alexander Todorov
Alexander Todorov added the comment: @Eryk Sun, you are of course correct but still don't we need to handle this in Python? - find_executable() will search for rst2man.py.exe which doesn't exist so no good for the user - there is also no rst2man.exe which is probably an issu

[issue41965] distutils.spawn.find_executable() fails to find .py files on Windows

2020-10-07 Thread Alexander Todorov
New submission from Alexander Todorov : As part of installing python-bugzilla via pip it searches for `rst2man` or `rst2man.py`, see: https://github.com/python-bugzilla/python-bugzilla/blob/master/setup.py#L81 on Windows venvs there is venv\Scripts\rst2man.py (no .exe or without suffix) and

[issue40553] Python 3.8.2 Mac freezing/not responding when saving new programs

2020-08-27 Thread Alexander Boeckmann
Alexander Boeckmann added the comment: So over the past week the issue resolved its self. I unfortunately did not get a video or a screenshot but thought you might want to know this So maybe Apple did something or you guys fixed it. Anyways, have a good day

[issue40553] Python 3.8.2 Mac freezing/not responding when saving new programs

2020-08-19 Thread Alexander Boeckmann
Alexander Boeckmann added the comment: Hey! I have the exact same thing as described happening! Python freezes when I try to save new files which sucks. I'm on Catalina: 10.15.6 IDLE: 3.8.5 Brand new MacBook Air As said earlier the only way out is to force quit. Would taking a video

[issue41560] pathlib.Path.glob fails on empty string

2020-08-17 Thread Alexander Heger
Alexander Heger added the comment: In my code, having been translated form use of `os.path` to `pathlib.Path` the change in behaviour caused errors and required significant refactoring. Why not just return the empty list if there is no match, as is done in other cases when there is no

[issue41560] pathlib.Path.glob fails on empty string

2020-08-15 Thread Alexander Heger
New submission from Alexander Heger : Passing an empty string to pathlib.Path.glob fails. Example ``` from pathlib import Path path = Path('./myfile.txt') path.glob('') ``` The result is: ``` ~/Python/lib/python3.8/pathlib.py in glob(self, pattern) 1129 "

[issue41450] OSError is not documented in ssl library, but still can be thrown

2020-07-31 Thread Alexander Sibiryakov
New submission from Alexander Sibiryakov : See stack trace [07/15/2020 08:51:14.799: ERROR/kafka.producer.sender] Uncaught error in kafka producer I/O thread Traceback (most recent call last): File "/usr/local/lib/python3.6/site-packages/kafka/producer/sender.py", line

[issue41322] unittest: Generator test methods will always be marked as passed

2020-07-17 Thread Alexander Hungenberg
Alexander Hungenberg added the comment: I would also strongly vote for raising an error if the test method is a generator - not even silently turn it into a list. It would be straight forward to implement various checks (like the ones you mentioned for generators, coroutines, ...) - and

[issue41322] unittest: Generator test methods will always be marked as passed

2020-07-17 Thread Alexander Hungenberg
New submission from Alexander Hungenberg : The following testcase will always be marked as passed: from unittest import TestCase class BuggyTestCase(TestCase): def test_generator(self): self.assertTrue(False) yield None It happened to us that someone accidentally made

[issue36098] asyncio: ssl client-server with "slow" read

2020-06-24 Thread Alexander Mohr
Alexander Mohr added the comment: so I did some investigation into the difference between aiohttp + httpx and it appears that for some reason httpx does an extra read after the connection is closed. -- ___ Python tracker <https://bugs.python.

[issue36098] asyncio: ssl client-server with "slow" read

2020-06-24 Thread Alexander Mohr
Alexander Mohr added the comment: I've updated https://repl.it/@thehesiod/PristineBonyBugs#main.py to contain both httpx + aiohttp testcases, and now httpx reproduces almost immediately and aiohttp is still ok -- ___ Python tracker &

[issue36098] asyncio: ssl client-server with "slow" read

2020-06-24 Thread Alexander Mohr
Alexander Mohr added the comment: as an FYI I've reproduced this with the httpx library as well: https://repl.it/repls/PristineBonyBugs#main.py. It reproduces on this site but I've been unable to reproduce it locally. It does always reproduce on our production systems. what

[issue36098] asyncio: ssl client-server with "slow" read

2020-06-24 Thread Alexander Mohr
Change by Alexander Mohr : -- nosy: +thehesiod ___ Python tracker <https://bugs.python.org/issue36098> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40550] Popen.terminate fails with ProcessLookupError under certain conditions

2020-05-08 Thread Alexander Overvoorde
Alexander Overvoorde added the comment: I understand that it's not a perfect solution, but at least it's a little bit closer. Thanks for your patch :) -- ___ Python tracker <https://bugs.python.o

[issue40550] Popen.terminate fails with ProcessLookupError under certain conditions

2020-05-08 Thread Alexander Overvoorde
Alexander Overvoorde added the comment: I'm not sure that it is expected since Popen.send_signal does contain the following check: ``` def send_signal(self, sig): """Send a signal to the process.""" # Skip signalling a process that we know has alre

[issue40550] Popen.terminate fails with ProcessLookupError under certain conditions

2020-05-07 Thread Alexander Overvoorde
New submission from Alexander Overvoorde : The following program frequently raises a ProcessLookupError exception when calling proc.terminate(): ``` import threading import subprocess import multiprocessing proc = subprocess.Popen(["sh", "-c", "exit 0"]) q

[issue40145] Pyshellext room for binary size improvement

2020-04-03 Thread Alexander Riccio
Alexander Riccio added the comment: Oh, uh, also, do you prefer I add a commit or a new branch & PR? -- ___ Python tracker <https://bugs.python.org/iss

[issue40145] Pyshellext room for binary size improvement

2020-04-03 Thread Alexander Riccio
Alexander Riccio added the comment: Ahh, ok. Even though I question the usefulness of manually maintaining MSBuild files instead of something like CMake, I can work with that. Is there a preferred way to do it? It looks like I can do a Condition="'$(Configuration)|$(Platform)'

[issue40161] Name collisions in pythoncore, preventing unity/jumbo build

2020-04-02 Thread Alexander Riccio
New submission from Alexander Riccio : This isn't a priority issue I'd say. However, fixing it could yield nice benefits. I ran into this while experimenting with JUMBO/Unity builds as part of a bit of fun I've been having tweaking build options across the CPython ecosystem.

[issue40151] _overlapped room for improvement

2020-04-01 Thread Alexander Riccio
Change by Alexander Riccio : -- keywords: +patch pull_requests: +18658 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19298 ___ Python tracker <https://bugs.python.org/issu

[issue40145] Pyshellext room for binary size improvement

2020-04-01 Thread Alexander Riccio
Change by Alexander Riccio : -- pull_requests: +18659 pull_request: https://github.com/python/cpython/pull/19298 ___ Python tracker <https://bugs.python.org/issue40

[issue40151] _overlapped room for improvement

2020-04-01 Thread Alexander Riccio
New submission from Alexander Riccio : Similarly to bpo-40145, I've tweaked build options to reduce the size of the binary. This patch turns on (for release builds) Whole Program Optimization, MinSpace optimization, /Ob2 AnySuitable function inlining, /Zo (so that people can still deb

[issue40150] (minor) mismatched argument in overlapped_RegisterWaitWithQueue call to RegisterWaitForSingleObject

2020-04-01 Thread Alexander Riccio
New submission from Alexander Riccio : This popped out at me while looking for something else. It's probably not much of an actual problem, since the wrong datatype is larger than the correct one, but it's worth fixing. The problem is in overlapped_RegisterWaitWithQueue, at overla

[issue40145] Pyshellext room for binary size improvement

2020-04-01 Thread Alexander Riccio
Alexander Riccio added the comment: If this patch is merged, and all 7 million (estimated) Python developers update their installation, I calculate that I just saved the PSF 119GB worth of bandwidth costs :) I'll take my 10 cents in the mail plea

[issue40145] Pyshellext room for binary size improvement

2020-04-01 Thread Alexander Riccio
Change by Alexander Riccio : -- keywords: +patch pull_requests: +18642 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19284 ___ Python tracker <https://bugs.python.org/issu

[issue40145] Pyshellext room for binary size improvement

2020-04-01 Thread Alexander Riccio
New submission from Alexander Riccio : I've tweaked the pcbuild options for pyshellext to reduce the size of the binary. Since this is a very simple component, there really isn't much benefit of optimizing for speed, likely the slowest part of this component's lifetime is si

[issue40143] shutil.rmtree will frequently fail on Windows under heavy load due to racy deletion

2020-04-01 Thread Alexander Riccio
New submission from Alexander Riccio : The "obvious" way to delete a directory tree on Windows is wrong. It's inherently racy, since deleting a file on Windows *doesn't actually delete it*, instead it marks the file for deletion. The system will eventually get around

[issue25878] CPython on Windows builds with /W3, not /W4

2020-03-31 Thread Alexander Riccio
Alexander Riccio added the comment: Ok, so a draft of this produces 34 warnings, but makes way more changes to the .vcxproj and .filters files than I think it should: https://github.com/ariccio/cpython/commit/60152aa065a3ad861f0359a8ada7f2fbc83a3933 Before I submit a PR, I think I should

[issue40020] growable_comment_array_add leaks, causes crash

2020-03-31 Thread Alexander Riccio
Alexander Riccio added the comment: Sure, should I open a new issue? -- nosy: -vstinner resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue40082] Assertion failure in trip_signal

2020-03-26 Thread Alexander Riccio
Alexander Riccio added the comment: Hmmm, happens every time I interrupt while attached. Is there some obvious gotcha in the docs that I'm missing? -- ___ Python tracker <https://bugs.python.org/is

[issue40082] Assertion failure in trip_signal

2020-03-26 Thread Alexander Riccio
Alexander Riccio added the comment: Lmao the name mangling comes up as a mailto. That's interesting. -- ___ Python tracker <https://bugs.python.org/is

[issue40082] Assertion failure in trip_signal

2020-03-26 Thread Alexander Riccio
New submission from Alexander Riccio : While trying to make sense of some static analysis warnings for the Windows console IO module, I Ctrl+C'd in the middle of an intentionally absurd __repr__ output, and on proceeding in the debugger (which treated it as an exception), I immediatel

[issue40079] NULL pointer deref on error path in _ssl debughelpers.c

2020-03-26 Thread Alexander Riccio
New submission from Alexander Riccio : At line 138 in debughelpers.c, ssl_obj, which was set to NULL on line 122, is dereferenced. I think the original intent was to actually bubble the error up through the ssl object. Full function: static void _PySSL_keylog_callback(const SSL *ssl

[issue40076] isoformat function drops microseconds part if its value is 000000

2020-03-26 Thread Alexander Bolshakov
Change by Alexander Bolshakov : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue40076] isoformat function drops microseconds part if its value is 000000

2020-03-26 Thread Alexander Bolshakov
New submission from Alexander Bolshakov : isoformat function does not conform to the ISO 8601 and drops microseconds part if its value is 00. The issue can be reproduced using the following code snippet: for i in range(1,1000): timestamp=datetime.datetime.utcnow().isoformat

[issue19462] Add remove_argument() method to argparse.ArgumentParser

2020-03-23 Thread Alexander Hirner
Alexander Hirner added the comment: @paul j3 FWIW, popping optionals from a cache that is maintained in addition to self._actions, makes special conflict handling unnecessary. i.e.: for option_string in a.option_strings: parser._option_string_actions.pop(option_string

[issue40020] growable_comment_array_add leaks, causes crash

2020-03-19 Thread Alexander Riccio
Change by Alexander Riccio : -- keywords: +patch pull_requests: +18442 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19083 ___ Python tracker <https://bugs.python.org/issu

[issue40020] growable_comment_array_add leaks, causes crash

2020-03-19 Thread Alexander Riccio
Alexander Riccio added the comment: Sidenote: visual studio was misleading and made this look like a use-after-free for a little while, which was interesting. -- nosy: +pablogsal ___ Python tracker <https://bugs.python.org/issue40

[issue40020] growable_comment_array_add leaks, causes crash

2020-03-19 Thread Alexander Riccio
New submission from Alexander Riccio : growable_comment_array_add in parsetok.c incorrectly uses realloc, which leaks the array when allocation fails, and then causes a null pointer deref crash later when the array is freed in growable_comment_array_deallocate (the array pointer is

[issue25878] CPython on Windows builds with /W3, not /W4

2020-03-19 Thread Alexander Riccio
Alexander Riccio added the comment: Ok, so I finally have some proper time to work on this. How would people (who are higher up in python than me, obviously) feel about suppressing most of the warnings via a user macro in Visual Studio? I've found that it's quite easy to add a ma

[issue39970] Combined behavior of datetime.datetime.timestamp() and datetime.datetime.utcnow() on non-UTC timezoned machines

2020-03-15 Thread Alexander Belopolsky
Change by Alexander Belopolsky : -- resolution: wont fix -> duplicate ___ Python tracker <https://bugs.python.org/issue39970> ___ ___ Python-bugs-list mai

[issue39970] Combined behavior of datetime.datetime.timestamp() and datetime.datetime.utcnow() on non-UTC timezoned machines

2020-03-15 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: This is a duplicate of issue 33293. -- superseder: -> Using datetime.datetime.utcnow().timestamp() in Python3.6.0 can't get correct UTC timestamp. ___ Python tracker <https://bugs.python.org

[issue39970] Combined behavior of datetime.datetime.timestamp() and datetime.datetime.utcnow() on non-UTC timezoned machines

2020-03-15 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I am sure this has been reported before – I will try to find the relevant issue. This behavior is correct and documented. The only improvement that we can consider is to make it more explicit that utcnow is deprecated and the correct way to obtain

[issue31652] make install fails: no module _ctypes

2020-03-05 Thread Alexander Stohr
Alexander Stohr added the comment: Ubuntu 16.04 in a very bare naked setup. Similar/same problem profile by message and other lines in the log. Installed libffi6 and libffi-dev => worked. Not sure if both were needed (or interdependent, 2nd to 1st). -- nosy: +Alexander St

[issue26460] datetime.strptime without a year fails on Feb 29

2020-03-02 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: > On Mar 2, 2020, at 6:33 PM, Gregory P. Smith wrote: > > Change that default to any old year with a leap year (1904?) In the 21st century, the year 2000 default makes much more sense than 1900. Luckily 2000 is also a

[issue39680] datetime.astimezone() method does not handle invalid local times as required by PEP 495

2020-02-18 Thread Alexander Belopolsky
New submission from Alexander Belopolsky : Let g be a an invalid time in New York spring-forward gap: >>> g = datetime(2020, 3, 8, 2, 30) According to PEP 495, conversion of such instance to UTC should return a value that corresponds to a valid local time greater than g, but

[issue39549] The reprlib.Repr type should permit the “fillvalue” to be set by the user

2020-02-04 Thread Alexander Böhn
Change by Alexander Böhn : -- components: +Tests ___ Python tracker <https://bugs.python.org/issue39549> ___ ___ Python-bugs-list mailing list Unsubscribe:

  1   2   3   4   5   6   7   8   9   10   >