[issue40037] py_compile.py quiet undefined in main function

2020-03-31 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: There is PR https://github.com/python/cpython/pull/17134 which is not merged to fix the exception so this is not fixed for 3.8.2. Once the fix is applied and released you can test the same -- ___ Python

[issue40133] Provide additional matchers for unittest.mock

2020-04-01 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +xtreak ___ Python tracker <https://bugs.python.org/issue40133> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40138] Windows implementation of os.waitpid() truncates the exit status (status << 8)

2020-04-01 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +eryksun ___ Python tracker <https://bugs.python.org/issue40138> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40131] Zipapp example has parameters in the wrong order

2020-04-03 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: New changeset bd6a4c3d72828d3d0e13922e165998539d24f8bc by Zackery Spytz in branch 'master': bpo-40131: Fix source and target order in zipapp example (GH-19290) https://github.com/python/cpython/commit/bd6a4c3d72828d3d0e13922e165998

[issue40131] Zipapp example has parameters in the wrong order

2020-04-03 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: New changeset e6783981df6ae5c63f73be67cc41b1350bc0fcc6 by Miss Islington (bot) in branch '3.8': bpo-40131: Fix source and target order in zipapp example (GH-19290) (GH-19339) https://github.com/python/cpyt

[issue40131] Zipapp example has parameters in the wrong order

2020-04-03 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: New changeset d19162fe5b2aba48a94278baa0f569fc42932072 by Miss Islington (bot) in branch '3.7': bpo-40131: Fix source and target order in zipapp example (GH-19290) (GH-19340) https://github.com/python/cpyt

[issue40131] Zipapp example has parameters in the wrong order

2020-04-03 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Thanks Leron for the report. Thanks Zackery for the patch. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: -Python 3.5, Python 3.6 ___ Python tracke

[issue40177] Python Language Reference Documentation

2020-04-03 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +mark.dickinson, rhettinger, stutzbach ___ Python tracker <https://bugs.python.org/issue40177> ___ ___ Python-bug

[issue40126] Incorrect error handling in unittest.mock

2020-04-03 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +cjw296, xtreak ___ Python tracker <https://bugs.python.org/issue40126> ___ ___ Python-bugs-list mailing list Unsub

[issue40204] Docs build error with Sphinx 3.0 due to invalid C declaration

2020-04-06 Thread Karthikeyan Singaravelan
New submission from Karthikeyan Singaravelan : The following error is caused in Docs build for a 3.8 backport since sphinx is ran with warnings. Sphinx released 3.0 on April 6. The last successful build on master uses Sphinx 2.2.0 [0]. My guess is sphinx new version possibly breaking the

[issue40213] contextlib.aclosing()

2020-04-07 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +asvetlov ___ Python tracker <https://bugs.python.org/issue40213> ___ ___ Python-bugs-list mailing list Unsub

[issue40204] Docs build error with Sphinx 3.0 due to invalid C declaration

2020-04-07 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: The sphinx version is not pinned in 3.7, 3.6, 3.5 and 2.7 branches too for Doc/Makefile that can cause error on someone trying it out locally. They are pinned in .travis.yml and .azure-pipelines configurations

[issue39966] mock 3.9 bug: Wrapped objects without __bool__ raise exception

2020-04-07 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +serhiy.storchaka ___ Python tracker <https://bugs.python.org/issue39966> ___ ___ Python-bugs-list mailin

[issue40214] test_ctypes.test_load_dll_with_flags Windows failure

2020-04-07 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Is this going to be backported? It seems backports also use the same build and have this error. Sample 3.8 backport build that seems to be related to this issue : https://dev.azure.com/Python/cpython/_build/results?buildId=60753&view=lo

[issue40236] datetime.datetime.strptime get day error

2020-04-09 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +belopolsky, p-ganssle ___ Python tracker <https://bugs.python.org/issue40236> ___ ___ Python-bugs-list mailin

[issue40238] os.stat() on Windows succeeds for nonexistent paths with trailing spaces

2020-04-09 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +eryksun ___ Python tracker <https://bugs.python.org/issue40238> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40204] Docs build error with Sphinx 3.0 due to invalid C declaration

2020-04-09 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: I have filed an issue upstream and it's fixed. The release of 3.0.1 is planned in few days and could help for other branches. But it would be nice to see the version pinned to avoid these problems in future. Upstream report : https://githu

[issue40246] Different error messages for same error - invalid string prefixes

2020-04-10 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +serhiy.storchaka ___ Python tracker <https://bugs.python.org/issue40246> ___ ___ Python-bugs-list mailin

[issue40259] re.Scanner groups

2020-04-12 Thread Karthikeyan Singaravelan
New submission from Karthikeyan Singaravelan : Please add a description of the issue you are facing with a simple script of the behavior. -- nosy: +xtreak ___ Python tracker <https://bugs.python.org/issue40

[issue40259] re.Scanner groups

2020-04-12 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Copy paste of the contents in the text file In the re module there is an experimental feature called Scanner. Some unexpected behavior was found while working with it. Here is an example: >>> re.Scanner([('\w+=(\d+);', lambda s

[issue40204] Docs build error with Sphinx 3.0 due to invalid C declaration

2020-04-12 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +benjamin.peterson ___ Python tracker <https://bugs.python.org/issue40204> ___ ___ Python-bugs-list mailin

[issue40267] Error message differs when an expression is in an fstring

2020-04-13 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +eric.smith ___ Python tracker <https://bugs.python.org/issue40267> ___ ___ Python-bugs-list mailing list Unsub

[issue40271] Allow shell like paths in

2020-04-13 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: You can use os.path.expanduser to expand tilde. Other os functions don't do it implicitly. >>> import os >>> os.path.exists("~/stuff") False >>> os.path.exists(os.path.expanduser(

[issue40273] mappingproxy isn't reversible

2020-04-13 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +rhettinger ___ Python tracker <https://bugs.python.org/issue40273> ___ ___ Python-bugs-list mailing list Unsub

[issue40278] pathlib Path.replace raises OSError when target exists

2020-04-13 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: replace under the hood uses os.replace. The docs for os.replace indicate error for certain scenarios where target is a directory : https://docs.python.org/3/library/os.html#os.replace . See also some difference between os.rename and os.replace

[issue40280] Consider supporting emscripten/webassembly as a build target

2020-04-14 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +xtreak ___ Python tracker <https://bugs.python.org/issue40280> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40298] Type annotation objects (Tuple, List, etc.) register as callable()

2020-04-16 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +gvanrossum, levkivskyi ___ Python tracker <https://bugs.python.org/issue40298> ___ ___ Python-bugs-list mailin

[issue40133] Provide additional matchers for unittest.mock

2020-04-16 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Thanks for the idea. But given the size of the patch and benefit it provides for the code I feel it could be a better idea to have it in PyPI and then add it to stdlib later once it gathers more feedback and adoption. Adding others for more

[issue40300] logging.Formatter crashes when default_msec_format is None.

2020-04-16 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +vinay.sajip ___ Python tracker <https://bugs.python.org/issue40300> ___ ___ Python-bugs-list mailing list Unsub

[issue40303] argparse parse_args args parameter bug or intended

2020-04-16 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +paul.j3, rhettinger ___ Python tracker <https://bugs.python.org/issue40303> ___ ___ Python-bugs-list mailin

[issue40281] Add pathlib.PurePath.as_uri()

2020-04-17 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Is this different from https://docs.python.org/3/library/pathlib.html#pathlib.PurePath.as_uri -- nosy: +xtreak ___ Python tracker <https://bugs.python.org/issue40

[issue40319] dict.update() return the updated dict instead of None

2020-04-18 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +xtreak ___ Python tracker <https://bugs.python.org/issue40319> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40319] dict.update() return the updated dict instead of None

2020-04-18 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Can you please print the output of python -v? Using python 3.8.0 on Linux returns None for update method. -- ___ Python tracker <https://bugs.python.org/issue40

[issue40317] inspect.getsource() examines incorrect target

2020-04-18 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: This will be resolved hopefully resolved using https://github.com/python/cpython/pull/10307 . Using my patch on the reproducer in the report. ./python bpo40317.py 123 class Number: payload = 123 321 class Number: payload

[issue35113] inspect.getsource returns incorrect source for classes when class definition is part of multiline strings

2020-04-18 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: New changeset 696136b993e11b37c4f34d729a0375e5ad544ade by Karthikeyan Singaravelan in branch 'master': bpo-35113: Fix inspect.getsource to return correct source for inner classes (#10307) https://github.com/python/cpyt

[issue15856] inspect.getsource(SomeClass) doesn't show @decorators

2020-04-18 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: New changeset 696136b993e11b37c4f34d729a0375e5ad544ade by Karthikeyan Singaravelan in branch 'master': bpo-35113: Fix inspect.getsource to return correct source for inner classes (#10307) https://github.com/python/cpyt

[issue40317] inspect.getsource() examines incorrect target

2020-04-18 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Fixed in master now with https://github.com/python/cpython/commit/696136b993e11b37c4f34d729a0375e5ad544ade . This includes the change of show decorators for classes too to make it consistent with functions so it's not backp

[issue40313] bytes.hex(sep, bytes_per_sep) is many times slower than manually inserting the separators

2020-04-19 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +gregory.p.smith ___ Python tracker <https://bugs.python.org/issue40313> ___ ___ Python-bugs-list mailing list Unsub

[issue40331] Increase test coverage for the statistics module

2020-04-19 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +steven.daprano ___ Python tracker <https://bugs.python.org/issue40331> ___ ___ Python-bugs-list mailing list Unsub

[issue40307] multiprocessing.BaseManager does not retain Client type.

2020-04-19 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +davin, pitrou ___ Python tracker <https://bugs.python.org/issue40307> ___ ___ Python-bugs-list mailing list Unsub

[issue40339] Instead of skipping, IPV6 test(s) fail on a non-IPV6 machine

2020-04-20 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: See also https://bugs.python.org/issue37199 for related work. -- nosy: +ZackerySpytz, asvetlov, xtreak ___ Python tracker <https://bugs.python.org/issue40

[issue40349] Python3.9 changes col_offset for some ast nodes

2020-04-20 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +BTaskaya, pablogsal ___ Python tracker <https://bugs.python.org/issue40349> ___ ___ Python-bugs-list mailin

[issue32912] Raise non-silent warning for invalid escape sequences

2020-04-21 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +xtreak ___ Python tracker <https://bugs.python.org/issue32912> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40358] pathlib's relative_to should behave like os.path.relpath

2020-04-21 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +pitrou ___ Python tracker <https://bugs.python.org/issue40358> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39966] mock 3.9 bug: Wrapped objects without __bool__ raise exception

2020-04-22 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: The patch assumed using the magic method attribute as the way to evaluate an object in a context which I got to know is wrong since evaluations in context like boolean are not only dependent on one magic method but has a precedence over several

[issue40356] OverflowError: mktime argument out of range

2020-04-22 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +belopolsky, p-ganssle ___ Python tracker <https://bugs.python.org/issue40356> ___ ___ Python-bugs-list mailin

[issue40365] argparse: action "extend" with 1 parameter splits strings into characters

2020-04-22 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +paul.j3, rhettinger ___ Python tracker <https://bugs.python.org/issue40365> ___ ___ Python-bugs-list mailin

[issue40377] APPDATA location in Microsoft Store version

2020-04-24 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +steve.dower ___ Python tracker <https://bugs.python.org/issue40377> ___ ___ Python-bugs-list mailing list Unsub

[issue40392] Remove deprecated _field_types in typing.NamedTuple

2020-04-25 Thread Karthikeyan Singaravelan
New submission from Karthikeyan Singaravelan : _field_types of typing.NamedTuple was documented as deprecated and to be removed in Python 3.9 in favor of __annotations__ at https://docs.python.org/3/library/typing.html#typing.NamedTuple . Issue where it was deprecated : issue36320

[issue40392] Remove deprecated _field_types in typing.NamedTuple

2020-04-25 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Sorry for the noise, I didn't check the master branch properly. Closing this as duplicate. -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> Remove the _field_types attrib

[issue40394] difflib.SequenceMatcher.find_longest_match default arguments

2020-04-26 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +tim.peters ___ Python tracker <https://bugs.python.org/issue40394> ___ ___ Python-bugs-list mailing list Unsub

[issue40395] Scripts folder is Empty in python 3.8.2 for Windows 7.

2020-04-26 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- components: +Windows nosy: +paul.moore, steve.dower, tim.golden, zach.ware ___ Python tracker <https://bugs.python.org/issue40

[issue40406] MagicMock __aenter__ should be AsyncMock(return_value=MagicMock())

2020-04-27 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +lisroach, xtreak type: -> behavior ___ Python tracker <https://bugs.python.org/issue40406> ___ ___ Python-

[issue25597] unittest.mock does not wrap dunder methods (__getitem__ etc)

2020-04-27 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- pull_requests: +19056 pull_request: https://github.com/python/cpython/pull/19734 ___ Python tracker <https://bugs.python.org/issue25

[issue39966] mock 3.9 bug: Wrapped objects without __bool__ raise exception

2020-04-27 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- pull_requests: +19055 pull_request: https://github.com/python/cpython/pull/19734 ___ Python tracker <https://bugs.python.org/issue39

[issue39966] mock 3.9 bug: Wrapped objects without __bool__ raise exception

2020-04-27 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: I opened a PR to revert the change. issue25597 was open for sometime and the implications as reported here seem to be greater than the original report to just call the magicmethod. So we can revert the change to ensure there are no regressions in

[issue40420] argparse choices formatter

2020-04-28 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +paul.j3, rhettinger ___ Python tracker <https://bugs.python.org/issue40420> ___ ___ Python-bugs-list mailin

[issue40418] Small Refactoring: Use bytes.hex() in secrets.token_hex()

2020-04-28 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +steven.daprano ___ Python tracker <https://bugs.python.org/issue40418> ___ ___ Python-bugs-list mailing list Unsub

[issue40419] timeit CLI docs still mention old power sequence

2020-04-28 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Thanks for the report. This was changed as part of issue28469 where autorange docstring was updated. I guess this was missed out. -- nosy: +serhiy.storchaka, xtreak ___ Python tracker <ht

[issue40317] inspect.getsource() examines incorrect target

2020-04-28 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: yes, thanks Ammar. Thanks Grzegorz for the report. -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> inspect.getsource returns incorrect source for classes when class definition is part

[issue35113] inspect.getsource returns incorrect source for classes when class definition is part of multiline strings

2020-04-28 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Closing this as fixed with the enhancement to show decorator for classes too for 3.9. Thank you all for the help on this. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.9 -P

[issue25597] unittest.mock does not wrap dunder methods (__getitem__ etc)

2020-04-28 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: The change has been reverted as per issue39966. I am reopening this for further discussion. -- resolution: fixed -> stage: resolved -> status: closed -> open ___ Python tracke

[issue39966] mock 3.9 bug: Wrapped objects without __bool__ raise exception

2020-04-28 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Thanks Avram for the report. I have reopened issue25597. Closing this as the regression change has been reverted for 3.9. -- resolution: -> fixed stage: patch review -> resolved status: open -&g

[issue40447] compile_file's stripdir does not accept pathlib.Path

2020-04-29 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +xtreak type: -> behavior ___ Python tracker <https://bugs.python.org/issue40447> ___ ___ Python-bugs-list mai

[issue40406] MagicMock __aenter__ should be AsyncMock(return_value=MagicMock())

2020-05-01 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: MagicMock object on call returns another MagicMock. AsyncMock object in turn returns a coroutine which has to be awaited. In the report mock.MagicMock().__aenter__() returns an AsyncMock object. Accessing the query attribute will create an

[issue40459] [easy] undefined names in platform.py

2020-05-01 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- components: +Windows nosy: +paul.moore, steve.dower, tim.golden, zach.ware ___ Python tracker <https://bugs.python.org/issue40

[issue40475] json.JSONEncoder override default method

2020-05-01 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: https://docs.python.org/3/library/json.html#json.JSONEncoder > To extend this to recognize other objects, subclass and implement a default() > method with another method that returns a serializable object for o if > possible, otherwise

[issue40486] pathlib's iterdir doesn't specify what happens if directory content change

2020-05-03 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +pitrou title: pathlib's iterdir doesn't expecify what happens if directory content change -> pathlib's iterdir doesn't specify what happens if directory content change ___

[issue40551] PRs should be rebased on top of master before running the build/tests

2020-05-08 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: See also https://mail.python.org/archives/list/python-committ...@python.org/thread/WEU5CQKIA4LIHWHT53YA7HHNUY5H2FUT/. This was a problem with other CI GitHub actions when a change had to be merged to master with which all PRs need to be manually

[issue40573] inspect.iscorutinefunction() returns False for unittest.mock.AsyncMock instances

2020-05-08 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +lisroach, xtreak ___ Python tracker <https://bugs.python.org/issue40573> ___ ___ Python-bugs-list mailin

[issue40573] inspect.iscorutinefunction() returns False for unittest.mock.AsyncMock instances

2020-05-08 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: I couldn't reproduce the change in result for consecutive calls on master branch. They should return the same value. ./python Python 3.9.0a6+ (heads/master:7f7e706d78, May 9 2020, 04:00:36) [GCC 7.5.0] on linux Type "help&qu

[issue40257] Improve the use of __doc__ in pydoc

2020-05-10 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: https://bugs.python.org/issue40587 has been opened. Copy paste of the report as below : In python 3.8: ``` >>> class A(object): ... """standard docstring""" ... pass ... >>> import ins

[issue40632] AttributeError: type object 'Callable' has no attribute '_abc_registry'

2020-05-15 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: You seem to use typing backport that has this issue : https://github.com/python/typing/issues/573 -- nosy: +xtreak ___ Python tracker <https://bugs.python.org/issue40

[issue40652] Test test_locale failed when running cpython test on Windows 10 x64 for version 3.9.0a6+

2020-05-16 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: See also https://bugs.python.org/issue37945 -- nosy: +xtreak ___ Python tracker <https://bugs.python.org/issue40

[issue40666] TarFile.add does not support pathlib.Path as a value to first argument.

2020-05-18 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +ethan.furman, lars.gustaebel ___ Python tracker <https://bugs.python.org/issue40666> ___ ___ Python-bugs-list m

[issue42485] Full grammar specification should link to PEP 617

2020-11-27 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +gvanrossum, lys.nikolaou, pablogsal ___ Python tracker <https://bugs.python.org/issue42485> ___ ___ Python-bug

[issue42501] Improve error messages for argparse choices using enum

2020-11-29 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +paul.j3, rhettinger ___ Python tracker <https://bugs.python.org/issue42501> ___ ___ Python-bugs-list mailin

[issue42501] Improve error messages for argparse choices using enum

2020-11-29 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: https://bugs.python.org/issue25061 also had some discussion over error message display for enums -- nosy: +xtreak ___ Python tracker <https://bugs.python.org/issue42

[issue42535] unittest.patch confuses modules with base modules

2020-12-02 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +xtreak ___ Python tracker <https://bugs.python.org/issue42535> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue42547] argparse: add_argument(... nargs='+', metavar=) does not work with positional arguments

2020-12-02 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +paul.j3, rhettinger ___ Python tracker <https://bugs.python.org/issue42547> ___ ___ Python-bugs-list mailin

[issue42550] re库匹配问题

2020-12-02 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: https://docs.python.org/3/howto/regex.html#more-metacharacters $ Matches at the end of a line, which is defined as either the end of the string, or any location followed by a newline character. \Z Matches only at the end of the string. >>&g

[issue41915] unittest.mock.create_autospec(Obj, instance=True) has self keyword in _spec_signature if Obj implements __call__

2020-12-03 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +xtreak ___ Python tracker <https://bugs.python.org/issue41915> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue42565] Traceback (most recent call last): File "", line 1, in NameError: name 'python' is not defined

2020-12-03 Thread Karthikeyan Singaravelan
New submission from Karthikeyan Singaravelan : Please attach the program to reproduce the issue along with the full traceback in the issue body. It looks like you are trying to use a variable named 'python' which is not present at the given scope during execution. -- nos

[issue40529] Auto Completions with case insensitive

2020-12-04 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : Removed file: https://bugs.python.org/file49655/IMAG0215.jpg ___ Python tracker <https://bugs.python.org/issue40529> ___ ___ Pytho

[issue42532] spec_arg's __bool__ is called while initializing NonCallableMock

2020-12-04 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: The fix to check for None seems straightforward to me and is only needed for AsyncMock. I would wait for others thoughts on this. -- nosy: +cjw296, lisroach, mariocj89, michael.foord, xtreak ___ Python

[issue42572] Better path handling with argparse

2020-12-04 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +paul.j3, rhettinger ___ Python tracker <https://bugs.python.org/issue42572> ___ ___ Python-bugs-list mailin

[issue42532] spec_arg's __bool__ is called while initializing NonCallableMock

2020-12-07 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- pull_requests: +22542 pull_request: https://github.com/python/cpython/pull/23676 ___ Python tracker <https://bugs.python.org/issue42

[issue42586] unittest.mock.Mock spec can't be array/ndarray in Python 3.9

2020-12-07 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: I don't have Python 3.9 with numpy to test this. Does this used to work with python 3.8? Does using numpy produce any error or traceback in 3.9? -- nosy: +xtreak ___ Python tracker &

[issue42586] unittest.mock.Mock spec can't be array/ndarray in Python 3.9

2020-12-07 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Thanks, this looks like a duplicate of https://bugs.python.org/issue42532 -- ___ Python tracker <https://bugs.python.org/issue42

[issue42586] unittest.mock.Mock spec can't be array/ndarray in Python 3.9

2020-12-07 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: It's a problem with 3.9 only as far as I know. The fix has been merged to master (3.10) and 3.9 . I will check with 3.8 but I don't think it will be a problem since 3.8 has a different code path. You can check the PR merged for more

[issue42586] unittest.mock.Mock spec can't be array/ndarray in Python 3.9

2020-12-07 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: 3.9.1 is in RC1 as per https://www.python.org/dev/peps/pep-0596/#lifespan . It will be available as part of 3.9.1 or 3.9.2 . I am not sure about anaconda packaging schedule though. -- ___ Python tracker

[issue42588] Improvements to graphlib.TopologicalSorter.static_order() documentation

2020-12-07 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +pablogsal, rhettinger, tim.peters ___ Python tracker <https://bugs.python.org/issue42588> ___ ___ Python-bug

[issue42621] Python IDLE no longer opens after clicking on its icon

2020-12-11 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- Removed message: https://bugs.python.org/msg382866 ___ Python tracker <https://bugs.python.org/issue42621> ___ ___ Pytho

[issue42622] Add support to add existing parser to ArgumentParser.subparsers

2020-12-11 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +paul.j3, rhettinger ___ Python tracker <https://bugs.python.org/issue42622> ___ ___ Python-bugs-list mailin

[issue42624] sqlite3 package document mistake

2020-12-12 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +berker.peksag, ghaering ___ Python tracker <https://bugs.python.org/issue42624> ___ ___ Python-bugs-list mailin

[issue42532] spec_arg's __bool__ is called while initializing NonCallableMock

2020-12-13 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: New changeset 14f2a124e20081b8981c8d6165dbd78d11b6808c by Karthikeyan Singaravelan in branch '3.9': [3.9] bpo-42532: Check if NonCallableMock's spec_arg is not None instead of call its __bool__ function (GH-23613) (GH-23676) htt

[issue42765] Introduce new data model method __iter_items__

2020-12-28 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +rhettinger ___ Python tracker <https://bugs.python.org/issue42765> ___ ___ Python-bugs-list mailing list Unsub

[issue42975] urllib.parse.parse_qsl(): add an option to not consider semicolon (; ) as separator

2021-01-20 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: See also https://bugs.python.org/issue42967 -- nosy: +xtreak ___ Python tracker <https://bugs.python.org/issue42

[issue43075] ReDoS in request

2021-01-30 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +orsenthil, serhiy.storchaka type: -> security ___ Python tracker <https://bugs.python.org/issue43075> ___ _

[issue43059] sqlite3: Externally developed?

2021-01-30 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: mock also broke similar package on removing __version__. See also https://bugs.python.org/issue31826 -- nosy: +xtreak ___ Python tracker <https://bugs.python.org/issue43

<    5   6   7   8   9   10   11   12   13   14   >