[issue38836] Links are duplicated in documentation search result

2019-11-18 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +mdk ___ Python tracker <https://bugs.python.org/issue38836> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38843] Document argparse behaviour when custom namespace object already has the field set

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

[issue38859] AsyncMock says it raises StopIteration but that is Impossible

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

[issue38881] unexpected behaviour of random.choices with zero weights

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

[issue38526] zipfile.Path has the wrong method name

2019-11-21 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Closing as fixed since PRs are merged. Thanks Alex for the report and @Claudiu.Popa for the patch. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Pytho

[issue24995] better exception message when an unsupported object is passed to `async for` (pep 492)

2019-11-21 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- components: -2to3 (2.x to 3.x conversion tool) type: resource usage -> enhancement versions: -Python 2.7, Python 3.5, Python 3.6, Python 3.7, Python 3.8 ___ Python tracker <https://bugs.pyth

[issue24995] better exception message when an unsupported object is passed to `async for` (pep 492)

2019-11-21 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : Removed file: https://bugs.python.org/file48739/TransactionHistory-79b28f7d5748ad20cb8afb107f00330adbcd6d81.csv ___ Python tracker <https://bugs.python.org/issue24

[issue38881] unexpected behaviour of random.choices with zero weights

2019-11-22 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: IIUC, there was a similar discussion on negative weights and all weights being zero to raise ValueError at https://bugs.python.org/issue18844#msg196252 -- nosy: +xtreak ___ Python tracker <ht

[issue38895] performance degradation creating a mock object (by factor 7-8)

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

[issue38878] os.PathLike subclasshook causes subclass checks true on abstract implementation

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

[issue38901] Add a CLI flag to venv to use the pwd basename as the prompt

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

[issue38905] venv python reports wrong sys.executable in a subprocess on Windows

2019-11-24 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +eryksun ___ Python tracker <https://bugs.python.org/issue38905> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38895] performance degradation creating a mock object (by factor 7-8)

2019-11-25 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Thanks Marcel for the pointer. I can confirm the performance impact. This occurs in the common case where not being an AsyncMock the signature of NonCallableMock.__init__ is created every time and then bind_partial is used to detect the spec being

[issue38895] performance degradation creating a mock object (by factor 7-8)

2019-11-25 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Another point is that _spec_asyncs is a list of attributes that pass asyncio.iscoroutinefunction which could be also little expensive [0]. The check is made for the attribute to be async only when the child mock is created to return an AsyncMock

[issue38895] performance degradation creating a mock object (by factor 7-8)

2019-11-25 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: > This is already done in master branch ;) Thanks, I noticed the speed improvement in master and 3.7 but assumed it's due to some other optimisation in master. > Do you mind if I create PR for it? I would like to start contributing to

[issue38910] AssertionError: ElementTree not initialized, missing root

2019-11-25 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: This seems more like an issue with lxml. -- nosy: +scoder, xtreak ___ Python tracker <https://bugs.python.org/issue38

[issue34716] MagicMock.__divmod__ should return a pair

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

[issue38897] Example in socket documentation uses deprecated array.fromstring

2019-11-26 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Thanks David for the report and patch. -- nosy: +xtreak resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue38919] support Assignment Operators

2019-11-26 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: This needs to be discussed on python-ideas mailing list. Inplace operation for walrus operator like :*= feels difficulty to read than (x := x * 2) and would require changes to grammar. -- nosy: +xtreak

[issue38921] Max Recursion Depth Reached in Logging Library

2019-11-26 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Can you please attach a simple script to reproduce the issue? -- nosy: +vinay.sajip, xtreak ___ Python tracker <https://bugs.python.org/issue38

[issue38924] pathlib paths .normalize()

2019-11-26 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Can you please add an example of how normalize() should behave? I assume you want the same behaviour as os.path.normpath which already accepts a pathlike object to be added to pathlib. -- nosy: +xtreak

[issue38854] Decorator breaks inspect.getsource

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

[issue38932] unittest.mock.Mock.reset_mocks does not pass all arguments to its children

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

[issue38932] unittest.mock.Mock.reset_mocks does not pass all arguments to its children

2019-11-27 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Thanks Vegard for the report. The docs say "Child mocks and the return value mock (if any) are reset as well." so it makes sense to me to reset the return_value and side_effect of children. But as mentioned in the PR it's a behavi

[issue26730] SpooledTemporaryFile rollover corrupts data silently when Unicode characters are written

2019-11-27 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Do we need to explicitly document the return value change of _file which is documented with a separate versionchanged directive for 3.7 and 3.8? Code like below could fail in them since TextIOWrapper doesn't have getvalue attribute as the

[issue38933] unusual behaviour on list of dependable lambdas

2019-11-27 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: This could also help in understanding late binding that happens with the lambdas in the report : https://docs.python-guide.org/writing/gotchas/#late-binding-closures -- nosy: +xtreak ___ Python tracker

[issue26730] SpooledTemporaryFile rollover corrupts data silently when Unicode characters are written

2019-11-28 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: > Note that the _file attribute may be TextIOWrapper after rollover() anyway > and the rollover() may be called implicitly. The code depending on the specific type of the _file is fragile at first. Okay, thanks for the

[issue38938] Iterable merge performance and inclusion in itertools

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

[issue38924] pathlib paths .normalize()

2019-11-28 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: > Yes, exactly the same behaviour, but arguing that normpath() can take a > pathlib object is just saying that it saves you from doing an intermediate > str(), which is, well, nice, but still not pretty. Consider `mypath = > mypath.nor

[issue38939] Using Python as a Calculator

2019-11-29 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Maybe you are looking for floor division? https://docs.python.org/3.3/reference/expressions.html#binary-arithmetic-operations > The / (division) and // (floor division) operators yield the quotient of > their arguments. The numeric argumen

[issue38941] xml.etree.ElementTree.Element inconsistent warning for bool

2019-11-29 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- components: +XML nosy: +scoder ___ Python tracker <https://bugs.python.org/issue38941> ___ ___ Python-bugs-list mailin

[issue38947] dataclass defaults behave inconsistently for init=True/init=False when default is a descriptor

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

[issue34344] Fix the docstring for AbstractEventLoopPolicy.get_event_loop

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

[issue38952] asyncio cannot handle Python3 IPv4Address

2019-12-01 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: This looks like a duplicate of issue35019. -- nosy: +xtreak type: -> enhancement versions: +Python 3.9 -Python 3.5, Python 3.6, Python 3.7, Python 3.8 ___ Python tracker <https://bugs.pyth

[issue31842] pathlib: "Incorrect function" during resolve()

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

[issue31807] unitest.mock: Using autospec=True conflicts with 'wraps'

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

[issue38956] argparse.BooleanOptionalAction should not add the default value to the help string by default

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

[issue38964] Output of syntax error in f-string contains wrong filename

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

[issue38966] List similarity relationship

2019-12-04 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: This is same as doing the below with list1 getting a reference of list2. Assignments in Python don't copy the value but make a reference. This is not an issue specific to IDLE as tagged and has the same behaviour under a normal REPL.

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

2019-12-04 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Error message changes in code are normally not backported to older versions so I have changed the subject accordingly and tagged 3.9. Thanks. -- assignee: docs@python -> components: +Library (Lib) -Documentation nosy: +xtreak ti

[issue38965] test_stack_overflow (test.test_faulthandler.FaultHandlerTests) is stuck with GCC10

2019-12-04 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- components: +Tests nosy: +vstinner type: -> behavior ___ Python tracker <https://bugs.python.org/issue38965> ___ _

[issue38971] codecs.open leaks file descriptor when invalid encoding is passed

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

[issue38971] codecs.open leaks file descriptor when invalid encoding is passed

2019-12-04 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Does using with block similar to https://bugs.python.org/issue22831 solve this problem? -- nosy: +serhiy.storchaka ___ Python tracker <https://bugs.python.org/issue38

[issue38971] codecs.open leaks file descriptor when invalid encoding is passed

2019-12-04 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Ah okay, thanks for the detail. Forgot there should be an open file handle to be returned by codecs.open -- ___ Python tracker <https://bugs.python.org/issue38

[issue38970] [PDB] NameError in list comprehension in PDB

2019-12-05 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: I think this is same as https://bugs.python.org/issue26072#msg277578 and is reproducible with below sample script without depending on turbogears. The attached patch in the issue fixes this. Try using interact command from pdb as a workaround

[issue38977] python3.8 and namedlist1.7 is Incompatible

2019-12-05 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: This issue tracker is for issues related to CPython. Please report this to the respective issue tracker at https://bitbucket.org/ericvsmith/namedlist/issues. The error message looks related to handling positional only arguments that needs to be

[issue38977] python3.8 and namedlist1.7 is Incompatible

2019-12-05 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: >From Python 3.8, type_ignores is also mandatory for ast.Module as discussed in >issue35894 which also needs to be fixed in the module. Closing this as third >party as I don't see any apparent regression here in 3.8. ---

[issue38983] test_venv: test_overwrite_existing() failed on AMD64 Windows7 SP1 3.x

2019-12-05 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: https://bugs.python.org/issue38544#msg355041 seems like a related old report -- nosy: +xtreak ___ Python tracker <https://bugs.python.org/issue38

[issue38985] `compile` returns the first line of file on termination

2019-12-06 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: It's not necessarily the first line. The code is executed with the context of the given file. Hence the corresponding line number of error from traceback with respect to file is printed. $ cat /tmp/passwd line 1 line 2 line 3 line 4 $ pytho

[issue38973] Shared Memory List Returns 0 Length

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

[issue38887] test_asyncio: test_pipe_handle() failed on AMD64 Windows7 SP1 3.x

2019-12-06 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Similar past report : issue31007 -- nosy: +xtreak ___ Python tracker <https://bugs.python.org/issue38887> ___ ___

[issue38990] Import genericpath fails with python -S

2019-12-06 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +brett.cannon, pitrou ___ Python tracker <https://bugs.python.org/issue38990> ___ ___ Python-bugs-list mailin

[issue38996] introduction of default values for collection.namedtuple

2019-12-08 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Is it different from the defaults parameter added in 3.7 with https://github.com/python/cpython/commit/3948207c610e931831828d33aaef258185df31db . The linked pypi package seems to do the same thing. -- nosy: +xtreak

[issue39013] SyntaxError: 'break' outside loop for legal Expression

2019-12-10 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: This seems to be same as issue38640 . Can you please try 3.8.1RC1 to see if it's fixed? https://www.python.org/downloads/release/python-381rc1/ -- nosy: +xtreak ___ Python tracker &

[issue39013] SyntaxError: 'break' outside loop for legal Expression

2019-12-10 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Thanks for the confirmation. The issue was found after 3.8.0 release. The fix is in 3.8.1RC1 and will be made as 3.8.1 in couple of weeks. Normally regressions are not listed at downloads page but are tagged as regression in the tracker like the

[issue28249] doctest.DocTestFinder reports incorrect line numbers with exclude_empty=False

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

[issue39015] DeprecationWarnings of implicitly truncations by __int__ appearing in the standard library

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

[issue39018] IndexError exception on corrupted zip file

2019-12-10 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: master produces the below error while 3.8.0 produces IndexError. I guess it's fixed by one of the reports. ./python ../backups/bpo39018.py ../crash-23b7d72644702df94bfcfaab4c25b01ff31c0b38 Traceback (most recent call last): File "/h

[issue39018] IndexError exception on corrupted zip file

2019-12-10 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Bisecting gives me the commit as da6ce58dd5ac109485af45878fca6bfd265b43e9 where exception message is improved with issue36993 -- nosy: +serhiy.storchaka ___ Python tracker <https://bugs.python.

[issue37228] UDP sockets created by create_datagram_endpoint() allow by default multiple processes to bind the same port

2019-12-11 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: The fix seems to generate few DeprecationWarning while running test suite with -Wall. ➜ cpython git:(master) git checkout ab513a38c98695f271e448fe2cb7c5e39eef~1 Lib/asyncio Updated 1 path from 4fb4056fbc ➜ cpython git:(master) ✗ ./python.exe

[issue37228] UDP sockets created by create_datagram_endpoint() allow by default multiple processes to bind the same port

2019-12-11 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: One more resource warning about unclosed resource being garbage collected. As per the other tests I think transport and protocol need to be closed as per below patch but someone can verify if it's the right approach. ./python.exe -X tracem

[issue39029] TestMaildir.test_clean fails randomly under parallel tests

2019-12-12 Thread Karthikeyan Singaravelan
New submission from Karthikeyan Singaravelan : I can reproduce frequently the failure of test_clean on my Mac machine. It checks for removal of foo_path. It's removed by Maildir.clean that removes files based on the access time as below. The test also does similar thing with os.

[issue39033] zipimport raises NameError: name '_boostrap_external' is not defined

2019-12-12 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +serhiy.storchaka ___ Python tracker <https://bugs.python.org/issue39033> ___ ___ Python-bugs-list mailin

[issue39033] zipimport raises NameError: name '_boostrap_external' is not defined

2019-12-12 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: A possible test case to trigger this code path based on testUncheckedHashBasedPyc would be as below. check_hash_based_pycs can be patched to be "always" so that the hash is validated using _bootstrap_external._validate_hash_pyc. The

[issue39033] zipimport raises NameError: name '_boostrap_external' is not defined

2019-12-12 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Also since the fix involves modifying zipimport.py it would also require running "make regen-importlib && make -s" for changes to ensure the updated regen code is used. -- ___ Pyth

[issue39033] zipimport raises NameError: name '_boostrap_external' is not defined

2019-12-12 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Ma Lin, Running pylint/flake8 could possibly detect it but needs to be manually checked. issue36948 was a similar report I filed in the past using flake8 regarding NameError. pylint - Lib/zipimport.py:611:20: E0602: Undefined variable

[issue39034] Documentation: Coroutines

2019-12-12 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- components: +asyncio nosy: +asvetlov, yselivanov ___ Python tracker <https://bugs.python.org/issue39034> ___ ___ Pytho

[issue21600] mock.patch.stopall doesn't work with patch.dict

2019-12-13 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: This sounds like a good idea given the docs and the general agreement in the thread. I would like to target this for 3.9 . Differentiation between the normal patches and the ones from patch.dict is nice but given that docstring indicates LIFO for

[issue32952] Add __qualname__ for attributes of Mock instances

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

[issue39033] zipimport raises NameError: name '_boostrap_external' is not defined

2019-12-13 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Sure Serhiy, I will create one. -- ___ Python tracker <https://bugs.python.org/issue39033> ___ ___ Python-bugs-list m

[issue32952] Add __qualname__ for attributes of Mock instances

2019-12-13 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: create_autospec already does recursive spec setting on the class and it has the attributes/methods mocked to retain attributes but doesn't copy the metadata of the original methods to the mock itself. I am not sure spec_set needs to do more

[issue27341] mock.patch decorating a generator returns a regular function.

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

[issue27197] mock.patch interactions with "from" imports

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

[issue39033] zipimport raises NameError: name '_boostrap_external' is not defined

2019-12-13 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- keywords: +patch pull_requests: +17060 stage: -> patch review pull_request: https://github.com/python/cpython/pull/17588 ___ Python tracker <https://bugs.python.org/issu

[issue39039] zlib.error with tarfile.open

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

[issue39038] OverflowError in tarfile.open

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

[issue36406] doctest.testmod(empty_package) raises TypeError in 3.7 (and no errors in 3.6)

2019-12-13 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue21600] mock.patch.stopall doesn't work with patch.dict

2019-12-13 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Thanks Mario. I think the last patch attached to the issue is complete with tests and needs to be updated master. Feel free to raise a PR. -- ___ Python tracker <https://bugs.python.org/issue21

[issue39043] Add math.fib() generator

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

[issue39046] collections.abc.Reversible should not be a subclass of Hashable

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

[issue39040] Wrong attachement filename when mail mime header was too long

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

[issue39061] Garbage Collection optimizations cause "memory leak"

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

[issue39066] Expose SOABI setting in the header

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

[issue39048] Reorder the __aenter__ and __aexit__ method checks for the async with statement

2019-12-17 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +asvetlov, yselivanov ___ Python tracker <https://bugs.python.org/issue39048> ___ ___ Python-bugs-list mailin

[issue39033] zipimport raises NameError: name '_boostrap_external' is not defined

2019-12-17 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- pull_requests: +17111 pull_request: https://github.com/python/cpython/pull/17642 ___ Python tracker <https://bugs.python.org/issue39

[issue39076] Use types.SimpleNamespace for argparse.Namespace

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

[issue39075] types.SimpleNamespace should preserve attribute ordering (?)

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

[issue39082] AsyncMock is unable to correctly patch static or class methods

2019-12-17 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Using patch as a function just returns a patch object. You need to call start method on the patch object to return a Mock. -- nosy: +lisroach, xtreak ___ Python tracker <https://bugs.python.

[issue39082] AsyncMock is unable to correctly patch static or class methods

2019-12-17 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: There seems to be a difference in obtaining the attribute out of the __dict__ and getattr. patch uses __dict__ [0] to access the attribute to be patched and falls back to getattr. There is a difference in detecting normal attribute access to be a

[issue39081] pathlib '/' operator does not resolve Enums with str mixin as expected

2019-12-17 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: As per the fspath PEP https://www.python.org/dev/peps/pep-0519/#c-api the below precedence is set. So for the enum inheriting from str the object itself is returned and MyEnum.RED.__str__ is used returning MyEnum.RED. You can remove inheritance

[issue39082] AsyncMock is unable to correctly patch static or class methods

2019-12-18 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Found Raymond's answer on the difference between __dict__ and attribute lookup regarding descriptors to be useful here : https://stackoverflow.com/a/44600603 -- ___ Python tracker &

[issue39094] Add a default to statistics.mean and related functions

2019-12-18 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +rhettinger, steven.daprano, taleinat ___ Python tracker <https://bugs.python.org/issue39094> ___ ___ Python-bug

[issue39093] tkinter objects garbage collected from non-tkinter thread cause panic and core dump

2019-12-18 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +gpolo, serhiy.storchaka ___ Python tracker <https://bugs.python.org/issue39093> ___ ___ Python-bugs-list mailin

[issue39102] Increase Enum performance

2019-12-19 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +barry, eli.bendersky, ethan.furman ___ Python tracker <https://bugs.python.org/issue39102> ___ ___ Python-bug

[issue39103] [linux] strftime renders %Y with only 3 characters

2019-12-19 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +belopolsky, p-ganssle ___ Python tracker <https://bugs.python.org/issue39103> ___ ___ Python-bugs-list mailin

[issue39105] Spam

2019-12-19 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- components: -asyncio nosy: -asvetlov, yselivanov stage: -> resolved status: open -> closed title: Printer offline -> Spam ___ Python tracker <https://bugs.python.or

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

[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

[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

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

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