[issue43400] Remove "Mock is very easy to use" from unittest.mock documentation

2021-03-04 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: I don't have any opinion on removing the part of the sentence. It will be helpful if you can list the scenarios where you feel document is lacking so that it can be improved. One area I have found to be little tricky is patching the correct object

[issue43399] xml.etree.ElementTree.extend does not work with iterators when using the Python implementation

2021-03-04 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +eli.bendersky, scoder, serhiy.storchaka ___ Python tracker <https://bugs.python.org/issue43399> ___ ___ Python-bug

[issue43371] Mock.assert_has_calls works strange

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

[issue42128] Structural Pattern Matching (PEP 634)

2021-02-26 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: I am not sure if this was mentioned. There are a couple of places where switch/case is mentioned in the docs and it will be good if these places were updated to the tutorial or PEP. https://docs.python.org/3/faq/design.html#why-isn-t

[issue43317] python -m gzip could use a larger buffer

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

[issue43315] Decimal.__str__ has no way to force exact decimal representation

2021-02-24 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +facundobatista, mark.dickinson, rhettinger ___ Python tracker <https://bugs.python.org/issue43315> ___ ___ Pytho

[issue43295] datetime.strptime emits IndexError on parsing 'z' as %z

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

[issue43275] Add a `.gitignore` file with content `*` in the root folder generated by venv module

2021-02-20 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: This seems to be a duplicate of https://bugs.python.org/issue39236 -- nosy: +brett.cannon, vinay.sajip, xtreak ___ Python tracker <https://bugs.python.org/issue43

[issue43237] datetime.__eq__ returns true when timezones don't match

2021-02-16 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +belopolsky, p-ganssle ___ Python tracker <https://bugs.python.org/issue43237> ___ ___ Python-bugs-list mailin

[issue43230] typo in Simplified/Traditional Chinese documentation for library argparse

2021-02-15 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: The translation is maintained under GitHub. Please report to https://github.com/python/python-docs-zh-cn/issues -- nosy: +xtreak resolution: -> third party stage: -> resolved status: open -&g

[issue43227] Backslashes in function arguments in f-string expressions

2021-02-14 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +eric.smith ___ Python tracker <https://bugs.python.org/issue43227> ___ ___ Python-bugs-list mailing list Unsub

[issue43221] German Text Conversion Using Upper() and Lower()

2021-02-13 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: I guess this was discussed a few times in different issues. See also https://bugs.python.org/issue34928 -- nosy: +xtreak ___ Python tracker <https://bugs.python.org/issue43

[issue43196] logging.config.dictConfig shuts down socket for existing SysLogHandlers

2021-02-11 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +vinay.sajip, xtreak ___ Python tracker <https://bugs.python.org/issue43196> ___ ___ Python-bugs-list mailin

[issue42744] pkg_resources seems to treat python 3.10 as python 3.1

2021-02-10 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: setuptools and pip were upgraded in alpha 5 which could have fixed this : https://github.com/python/cpython/commit/4d11ecbb5ed78e6259ee27289c7638aad795f473 -- nosy: +xtreak ___ Python tracker <ht

[issue43184] Missing docs for LoggerAdapter manager and name property

2021-02-10 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +vinay.sajip ___ Python tracker <https://bugs.python.org/issue43184> ___ ___ Python-bugs-list mailing list Unsub

[issue43176] Dataclasses derived from empty frozen bases skip immutability checks

2021-02-08 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +eric.smith ___ Python tracker <https://bugs.python.org/issue43176> ___ ___ Python-bugs-list mailing list Unsub

[issue43174] Windows: Use /utf-8 compiler flag

2021-02-08 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- components: +Windows nosy: +paul.moore, steve.dower, tim.golden, zach.ware ___ Python tracker <https://bugs.python.org/issue43

[issue43171] Counter not supported add in Python 3.x

2021-02-08 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +rhettinger ___ Python tracker <https://bugs.python.org/issue43171> ___ ___ Python-bugs-list mailing list Unsub

[issue43149] Misleading error message for except with missing parens (3.10.a5)

2021-02-06 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +lys.nikolaou, pablogsal ___ Python tracker <https://bugs.python.org/issue43149> ___ ___ Python-bugs-list mailin

[issue43141] `asdict` fails with frozen dataclass keys; tries to use raw dict form as key

2021-02-05 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +eric.smith ___ Python tracker <https://bugs.python.org/issue43141> ___ ___ Python-bugs-list mailing list Unsub

[issue43097] IndexError msg of random.choice() not helpful

2021-02-01 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +mark.dickinson, rhettinger ___ Python tracker <https://bugs.python.org/issue43097> ___ ___ Python-bugs-list mailin

[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

[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> ___ _

[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

[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

[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) https://github.com

[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

[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

[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

[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

[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

[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 discussion

[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: 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 <ht

[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

[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-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

[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

[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. -- nosy: +xtreak

[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:

[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

[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

[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:

[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

[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

[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

[issue42470] DeprecationWarning triggers for sequences which happen to be sets as well

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

[issue42462] Unacceptable Output

2020-11-25 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Please don't attach images since text will have better accessibility for readers. The expression is as below and is a result of operator precedence : https://docs.python.org/3/reference/expressions.html#operator-precedence >>> 7+3==10

[issue42299] Remove formatter module

2020-11-24 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: This was proposed earlier : https://bugs.python.org/issue39352 -- nosy: +xtreak ___ Python tracker <https://bugs.python.org/issue42

[issue42450] Docstrings in itertools recipes should have triple-quotes

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

[issue42414] unable to document fields of dataclass

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

[issue15860] Use TestCase assertion methods in unittest.mock.assert* to make them easier to read

2020-11-18 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: See also https://bugs.python.org/issue28054 -- nosy: +xtreak ___ Python tracker <https://bugs.python.org/issue15

[issue42385] Should enum.auto's behavior be adjusted for StrEnum to return the enum name?

2020-11-17 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +barry, eli.bendersky, ethan.furman ___ Python tracker <https://bugs.python.org/issue42385> ___ ___ Python-bug

[issue42371] datetime.fromisoformat(): Omitted colon in timezone suffix raises ValueError

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

[issue42368] Make set ordered

2020-11-16 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: See also https://mail.python.org/pipermail/python-dev/2019-February/156466.html -- nosy: +methane, rhettinger, xtreak ___ Python tracker <https://bugs.python.org/issue42

[issue42364] Typo in french doc translation

2020-11-15 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: French translation is maintained in GitHub and the issues are tracked under GitHub issues. Please open an issue at https://github.com/python/python-docs-fr -- nosy: +xtreak resolution: -> third party stage: -> resolved status

[issue42353] Proposal: re.prefixmatch method (alias for re.match)

2020-11-14 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- components: +Regular Expressions nosy: +ezio.melotti, mrabarnett ___ Python tracker <https://bugs.python.org/issue42

[issue42331] 'base64' has no attribute 'decodestring'

2020-11-12 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: The tracker is for issues related to CPython. This seems to be an issue with gsutil on Python 3.9 compatibility. This seems to have been fixed as below : https://github.com/GoogleCloudPlatform/gsutil/issues/1118 -- nosy: +xtreak resolution

[issue42329] typing classes do not have __name__ attributes in 3.7+

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

[issue42323] [AIX] test_math: test_nextafter(float('nan'), 1.0) does not return a NaN on AIX

2020-11-11 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +Michael.Felt ___ Python tracker <https://bugs.python.org/issue42323> ___ ___ Python-bugs-list mailing list Unsub

[issue42324] Doctest: directives

2020-11-11 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Is this similar to https://bugs.python.org/issue36675 ? -- nosy: +xtreak ___ Python tracker <https://bugs.python.org/issue42

[issue42301] Lack function to track index of an element in heapq

2020-11-09 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +rhettinger, stutzbach ___ Python tracker <https://bugs.python.org/issue42301> ___ ___ Python-bugs-list mailin

[issue42300] Typo in translation to portuguese

2020-11-09 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: The Portuguese translation is maintained in GitHub and uses GitHub issues. Please report issues at https://github.com/python/python-docs-pt-br -- nosy: +xtreak ___ Python tracker <ht

[issue42297] [argparse] Bad error message formatting when using custom usage text

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

[issue42275] Jupyter Lab Terminals not available (error was No module named 'winpty.cywinpty')

2020-11-06 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: The tracker is for issues related to CPython and doesn't seem to be caused due to python itself. I would suggest following it up on jupyterlab's issue tracker and forums. -- nosy: +xtreak ___ Python

[issue42271] Remove the error and the zipfile.ZipFile.BadZipfile aliases

2020-11-06 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +alanmcintyre, serhiy.storchaka, twouters ___ Python tracker <https://bugs.python.org/issue42271> ___ ___ Python-bug

[issue42244] TimedRotatingFileHandler doesn’t handle the switch to/from DST when using daily/midnight rotation

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

[issue42240] Add Maxheap version of a heappush into heapq module

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

[issue42211] CRASH

2020-10-30 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Please attach crash.py and logging.patch files -- nosy: +vstinner, xtreak ___ Python tracker <https://bugs.python.org/issue42

[issue42203] Unexpected behaviour NameError: name 'open' is not defined

2020-10-30 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: This is a duplicate of below https://bugs.python.org/issue26789 https://bugs.python.org/issue39513 -- nosy: +xtreak ___ Python tracker <https://bugs.python.org/issue42

[issue42196] Python Windows Installation Error 0x800705aa

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

[issue42194] Docs for argparse.BooleanOptionalAction missing "New in version 3.9"

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

[issue42191] lib.argparse._check_value() using repre instead of str

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

[issue42186] unittest overrides more serious warnings filter added before unittest.main()

2020-10-28 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Seems to be a duplicate of https://bugs.python.org/issue15626. See also https://bugs.python.org/issue31975 -- nosy: +ncoghlan ___ Python tracker <https://bugs.python.org/issue42

[issue42186] unittest overrides more serious warnings filter added before unittest.main()

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

[issue42167] Documentation for SETUP_WITH opcode is wrong

2020-10-27 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +Mark.Shannon ___ Python tracker <https://bugs.python.org/issue42167> ___ ___ Python-bugs-list mailing list Unsub

[issue42159] AsyncMock restores stopped patch if same object stopped multiple times

2020-10-27 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: This is not a problem with AsyncMock. The patching is not done when the patch object is created to store reference to the original unpatched function. Hence patcher1, patcher2 that patch the same function don't store a reference to the original

[issue42159] AsyncMock restores stopped patch if same object stopped multiple times

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

[issue42151] Pure Python xml.etree.ElementTree is missing default attribute values

2020-10-25 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +eli.bendersky, scoder, serhiy.storchaka ___ Python tracker <https://bugs.python.org/issue42151> ___ ___ Python-bug

[issue42105] allow_abbrev not working as intended in "argparse.ArgumentParser" in Python 3.9.0

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

[issue42097] Python 3.7.9 logging/threading/fork hang

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

[issue41768] unittest.mock spec calls class properties

2020-10-20 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +cjw296, lisroach, mariocj89 ___ Python tracker <https://bugs.python.org/issue41768> ___ ___ Python-bugs-list mailin

[issue42090] zipfile.Path.joinpath API inconsistent with pathlib.Path.joinpath

2020-10-19 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +jaraco ___ Python tracker <https://bugs.python.org/issue42090> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue42070] I think the rationale to keep IsoCalendarDate private from the pickle perspective should get revisited

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

[issue42042] sphinx3 renders diffrently docs.python.org for 3.10

2020-10-17 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +mdk ___ Python tracker <https://bugs.python.org/issue42042> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue42059] TypedDict(...) as function does not respect "total" when setting __required_keys__ and __optional_keys__

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

[issue37555] _CallList.__contains__ doesn't always respect ANY.

2020-10-16 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: I would prefer not backporting this change given the discussion in https://github.com/python/cpython/pull/14700#issuecomment-531791029 -- ___ Python tracker <https://bugs.python.org/issue37

[issue42049] Add image/webp to list of media types in mimetypes.py

2020-10-16 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: This seems to be a duplicate of https://bugs.python.org/issue38902 -- nosy: +xtreak ___ Python tracker <https://bugs.python.org/issue42

[issue42043] zipfile.Path should support inheritance

2020-10-15 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +jaraco ___ Python tracker <https://bugs.python.org/issue42043> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue42025] zoneinfo: wrong time difference across transition when tzinfo is equal

2020-10-13 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +p-ganssle ___ Python tracker <https://bugs.python.org/issue42025> ___ ___ Python-bugs-list mailing list Unsub

[issue42023] Argparse: Add a "display" arg

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

[issue42011] Documentation for logging.Filter.filter reports the wrong return type

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

[issue42001] Deprecate `typing.io` Wrapper Namespace

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

[issue41980] Argparse documentation is slightly misleading

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

[issue41371] test_zoneinfo fails when lzma module is unavailable

2020-10-09 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Thanks @doodspav for the report and Thanks nathan for the patch. This somehow missed 3.9.0 but will be available in 3.9.1. I am closing the issue. Feel free to reopen this or a new issue to implement suggestions by Paul in msg374822

[issue41371] test_zoneinfo fails when lzma module is unavailable

2020-10-09 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: New changeset 20bdeedfb4ebd250dad9834c96cb858d83c896cb by Karthikeyan Singaravelan in branch '3.9': [3.9] bpo-41371: Handle lzma lib import error in test_zoneinfo.py (GH-21734) (GH-22039) https://github.com/python/cpython/commit

[issue41877] Check against misspellings of assert etc. in mock

2020-10-08 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: See also below issues for previous discussion on making the assert helpers as top level functions : https://bugs.python.org/issue24651 https://bugs.python.org/issue30949 -- nosy: +cjw296, lisroach, mariocj89, rbcollins, xtreak

[issue41970] test_lib2to3 fails since Python 3.9

2020-10-08 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- pull_requests: +21592 pull_request: https://github.com/python/cpython/pull/22609 ___ Python tracker <https://bugs.python.org/issue41

[issue41970] test_lib2to3 fails since Python 3.9

2020-10-08 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: I guess this could be due to loading the module twice where the warning is not emitted again on reimport which test__all__ seems to do so by importing lib2to3. One obvious fix would be to pass quiet=True. Else we need to find a way to import

[issue41970] test_lib2to3 fails since Python 3.9

2020-10-08 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: I can reproduce this by running test_lib2to3 twice or running test___all__ with test_lib2to3 ./python -m test test_lib2to3 test_lib2to3 0:00:00 load avg: 0.03 Run tests sequentially 0:00:00 load avg: 0.03 [1/2] test_lib2to3 0:00:13 load avg: 0.25

<    1   2   3   4   5   6   7   8   9   10   >