[issue41041] Digital India

2020-06-19 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- Removed message: https://bugs.python.org/msg371919 ___ Python tracker <https://bugs.python.org/issue41041> ___ ___ Pytho

[issue41041] Multiprocesing Pool borken on macOS REPL

2020-06-19 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Some related note in documentation about repl with commit : https://github.com/python/cpython/commit/73dd030c8b71a7080648554652912982054b1177 > Note Functionality within this package requires that the __main__ module be > impo

[issue41041] Multiprocesing Pool borken on macOS REPL

2020-06-19 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: There is a documentation ticket already open : https://bugs.python.org/issue33553 -- nosy: +xtreak ___ Python tracker <https://bugs.python.org/issue41

[issue41047] argparse: misbehavior when combining positionals and choices

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

[issue40994] Very confusing documenation for abc.Collections

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

[issue40984] re.compile's repr truncates patterns at 200 characters

2020-06-15 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: This seems similar to https://bugs.python.org/issue39949 -- nosy: +serhiy.storchaka, xtreak ___ Python tracker <https://bugs.python.org/issue40

[issue40978] Document that typing.SupportsXXX protocols are runtime checkable

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

[issue40975] contextlib.AsyncExitStack enter_async_context and aclose should be labeled as coroutine methods

2020-06-14 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- components: +asyncio nosy: +asvetlov, yselivanov ___ Python tracker <https://bugs.python.org/issue40975> ___ ___ Pytho

[issue40908] datetime strftime with %Y and 2 digit years

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

[issue40897] Inheriting from Generic causes inspect.signature to always return (*args, **kwargs) for constructor (and all subclasses)

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

[issue40886] Add PYTHONLOGGING environment variable and -L cmdline argument

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

[issue40837] email.utils.encode_rfc2231(string, None, None) returns broken value

2020-06-04 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- components: +email nosy: +barry, maxking, r.david.murray ___ Python tracker <https://bugs.python.org/issue40837> ___ ___

[issue40864] spec_set/autospec/spec seems to not be reading attributes defined in class body

2020-06-04 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: mock uses dir to iterate through the attributes that needs to be specced [0]. Unless the variable is initialized it's not listed in dir. Below is an example where age is initialized and name is not. name is not present in dir(Person) and hence

[issue40826] Segfaults on io.FileIO(0).name in 3.9

2020-05-30 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- type: -> crash ___ Python tracker <https://bugs.python.org/issue40826> ___ ___ Python-bugs-list mailing list Un

[issue40805] Can no longer patch flask.g

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

[issue40751] command 'elif' does not work

2020-05-23 Thread Karthikeyan Singaravelan
New submission from Karthikeyan Singaravelan : You're indenting elif inside if clause. The elif should be of same indentation length like if condition. -- nosy: +xtreak ___ Python tracker <https://bugs.python.org/issue40

[issue40726] ast.Call end_lineno is defined and returns None

2020-05-22 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +pablogsal ___ Python tracker <https://bugs.python.org/issue40726> ___ ___ Python-bugs-list mailing list Unsub

[issue40725] Documentation: Benchmark table in "What's new in Python 3.9" has weird values

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

[issue40721] PEP0435 (enums) -- there is no standard on enum item letters case

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

[issue40718] Support out-of-band pickling for builtin types

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

[issue40679] show class name in method invocation TypeError

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

[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

[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

[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

[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

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

[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

[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

[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 ___ Python tracker <

[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

[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

[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

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

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

[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

[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

[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

[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

[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

[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

[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

[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

[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

[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

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

[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

[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

[issue40392] Remove deprecated _field_types in typing.NamedTuple

2020-04-26 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 attribute o

[issue40392] Remove deprecated _field_types in typing.NamedTuple

2020-04-26 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

[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

[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

[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

[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

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

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

[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

[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

[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

[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

[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

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

[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/cpython/commit

[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/cpython/commit

[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

[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

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

[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

[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

[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

[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

[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

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

[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

[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

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

[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

[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

[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,g: s.matc

[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

[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

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

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

[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

[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=logs=d554cd63-f8f4

[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

[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

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

[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

[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

[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

[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/cpython/commit

[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/cpython/commit

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

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

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

[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

[issue40037] py_compile.py quiet undefined in main function

2020-03-30 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: I feel it's the same. It also reports about the undeclared variable just being found by bad file used with py_compile. It was also reported at https://bugs.python.org/issue39743. Can you please explain why this is not a duplicate

[issue40099] modify code format of json library for pep7,8

2020-03-28 Thread Karthikeyan Singaravelan
New submission from Karthikeyan Singaravelan : PEP 8 changes and cosmetic changes PR are discouraged since they will make git history less useful. -- nosy: +xtreak ___ Python tracker <https://bugs.python.org/issue40

[issue40086] test_etree is skipped in test_typing due to cElementTree removal

2020-03-28 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Thanks @furkanonder for the patch. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

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

2020-03-27 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Thanks for the example I didn't know hasattr can return False to return a value when the magicmethod was accessed. I will wait for others opinion on this then. -- ___ Python tracker <ht

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