[issue45053] MD5SumTests.test_checksum_fodder fails on Windows

2021-11-10 Thread Andrei Kulakov
Andrei Kulakov added the comment: This was fixed in https://github.com/python/cpython/commit/dd7b816ac87, perhaps this should be closed as fixed? It sounds like the general solution is beyond the scope of this issue and doesn't need to be tracked here. -- nosy: +andre

[issue45091] inspect.Parameter.__str__ does not include subscripted types in annotations

2021-11-10 Thread Andrei Kulakov
Andrei Kulakov added the comment: I have confirmed and tested -- this was fixed in https://github.com/python/cpython/pull/29212 and so I'm closing it as fixed. -- nosy: +andrei.avk, kj resolution: -> fixed stage: -> resolved status: ope

[issue45054] json module should issue warning about duplicate keys

2021-11-11 Thread Andrei Kulakov
Andrei Kulakov added the comment: In general this sounds reasonable; - but a couple of thoughts / comments: - If you have a dict with mixed numbers in str format and in number format (i.e. ints as numbers and ints as strings in your case), you are creating problems in many potential places

[issue45054] json module should issue warning about duplicate keys

2021-11-11 Thread Andrei Kulakov
Andrei Kulakov added the comment: Another good option would be to use typed dict like `mydict : dict[int,str] = {}`; and use typed values when populating the dict; this way a type checker will warn you of inconsistent key types. -- ___ Python

[issue44887] test_input_tty hangs when run multiple times in the same process on macOS 10.15

2021-11-12 Thread Andrei Kulakov
Andrei Kulakov added the comment: I've looked into this and the hang happens on this line: https://github.com/python/cpython/blob/de3db1448b1b983eeb9f4498d07e3d2f1fb6d29d/Lib/test/test_builtin.py#L2030 So the issue is that on the second run, there's nothing to read on that fd.

[issue44995] "Hide the prompts and output" works abnormal

2021-11-12 Thread Andrei Kulakov
Change by Andrei Kulakov : -- keywords: +newcomer friendly ___ Python tracker <https://bugs.python.org/issue44995> ___ ___ Python-bugs-list mailing list Unsub

[issue45606] pathlib.Path.glob() does not list dangling symlink when pattern is the exact filenane

2021-11-19 Thread Andrei Kulakov
Change by Andrei Kulakov : -- keywords: +patch nosy: +andrei.avk nosy_count: 1.0 -> 2.0 pull_requests: +27897 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29655 ___ Python tracker <https://bugs.python.org/i

[issue45606] pathlib.Path.glob() does not list dangling symlink when pattern is the exact filenane

2021-11-19 Thread Andrei Kulakov
Andrei Kulakov added the comment: The issue is that _PreciseSelector follows the symlink when it checks if a path exists before yielding it as a result. I've put up a PR with a fix; I've also added a *follow_symlinks* arg to `exists()` method because it seems more logical to be ab

[issue45606] pathlib.Path.glob() does not list dangling symlink when pattern is the exact filenane

2021-11-19 Thread Andrei Kulakov
Andrei Kulakov added the comment: Rasmus: thanks for the report, it does seem like a bug to me. -- ___ Python tracker <https://bugs.python.org/issue45

[issue45606] pathlib.Path.glob() does not list dangling symlink when pattern is the exact filenane

2021-11-19 Thread Andrei Kulakov
Andrei Kulakov added the comment: By the way note that path.glob('**/my_symlink') also does return the dangling symlink match. And glob.glob('my_symlink') also returns a dangling symlink. -- ___ Python tracker <https://bug

[issue45853] Misspelled _IGNORED_ERROS in Lib/pathlib.py

2021-11-20 Thread Andrei Kulakov
New submission from Andrei Kulakov : Should be _IGNORED_ERRORS This name was added 3 years ago: https://github.com/python/cpython/commit/216b745eafa7cd4a683a8405dcfbd7f5567f504c It's only used in a single place in the module. But I'm not sure if it's worth fixing. It

[issue45853] Misspelled _IGNORED_ERROS in Lib/pathlib.py

2021-11-20 Thread Andrei Kulakov
Change by Andrei Kulakov : -- components: +Library (Lib) priority: normal -> low stage: -> needs patch type: -> enhancement versions: +Python 3.11 ___ Python tracker <https://bugs.python.or

[issue22276] pathlib glob ignores trailing slash in pattern

2021-11-20 Thread Andrei Kulakov
Andrei Kulakov added the comment: I have also run into this when looking into path.glob('dangling_symlink') issue. I can add a few things (in the examples, *myfile* is a file, not a directory): This is probably more common / less obscure than '*/': path.glob('m

[issue22276] pathlib glob ignores trailing slash in pattern

2021-11-20 Thread Andrei Kulakov
Andrei Kulakov added the comment: I meant to say: path.glob('myfile/') => [PosixPath('myfile')] -- ___ Python tracker <https://

[issue22276] pathlib glob ignores trailing slash in pattern

2021-11-20 Thread Andrei Kulakov
Andrei Kulakov added the comment: Generally if Path is created with a trailing separator, I think it should error out for all methods that apply to files, for example `.touch()`, `read*()`, `write*()`, others. This is consistent with shell commands: touch xyz

[issue45853] Misspelled _IGNORED_ERROS in Lib/pathlib.py

2021-11-21 Thread Andrei Kulakov
Andrei Kulakov added the comment: Serhiy: I think you're right, it was likely meant to be _IGNORED_ERRNOS; for inlining it, it looks like it wasn't inlined to be more readable, but if we inline it, we should also inline _IGNORED_WINERRORS. I don't min

[issue45555] Object stays alive for weak reference if an exception happens in constructor

2021-11-22 Thread Andrei Kulakov
Andrei Kulakov added the comment: Note also that in addition to not being related to weakref as Pablo said, it's also not related to the __init__() -- the exception can be moved to any method of the object with the same result. It may be good to update the title so that it's not

[issue45572] urllib.request:AttributeError: 'dict' object has no attribute 'get_all' in http_error_auth_reqed function

2021-11-22 Thread Andrei Kulakov
Andrei Kulakov added the comment: I'm not sure about the hang in 3.7 and CVE, but as far as `get_all()` error is concerned, it's due to passing the wrong kind of argument as `headers`. For this (undocumented) method, `headers` should be a Message object created in thi

[issue45299] SMTP.send_message() does from mangling when it should not

2021-11-23 Thread Andrei Kulakov
Andrei Kulakov added the comment: Seems like a reasonable request to me. I can make the PR+test. To minimize backwards-incompatible change, we can pass `_mangle_from=policy._mangle_from` argument instead of passing the entire policy. Is that a good idea or passing the policy argument

[issue45299] SMTP.send_message() does from mangling when it should not

2021-11-23 Thread Andrei Kulakov
Andrei Kulakov added the comment: There are 3 policy settings that are also being passed as parameters to Generator/BytesGenerator: - mangle_from_ - linesep - maxheaderlen Both linesep and maxheaderlen are being inserted into policy after self.policy (if there is one) overrides message

[issue45299] SMTP.send_message() does from mangling when it should not

2021-11-25 Thread Andrei Kulakov
Andrei Kulakov added the comment: R. David: `mangle_from_` is the only exception; I agree it seems likely it was done this way for backwards compatibility. Grant: do you agree with the fix to logic? Also do you agree that mangle_from_ is the only setting that's not being applied t

[issue45299] SMTP.send_message() does from mangling when it should not

2021-11-25 Thread Andrei Kulakov
Andrei Kulakov added the comment: Grant: sounds good! I can do the initial PR review. Note that the PR will need a test and a news entry. See the link below on authoring PRs: https://devguide.python.org/pullrequest/ -- ___ Python tracker <ht

[issue44695] asdict use deep copy to dataclass instances

2021-11-28 Thread Andrei Kulakov
Andrei Kulakov added the comment: Duplicate of https://bugs.python.org/issue43905 -- nosy: +andrei.avk resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> dataclasses.astuple does deepcopy on all fields __

[issue44678] Seperate error message for discontinuous padding in binascii.a2b_base64 strict mode

2021-11-28 Thread Andrei Kulakov
Andrei Kulakov added the comment: Looks like it's fixed so closing it.. -- nosy: +andrei.avk, kj resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.pyth

[issue43905] dataclasses.astuple (and .asdict) do deepcopy on all fields

2021-11-28 Thread Andrei Kulakov
Andrei Kulakov added the comment: Eric: I've closed a similar issue about asdict() and now updating the title to keep track of both in this issue. Let me know if you want to keep them separate instead. -- title: dataclasses.astuple does deepcopy on all fields -> dataclasses

[issue44675] Cross-platform issues with private methods and multiprocessing

2021-11-28 Thread Andrei Kulakov
Andrei Kulakov added the comment: The issue seems to be that there was a change between 3.7.7 and 3.8.6, - multiprocessing started using pickle dump / load which cannot handle double underscore methods. See #33007 for a reproducer with pickle. I'm using MacOS and this multiproce

[issue44675] Cross-platform issues with private methods and multiprocessing

2021-11-28 Thread Andrei Kulakov
Andrei Kulakov added the comment: More details and a suggested fix here: #37852 . -- ___ Python tracker <https://bugs.python.org/issue44675> ___ ___ Python-bug

[issue44675] Cross-platform issues with private methods and multiprocessing

2021-11-29 Thread Andrei Kulakov
Andrei Kulakov added the comment: If we are not going to fix this issue in pickling at this time, I think it makes sense to raise an error with a good, clear explanation in multiprocessing.Process(target=self.__method), which is affected by this and caused some confusion in this issue

[issue43905] dataclasses.astuple (and .asdict) do deepcopy on all fields

2021-11-29 Thread Andrei Kulakov
Andrei Kulakov added the comment: Thank you for reviewing Eric! -- ___ Python tracker <https://bugs.python.org/issue43905> ___ ___ Python-bugs-list mailin

[issue41102] ZipFile.namelist() does not match the actual files in .zip file

2021-11-29 Thread Andrei Kulakov
Andrei Kulakov added the comment: Closing by request of OP. -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue44413] OverflowError: mktime argument out of range after 2019

2021-11-29 Thread Andrei Kulakov
Andrei Kulakov added the comment: Cannot reproduce with 3.8.6 on MacOS. The code runs without any errors. As OP hasn't responded in 4 months I think we should close as "works for me". -- nosy: +andrei.avk ___ Python

[issue44413] OverflowError: mktime argument out of range after 2019

2021-11-29 Thread Andrei Kulakov
Change by Andrei Kulakov : -- nosy: +kj ___ Python tracker <https://bugs.python.org/issue44413> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43153] tempfile seems to treat a file as a directory when processing an exception in the onerror()

2021-11-30 Thread Andrei Kulakov
Andrei Kulakov added the comment: My last comment was wrong, the issue I linked is unrelated. I think the actual issue here is the code here: https://github.com/python/cpython/blob/4b97d974ecca9cce532be55410fe851eb9fdcf21/Lib/tempfile.py#L826 If `path` is a file that causes a permission

[issue20907] behavioral differences between shutil.unpack_archive and ZipFile.extractall

2021-12-03 Thread Andrei Kulakov
Change by Andrei Kulakov : -- nosy: +andrei.avk nosy_count: 6.0 -> 7.0 pull_requests: +28135 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/29910 ___ Python tracker <https://bugs.python.org/i

[issue20907] behavioral differences between shutil.unpack_archive and ZipFile.extractall

2021-12-03 Thread Andrei Kulakov
Andrei Kulakov added the comment: I think it may be good enough to add a warning on skipped files in _unpack_zipfile(). - this way we keep backwards compatibility (especially since behavior in both modules differed for such a long time.) - it's not clear that ZipFile behavior is sup

[issue20907] behavioral differences between shutil.unpack_archive and ZipFile.extractall

2021-12-03 Thread Andrei Kulakov
Andrei Kulakov added the comment: I forgot to add this: - we may not want to follow the behavior of command line unzip - it's interactive so considerations are somewhat different. For example, it will warn if file is being overwritten and show a prompt on whether to skip, overwrite,

[issue45977] Unexpected effect of sys.pycache_prefix = ""

2021-12-03 Thread Andrei Kulakov
New submission from Andrei Kulakov : Setting sys.pycache_prefix = "", re-creates CWD structure under current directory, e.g. if run from /Users/foo/test, will create /Users/foo/test/Users/foo/test/myfile.pyc . Is that intentional? It seems a little weird. At least it might

[issue45977] Unexpected effect of sys.pycache_prefix = ""

2021-12-03 Thread Andrei Kulakov
Andrei Kulakov added the comment: (I forgot to mention this happens on MacOS). -- ___ Python tracker <https://bugs.python.org/issue45977> ___ ___ Python-bug

[issue37198] _parse_localename fail to parse 'en_IL'

2021-12-03 Thread Andrei Kulakov
Andrei Kulakov added the comment: I confirmed that it works on 3.9 so I think this can be closed as not a bug: [ins] In [4]: _parse_localename('en_IL') Out[4]: ('en_IL', 'UTF-8') -- ___ Python tracker <h

[issue43098] tarfile list() method does not show file type

2021-12-03 Thread Andrei Kulakov
Andrei Kulakov added the comment: Val: contributions are only now accepted in form of github PRs, not patches. -- ___ Python tracker <https://bugs.python.org/issue43

[issue44534] unittest.mock.Mock.unsafe doc is garbled

2021-12-04 Thread Andrei Kulakov
Change by Andrei Kulakov : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.10, Python 3.11 -Python 3.9 ___ Python tracker <https://bugs.python.or

[issue43474] http.server.BaseHTTPRequestHandler end_header() fails

2021-12-04 Thread Andrei Kulakov
Andrei Kulakov added the comment: It seems like sending zero headers is not supported, because: - if using http/1.0 https://www.rfc-editor.org/rfc/rfc7230#section-6.1 -- Connection: close must be sent - if using http/1.1 -- https://docs.python.org/3.11/library/http.server.html

[issue43418] FTPLib error when server returns byte message instead of string

2021-12-04 Thread Andrei Kulakov
Andrei Kulakov added the comment: Closing as third party. Cowrie overrides ftplib.FTP class and implements __init__ in a way that doesn't work properly with some other methods of `FTP` class. -- resolution: -> third party stage: -> resolved status: ope

[issue44735] Failed venv Activation With "&" In Folder Name

2021-12-04 Thread Andrei Kulakov
Andrei Kulakov added the comment: Duplicate of https://bugs.python.org/issue44540 -- nosy: +andrei.avk superseder: -> venv: activate.bat fails for venv with special characters in PATH ___ Python tracker <https://bugs.python.org/issu

[issue36392] IPv4Interface Object has no attributte prefixlen

2021-12-04 Thread Andrei Kulakov
Andrei Kulakov added the comment: The docs for current bugfix releases (3.9+) have clear links from the Interface class attribute `network` to the Network class which lists the `prefixlen` attribute. I don't think it can be made clearer - there's two ways to find it - either sea

[issue45977] Unexpected effect of sys.pycache_prefix = ""

2021-12-05 Thread Andrei Kulakov
Andrei Kulakov added the comment: If CWD=/a/b and pycache_prefix=c, the resulting dir is /a/b/c as I would expect. If CWD=/a/b and pycache_prefix='', I would expect resulting dir to be /a/b instead of /a/b/a/b . For example as the shell `cd` command accepts relative path as ar

[issue45977] Unexpected effect of sys.pycache_prefix = ""

2021-12-05 Thread Andrei Kulakov
Andrei Kulakov added the comment: Can this also create the risk of 'path too long' issues? -- ___ Python tracker <https://bugs.python.org/issue45977> ___ __

[issue44077] IP_RECVTOS option is missing from socket module

2021-12-06 Thread Andrei Kulakov
Change by Andrei Kulakov : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue28516] contextlib.ExitStack.__enter__ has trivial but undocumented behavior

2021-12-06 Thread Andrei Kulakov
Andrei Kulakov added the comment: It's a bit more readable to start by stating what a function does rather than what it doesn't do. I also wouldn't worry about possible future minor optimizations that might be added, because if that happens, a simple ".. aside from in

[issue44377] Truncated error message of original function while multiprocessing or multithreading

2021-12-08 Thread Andrei Kulakov
Andrei Kulakov added the comment: Prasanth: can you provide a bit more details, are you saying that this line: https://github.com/python/cpython/blob/2109f7880b65755329a877da3a7f8a362de07350/Lib/multiprocessing/pool.py#L86 .. truncates the exception msg? What is the exact exception type that

[issue44377] Truncated error message of original function while multiprocessing or multithreading

2021-12-08 Thread Andrei Kulakov
Change by Andrei Kulakov : -- type: -> behavior versions: +Python 3.10, Python 3.11, Python 3.9 -Python 3.7 ___ Python tracker <https://bugs.python.org/issu

[issue44289] tarfile.is_tarfile() and tarfile.open() when used with file object may cause tarfile operations to fail

2021-12-08 Thread Andrei Kulakov
Andrei Kulakov added the comment: This affects more use cases than just is_tarfile() and getmembers() results. is_tarfile() calls open() which is the root cause of the issue. Calling open() 2+ times will also cause the same issue. In addition to getmembers(), extracting the tar will also

[issue44289] tarfile.is_tarfile() and tarfile.open() when used with file object may cause tarfile operations to fail

2021-12-08 Thread Andrei Kulakov
Change by Andrei Kulakov : -- nosy: +kj ___ Python tracker <https://bugs.python.org/issue44289> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44170] ShareableList cannot safely handle multibyte utf-8 characters

2021-12-08 Thread Andrei Kulakov
Andrei Kulakov added the comment: We classify 'crash' type as seg faults etc, so changing this to 'behavior' type. -- nosy: +andrei.avk type: crash -> behavior ___ Python tracker <https://

[issue44170] ShareableList cannot safely handle multibyte utf-8 characters

2021-12-08 Thread Andrei Kulakov
Andrei Kulakov added the comment: I've confirmed this issue is still present in 3.11. -- ___ Python tracker <https://bugs.python.org/issue44170> ___ ___

[issue38351] Modernize email example from %-formatting to f-string

2019-11-14 Thread Andrei Daraschenka
Change by Andrei Daraschenka : -- keywords: +patch pull_requests: +16672 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/17162 ___ Python tracker <https://bugs.python.org/issu

[issue25866] Reference 3. Data Model: miscellaneous minor cleanups on the word "sequence".

2019-11-15 Thread Andrei Daraschenka
Change by Andrei Daraschenka : -- pull_requests: +16683 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/17175 ___ Python tracker <https://bugs.python.org/issu

[issue39710] "will be returned as unicode" reminiscent from Python 2

2020-02-23 Thread Andrei Daraschenka
Change by Andrei Daraschenka : -- keywords: +patch nosy: +dorosch nosy_count: 2.0 -> 3.0 pull_requests: +17984 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/18619 ___ Python tracker <https://bugs.p

[issue39693] tarfile's extractfile documentation is misleading

2020-02-23 Thread Andrei Daraschenka
Change by Andrei Daraschenka : -- keywords: +patch nosy: +dorosch nosy_count: 3.0 -> 4.0 pull_requests: +18005 stage: -> patch review pull_request: https://github.com/python/cpython/pull/18639 ___ Python tracker <https://bugs.python.org/i

[issue15474] Differentiate decorator and decorator factory in docs

2020-02-23 Thread Andrei Daraschenka
Andrei Daraschenka added the comment: Hi, Andrés Delfino. Are you still working on it? I could help with this issues. -- nosy: +dorosch ___ Python tracker <https://bugs.python.org/issue15

[issue39728] Instantiating enum with invalid value results in ValueError twice

2020-02-24 Thread Andrei Daraschenka
Change by Andrei Daraschenka : -- keywords: +patch nosy: +dorosch nosy_count: 4.0 -> 5.0 pull_requests: +18007 stage: test needed -> patch review pull_request: https://github.com/python/cpython/pull/18641 ___ Python tracker <https://bugs.p

[issue39672] SIGSEGV crash on shutdown with shelve & c pickle

2020-02-24 Thread Andrei Daraschenka
Andrei Daraschenka added the comment: Could you give more details for reproduce it because on the latest version cpython from master branch it's work You can debug it with help pdb. Just set breakpoint: ... test_shelve(data) breakpoint() data.close() ... And try run it step-by-step (

[issue39672] SIGSEGV crash on shutdown with shelve & c pickle

2020-02-24 Thread Andrei Daraschenka
Andrei Daraschenka added the comment: Yes, It's work for me $ uname -a Linux laptop 5.3.0-40-generic #32~18.04.1-Ubuntu SMP Mon Feb 3 14:05:59 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux $ python3.8 --version Python 3.8.0 $ python3.8 ce_test_2.py start end Could you please write abou

[issue39672] SIGSEGV crash on shutdown with shelve & c pickle

2020-02-25 Thread Andrei Daraschenka
Andrei Daraschenka added the comment: Hello I was finally reproduce your problem. Probles was in Lib/shelve.py module in method Shelf.sync. When python is shut down in classes calls __exit__ methods, in our issues method __exti__ called method close() which called method sync(). Method sync

[issue39672] SIGSEGV crash on shutdown with shelve & c pickle

2020-02-25 Thread Andrei Daraschenka
Change by Andrei Daraschenka : -- pull_requests: +18016 stage: -> patch review pull_request: https://github.com/python/cpython/pull/18655 ___ Python tracker <https://bugs.python.org/issu

[issue39759] os.getenv documentation is misleading

2020-02-26 Thread Andrei Daraschenka
Change by Andrei Daraschenka : -- keywords: +patch nosy: +dorosch nosy_count: 2.0 -> 3.0 pull_requests: +18024 stage: -> patch review pull_request: https://github.com/python/cpython/pull/18668 ___ Python tracker <https://bugs.python.org/i

[issue39771] EmailMessage.add_header doesn't work

2020-02-27 Thread Andrei Daraschenka
Andrei Daraschenka added the comment: Hello, could you please attach minimal-work file for reproduce it? -- nosy: +dorosch ___ Python tracker <https://bugs.python.org/issue39

[issue39774] Missing documentation on how to make package executable as script

2020-02-27 Thread Andrei Daraschenka
Change by Andrei Daraschenka : -- keywords: +patch nosy: +dorosch nosy_count: 3.0 -> 4.0 pull_requests: +18037 stage: -> patch review pull_request: https://github.com/python/cpython/pull/18677 ___ Python tracker <https://bugs.python.org/i

[issue42417] Empty body {} in POST requests leads to 405 Method not allowed error

2020-12-09 Thread Andrei Kulakov
Andrei Kulakov added the comment: I cannot reproduce with 3.9.0, using attached files -- I do not get either 400 or 405; I get "None received" message: ```python3 flask

[issue42417] Empty body {} in POST requests leads to 405 Method not allowed error

2020-12-26 Thread Andrei Kulakov
Andrei Kulakov added the comment: I've tried it with flask_client_long_headers.py , but I get the same output as I've gotten before with flask_client.py . Can you try it on a few different systems? -- ___ Python tracker <https://bu

[issue42817] timedelta zeropadding hh

2021-01-03 Thread Andrei Kulakov
Andrei Kulakov added the comment: In a date, hours are zero-padded probably because that's a common standard for military time dates. But there is no such standard for time periods, therefore timedelta don't have to match date display in respect to zero-padding, in m

[issue43415] Typo

2021-03-05 Thread Andrei Kulakov
New submission from Andrei Kulakov : Typo (explicit|ly) in library/dataclasses.rst:139: 139: If :meth:`__hash__` is not explicit defined, or if it is set to ``None``, -- assignee: docs@python components: Documentation messages: 388193 nosy: andrei.avk, docs@python priority

[issue41062] Advanced Debugger Support C-API is useless without HEAD_LOCK()/HEAD_UNLOCK()

2020-06-21 Thread Andrei Pashkin
New submission from Andrei Pashkin : To me it seems like Advanced Debugger Support C-API doesn't make sense without HEAD_LOCK() and HEAD_UNLOCK() which are private right now. When researching how C-API works I've found this comment in the source code: https://github.com/python/cp

[issue41062] Advanced Debugger Support C-API is useless without HEAD_LOCK()/HEAD_UNLOCK()

2020-06-21 Thread Andrei Pashkin
Andrei Pashkin added the comment: Here is what I mean by "Advanced Debugger Support" API: https://docs.python.org/dev/c-api/init.html#advanced-debugger-support -- ___ Python tracker <https://bugs.python.o

[issue39672] Segmentation fault on shutdown with shelve & c pickle

2020-06-29 Thread Andrei Daraschenka
Andrei Daraschenka added the comment: Hello zd nex After a little research, it became clear that this drop is due to vague garbage collection behavior. As you know, method `__del__` is called by the garbage collector and when this happens there is no guarantee that the rest of the objects

[issue41046] unittest: make skipTest a classmethod

2020-06-29 Thread Andrei Daraschenka
Andrei Daraschenka added the comment: Hello and thanks for your issue. Can you explain why we need to make method as `classmethod` because in your example you don't provide argument for `cls.skipTest()`. -- nosy: +dorosch ___ Python tr

[issue28708] Low FD_SETSIZE limit on Windows

2019-06-05 Thread Andrei Zene
Change by Andrei Zene : -- keywords: +patch pull_requests: +13719 stage: -> patch review pull_request: https://github.com/python/cpython/pull/13842 ___ Python tracker <https://bugs.python.org/issu

[issue28708] Low FD_SETSIZE limit on Windows

2019-06-05 Thread Andrei Zene
Andrei Zene added the comment: We would also need this limit to be raised. We are using a server that was implemented using tornado, and tornado uses select.select. > It looks like Modules/selectmodule.c already has the handling for when this > gets large (and we really want t

[issue28708] Low FD_SETSIZE limit on Windows

2019-06-05 Thread Andrei Zene
Andrei Zene added the comment: > Would it be possible to make FD_SETSIZE configurable at runtime, at least on > Windows? IMHO it would be a better approach. That would be awesome, but it doesn't look like it would be possible. As I have already pointed out in my previous comment:

[issue28708] Low FD_SETSIZE limit on Windows

2019-06-06 Thread Andrei Zene
Andrei Zene added the comment: Awesome work Victor! Thanks! I'll give it a try. One thing I see mising though (if I understand well) is the allocation of three fd_sets (I posted a comment on github regarding that). Those fd_sets are currently allocated on stack and the array they conta

[issue28708] Low FD_SETSIZE limit on Windows

2019-06-10 Thread Andrei Zene
Andrei Zene added the comment: I have updated PR 13842(https://github.com/python/cpython/pull/13842) to dynamically alocate the fd_sets on windows. I did some testing on windows with the following two paterns: 1. 1 transient clients: (open connection, send message, close connection) 2

[issue28708] Low FD_SETSIZE limit on Windows

2019-06-14 Thread Andrei Zene
Andrei Zene added the comment: That's actually a great explanation Nathaniel. Thanks for putting that all together. -- ___ Python tracker <https://bugs.python.org/is

[issue29642] Why does unittest.TestLoader.discover still rely on existence of __init__.py files?

2017-03-23 Thread Andrei Fokau
Andrei Fokau added the comment: I was wrong. The ticket can be closed now. -- nosy: +Andrei Fokau2 ___ Python tracker <http://bugs.python.org/issue29642> ___ ___

[issue36119] Can't add/append in set/list inside shared dict

2019-02-26 Thread Andrei Stefan
New submission from Andrei Stefan : I'm creating a shared dict for multiprocessing purposes: from multiprocessing import Manager manager = Manager() shared_dict = manager.dict() If I add a set or a list as a value in the dict: shared_dict['test'] = set() or shared_dict[

[issue36819] Crash during encoding using UTF-16/32 and custom error handler

2019-05-06 Thread Andrei Talaba
New submission from Andrei Talaba : The CPython interpreter write out-of-bounds of allocated memory in certain edge cases in the utf-16 and utf-32 encoders. The attached script registers two error handlers that either write one ascii character, or two bytes, and tells the encoder to start

[issue36819] Crash during encoding using UTF-16/32 and custom error handler

2019-05-06 Thread Andrei Talaba
Change by Andrei Talaba : -- keywords: +patch pull_requests: +13047 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue36819> ___ ___ Py

[issue36819] Crash during encoding using UTF-16/32 and custom error handler

2019-05-06 Thread Andrei Talaba
Change by Andrei Talaba : Removed file: https://bugs.python.org/file48304/encode_crash.py ___ Python tracker <https://bugs.python.org/issue36819> ___ ___ Python-bug

[issue36819] Crash during encoding using UTF-16/32 and custom error handler

2019-05-06 Thread Andrei Talaba
Change by Andrei Talaba : Added file: https://bugs.python.org/file48305/encode_crash.py ___ Python tracker <https://bugs.python.org/issue36819> ___ ___ Python-bugs-list m

[issue34748] Incorrect HTML link in functools.partial

2018-10-11 Thread Andrei Petre
Andrei Petre added the comment: Hi, I've also looked into this and I've added a patch addressing both updates (mentioned by xitop and xtreak). -- nosy: +andreip ___ Python tracker <https://bugs.python.o

[issue18114] Update PyImport_ImportFrozenModuleObject() to set __package__

2018-10-11 Thread Andrei Petre
Andrei Petre added the comment: Hi, is this still relevant? I see the file has changed quite a bit. -- nosy: +andreip ___ Python tracker <https://bugs.python.org/issue18

[issue8427] toplevel jumps to another location on the screen

2012-04-23 Thread Andrei Paraschivescu
Andrei Paraschivescu added the comment: "python jumpBug.py" creates two windows, "root" and "other". If the first thing you do is click on "other", then hit , the printed geometry string will show the position of the window "root". By cont

[issue8427] toplevel jumps to another location on the screen

2012-04-23 Thread Andrei Paraschivescu
Andrei Paraschivescu added the comment: Ned, thanks for the quick response. I will give that a go. -- ___ Python tracker <http://bugs.python.org/issue8

[issue16142] ArgumentParser inconsistent with parse_known_args

2013-02-02 Thread Andrei Vereha
Changes by Andrei Vereha : -- nosy: +Andrei.Vereha ___ Python tracker <http://bugs.python.org/issue16142> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue19991] configparser instances cannot be pretty printed

2013-12-15 Thread Andrei Kucharavy
New submission from Andrei Kucharavy: ConfigParser seems to share a lot of behavior with a dict, but cannot be pretty printed. -- messages: 206267 nosy: Andrei.Kucharavy priority: normal severity: normal status: open title: configparser instances cannot be pretty printed type

[issue7013] Httplib read routine is not tolerant to not well-formed chunked http responses.

2009-09-28 Thread Andrei Korostelev
New submission from Andrei Korostelev : HTTPResponse._read_chunked cannot handle "slightly" ill-formed HTTP response not ended with 0 chunk-size. I did not make an analysis what type of webservers generate such responses, but one of them is bing.com (former msn.com). Example corre

[issue7013] Httplib read routine is not tolerant to not well-formed chunked http responses.

2009-09-28 Thread Andrei Korostelev
Andrei Korostelev added the comment: Patch for Python-2.6 -- Added file: http://bugs.python.org/file14989/httplib.python-2.6.2.diff ___ Python tracker <http://bugs.python.org/issue7

[issue7013] Httplib read routine is not tolerant to not well-formed chunked http responses.

2009-09-28 Thread Andrei Korostelev
Andrei Korostelev added the comment: Added patch for python-3.1.1 -- Added file: http://bugs.python.org/file14990/httplib.python-3.1.1.diff ___ Python tracker <http://bugs.python.org/issue7

[issue29642] Why does unittest.TestLoader.discover still rely on existence of __init__.py files?

2017-02-24 Thread Andrei Fokau
New submission from Andrei Fokau: Hi, As far as I see, unittest.TestLoader doesn't search in PEP-420 packages, i.e. packages without __init__.py files. Is there some motivation behind this, or the loader was just not yet adapted for Implicit Namespace Packages? -- components:

[issue29642] Why does unittest.TestLoader.discover still rely on existence of __init__.py files?

2017-02-24 Thread Andrei Fokau
Andrei Fokau added the comment: Ok, it's actually not so hard to work around (for Python 3.6, at least): import os from unittest import TestLoader class CustomTestLoader(TestLoader): def _find_test_path(self, full_path, pattern, namespace=False): original_isfile = os.path.i

[issue29642] Why does unittest.TestLoader.discover still rely on existence of __init__.py files?

2017-02-24 Thread Andrei Fokau
Andrei Fokau added the comment: Alright, I made an initial fix in #282. I believe that I still need to update the docs and run it with something big, e.g. Django. -- ___ Python tracker <http://bugs.python.org/issue29

<    1   2   3   4   5   6   >