[issue39355] The Python library will not compile with a C++2020 compiler because the code uses the reserved “module” keyword

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

[issue35058] Unable to Install Python on Windows

2020-01-15 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- Removed message: https://bugs.python.org/msg360043 ___ Python tracker <https://bugs.python.org/issue35058> ___ ___ Pytho

[issue35058] Unable to Install Python on Windows

2020-01-15 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- Removed message: https://bugs.python.org/msg360042 ___ Python tracker <https://bugs.python.org/issue35058> ___ ___ Pytho

[issue39341] [security] zipfile: ZIP Bomb vulnerability, don't check announced uncompressed size

2020-01-15 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: See also some discussion on regarding this class of vulnerability : https://bugs.python.org/issue36260 -- nosy: +serhiy.storchaka, xtreak ___ Python tracker <https://bugs.python.org/issue39

[issue39333] argparse should offer an alternative to SystemExit in case a parse fails

2020-01-14 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Does overriding exit help here? https://docs.python.org/3.8/library/argparse.html#argparse.ArgumentParser.exit -- nosy: +paul.j3, xtreak ___ Python tracker <https://bugs.python.org/issue39

[issue39330] Way to build without IDLE

2020-01-14 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +taleinat, terry.reedy ___ Python tracker <https://bugs.python.org/issue39330> ___ ___ Python-bugs-list mailin

[issue39326] Python-3.8.1 "test_importlib" failed

2020-01-13 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Can you please attach the output log of the test? -- nosy: +xtreak ___ Python tracker <https://bugs.python.org/issue39

[issue39323] Add test for imghdr cli

2020-01-13 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- keywords: +patch pull_requests: +17396 stage: -> patch review pull_request: https://github.com/python/cpython/pull/17993 ___ Python tracker <https://bugs.python.org/issu

[issue39323] Add test for imghdr cli

2020-01-13 Thread Karthikeyan Singaravelan
New submission from Karthikeyan Singaravelan : imghdr module has a cli that can display the image type for a given filename and also recurse through directories. I would like to propose following changes : * Add tests for the imghdr cli. * The cli uses hardcoded '/' separator in the end

[issue39299] Improve test coverage for mimetypes module

2020-01-13 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: New changeset d8efc1495194228c3a4cd472200275d6491d8e2d by Karthikeyan Singaravelan in branch 'master': bpo-39299: Add more tests for mimetypes and its cli. (GH-17949) https://github.com/python/cpython/commit/d8efc1495194228c3a4cd472200275d6491d8e2d

[issue39318] NamedTemporaryFile could cause double-close on an fd if _TemporaryFileWrapper throws

2020-01-13 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +serhiy.storchaka versions: -Python 3.5, Python 3.6 ___ Python tracker <https://bugs.python.org/issue39

[issue39307] Memory leak in parsetok

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

[issue39315] Lists of objects containing lists

2020-01-12 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: No problem, you're welcome :) -- ___ Python tracker <https://bugs.python.org/issue39315> ___ ___ Python-bugs-list m

[issue39315] Lists of objects containing lists

2020-01-12 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: You are appending to the class attribute where both shelf[0] and shelf[1] refers to the same list as seen by output of id. You might want to create an instance variable and use it for mutating across different instances. This could help : https

[issue39310] Add math.ulp(x): unit in the last place

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

[issue39311] difflib pathlike support for {unified, context}_diff() {from, to}file

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

[issue39299] Improve test coverage for mimetypes module

2020-01-11 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: With the proposed PR the coverage [0] stands at 80% with Windows tests for registry not covered as part of the coverage report. The tests also now use tearDownModule to restore the value of mimetypes.knownfiles which was being accidentally set

[issue39304] Don't accept a negative number for the count argument in str.replace(old, new[, count])

2020-01-11 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Thanks for the details. I looked into the tests for this behavior too and agree it's a tested behavior. issue5416 already had similar discussion and the documentation was committed to be later reverted upon Raymond's suggestion. So I will leave

[issue39304] Don't accept a negative number for the count argument in str.replace(old, new[, count])

2020-01-11 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: negative value is an implementation detail where count < 0 is similar to replace all [0]. See also issue5416 [0] https://github.com/python/cpython/blob/43682f1e39a3c61f0e8a638b887bcdcbfef766c5/Objects/unicodeobject.c#L10578 -- n

[issue39300] dataclasses non-default argument follows default argument

2020-01-10 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: See also issue36077 -- ___ Python tracker <https://bugs.python.org/issue39300> ___ ___ Python-bugs-list mailin

[issue39300] dataclasses non-default argument follows default argument

2020-01-10 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: > TypeError will be raised if a field without a default value follows a field > with a default value. This is true either when this occurs in a single class, > or as a result of class inheritance. I think this is a combination of

[issue39298] add BLAKE3 to hashlib

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

[issue39299] Improve test coverage for mimetypes module

2020-01-10 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- keywords: +patch pull_requests: +17356 stage: -> patch review pull_request: https://github.com/python/cpython/pull/17949 ___ Python tracker <https://bugs.python.org/issu

[issue39299] Improve test coverage for mimetypes module

2020-01-10 Thread Karthikeyan Singaravelan
New submission from Karthikeyan Singaravelan : Currently the test coverage for mimetypes module is at 57% https://codecov.io/gh/python/cpython/src/43682f1e39a3c61f0e8a638b887bcdcbfef766c5/Lib/mimetypes.py . I propose adding the following tests to increase the coverage. * Add test for case

[issue39291] "pathlib.Path.link_to()" and "pathlib.Path.symlink_to()" have reversed usage

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

[issue39292] syslog constants behind rfc

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

[issue39285] PurePath.match indicates case-sensitive nature and presents a case-insensitive example

2020-01-10 Thread Karthikeyan Singaravelan
New submission from Karthikeyan Singaravelan : https://docs.python.org/3/library/pathlib.html#pathlib.PurePath.match Under PurePath.match there is a statement that case-sensitivity is followed but presents an example in Windows where case insensitive match returns True. This is confusing

[issue39283] Add ability to inherit unittest arguement parser

2020-01-10 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Can you please post the unittest script and the desired behavior? Are you testing your own argument parser created using argparse or want to write something replacing the argument parser of the unittest module like creating a custom unittest

[issue32545] Unable to install Python 3.7.0a4 on Windows 10 - Error 0x80070643: Failed to install MSI package.

2020-01-09 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- Removed message: https://bugs.python.org/msg359706 ___ Python tracker <https://bugs.python.org/issue32545> ___ ___ Pytho

[issue39275] Traceback off by one line when

2020-01-09 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: This looks similar to issue35405 . See also issue16482 with a patch. -- nosy: +xtreak ___ Python tracker <https://bugs.python.org/issue39

[issue39274] Conversion from fractions.Fraction to bool

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

[issue39029] TestMaildir.test_clean fails randomly under parallel tests

2020-01-09 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: I am able to reproduce it on my Mac and as below the values of os.getpid() are the same with the command. I will try to get to a Linux box to see if I can reproduce this. I was always under the assumption that -j 4 runs tests in parallel

[issue39029] TestMaildir.test_clean fails randomly under parallel tests

2020-01-09 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: > You wrote "I guess the file is not really deleted in some cases." I think > that this should be investigated first. Sorry, I wanted to mean that as the test deletes the file and goes on to assert it's not present the othe

[issue39269] Descriptor how-to guide wanting update for 3.6+ features

2020-01-08 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Seems like a duplicate of https://bugs.python.org/issue34394 -- nosy: +xtreak ___ Python tracker <https://bugs.python.org/issue39

[issue39269] Descriptor how-to guide wanting update for 3.6+ features

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

[issue39129] Incorrect import of TimeoutError while creating happy eyeballs connection

2020-01-08 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Sorry, I never got around writing a proper test for this so I am moving it to test needed if someone wants to volunteer for it. trio has some test cases for their happy eyeball implementation if it helps : https://github.com/python-trio/trio/blob

[issue39258] json serialiser errors with numpy int64

2020-01-08 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Closing it as duplicate. -- nosy: +xtreak resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> json fails to serialise numpy.int64 ___ Python tra

[issue39257] contextvars.Context.run hangs forever in ProccessPoolExecutor

2020-01-08 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +yselivanov ___ Python tracker <https://bugs.python.org/issue39257> ___ ___ Python-bugs-list mailing list Unsub

[issue39222] unittest.mock.Mock.parent is broken or undocumented

2020-01-08 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: It's a similar situation to name argument conflict [0] except that it's parent here. You can use configure_mock or attribute setting to do the same thing like below. parent is discussed in the docs to indicate the attributes being children like

[issue39247] dataclass defaults and property don't work together

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

[issue39233] glossary entry for parameter out-of-date for positional-only parameters

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

[issue25872] multithreading traceback KeyError when modifying file

2020-01-06 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Thanks Michael, reopening. I was wrong while trying the reproducer since map is lazy in Python 3 and threads were not executed. -- resolution: wont fix -> stage: resolved -> status: closed -> open versions: +Python 3.9 -P

[issue39191] Coroutine is awaited despite an exception in run_until_complete()

2020-01-06 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: This commit seems to generate some warnings in the nested run_until_complete test. The check for running loop is now done at run_until_complete itself before going through the below code in it to create a future and raised a RuntimeError

[issue39229] library/functions.rst causes translated builds to fail

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

[issue39222] unittest.mock.Mock.parent is broken or undocumented

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

[issue39218] Assertion failure when calling statistics.variance() on a float32 Numpy array

2020-01-04 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: I think it's more of an implementation artifact of numpy eq definition for float32 and float64 and can possibly break again if (x-c) * (x-c) was also changed to return float64 in future. -- nosy: +rhettinger, steven.daprano, taleinat

[issue39216] ast_opt.c -- missing posonlyargs?

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

[issue39211] Change in http.server default IP behavior?

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

[issue39211] Change in http.server default IP behavior?

2020-01-04 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Can you please paste the output of http.server as in the port and address printed as a log when started for different commands? As I can see from the history the binding process was changed to include IPv6 as default : https://github.com/python

[issue39211] Change in http.server default IP behavior?

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

[issue33095] Cross-reference isolated mode from relevant locations

2020-01-04 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Closing since PRs were merged. Thanks for the review. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue39204] Automate adding Type Annotations to Documentation

2020-01-03 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Some discussion on similar proposal earlier : https://mail.python.org/pipermail/python-dev/2017-November/150234.html -- ___ Python tracker <https://bugs.python.org/issue39

[issue39204] Automate adding Type Annotations to Documentation

2020-01-03 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: I am not sure if it was discussed earlier there was a discussion on adding PEP 570 syntax across the docs. This comes at the cost of keeping the types updated. There was also a poc over expanding the signature to view the PEP 570 syntax as needed

[issue39201] Threading.timer leaks memory in 3.8.0/3.8.1

2020-01-03 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Please include the script as an attachment or text so that it will be easy to view them. The script as below from the attachment : import threading import time import tracemalloc def callback(): pass tracemalloc.start() for i in range(10

[issue35457] robotparser reads empty robots.txt file as "all denied"

2020-01-02 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: There is a behavior change. parse() sets the modified time and unless the modified time is set the can_fetch method returns false. In Python 2 the parse method was called only when the file is non-empty [0] but in Python 3 it's always called

[issue39182] sys.addaudithook(hook) loops indefinitely on mismatch for hook

2020-01-01 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +christian.heimes, steve.dower ___ Python tracker <https://bugs.python.org/issue39182> ___ ___ Python-bugs-list m

[issue39180] Missing getlines func documentation from linecache module

2020-01-01 Thread Karthikeyan Singaravelan
New submission from Karthikeyan Singaravelan : As a note getlines is not exposed via __all__ : https://github.com/python/cpython/blob/22424c02e51fab3b62cbe255d0b87d1b55b9a6c3/Lib/linecache.py#L13 -- nosy: +xtreak ___ Python tracker <ht

[issue39179] pandas tz_convert() seems to report incorrect date conversion

2020-01-01 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: This tracker is for issues related to CPython. Unless there is a simple reproducer in Python without pandas to illustrate the issues reported I would propose closing this as third party. Please follow this up at https://github.com/pandas-dev

[issue39178] Should we make dict not accept a sequence of sets?

2020-01-01 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +inada.naoki, rhettinger ___ Python tracker <https://bugs.python.org/issue39178> ___ ___ Python-bugs-list mailin

[issue39166] Python 3.9.0a2 changed how "async for" traces its final iteration

2020-01-01 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Bisecting points me to fee552669f . I tried compiling latest master with the bytecode changes and the behavior is same as reported. ➜ cpython git:(5dcc06f6e0) ./python ../backups/bpo39166.py > fee552669f_before.txt ➜ cpython git:(5dcc06f

[issue1820] Enhance Object/structseq.c to match namedtuple and tuple api

2020-01-01 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- pull_requests: -17214 ___ Python tracker <https://bugs.python.org/issue1820> ___ ___ Python-bugs-list mailing list Unsub

[issue39166] Python 3.9.0a2 changed how "async for" traces its final iteration

2020-01-01 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +asvetlov, yselivanov ___ Python tracker <https://bugs.python.org/issue39166> ___ ___ Python-bugs-list mailin

[issue39171] Missing default root in tkinter simpledialog.py

2020-01-01 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +gpolo, serhiy.storchaka ___ Python tracker <https://bugs.python.org/issue39171> ___ ___ Python-bugs-list mailin

[issue39172] Transformation of "string.find('asd', 'sd')" to Python 3 using 2to3

2019-12-31 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Seems to be a duplicate of issue2899 -- nosy: +xtreak ___ Python tracker <https://bugs.python.org/issue39

[issue39172] Transformation of "string.find('asd', 'sd')" to Python 3 using 2to3

2019-12-31 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- title: Translation of "string.find('asd', 'sd')" doesn't work -> Transformation of "string.find('asd', 'sd')" to Python 3 using 2to3 ___ Python tracker <https://

[issue18858] dummy_threading lacks threading.get_ident() equivalent

2019-12-31 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: dummy_threading was removed in Python 3.9 with issue37312 . I hope this issue can be closed as outdated. -- nosy: +inada.naoki, xtreak ___ Python tracker <https://bugs.python.org/issue18

[issue39167] argparse boolean type bug

2019-12-30 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: It seems like this is a common problem : https://stackoverflow.com/questions/15008758/parsing-boolean-values-with-argparse . I guess you want to store verbose=True when --verbose is passed and verbose=False when --verbose is not passed where

[issue39165] Completeness and symmetry in RE, avoid `findall(...)[0]`

2019-12-30 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +ezio.melotti, mrabarnett, serhiy.storchaka ___ Python tracker <https://bugs.python.org/issue39165> ___ ___ Pytho

[issue39163] spam

2019-12-30 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- resolution: -> wont fix stage: -> resolved status: open -> closed title: Perfect Exchange Migration tool -> spam type: performance -> ___ Python tracker <https://bugs.pyt

[issue39163] Perfect Exchange Migration tool

2019-12-30 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- Removed message: https://bugs.python.org/msg359028 ___ Python tracker <https://bugs.python.org/issue39163> ___ ___ Pytho

[issue39163] Perfect Exchange Migration tool

2019-12-30 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : Removed file: https://bugs.python.org/file48809/exchange-migration.jpg ___ Python tracker <https://bugs.python.org/issue39

[issue33777] dummy_threading: .is_alive method returns True after execution has completed

2019-12-30 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: FWIW, dummy_threading and _dummy_thread were removed with 8bf08ee45b7c2341f0d0175b91892843a37c23da in Python 3.9. -- ___ Python tracker <https://bugs.python.org/issue33

[issue38967] Improve error message in enum for member name surrounded by underscore.

2019-12-30 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +ethan.furman ___ Python tracker <https://bugs.python.org/issue38967> ___ ___ Python-bugs-list mailing list Unsub

[issue39029] TestMaildir.test_clean fails randomly under parallel tests

2019-12-30 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: > Should not parallel tests be ran in different directories? yes, the test uses support.TESTFN which has the value of "{}_{}_tmp".format(TESTFN, os.getpid()) in the setUp [0] to create tempdir. Under parallel tests the pid va

[issue39142] logging.config.dictConfig will convert namedtuple to ConvertingTuple

2019-12-28 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Thanks for the details. Attached is a complete script. Looking at the source code, anything that looks like a tuple is converted into a tuple. namedtuple produces factory function that itself is a subclass of tuple. It led me to this interesting

[issue39149] False positive using operator 'AND' while checking keys on dict()

2019-12-28 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: It's intended as non-empty strings evaluate to True so you with `'a' and 'b' and 'c' in dict` you are essentially evaluating `'a' and 'b' and ('c' in dict)` with brackets precedence i.e. `True and True and True` . On the other hand `'a' and 'g

[issue39112] Misleading documentation for tuple

2019-12-28 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Thanks Terry, I guess it's a duplicate of issue34118 . -- ___ Python tracker <https://bugs.python.org/issue39

[issue39142] logging.config.dictConfig will convert namedtuple to ConvertingTuple

2019-12-27 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Thanks for the report. Can you please attach a sample script with the handler used to illustrate the issue? -- nosy: +vinay.sajip, xtreak ___ Python tracker <https://bugs.python.org/issue39

[issue39141] IDLE Clear function returns 256 on Mac OS Catalina

2019-12-27 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +terry.reedy ___ Python tracker <https://bugs.python.org/issue39141> ___ ___ Python-bugs-list mailing list Unsub

[issue39140] shutil.move does not work properly with pathlib.Path objects

2019-12-26 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> shutil.move raises AttributeError if first argument is a pathlib.Path object and destination is a directory __

[issue39140] shutil.move does not work properly with pathlib.Path objects

2019-12-26 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: This is a duplicate of https://bugs.python.org/issue32689 that is fixed in 3.9 . Using os.fspath on path object is more correct here instead of str so that objects with both __str__ and __fspath__ implemented are handled properly. -- nosy

[issue39139] Reference to depricated collections.abc class in collections is unnecessary and confusing

2019-12-26 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: It can be updated since issue25988 removed the deprecation in Python 3.9. -- nosy: +rhettinger, xtreak ___ Python tracker <https://bugs.python.org/issue39

[issue39136] Typos in whatsnew file and docs

2019-12-26 Thread Karthikeyan Singaravelan
New submission from Karthikeyan Singaravelan : Based on https://github.com/python/cpython/pull/17665#pullrequestreview-335610849 . Grepping for the words might help fix in multiple instances of the typos. Typos in Whatsnew document asolute -> absolute happend -> happened Excape -&g

[issue39135] time.get_clock_info() documentation still has 'clock' name

2019-12-25 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Thanks for the report. Would you like to propose a PR? The relevant file is at https://github.com/python/cpython/blob/master/Doc/library/time.rst . -- keywords: +easy, newcomer friendly nosy: +xtreak

[issue39106] Add suggestions to argparse error message output for unrecognized arguments

2019-12-25 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Thanks for the feedback. Closing it as rejected. -- resolution: -> rejected stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue38902] image/webp support in mimetypes

2019-12-25 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Similar to previous discussions having an IANA registration would improve the acceptance of the patch to add it. It's still not listed at https://www.iana.org/assignments/media-types/media-types.xhtml -- nosy: +xtreak

[issue39119] email/_header_value_parser.py:parse_message_id: UnblondLocalError

2019-12-25 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Closing it as duplicate. Feel free to reopen if it's reproducible on latest stable release. Thanks. -- nosy: +maxking resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> While parsing emai

[issue38753] AsyncMock not cited as new in 3.8

2019-12-24 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Thanks John for the report and patch. Closing it as resolved. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue39129] Incorrect import of TimeoutError while creating happy eyeballs connection

2019-12-24 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Is there a way this can be tested? I tried simulating OSError for IPv4 address and returning socket for ipv6 one like it resolves correctly. I guess that's the underlying idea of happy eyeballs but a test can be added for basic workflow since

[issue39129] Incorrect import of TimeoutError while creating happy eyeballs connection

2019-12-23 Thread Karthikeyan Singaravelan
New submission from Karthikeyan Singaravelan : I guess the TimeoutError exception needs to be imported from asyncio.exceptions and not from asyncio.futures that causes AttributeError while instantiating a connection with happy eyeballs. ./python.exe -m asyncio asyncio REPL 3.9.0a2+ (heads

[issue39128] Document happy eyeball parameters in loop.create_connection signature docs

2019-12-23 Thread Karthikeyan Singaravelan
New submission from Karthikeyan Singaravelan : Created from https://github.com/aio-libs/aiohttp/issues/4451 . happy_eyeballs_delay and interleave are not documented in the signature at [0] though the parameters were explained below . Andrew, feel free to update if there is any additional

[issue39125] Type signature of @property not shown in help()

2019-12-23 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Currently docstring written for even property.setter is ignored in help as inspect.getdoc only inspects property.fget [0] for docstrings. I feel docs for setter could also be included. The docs also indicate the same at https://docs.python.org/3.6

[issue39112] Misleading documentation for tuple

2019-12-23 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: FWIW, built-in types page has the class prefix : https://docs.python.org/3/library/stdtypes.html#tuple . Similar difference between range in the two pages. -- nosy: +xtreak ___ Python tracker <ht

[issue39120] pyodbc dll load failed

2019-12-22 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: This is a tracker for CPython issues. Please use the bug tracker for pyodbc or other forums like stack overflow for better solutions. -- nosy: +xtreak resolution: -> third party stage: -> resolved status: open -&g

[issue39119] email/_header_value_parser.py:parse_message_id: UnblondLocalError

2019-12-22 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: I think this should be fixed with issue38698 in 3.8.1 . Can you please try the latest stable release. -- nosy: +xtreak ___ Python tracker <https://bugs.python.org/issue39

[issue39114] Python 3.9.0a2 changed how finally/return is traced

2019-12-21 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Looking at changes to alpha2 I think it bisects to https://github.com/python/cpython/pull/6641 ➜ cpython git:(5dcc06f6e0) git checkout fee552669f21ca294f57fe0df826945edc779090 && make -s -j4 > /dev/null Previous HEAD position was

[issue39114] Python 3.9.0a2 changed how finally/return is traced

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

[issue39107] Consider building Tkinter with Tk 8.6.10

2019-12-20 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +ned.deily ___ Python tracker <https://bugs.python.org/issue39107> ___ ___ Python-bugs-list mailing list Unsub

[issue39108] Documentation for "random.gauss" vs "random.normalvariate" is lacking

2019-12-20 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +mark.dickinson, rhettinger ___ Python tracker <https://bugs.python.org/issue39108> ___ ___ Python-bugs-list mailin

[issue39106] Add suggestions to argparse error message output for unrecognized arguments

2019-12-20 Thread Karthikeyan Singaravelan
New submission from Karthikeyan Singaravelan : I came across this idea while working on error messages for click at https://github.com/pallets/click/issues/1446. Currently for unknown arguments which could in some case be typos argparse throws an error but doesn't make any suggestions

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