[issue35101] inspect.findsource breaks on class frame objects

2018-10-29 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +xtreak, yselivanov ___ Python tracker <https://bugs.python.org/issue35101> ___ ___ Python-bugs-list mailin

[issue35101] inspect.findsource breaks on class frame objects

2018-10-29 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Seems there is a related open issue with a similar regex based solution proposed for another class definition related issue : https://bugs.python.org/issue22355#msg226538 . I think it's worth converting the example code reported in issue223

[issue33826] enable discovery of class source code in IPython interactively defined classes

2018-10-29 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: This seems to be a duplicate of issue12920. issue24491 was also a related issue closed as a duplicate of issue12920. So I propose closing this to continue the discussion in issue12920. Feel free to add in if I am missing something. -- nosy

[issue35105] Document that CPython accepts "invalid" identifiers

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

[issue33826] enable discovery of class source code in IPython interactively defined classes

2018-10-29 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Sorry about that I thought to redirect the discussion to the linked issue since it had a lot of people who might provide a better discussion about it. Feel free to reopen this if needed. -- ___ Python

[issue35109] Doctest in CI uses python binary built from master causing DeprecationWarnings

2018-10-30 Thread Karthikeyan Singaravelan
New submission from Karthikeyan Singaravelan : Currently we run doctest in CI and we use the environment variable PYTHON to get the path of python binary to be used for virtualenv creation. We set PYTHON=../python in .travis.yml at [0] before running tests thus this causes the CI to use

[issue27200] make doctest in CPython has failures

2018-10-30 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Sorry to bump this but to add some more context doctest related issues were fixed in issue34962 and is now enforced in CI. -- nosy: +xtreak ___ Python tracker <https://bugs.python.org/issue27

[issue35108] inspect.getmembers passes exceptions from object's properties through

2018-10-30 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Thanks for the report. A simple reproducible in Python without splinter code. I think it happens for instances of the class where the attribute is a property raising exception and executing inspect.getmembers(Foo) works fine. # bpo35108.py import

[issue35108] inspect.getmembers passes exceptions from object's properties through

2018-10-30 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Sorry I misread your title stating it's about object getattr for a property has to execute the underlying code it seems as explained in https://stackoverflow.com/a/30143990/2610955 . I don't know if there is a way through which an attrib

[issue35112] SpooledTemporaryFile and seekable() method

2018-10-30 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Thanks for the report. Search gives me a related issue with PR to implement IOBase for SpooledTemporaryFile : issue26175 -- nosy: +xtreak ___ Python tracker <https://bugs.python.org/issue35

[issue35113] inspect.getsource returns incorrect source for classes when class definition is part of multiline strings

2018-10-30 Thread Karthikeyan Singaravelan
New submission from Karthikeyan Singaravelan : inspect.getsource uses inspect.findsource that uses a regex to check for class declaration and starts matching against the regex from the start of the program. When there is a match it checks for the first character to be 'c' to retur

[issue35112] SpooledTemporaryFile and seekable() method

2018-10-30 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: The related issue already implements seekable and other methods for IOBase. As I can see from the open PR there are PR comments with respect to tests and docs that need to be acted upon as per reviewer's comments. With respect to this is

[issue35112] SpooledTemporaryFile and seekable() method

2018-10-30 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: @nubirstein You're welcome :) As noted in https://bugs.python.org/issue26175#msg328911 the PR has the implementation of seekable at https://github.com/python/cpython/pull/3249/files#diff-34b2145d7fe189e893ec7934afe9829cR761 . You can help

[issue35109] Doctest in CI uses python binary built from master causing DeprecationWarnings

2018-10-30 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: I have an open PR for babel https://github.com/python-babel/babel/pull/608 . The problem is merging them and cutting a new release depends on the maintainers availability. Once it's fixed we have to make sure dependencies of babel like sphin

[issue35109] Doctest in CI uses python binary built from master causing DeprecationWarnings

2018-10-30 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: > If we do so, we won't be able to write doctest about new features (existing > in 3.8, not existing in 3.7), which is worse than having warnings. I agree with the same. Maybe I am running doctest wrong locally? I use make venv and m

[issue33376] [pysqlite] Duplicate rows can be returned after rolling back a transaction

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

[issue35109] Doctest in CI uses python binary built from master causing DeprecationWarnings

2018-10-30 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: > Anyway, if it works today, the first developper writing doctest about a 3.8 > feature will cause a doctest failure so no we can't use 3.7 to test 3.8. Agreed that we need to run on the master branch binary for 3.8 only features l

[issue35121] Cookie domain check returns incorrect results

2018-10-31 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: The current set of tests are at https://github.com/python/cpython/blob/0353b4eaaf451ad463ce7eb3074f6b62d332f401/Lib/test/test_http_cookiejar.py#L406 . A simple set of tuple that can be added based on the report as below : ("http://barfo

[issue35121] Cookie domain check returns incorrect results

2018-10-31 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- keywords: +patch pull_requests: +9569 stage: -> patch review ___ Python tracker <https://bugs.python.org/issu

[issue35121] Cookie domain check returns incorrect results

2018-10-31 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Thanks for the confirmation. I have created a PR (https://github.com/python/cpython/pull/10258) with test and added 3.8 as affected version. Please add in if I have missed anything in the PR. -- versions: +Python 3.8

[issue35121] Cookie domain check returns incorrect results

2018-10-31 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +martin.panter, orsenthil ___ Python tracker <https://bugs.python.org/issue35121> ___ ___ Python-bugs-list mailin

[issue35119] Customizing module attribute access example raises RecursionError

2018-10-31 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Thanks for the report Denis. Would you like to propose a PR for this? The file is at https://github.com/python/cpython/blob/master/Doc/reference/datamodel.rst . This was added as part of 5364b5cd757. I am adding Ivan who added the example for

[issue35126] Mistake in FAQ about converting number to string.

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

[issue35114] ssl.RAND_status docs describe it as returning True/False; actually returns 1/0

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

[issue35084] binascii.Error: Incorrect padding

2018-11-01 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: @Tester Thanks for the report. I looked at the crash report and I couldn't see CPython crashing with a segfault. I think it's a crash from another application which might be running the interpreter and can't handle the error raised

[issue35135] pip install --download option does not exist

2018-11-01 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Thanks for the report. The issue tracker deals with reports for CPython and issues related to pip are not maintained here. Please file a doc issue at https://github.com/pypa/pip/ . `--download` was deprecated with https://github.com/pypa/pip/pull

[issue35135] pip install --download option does not exist

2018-11-01 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: FYI created an issue at https://github.com/pypa/pip/issues/5976 Thanks! -- assignee: -> docs@python resolution: third party -> stage: resolved -> status: closed -> open type: -> behavior ___

[issue35135] pip install --download option does not exist

2018-11-01 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Sorry, my comment reopened the bug :( -- resolution: -> third party stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue35138] timeit documentation should have example with function arguments

2018-11-01 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: There is an open PR that adds a similar example. Is it the same as the one you are proposing and I think you can add a review comment to add it with the same PR if it's different? PR : https://github.com/python/cpython/pull/9787 T

[issue35141] encoding problem: gbk

2018-11-01 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: @anmikf Please use one issue for all the details. I am closing this as a duplicate of issue35140 since it has the same reproducer script and details. Feel free to reopen this if it's a different one adding little more context on the diffe

[issue35142] html.entities.html5 should require a trailing semicolon

2018-11-01 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +ezio.melotti, xtreak ___ Python tracker <https://bugs.python.org/issue35142> ___ ___ Python-bugs-list mailin

[issue35113] inspect.getsource returns incorrect source for classes when class definition is part of multiline strings

2018-11-02 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: I think parsing with regex especially on multiline cases like here is little tricky handling all cases. I find AST module to be a good fit. I tried using a callback where every class definition is taken up and then from that line to rest of the

[issue35143] Annotations future requires unparse, but not accessible from Python

2018-11-02 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- title: Annotations future requires unparse, but not accessible from Pythpn -> Annotations future requires unparse, but not accessible from Python ___ Python tracker <https://bugs.python.org/issu

[issue35144] TemporaryDirectory can't be cleaned up if there are unsearchable directories

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

[issue35144] TemporaryDirectory can't be cleaned up if there are unsearchable directories

2018-11-02 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Seems like a related issue : issue26660 . Maybe TemporaryDirectory can allow an onerror argument that is passed internally to rmtree during cleanup and state the same in the documentation that TemporaryDirectory can't cleanup read-only

[issue35121] Cookie domain check returns incorrect results

2018-11-02 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Good catch Windson! I overlooked the tests. There is also a comment that it's liberal in the test function. Since the code was added in 2006 I don't if it's ok broken to fix this or not. I will let the reviewers take a call then.

[issue35113] inspect.getsource returns incorrect source for classes when class definition is part of multiline strings

2018-11-02 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: I tried ast module and it passes my test cases but I found another case since object.__name__ returns unqualified name thus matching against nested class names might conflict with the ones on the top level. Example is below where there is Spam at

[issue35113] inspect.getsource returns incorrect source for classes when class definition is part of multiline strings

2018-11-02 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Thanks Serhiy, object.__qualname__ can be used to get qualified name of the object but ast nodes don't have qualified name for the node where I can match against it. node.name returns unqualified name and hence using ast module I

[issue35113] inspect.getsource returns incorrect source for classes when class definition is part of multiline strings

2018-11-03 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Thanks Serhiy, I am going with the same approach too using a Stack. I am working on it and I have fixed the set initial cases I reported with tests. I just stumbled upon the nested definitions and inner classes. I will raise a PR by end of today

[issue35152] too small type for struct.pack/unpack in mutliprocessing.Connection

2018-11-03 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Thanks for the report and PR. I think these are related issues : issue17560, issue28506 with issue17560 being open one. Correct me if I am wrong here. -- nosy: +xtreak ___ Python tracker <ht

[issue35113] inspect.getsource returns incorrect source for classes when class definition is part of multiline strings

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

[issue35113] inspect.getsource returns incorrect source for classes when class definition is part of multiline strings

2018-11-03 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Thanks Serhiy for the details. I think there are also less tests for inspect.findsource with respect to classes though it's more robust than the regex approach. Thus there might be different effects which are correct now or selects an alte

[issue35156] Consider revising documentation on Python Builds from source

2018-11-03 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- components: +Windows nosy: +paul.moore, steve.dower, tim.golden, zach.ware ___ Python tracker <https://bugs.python.org/issue35

[issue33757] Failed separate test_pdb_next_command_in_generator_for_loop in test_pdb

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

[issue35108] inspect.getmembers passes exceptions from object's properties through

2018-11-04 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: There are some relevant docs in the inspect module about properties triggering code execution and thus using getattr_static to fetch attributes. Ref : https://docs.python.org/3/library/inspect.html#fetching-attributes-statically . I tried the

[issue30533] missing feature in inspect module: getmembers_static

2018-11-04 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: +1 from me too. issue35108 could help from this implementation where properties execute code that might cause runtime exception. Initially I tried using getattr_static inside getmembers at msg329254 but I think a separate function or an option to

[issue34305] inspect.getsourcefile and inspect.getcomments do not work with decorated functions

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

[issue35168] shlex punctuation_chars inconsistency

2018-11-05 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Thanks for the report. The code was added with c1f974c944a3e73cbc9102356d8700a190dcafb3 and self._pushback_chars is declared only when punctuation_chars is passed to shlex.shlex in the constructor as you have mentioned in https://github.com

[issue9731] Add ABCMeta.has_methods and tests that use it

2018-11-05 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- pull_requests: -9633 ___ Python tracker <https://bugs.python.org/issue9731> ___ ___ Python-bugs-list mailing list Unsub

[issue35174] Calling for super().__str__ seems to call self.__repr__ in list subclass

2018-11-05 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Adding the related StackOverflow question here for some context : https://stackoverflow.com/questions/53156623/calling-for-super-str-seem-to-call-self-repr-in-list-subclass Thanks -- nosy: +xtreak

[issue17185] unittest mock create_autospec doesn't correctly replace mocksignature

2018-11-05 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Is this being worked on or can I try fixing this? My analysis so far is as below : 1. For functions : inspect.signature looks for attribute __signature__ for functions and while creating the mock for a function since we already have the

[issue30129] functools.partialmethod should look more like what it's impersonating.

2018-11-05 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: I did some analysis with the given example script. Related issue where Aaron has some analysis : issue12154 . The patch doesn't break anything since there are no tests for this that also could be added. 1. When we do inspect.getdoc(c.sum) it

[issue12154] PyDoc Partial Functions

2018-11-05 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Adding my analysis here which is also at related issue : issue30129. On the attached program written by @skip.montanaro both c.sum and Child.sum return None for inspect.getdocs thus docstrings in pydoc are empty which can be fixed in both

[issue35175] Builtin function all() is handling dict() types in a weird way.

2018-11-06 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Dictionary iterates over keys and this is expected behavior. If you need to iterate by values you should use dict().values() $ python3 -c 'for i in dict(a=1): print(i)' a $ python3 -c 'print(all(dict(a=False)))' # Iterate by

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

2018-11-06 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Is this a case of realname having @ inside an unquoted string? As I can see from the RFC the acceptable characters of an atom other than alphabets and digits that comprises a phrase are

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

2018-11-06 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Ah sorry, I was typing so long and had an idle session that I didn't realize @r.david.murray added a comment with the explanation. Just to add I tried using Perl module (https://metacpan.org/release/Email-Address) that uses regex for parsing

[issue22355] inconsistent results with inspect.getsource / .getsourcelines

2018-11-06 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: I think this issue is covered with issue35101. It has an open PR as per the proposed fix with tests : https://github.com/python/cpython/pull/10209/files -- nosy: +xtreak ___ Python tracker <ht

[issue17972] inspect module docs omits many functions

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

[issue32513] dataclasses: make it easier to use user-supplied special methods

2018-11-07 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- pull_requests: +9682 ___ Python tracker <https://bugs.python.org/issue32513> ___ ___ Python-bugs-list mailing list Unsub

[issue32153] mock.create_autospec fails if an attribute is a partial function

2018-11-07 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- keywords: +patch pull_requests: +9683 stage: needs patch -> patch review ___ Python tracker <https://bugs.python.org/issu

[issue32513] dataclasses: make it easier to use user-supplied special methods

2018-11-07 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- pull_requests: -9682 ___ Python tracker <https://bugs.python.org/issue32513> ___ ___ Python-bugs-list mailing list Unsub

[issue32153] mock.create_autospec fails if an attribute is a partial function

2018-11-07 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: @berker.peksag I have created a unit test PR and verified that the test fails in 3.6 and passes on master. # 3.6 branch cpython git:(25bd107399) ./python.exe Python 3.6.7+ (remotes/upstream/3.6:25bd107399, Nov 8 2018, 00:50:43) [GCC 4.2.1

[issue32513] dataclasses: make it easier to use user-supplied special methods

2018-11-08 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- pull_requests: +9702 ___ Python tracker <https://bugs.python.org/issue32513> ___ ___ Python-bugs-list mailing list Unsub

[issue35195] Pandas read_csv() is 3.5X Slower on Python 3.7.1 vs Python 3.6.7 & 3.5.2 On Windows 10

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

[issue35192] pathlib mkdir throws FileExistsError when not supposed to

2018-11-08 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Thanks for the report. There was a related issue : issue29694 . This was fixed in 3.7 and was backported with https://github.com/python/cpython/commit/d7abeb7024b9755c291c29bdc8c4494246e975ad (3.5.4 and above) . Can you please specify the full

[issue35196] IDLE text squeezer is too aggressive and is slow

2018-11-09 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +taleinat ___ Python tracker <https://bugs.python.org/issue35196> ___ ___ Python-bugs-list mailing list Unsub

[issue35195] Pandas read_csv() is 3.5X Slower on Python 3.7.1 vs Python 3.6.7 & 3.5.2 On Windows 10

2018-11-09 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: >From the PEP 540 This mode is off by default, but is automatically activated when using the "POSIX" locale. Add the -X utf8 command line option and PYTHONUTF8 environment variable to control UTF-8 Mode. https://docs.python.

[issue35192] pathlib mkdir throws FileExistsError when not supposed to

2018-11-09 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: > Thank your for your response. I'm running python 3.5.2. The linked issue is > indeed a duplicate of this one. Thanks for the confirmation and script. > I'm running Ubuntu 16.04.5 LTS. I don't know if you know anything a

[issue35205] os.path.realpath preserves the trailing backslash on Windows in python 3.6.7 and python 3.7.1

2018-11-09 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: realpath aliases to abspath in Windows as I can see from the code and I think this is a regression fixed with https://github.com/python/cpython/pull/10082 -- nosy: +xtreak ___ Python tracker <ht

[issue34949] ntpath.abspath no longer uses normpath

2018-11-09 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Thanks for the report. I think this was a regression reported in https://bugs.python.org/issue31047#msg328322 and was fixed with https://github.com/python/cpython/pull/10082 . I think the regression was in 3.7.1 but the fix was made a little

[issue35196] IDLE text squeezer is too aggressive and is slow

2018-11-09 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Just adding the open issues given Raymond's message for reference. A lot of the IDLE issues have patches and since we moved to GitHub they were not updated. Thanks to Tal for converting some patches togit PRs. I would like to help with

[issue35195] Pandas read_csv() is 3.5X Slower on Python 3.7.1 vs Python 3.6.7 & 3.5.2 On Windows 10

2018-11-09 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: I have limited understanding of Windows and I don't have access to a Windows machine to check this out. I am adding Victor who implemented the PEP and might help here. There also seems to be PYTHONLEGACYWINDOWSFSENCODING for windows specifi

[issue35209] Crash with tkinter text on osx

2018-11-10 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +ned.deily ___ Python tracker <https://bugs.python.org/issue35209> ___ ___ Python-bugs-list mailing list Unsub

[issue35209] Crash with tkinter text on osx

2018-11-10 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Thanks for the report. I added Ned since it seemed similar to issue32481 but from Python 3.7 the Mac installers from python.org ship with in-built Tcl/Tk 8.6.8 as in which was the reported version https://www.python.org/download/mac/tcltk/#built

[issue35209] Crash with tkinter text on osx

2018-11-10 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Thanks, can you please try the mac installer from python.org to see if the crash is till present : https://www.python.org/downloads/release/python-371/ Please remove the original email content while replying from email unless the relevant parts

[issue35209] Crash with tkinter text on osx

2018-11-10 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Thanks a lot remi_bertholet. I think this is related to issue32481 . I will wait for Ned's confirmation on how Homebrew packages Python 3.7 with Tcl/Tk and if it's different from python.org Mac

[issue33826] enable discovery of class source code in IPython interactively defined classes

2018-11-10 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- stage: resolved -> status: closed -> open ___ Python tracker <https://bugs.python.org/issue33826> ___ ___ Pyth

[issue28054] Diff for visually comparing actual with expected in mock.assert_called_with.

2018-11-10 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: I think this can be useful for keyword arguments as in the original suggestion. I tried an initial implementation as below to use difflib to get the difference like unittest if there are keyword args to be checked against the caller list since the

[issue35211] Turtle Shutdown Problem(s)

2018-11-10 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Please quote only the relevant parts of the original email while replying from email since it duplicates the content and makes your reply hard to read. Also I think the bug tracker doesn't support attachments from email so please attach them

[issue35149] pip3 show causing Error for ConfigParaser

2018-11-10 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Thanks for the report. The tracker is for issues related to CPython. I think this is an issue with pip and please file an issue at https://github.com/pypa/pip/issues. I can see some related issues as per your original report on googling

[issue35149] pip3 show causing Error for ConfigParaser

2018-11-11 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Sorry I overlooked the part where it says this works with command line but throws an error on batch script. -- ___ Python tracker <https://bugs.python.org/issue35

[issue35212] Expressions with format specifiers in f-strings give wrong code position in AST

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

[issue20198] xml.etree.ElementTree.ElementTree.write attribute sorting

2018-11-11 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: dictionary's insertion order is preserved in 3.6 and above. Hence sorting by lexical order was removed in issue34160 and there is a discussion in the same issue to add an option to provide sorted output. As part of triaging I propose closing

[issue35151] Python 2 xml.etree.ElementTree documentation tutorial uses undocumented arguments

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

[issue31541] Mock called_with does not ensure self/cls argument is used

2018-11-11 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: mock can only verify if the function is called with the correct number of arguments as you have passed spec. It doesn't verify whether the function implementation is correct like calling Something.foobar() because it's not designed to

[issue35216] misleading error message from shutil.copy()

2018-11-12 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Agreed this is confusing. Is this a Linux specific error? Trying this on Mac gives me a different error code and exception. # Mac $ ./python.exe Python 3.8.0a0 (heads/master:cd449806fa, Nov 12 2018, 09:51:24) [Clang 7.0.2 (clang-700.1.81)] on

[issue35224] PEP 572: Assignment Expressions

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

[issue33052] Sporadic segmentation fault in test_datetime

2018-11-12 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Related discussion with same segfault in Travis CI : issue33701 -- ___ Python tracker <https://bugs.python.org/issue33

[issue35226] mock.call equality surprisingly broken

2018-11-13 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: I think this is due to the fact that when an attribute of a call object is accessed a new call object is returned with the parent as self.parent [0] but the original information regarding the parent is lost during representation and no check for

[issue35226] mock.call equality surprisingly broken

2018-11-13 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Yes, for call objects it's always there but some of the tests use a tuple during self.assertEquals and hence during equality check other fails with the attribute error for parent like below. Also getattr(self, 'parent', None) !=

[issue35232] Add `module`/`qualname` arguments to make_dataclass for picklability

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

[issue35240] Travis CI: xvfb-run: error: Xvfb failed to start

2018-11-13 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Found a relevant issue but 3 years old : https://github.com/travis-ci/travis-ci/issues/4387#issuecomment-125635027 Doc PR : https://github.com/travis-ci/docs-travis-ci-com/pull/311 . The docs recommend usage of -a to select a free port

<    26   27   28   29   30   31