[issue35214] Get the test suite passing with clang Memory Sanitizer enabled

2018-11-11 Thread Gregory P. Smith
Change by Gregory P. Smith : -- keywords: +patch pull_requests: +9746 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue35214] Get the test suite passing with clang Memory Sanitizer enabled

2018-11-11 Thread Gregory P. Smith
New submission from Gregory P. Smith : clang's memory sanitizer (-fsanitize=memory) turns up useful problems in code. I'm working on getting a CPython buildbot running it setup but would like our build to be cleaner to start with before I run that. These are the initial fixes required for

[issue35198] Build issue while compiling cpp files in AIX

2018-11-11 Thread Ayappan
Ayappan added the comment: The PR 10437 worked !!!. Now i am able to compile pandas-0.23.4 Michael Felt, About the re-declaration issues you are facing, that is because of the "#define _LARGE_FILES 1" in pyconfig-ppc64.h file. For 64bit build we actually don't need it. For 32bit build, we

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

[issue21603] IDLE: Document SaveAs extension display on Mac

2018-11-11 Thread Tal Einat
Tal Einat added the comment: +1 for closing this either way, preferably with a note in the docs. I'd add the notes about extensions in one set of parenthesis at the end, but that's likely just a matter of taste. -- ___ Python tracker

[issue33196] SEGV in mp.synchronize.Lock.__repr__ in spawn'ed proc if ctx mismatched

2018-11-11 Thread Tal Einat
Tal Einat added the comment: On Win10 I've also failed to reproduce the reported issue with the supplied script. I tried with Python versions 3.6.3, 3.7.0, and a recent build of the master branch (to be 3.8). Can someone try to reproduce this on Fedora? --

[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 ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2018-11-11 Thread Tal Einat
Tal Einat added the comment: > By the way, I really appreciate the work you all are putting into IDLE. It > can definitely benefit from some love and attention. Thanks for the kind words, Raymond! -- ___ Python tracker

[issue34864] In Idle, Mac tabs make editor status line disappear.

2018-11-11 Thread Terry J. Reedy
Terry J. Reedy added the comment: Changing only master could make backports difficult to impractical. (Pure module name changes would be an exception if gits keep track of them and reverses them for a backport.) If a module is touched, user changes to that module get wiped out when the

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

[issue35213] IDLE: use 'macOS' where appropriate.

2018-11-11 Thread Terry J. Reedy
Change by Terry J. Reedy : -- keywords: +patch pull_requests: +9745 stage: needs patch -> patch review ___ Python tracker ___ ___

[issue35213] IDLE: use 'macOS' where appropriate.

2018-11-11 Thread Terry J. Reedy
Terry J. Reedy added the comment: This issue is a spinoff of #34864. -- nosy: +ned.deily ___ Python tracker ___ ___

[issue34864] In Idle, Mac tabs make editor status line disappear.

2018-11-11 Thread Terry J. Reedy
Terry J. Reedy added the comment: See #35213 for 'macOS' changes. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue35213] IDLE: use 'macOS' where appropriate.

2018-11-11 Thread Terry J. Reedy
New submission from Terry J. Reedy : 'maxOS' is Apple's current name for the Mac operating system. See https://en.wikipedia.org/wiki/MacOS, Contents, Release History. The module name macosx.py is currently left as is. Within that, 'Mac OS X' is correct for 10.6 for 10.8. --

[issue34864] In Idle, Mac tabs make editor status line disappear.

2018-11-11 Thread Ned Deily
Ned Deily added the comment: By default, macOS installers just install the files included in a package. For macOS Python installer packages, the problem arises if a particular file is deleted or renamed in a maintenance release and a user has already installed an earlier version of that

[issue35209] Crash with tkinter text on osx

2018-11-11 Thread Ned Deily
Ned Deily added the comment: Good to hear you have worked around the crash. Regarding keyboard accelerators, I'm not aware of any 3.7.1 regressions but there could be issues with the bundled version of Tk 8.6.8. If you want to pursue the issue, please supply a test case that demonstrates

[issue34864] In Idle, Mac tabs make editor status line disappear.

2018-11-11 Thread Terry J. Reedy
Terry J. Reedy added the comment: I will leave macosx alone at least until after 3.6.8. But I plan to merge some modules and want to be able to rename others. #33906 changed windows.py to window.py for 3.7.1 (and 3.6.7). The 3.7.1 Windows installer deleted windows.py; the macOS installer

[issue35211] Turtle Shutdown Problem(s)

2018-11-11 Thread bob moth
bob moth added the comment: Here is a debugged version of mylife, which cloned life2.py to use a class for turtle-ing. Note the difficulties at the end of the code -- ontimer(fun, delay) calls for a zero arg function, so draw() cannot be inside the class. Greatly annoying. But now we know.

[issue35211] Turtle Shutdown Problem(s)

2018-11-11 Thread bob moth
bob moth added the comment: Apparently the draw() function must call itself via ontimer. That is not in the docs. But 56 variations later...I just copied Grant Jenks. Apparently he knows what's what. And done() must be the last line. If first omitted, only one draw loop executed, but it

[issue35200] Range repr could be better

2018-11-11 Thread Steven D'Aprano
Steven D'Aprano added the comment: > I've never seen any student try `str(range(10))` in the repl I never suggested that students would try calling str() directly. That would be silly. They would use print(), as I'm sure many of them are already doing. After 20+ years of using Python, I

[issue35211] Turtle Shutdown Problem(s)

2018-11-11 Thread Ned Deily
Ned Deily added the comment: And, by the way, if it turns out that the problem could have been avoided by better documentation, another option is to re-open the issue with suggested doc changes. Patches welcome! -- ___ Python tracker

[issue33878] Doc: Assignment statement to tuple or list: case missing.

2018-11-11 Thread Julien Palard
Change by Julien Palard : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue35211] Turtle Shutdown Problem(s)

2018-11-11 Thread Ned Deily
Ned Deily added the comment: Sorry, there isn't a particular rush to close issues as some of them stay open for years. And that's not good for anyone. "resolved" on the issue tracking does not necessarily mean a problem is resolved to everyone's satisfaction, it just means that it is no

[issue35200] Range repr could be better

2018-11-11 Thread Julien Palard
Julien Palard added the comment: I understand we like round-tripping represnetations, I think we like them because in much cases it's immediatly and unambiguously understandable by a Python developer. It's the best representation as it's the one conveying the most information. But

[issue35201] Recursive '**' matches non-existent directories.

2018-11-11 Thread Daniel Israel
Daniel Israel added the comment: In the Bash example, you created the directory empty/. This bug is specifically when the directory in question does not exist. -- ___ Python tracker

[issue33878] Doc: Assignment statement to tuple or list: case missing.

2018-11-11 Thread Julien Palard
Julien Palard added the comment: New changeset d0ebbf4895439233c8398dbdd0456d07132b2a6f by Julien Palard (Miss Islington (bot)) in branch '3.6': bpo-33878: Doc: Fix missing case by simplifying. (GH-7762) https://github.com/python/cpython/commit/d0ebbf4895439233c8398dbdd0456d07132b2a6f

[issue33878] Doc: Assignment statement to tuple or list: case missing.

2018-11-11 Thread Julien Palard
Julien Palard added the comment: New changeset aa493b5c18463ab45c087564e287643606f004ca by Julien Palard (Miss Islington (bot)) in branch '3.7': bpo-33878: Doc: Fix missing case by simplifying. (GH-7762) https://github.com/python/cpython/commit/aa493b5c18463ab45c087564e287643606f004ca

[issue35211] Turtle Shutdown Problem(s)

2018-11-11 Thread bob moth
bob moth added the comment: Thanks. I appreciate the time and effort. But I disagree with the characterization of this problem as 'Resolved'. Turtle is supposed to be simple enough for children yet no one can fix simple turtle code and stop an endless loop? What is the rush to close

[issue35190] collections.abc.Sequence cannot be used to test whether a class provides a particular interface (doc issue)

2018-11-11 Thread STINNER Victor
Change by STINNER Victor : -- title: collections.abc.Sequence cannot be used to test whether a class provides a particular interface -> collections.abc.Sequence cannot be used to test whether a class provides a particular interface (doc issue) ___

[issue35177] Add missing dependencies between AST/parser header files

2018-11-11 Thread STINNER Victor
STINNER Victor added the comment: This change doesn't try to fix "all dependencies issues", but it fix a few of them :-) See bpo-35197 for another example of funny header issue. Please open a new issues if you see other header dependencies issues. I close this one since the initial bug has

[issue34160] ElementTree not preserving attribute order

2018-11-11 Thread STINNER Victor
STINNER Victor added the comment: I like the idea of having an opt-in option to get Python 3.7 behavior in Python 3.8, sort=True. It would be a new parameter in Python 3.8, right? It makes sense to me to ask explicitly to sort attributes, especially since Python decided to no longer sort by

[issue33878] Doc: Assignment statement to tuple or list: case missing.

2018-11-11 Thread miss-islington
Change by miss-islington : -- pull_requests: +9744 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33878] Doc: Assignment statement to tuple or list: case missing.

2018-11-11 Thread miss-islington
Change by miss-islington : -- pull_requests: +9743 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33878] Doc: Assignment statement to tuple or list: case missing.

2018-11-11 Thread Julien Palard
Julien Palard added the comment: New changeset 082875dcd6d482558e5f1da97a1c801d60b3ed5b by Julien Palard in branch 'master': bpo-33878: Doc: Fix missing case by simplifying. (GH-7762) https://github.com/python/cpython/commit/082875dcd6d482558e5f1da97a1c801d60b3ed5b --

[issue35177] Add missing dependencies between AST/parser header files

2018-11-11 Thread STINNER Victor
STINNER Victor added the comment: New changeset 5f2df88b63e50d23914e97ec778861a52abdeaad by Victor Stinner in branch 'master': bpo-35177: Add dependencies between header files (GH-10361) https://github.com/python/cpython/commit/5f2df88b63e50d23914e97ec778861a52abdeaad --

[issue35204] Disable thread and memory sanitizers for address_in_range()

2018-11-11 Thread miss-islington
miss-islington added the comment: New changeset eff1c983eb0cc9bc01e8eba07a42522cee57 by Miss Islington (bot) in branch '3.6': closes bpo-35204: Disable thread and memory sanitizers for address_in_range(). (GH-10442)

[issue35204] Disable thread and memory sanitizers for address_in_range()

2018-11-11 Thread miss-islington
miss-islington added the comment: New changeset 1ec5781a097f4d4d988e0dd7f51ee203dc639df2 by Miss Islington (bot) in branch '3.7': closes bpo-35204: Disable thread and memory sanitizers for address_in_range(). (GH-10442)

[issue35081] Move internal headers to Include/internal/

2018-11-11 Thread STINNER Victor
STINNER Victor added the comment: > Python/pystate.c:968:1: warning: no previous prototype for ‘_PyGILState_Init’ > [-Wmissing-prototypes] _PyGILState_Init(PyInterpreterState *i, PyThreadState *t) ^~~~ Oh, I never saw this warning before. It seems to not be included in -Wall.

[issue35204] Disable thread and memory sanitizers for address_in_range()

2018-11-11 Thread miss-islington
Change by miss-islington : -- pull_requests: +9741 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35204] Disable thread and memory sanitizers for address_in_range()

2018-11-11 Thread Benjamin Peterson
Benjamin Peterson added the comment: New changeset fd3a91cbf93dd7bd97f01add9c90075d63cd7316 by Benjamin Peterson (Alexey Izbyshev) in branch 'master': closes bpo-35204: Disable thread and memory sanitizers for address_in_range(). (GH-10442)

[issue35204] Disable thread and memory sanitizers for address_in_range()

2018-11-11 Thread miss-islington
Change by miss-islington : -- pull_requests: +9742 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35211] Turtle Shutdown Problem(s)

2018-11-11 Thread Ned Deily
Ned Deily added the comment: You may might try asking on the freegames issue tracker or, better, on a more general support forum like Stackoverflow or Python-list. Because of the volume of issues reported here (and we are all volunteers), we really can't spend a lot of time helping debug

[issue35211] Turtle Shutdown Problem(s)

2018-11-11 Thread bob moth
bob moth added the comment: OK, thanks. The generated launcher shell command generated includes '-d -i' flags... so I tried running without those and voila, life.py terminates normally. Yay. :-) 2nd, I reviewed the order of commands and I saw that life2.py and mylife.py (the +1 version) did

[issue35211] Turtle Shutdown Problem(s)

2018-11-11 Thread Ned Deily
Ned Deily added the comment: Alas, the Launcher app can be problematic and doesn't get much love. If you open the Launcher app's Preferences, you'll probably see that the "Interactive mode after acript" option is ticked. Either unselect it or, if you feel comfortable using a Terminal

[issue35211] Turtle Shutdown Problem(s)

2018-11-11 Thread bob moth
bob moth added the comment: hi - i do not use ‘i’...just drag to launcher... and sequence of commands is a good tip but smells like some kind of bug to me if the commands follow written rules. thanks for looking - > > -- ___ Python tracker

[issue35104] IDLE: On macOS, Command-M minimizes & opens "Open Module..."

2018-11-11 Thread Ned Deily
Ned Deily added the comment: That's a good point. I see that Cmd-Shift-S which is defined as the shortcut for "Save As.." seems to have the same effect as Cmd-S "Save". Also, the Cmd-Opt-S shortcut for "Save Copy As.." seems to bring up the save dialog window twice, the second after the

[issue35140] encoding problem: coding:gbk cause syntaxError

2018-11-11 Thread Emmanuel Arias
Emmanuel Arias added the comment: I can not reproduce this issue on my Debian9. -- nosy: +eamanu ___ Python tracker ___ ___

[issue35211] Turtle Shutdown Problem(s)

2018-11-11 Thread Ned Deily
Ned Deily added the comment: There seem to be at least two problems here. One, you say that running the unmodified life.py requires two Quit keyboard shortcuts (usually CMD-Q). From the shell output you give, that problem is most likely due to the use of -i with python:

[issue35198] Build issue while compiling cpp files in AIX

2018-11-11 Thread Michael Felt
Michael Felt added the comment: Still getting the same errors, even with 64-bit build, so still not close to testing the actual problem. FYI: last time I build pandas the version was 0.19.0 - then it was 'simple'. Anyway, short of a simple (test) python module that includes c++ code, I'll

[issue33699] Don't describe try's else clause in a footnote

2018-11-11 Thread miss-islington
miss-islington added the comment: New changeset fb8eb2c2776efb34523e0a616c6f845a6b975e38 by Miss Islington (bot) (Andrés Delfino) in branch '2.7': [2.7] bpo-33699: Describe try's else clause with the rest of the try clause (GH-7252) (GH-10469)

[issue33699] Don't describe try's else clause in a footnote

2018-11-11 Thread Andrés Delfino
Change by Andrés Delfino : -- pull_requests: +9740 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33699] Don't describe try's else clause in a footnote

2018-11-11 Thread Andrés Delfino
Andrés Delfino added the comment: I'm doing the 2.7 backport right now :) -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue33699] Don't describe try's else clause in a footnote

2018-11-11 Thread miss-islington
miss-islington added the comment: New changeset 3f6a0a292e12f737448a11660da0c880e8f972be by Miss Islington (bot) in branch '3.6': bpo-33699: Describe try's else clause with the rest of the try clause (GH-7252) https://github.com/python/cpython/commit/3f6a0a292e12f737448a11660da0c880e8f972be

[issue33699] Don't describe try's else clause in a footnote

2018-11-11 Thread miss-islington
miss-islington added the comment: New changeset 7d7ff672dfe93a50053166798cdc0fbc86ea63e3 by Miss Islington (bot) in branch '3.7': bpo-33699: Describe try's else clause with the rest of the try clause (GH-7252) https://github.com/python/cpython/commit/7d7ff672dfe93a50053166798cdc0fbc86ea63e3

[issue33699] Don't describe try's else clause in a footnote

2018-11-11 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: Just need a manual backport to 2.7, which I'm not doing :) If no one is motivated enough to backport to 2.7, I'm fine with that. Otherwise this issue can be closed. -- nosy: +Mariatta resolution: -> fixed stage: patch review -> resolved status:

[issue33699] Don't describe try's else clause in a footnote

2018-11-11 Thread miss-islington
miss-islington added the comment: New changeset b086c8afdb8c862011e3e27d4c8f6833749f2c56 by Miss Islington (bot) (Andrés Delfino) in branch 'master': bpo-33699: Describe try's else clause with the rest of the try clause (GH-7252)

[issue33699] Don't describe try's else clause in a footnote

2018-11-11 Thread miss-islington
Change by miss-islington : -- pull_requests: +9739 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33699] Don't describe try's else clause in a footnote

2018-11-11 Thread miss-islington
Change by miss-islington : -- pull_requests: +9738 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35211] Turtle Shutdown Problem(s)

2018-11-11 Thread bob moth
bob moth added the comment: I rewrote the life2.py using a class in order to eliminate global variable declarations, and some other things, such as bringing freegames.util#square() instream to be independent of freegames, carefully accounting for every pixel output, etc. Works a little

[issue35211] Turtle Shutdown Problem(s)

2018-11-11 Thread bob moth
bob moth added the comment: looking at the screen snapshot 'life.py alt-q once.jpg' -- the turtle code keeps running even though System.exit has been completed, and notice the traceback display in the shell caused by the alt-Q. a second press of alt-Q terminates the shell and the turtle code.

[issue34864] In Idle, Mac tabs make editor status line disappear.

2018-11-11 Thread Tal Einat
Tal Einat added the comment: See PR GH-10464, which warns if "Prefer tabs when opening documents" is set to "Always". -- ___ Python tracker ___

[issue34864] In Idle, Mac tabs make editor status line disappear.

2018-11-11 Thread Tal Einat
Change by Tal Einat : -- pull_requests: +9737 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35140] encoding problem: coding:gbk cause syntaxError

2018-11-11 Thread Steve Dower
Steve Dower added the comment: Yes, seems like we should be opening the file in binary mode, though I haven't tried it. The CRT's interpretation of text mode really isn't compatible with Python's own interpretation of text mode, and chaining them makes even less sense. --

[issue35203] Windows Installer Ignores Launcher Installer Options Where The Python Launcher Is Already Present

2018-11-11 Thread Steve Dower
Steve Dower added the comment: Does it actually try to upgrade the launcher? This is a case that was deliberately designed and tested before release, though it's possible that there's some mix of versions that is new. The box is checked to indicate that the launcher will be installed at the

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

2018-11-11 Thread Eric V. Smith
Change by Eric V. Smith : -- assignee: -> eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[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 ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2018-11-11 Thread Arminius
New submission from Arminius : ast.parse() will give a wrong code position for an expression inside an f-string when the expression is using a format specifier. Compare the trees of f'{a}' and f'{a:b}' : >>> ast.parse("f'{a}'") Module( body=[ Expr( lineno=1,

[issue21622] ctypes.util incorrectly fails for libraries without DT_SONAME

2018-11-11 Thread Javier Castillo II
Change by Javier Castillo II : -- pull_requests: +9736 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue21622] ctypes.util incorrectly fails for libraries without DT_SONAME

2018-11-11 Thread Javier Castillo II
Change by Javier Castillo II : -- pull_requests: +9735 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue21622] ctypes.util incorrectly fails for libraries without DT_SONAME

2018-11-11 Thread Javier Castillo II
Change by Javier Castillo II : -- pull_requests: +9734 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35200] Range repr could be better

2018-11-11 Thread Nick Coghlan
Nick Coghlan added the comment: I agree with Steven and Raymond on this one: changing __repr__ on ranges in a way that breaks round-tripping through eval would be problematic, especially as I'd expect that to be an issue in doctests as well. However, I also like the idea of having easier

[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

[issue35207] Disallow expressions like (a) = 42

2018-11-11 Thread Mark Dickinson
Change by Mark Dickinson : -- nosy: +mark.dickinson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: