[issue36489] add filename_extension_map and/or content-types_map dict(s) to mimetypes

2019-04-03 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: The docs state the tuple contains two dictionaries depending on how common the type is. I guess you want a merged dict to be provided as an API? I will leave it to @r.david.murray on that. -- ___ Python

[issue36523] missing docs for IOBase writelines

2019-04-04 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +martin.panter ___ Python tracker <https://bugs.python.org/issue36523> ___ ___ Python-bugs-list mailing list Unsub

[issue36528] Remove duplicate tests in Lib/tests/re_tests.py

2019-04-04 Thread Karthikeyan Singaravelan
New submission from Karthikeyan Singaravelan : Currently Lib/tests/re_tests.py has duplicate elements in the tests list variable. This is a followup on https://github.com/python/cpython/pull/12662 where there seems to be around 100 elements that are duplicates in the list. This seems to have

[issue36528] Remove duplicate tests in Lib/tests/re_tests.py

2019-04-04 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- components: +Regular Expressions nosy: +ezio.melotti, mrabarnett ___ Python tracker <https://bugs.python.org/issue36

[issue36528] Remove duplicate tests in Lib/tests/re_tests.py

2019-04-04 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- keywords: +patch pull_requests: +12616 stage: -> patch review ___ Python tracker <https://bugs.python.org/issu

[issue36532] Example of logging.formatter with new str.format style

2019-04-04 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +vinay.sajip versions: -Python 3.5, Python 3.6, Python 3.9 ___ Python tracker <https://bugs.python.org/issue36

[issue36534] tarfile: handling Windows (path) illegal characters in archive member names

2019-04-05 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- components: +Windows nosy: +lars.gustaebel, paul.moore, steve.dower, tim.golden, zach.ware ___ Python tracker <https://bugs.python.org/issue36

[issue36542] Allow to overwrite the signature for Python functions

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

[issue36537] except statement block incorrectly assumes end of scope(?).

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

[issue33775] argparse: the word 'default' (in help) is not marked as translatable

2019-04-06 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: @paul.j3 I assume this is an easy issue of wrapping "default" with _() at [0]. There doesn't seem to be any tests for localization in argparse. https://github.com/python/cpython/blob/2ea8099523581cf2ecc060831a53debb57ff98ee/Lib/a

[issue36547] bedevere is not working

2019-04-06 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: This is a workflow issue and already seems to have a report. I am closing this as third party. Please don't create issues related to workflow or one of the bots here since they have separate GitHub repos where their development takes

[issue36546] Add quantiles() to the statistics module

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

[issue27992] Clarify %(prog)s in argparse help formatter returns basename of sys.argv[0] by default

2019-04-06 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: CPython now accepts GitHub PRs. Please see the workflow at https://devguide.python.org . You can raise a PR against master branch. -- ___ Python tracker <https://bugs.python.org/issue27

[issue35726] QueueHandler formatting affects other handlers

2019-04-07 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- pull_requests: +12641 ___ Python tracker <https://bugs.python.org/issue35726> ___ ___ Python-bugs-list mailing list Unsub

[issue36553] inspect.is_decorator_call(frame)

2019-04-08 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +yselivanov versions: +Python 3.8 ___ Python tracker <https://bugs.python.org/issue36553> ___ ___ Python-bugs-list m

[issue36554] unittest.TestCase: "subTest" cannot be used together with "debug"

2019-04-08 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Can you please provide an example script to reproduce this? There is similar None check fixed with issue34900 -- nosy: +xtreak ___ Python tracker <https://bugs.python.org/issue36

[issue36551] Optimize list comprehensions with preallocate size and protect against overflow

2019-04-08 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +inada.naoki ___ Python tracker <https://bugs.python.org/issue36551> ___ ___ Python-bugs-list mailing list Unsub

[issue36555] PEP484 @overload vs. str/bytes

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

[issue36414] Multiple test failures in GCC and Clang optional builds on Travis CI

2019-04-08 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: https://github.com/python/cpython/pull/12708 that seems to fix similar issue (issue36544) for Ubuntu that helps in making Mac OS build green again. Successful build : https://travis-ci.org/python/cpython/jobs/516821454 -- nosy: +xdegaye

[issue36561] Python argparse doesn't work in the presence of my custom module

2019-04-08 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Can you please post the traceback you are getting and how you are running the script from command line? The custom module has third party dependencies like numpy so it will be helpful if you can attach a reproducer without dependencies to see if

[issue36561] Python argparse doesn't work in the presence of my custom module

2019-04-08 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: test.py shown in msg339649 accepts only --data_type DATA_TYPE. Running test.py without import and the non-existent flag would show all the options present like the below I am using from the repo you have shared. You might ./python.exe ../backups

[issue36554] unittest.TestCase: "subTest" cannot be used together with "debug"

2019-04-08 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Thanks, just confirmed the commit fix with the given file. -- ___ Python tracker <https://bugs.python.org/issue36

[issue36554] unittest.TestCase: "subTest" cannot be used together with "debug"

2019-04-08 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- resolution: -> duplicate superseder: -> unittest subTests() fails when called from debug() ___ Python tracker <https://bugs.python.org/i

[issue36564] Infinite loop with short maximum line lengths in EmailPolicy

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

[issue35907] Unnecessary URL scheme exists to allow file:// reading file in urllib

2019-04-08 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: This issue seems to have been assigned CVE-2019-9948 (https://nvd.nist.gov/vuln/detail/CVE-2019-9948) as noted in https://github.com/python/cpython/pull/11842#issuecomment-480930608 -- nosy: +xtreak

[issue36569] @staticmethod seems to work with setUpClass, but docs say it shouldn't

2019-04-08 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: The use case of setUpClass and tearDownClass is to run once during class setup and teardown where a class variable might be mutated. It's not a strict requirement [0] but rather maybe a common use case. There is at least one test case

[issue36571] Lib/smtplib.py have some pep8 issues

2019-04-09 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Generally changes only related to PEP 8 are not merged since they pollute git history while using blame and a lot of other modules also don't adhere to PEP 8. New code written can have PEP 8 enforced or the related parts of the code c

[issue36575] Use _PyTime_GetPerfCounter() in lsprof

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

[issue36580] unittest.mock does not understand dataclasses

2019-04-09 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: mock.Mock doesn't do signature validation by default for constructor and methods. This is expected. create_autospec [0] should be used to make sure the signature is validated.' import dataclasses import unittest.mock @dataclasses.datac

[issue36581] __dir__ on unittest.mock not safe for all spec types

2019-04-09 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: https://docs.python.org/3/library/unittest.mock.html#unittest.mock.Mock > spec: This can be either a list of strings or an existing object (a class or > instance) that acts as the specification for the mock object. If you pass in > an ob

[issue36580] unittest.mock does not understand dataclasses

2019-04-09 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: To add to this mock.Mock also copies dir(spec) but creating an instance from mock doesn't copy it where it's not a problem with create_autospec. Mock with spec does only attribute validation whereas create_autospec does signature validat

[issue36541] Make lib2to3 grammar more closely match Python

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

[issue36582] collections.UserString encode method returns a string

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

[issue30458] [security][CVE-2019-9740][CVE-2019-9947] HTTP Header Injection (follow-up of CVE-2016-5699)

2019-04-10 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: As @gregory.p.smith noted in GitHub [0] this fixes only protocol level bugs. There are some parsing ambiguities in urllib that are potential security issues still to be fixed. issue20271 - urllib.urlparse('http://benign.com\[attacke

[issue36593] Trace function interferes with MagicMock isinstance?

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

[issue36593] Trace function interferes with MagicMock isinstance?

2019-04-10 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: There are very few changes to mock.py on bisecting with the example in the report is d358a8cda75446a8e0b5d99149f709395d5eae19 the problem? I am surprised by the reason this commit leads to change in behavior with set trace. ➜ cpython git:(master

[issue36594] Undefined behavior due to incorrect usage of %p in format strings

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

[issue36593] Trace function interferes with MagicMock isinstance?

2019-04-10 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: On an initial guess this is the change that went through and using object.__delattr__(self, name) instead of super().__delattr__(name) restores the old behavior and there are no test case failures. But I still have to check the change and how it&#

[issue36596] tarfile module considers anything starting with 512 bytes of zero bytes to be a valid tar file

2019-04-10 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +lars.gustaebel, serhiy.storchaka ___ Python tracker <https://bugs.python.org/issue36596> ___ ___ Python-bugs-list m

[issue36597] Travis CI: doctest failure

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

[issue33722] Document builtins in mock_open

2019-04-10 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: The example looks like a good addition to me since mocking builtins.open is not documented for this use case. Please start a new PR. -- nosy: +xtreak ___ Python tracker <https://bugs.python.

[issue36598] mock side_effect should be checked for iterable not callable

2019-04-10 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +xtreak versions: +Python 3.8 -Python 2.7 ___ Python tracker <https://bugs.python.org/issue36598> ___ ___ Python-bug

[issue36598] mock side_effect should be checked for iterable not callable

2019-04-10 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: I am not sure if the snippets you are referring to are from testing-cabal/mock repo which could be different from master branch. Current code is at [0] if effect is not None: if _is_exception(effect): raise effect elif not _callable

[issue36580] unittest.mock does not understand dataclasses

2019-04-11 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Below is a even more simpler reproducer without dataclasses. 'name' is not listed as a class attribute in dir(Person) since it's not defined with a value but 'age' is with zero. Python seems to not to list something not

[issue36597] Travis CI: doctest failure

2019-04-11 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: "Object dead or exiting" is a less frequent random error with doctest. I am not sure from where it occurs but occurs for different tests at different times and is overlooked in Travis since the next runs are fine. Sample old builds

[issue36593] Trace function interferes with MagicMock isinstance?

2019-04-11 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: I think I got to this. See issue12370 (Use of super overwrites use of __class__ in class namespace) . msg138712 suggests a workaround to alias super at the module level. unittest.mock has the below line and NonCallableMock has __class__ defined as

[issue36602] Recursive directory list with pathlib.Path.iterdir

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

[issue36598] mock side_effect should be checked for iterable not callable

2019-04-11 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- keywords: +patch pull_requests: +12717 stage: -> patch review ___ Python tracker <https://bugs.python.org/issu

[issue36593] Trace function interferes with MagicMock isinstance?

2019-04-11 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- keywords: +patch pull_requests: +12718 stage: -> patch review ___ Python tracker <https://bugs.python.org/issu

[issue36598] mock side_effect should be checked for iterable not callable

2019-04-11 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- pull_requests: -12717 ___ Python tracker <https://bugs.python.org/issue36598> ___ ___ Python-bugs-list mailing list Unsub

[issue36593] Trace function interferes with MagicMock isinstance?

2019-04-11 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Copying my comment from GitHub : This issue occurs only when the mock module import and code are executed under tracing. In order to test this I have tried patching sys.modules to remove unittest.mock in order to trigger an import under tracing

[issue36593] Trace function interferes with MagicMock isinstance?

2019-04-11 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- stage: -> patch review type: -> behavior ___ Python tracker <https://bugs.python.org/issue36593> ___ ___ Pyth

[issue36606] calling super() causes __class__ to be not defined when sys.settrace(trace) is set

2019-04-11 Thread Karthikeyan Singaravelan
New submission from Karthikeyan Singaravelan : I came across this issue in issue36593 where MagicMock had a custom __class__ attribute set and one of the methods used super() which caused __class__ not to be set. This seems to have been fixed in the past with issue12370 and a workaround to

[issue36602] Recursive directory list with pathlib.Path.iterdir

2019-04-11 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: > I believe `rglob("*")` is eager, while `iterdir` is lazy. rglob and glob also return a generator. Slightly related, pathlib.walk was proposed in the past in python-ideas : https://mail.python.org/pipermail/python-ideas/2017-Apri

[issue36609] activate.ps1 in venv for Windows should encoded with BOM

2019-04-12 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- components: +Windows nosy: +paul.moore, steve.dower, tim.golden, zach.ware versions: +Python 3.8 -Python 3.6 ___ Python tracker <https://bugs.python.org/issue36

[issue17267] datetime.time support for '+' and '-'

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

[issue36598] mock side_effect should be checked for iterable not callable

2019-04-12 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Thanks, I am closing this as not a bug. Feel free to reopen this if I have missed any. -- resolution: -> not a bug stage: patch review -> resolved status: open -> closed ___ Python tracke

[issue36620] Documentation missing parameter for Itertools.zip_longest

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

[issue36593] isinstance check fails for Mock objects with spec executed under tracing function

2019-04-12 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- title: Trace function interferes with MagicMock isinstance? -> isinstance check fails for Mock objects with spec executed under tracing function ___ Python tracker <https://bugs.python.org/issu

[issue17013] Allow waiting on a mock

2019-04-13 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Is there still sufficient interest in this? I gave an initial try at this based on my limited knowledge of mock and Antoine's idea. I created a new class WaitableMock that inherits from Mock and accepts an event_class with threading.Eve

[issue17013] Allow waiting on a mock

2019-04-13 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Thanks Mario for the feedback. > I see you inherit from Mock, should it inherit from MagicMock? yes, it can inherit from MagicMock to mock magic methods and to wait on their call. I thought some more about waiting for function call with argume

[issue17013] Allow waiting on a mock

2019-04-13 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- keywords: +patch pull_requests: +12743 stage: needs patch -> patch review ___ Python tracker <https://bugs.python.org/issu

[issue36593] isinstance check fails for Mock objects with spec executed under tracing function

2019-04-13 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: An interesting thing is that there is GCC in CI that runs under coverage which also passed since this requires a Python tracing function before importing mock to trigger this as in the original report. Adding a simple tracer at the top of

[issue22102] Zipfile generates Zipfile error in zip with 0 total number of disk in Zip64 end of central directory locator

2019-04-13 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +alanmcintyre, serhiy.storchaka, twouters versions: -Python 2.7, Python 3.5, Python 3.6, Python 3.7, Python 3.9 ___ Python tracker <https://bugs.python.org/issue22

[issue36622] Inconsistent exponent notation formatting

2019-04-13 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Seems this has tests at https://github.com/python/cpython/blob/830b43d03cc47a27a22a50d777f23c8e60820867/Lib/test/test_decimal.py#L941 . I also noticed the below. Considering this is the behavior from 2.7 is it a conscious design decision

[issue36180] mboxMessage.get_payload throws TypeError on malformed content type

2019-04-13 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: A simplified reproducer as below. The tuple is returned from here https://github.com/python/cpython/blob/830b43d03cc47a27a22a50d777f23c8e60820867/Lib/email/message.py#L93 and perhaps is an untested code path? The charset gets a tuple value of (

[issue36628] Enhancement: i-Strings

2019-04-14 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Some discussions in the past and the common suggestion/idiom is to use textwrap.dedent. I agree with @SilentGhost that it should be first brought up in python-ideas and also addressing the concerns for similar proposal in the past if they are

[issue36629] imaplib test fails with errno 101

2019-04-14 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Did you see this failure somewhere in CI or is it in local machine? The imaplib test has below comment : if hasattr(errno, 'EADDRNOTAVAIL'): # socket.create_connection() fails randomly with # EADDRNOTAVAIL on

[issue10417] unittest triggers UnicodeEncodeError with non-ASCII character in the docstring of the test function

2019-04-14 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- keywords: +patch pull_requests: +12754 stage: test needed -> patch review ___ Python tracker <https://bugs.python.org/issu

[issue10417] unittest triggers UnicodeEncodeError with non-ASCII character in the docstring of the test function

2019-04-14 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: This is still an issue with latest 2.7. I went ahead and created PR based on Victor's suggestion in msg121294. I am not sure of the correct way to test this I have used cStringIO.StringIO as the stream for a test case with a unicode descri

[issue30485] Element.findall(path, dict) doesn't insert null namespace

2019-04-14 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: I am not sure but this commit seems to have broken Azure CI on master for Windows. The build checks were green when the PR while merging. I can see the ValueError added in e9927e1820caea01e576141d9a623ea394d43dad raised in the below CI log and

[issue30485] Element.findall(path, dict) doesn't insert null namespace

2019-04-14 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: The relevant line is at https://github.com/python/cpython/blob/cd466559c4a312b3c1223a774ad4df19fc4f0407/PC/layout/support/appxmanifest.py#L407 . I guess it's something related to build artifacts for Windows and Steve can have a better answer

[issue36633] py_compile.compile: AttributeError on importlib.utils

2019-04-15 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Can you please add a simplified script to reproduce this and possibly without any external dependencies? Looking at the traceback it seems to come from the project chameleon at https://github.com/malthe/chameleon/blob

[issue36634] venv: activate.bat fails for venv with parentheses in PATH

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

[issue36633] py_compile.compile: AttributeError on importlib.utils

2019-04-15 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: No problem, closing the issue. -- stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/i

[issue28238] In xml.etree.ElementTree findall() can't search all elements in a namespace

2019-04-15 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +eli.bendersky, scoder, serhiy.storchaka versions: +Python 3.8 -Python 3.6 ___ Python tracker <https://bugs.python.org/issue28

[issue36639] Provide list.rindex()

2019-04-16 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: New methods to builtins generally require a python-ideas discussion. Search brings up an old discussion for rindex and rremove : https://mail.python.org/pipermail/python-ideas/2009-May/004506.html . It also would make users ask for tuple.rindex as

[issue36640] python ibm_db setup.py post install script does not seem to work from Anaconda

2019-04-16 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Anacond and ibm_db are not part of CPython distribution. Can you please add a script and explain over how it's a bug with CPython? There are also previous reports when searching for "ibm_db" and I am not sure if these are bugs wi

[issue36641] make docstring in C const

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

[issue36641] make docstring in C const

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

[issue36643] Forward reference is not resolved by dataclasses.fields()

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

[issue10417] [2.7] unittest triggers UnicodeEncodeError with non-ASCII character in the docstring of the test function

2019-04-17 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: > Test that your fix does not break the case of 8-bit non-ascii docstring. Do you mean double escaping of the backslash as in t\xe4st changed to t\\xe4st due to this PR? ➜ cpython git:(bpo10417) $ cat /tmp/foo.py # -*- coding: utf-8 -*- imp

[issue36652] Non-embedded zip distribution

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

[issue36651] Asyncio Event Loop documentation inconsistency (call_later and call_at methods)

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

[issue36645] re.sub() library entry does not adequately document surprising change in behavior between versions

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

[issue36657] AttributeError

2019-04-18 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Please add a short script and explain the problem over why it's a bug in CPython and not a problem with the program. The error says path has a boolean value and doesn't have endswith which is a method on string object. -- nos

[issue36657] AttributeError

2019-04-18 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Please check the value of FLAGS.train_dir which I guess has a boolean value. This is not a bug with CPython. $ python2 Python 2.7.14 (default, Mar 12 2018, 13:54:56) [GCC 4.2.1 Compatible Apple LLVM 7.0.2 (clang-700.1.81)] on darwin Type "

[issue36657] AttributeError

2019-04-18 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: > I think we could close this issue, it's not related to CPython itself. Closing it. OP can reopen if needed. Thanks. -- assignee: docs@python -> resolution: -> not a bug stage: -> resolved status: open -> closed

[issue36664] argparse: parser aliases in subparsers stores alias in dest variable

2019-04-18 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +paul.j3 ___ Python tracker <https://bugs.python.org/issue36664> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36662] asdict/astuple Dataclass methods

2019-04-18 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +eric.smith, rhettinger ___ Python tracker <https://bugs.python.org/issue36662> ___ ___ Python-bugs-list mailin

[issue36666] threading.Thread should have way to catch an exception thrown within

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

[issue36662] asdict/astuple Dataclass methods

2019-04-18 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: asdict method in the benchmark does a direct dictionary construction. Meanwhile dataclasses.asdict does more work in https://github.com/python/cpython/blob/e8113f51a8bdf33188ee30a1c038a298329e7bfa/Lib/dataclasses.py#L1023 . Hence in the example

[issue36661] Missing dataclass decorator import in dataclasses module docs

2019-04-18 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: I think the import is implied in the example since the docs page is for dataclasses module but adding an explicit import to InventoryItem at the top won't hurt too. -- nosy: +eric.smith, xtreak title: Missing import in docs ->

[issue34155] email.utils.parseaddr mistakenly parse an email

2019-04-19 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Relevant attack from matrix blog post. https://matrix.org/blog/2019/04/18/security-update-sydent-1-0-2/ > sydent uses python's email.utils.parseaddr function to parse the input email > address before sending validation mail to it, but i

[issue36674] "unittest.TestCase.debug" should honour "skip" (and other test controls)

2019-04-20 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +ezio.melotti, michael.foord, rbcollins ___ Python tracker <https://bugs.python.org/issue36674> ___ ___ Python-bug

[issue36675] Doctest directives and comments not visible or missing from code samples

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

[issue36678] duplicate method definitions in Lib/test/test_dataclasses.py

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

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

2019-04-20 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: https://bugs.python.org/issue29376#msg286873 . Is this an intentional behavior for dummy_threading to always return True for is_alive? -- nosy: +pitrou, xiang.zhang, xtreak ___ Python tracker <ht

[issue36688] import dummy_threading causes ImportError

2019-04-20 Thread Karthikeyan Singaravelan
New submission from Karthikeyan Singaravelan : importing dummy_threading causes ImportError. It used to work on 3.6. There are tests at Lib/test/test_dummy_threading.py and rearranging the import so that "import dummy_threading as _threading" is the first line also causes error. T

[issue22246] add strptime(s, '%s')

2019-04-20 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +p-ganssle ___ Python tracker <https://bugs.python.org/issue22246> ___ ___ Python-bugs-list mailing list Unsub

<    18   19   20   21   22   23   24   25   26   27   >