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

2018-11-15 Thread Alexey Izbyshev
Change by Alexey Izbyshev : -- nosy: +izbyshev ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue31146] Docs: On non-public translations, language picker fallback to "English"

2018-11-15 Thread Julien Palard
Change by Julien Palard : -- keywords: +patch pull_requests: +9804 stage: -> patch review ___ Python tracker ___ ___

[issue35257] Add LDFLAGS_NODIST for the LDFLAGS not intended for propagation to C extensions.

2018-11-15 Thread Charalampos Stratakis
New submission from Charalampos Stratakis : Through acb8c5234302f8057b331abaafb2cc8697daf58f the CFLAGS_NODIST variable was created, in order to place there compiler flags used by the interpreter, but not intended to be propagated to C extensions. I saw a similar issue when working on

[issue35256] The Console of Python 3.7.0.

2018-11-15 Thread Iuliana Netoi
Change by Iuliana Netoi : -- type: -> behavior Added file: https://bugs.python.org/file47934/tema_2-2-PT-PYTHON--TRACKER-text.txt ___ Python tracker ___

[issue35256] The Console of Python 3.7.0.

2018-11-15 Thread Steven D'Aprano
Steven D'Aprano added the comment: I don't understand what you think is the bug. You keep repeatedly appending 'z' to the same list. Why are you surprised that it appends 'z' more than once? If you don't want to append it twice, don't call the function twice. Every time you call the

[issue35256] The Console of Python 3.7.0.

2018-11-15 Thread Iuliana Netoi
New submission from Iuliana Netoi : While running a function that uses a list to which I append the element "z", the Console modifies my code by adding "z" to the list each time I consequently run the function. Is that a bug? My function written in the Editor of Python 3.7.0. is the

[issue35256] The Console of Python 3.7.0.

2018-11-15 Thread Shane
Shane added the comment: I suspect the author simply does not realize lists are mutable in Python. -- nosy: +Shane Smith ___ Python tracker ___

[issue35257] Add LDFLAGS_NODIST for the LDFLAGS not intended for propagation to C extensions.

2018-11-15 Thread Charalampos Stratakis
Charalampos Stratakis added the comment: Correction: The second commit is referring to https://github.com/python/cpython/pull/9908/ -- ___ Python tracker ___

[issue12657] Cannot override JSON encoding of basic type subclasses

2018-11-15 Thread Éric Araujo
Éric Araujo added the comment: A modern solution for this is to define a singledispatch function (with implementations for your custom types) and pass it as the `default` parameter to the dump functions. (That won’t avoid the custom → dict copy, but that’s how the module works) --

[issue35259] Py_FinalizeEx unconditionally exists in Py_LIMITED_API

2018-11-15 Thread Arthur Neufeld
New submission from Arthur Neufeld : In application compiled with #define Py_LIMITED_API 0x0304 this method was used Py_FinalizeEx() Tested application with: SET PATH=...;C:\Program Files\Python35 APPLICATION.EXE Result: Entry Point Not Found (X) The procedure entry point

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

2018-11-15 Thread miss-islington
miss-islington added the comment: New changeset 579c4175648f667d59954d48ada757621ff6d433 by Miss Islington (bot) in branch '3.7': bpo-35213: Where appropriate, use 'macOS' in idlelib. (GH-10478) https://github.com/python/cpython/commit/579c4175648f667d59954d48ada757621ff6d433 --

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

2018-11-15 Thread miss-islington
miss-islington added the comment: New changeset be657c1fac3ce436976541cf2680a977217be813 by Miss Islington (bot) in branch '3.6': bpo-35213: Where appropriate, use 'macOS' in idlelib. (GH-10478) https://github.com/python/cpython/commit/be657c1fac3ce436976541cf2680a977217be813 --

[issue35253] Linker warning LNK4281

2018-11-15 Thread Jorge Ramos
Jorge Ramos added the comment: Ok, thanks! If it helps, here are all the modules that gave me that suggestion: pythoncore.vcxproj _testbuffer.vcxproj _testcapi.vcxproj _testimportmultiple.vcxproj select.vcxproj _overlapped.vcxproj _elementtree.vcxproj _decimal.vcxproj unicodedata.vcxproj

[issue35256] The Console of Python 3.7.0.

2018-11-15 Thread Iuliana Netoi
Iuliana Netoi added the comment: Now I wrote the same list named my_list inside the function. And I deleted the function argument.When running again and again, the function remains as I defined it. So the console behavior depends on the list placing: before or inside the function. When the

[issue12657] Cannot override JSON encoding of basic type subclasses

2018-11-15 Thread Tom Brown
Tom Brown added the comment: I found this work-around useful https://stackoverflow.com/a/32782927 -- nosy: +Tom.Brown ___ Python tracker ___

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

2018-11-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset b65413b497a07f521d835b799be7dd0afcedbd65 by Terry Jan Reedy in branch 'master': bpo-35213: Where appropriate, use 'macOS' in idlelib. (#10478) https://github.com/python/cpython/commit/b65413b497a07f521d835b799be7dd0afcedbd65 --

[issue35081] Move internal headers to Include/internal/

2018-11-15 Thread Alexey Izbyshev
Alexey Izbyshev added the comment: > Oh, I never saw this warning before. It seems to not be included in -Wall. > Would you mind to open a new issue to discuss it? Victor, I've opened #35258 as you suggested. -- ___ Python tracker

[issue35253] Linker warning LNK4281

2018-11-15 Thread Brett Cannon
Brett Cannon added the comment: No, it's not a problem, just a potential enhancement. -- nosy: +brett.cannon, paul.moore, steve.dower, tim.golden, zach.ware type: compile error -> enhancement ___ Python tracker

[issue35260] 2to3 Parse Error on Python 3 print() with arguments

2018-11-15 Thread batterystaple456
New submission from batterystaple456 : File a.py: print("foo", end='bar') # ParseError I think the error is caused by arguments in the Python 3 print() function (e.g. end, sep) that are not ignored by 2to3, and

[issue35256] The Console of Python 3.7.0.

2018-11-15 Thread Eric V. Smith
Eric V. Smith added the comment: Agreed that this is a misunderstanding and not a bug. iuliananet: you're modifying the same list each time you're calling problem2_2(). You might look for help on the python-tutors mailing list: https://mail.python.org/mailman/listinfo/tutor --

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

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

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

2018-11-15 Thread miss-islington
Change by miss-islington : -- pull_requests: +9805 stage: needs patch -> patch review ___ Python tracker ___ ___ Python-bugs-list

[issue35259] Py_FinalizeEx unconditionally exists in Py_LIMITED_API

2018-11-15 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +martin.panter ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue12657] Cannot override JSON encoding of basic type subclasses

2018-11-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I'm working on a large patch which will include also the fix for this issue. This is a significant change and it can affect behavior and performance of existing code, so it can be made only in new version. -- assignee: -> serhiy.storchaka nosy:

[issue35256] The Console of Python 3.7.0.

2018-11-15 Thread Eric V. Smith
Eric V. Smith added the comment: Yes, this is as expected. As I said, since this isn't a bug in Python, this is not the appropriate place to discuss your problem. I suggest python-tutors list, but there are many other places to learn about python global and local variables. --

[issue35260] 2to3 Parse Error on Python 3 print() with arguments

2018-11-15 Thread batterystaple456
Change by batterystaple456 : -- type: compile error -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue28775] Option to set startup directory in IDLE

2018-11-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: This is partially a duplicate of #22121, but that focused most on the default startup directory on Windows. -- ___ Python tracker ___

[issue9056] Adding additional level of bookmarks and section numbers in python pdf documents.

2018-11-15 Thread Cheryl Sabella
Change by Cheryl Sabella : -- nosy: +cheryl.sabella, mdk versions: +Python 3.8 -Python 3.3 ___ Python tracker ___ ___

[issue35261] readline.c: PyOS_InputHook not protected against SIGWINCH

2018-11-15 Thread pmpp
pmpp added the comment: oops use: python3 -i -u -B pih.py to run crash test -- ___ Python tracker ___ ___ Python-bugs-list

[issue35261] readline.c: PyOS_InputHook not protected against SIGWINCH

2018-11-15 Thread STINNER Victor
STINNER Victor added the comment: You don't use properly ctypes. This issue is unrelated to signals. The fix is: HOOKFUNC = CFUNCTYPE(c_char_p,). -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker

[issue22121] IDLE should start with HOME as the initial working directory

2018-11-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: #28775 is about a user configuration setting. I need to try out %HOMEDRIVE%%HOMEPATH%. I am not sure what a 'post-installation script' means in practice. What language, when run, by whom? -- versions: +Python 3.7, Python 3.8 -Python 2.7, Python

[issue35261] readline.c: PyOS_InputHook not protected against SIGWINCH

2018-11-15 Thread pmpp
New submission from pmpp : when using PyOS_InputHook from within readline module two signals are to be handled SIGINT and SIGWINCH SIGINT is really usefull in case hook has a problem though in some case it should be nice to prevent it too (async loop in repl background) but SIGWINCH is an

[issue35261] readline.c: PyOS_InputHook not protected against SIGWINCH

2018-11-15 Thread pmpp
pmpp added the comment: expected result would look like: python3.6 -i -u -B pih.py >>> Segmentation fault (core dumped) -- ___ Python tracker ___

[issue35261] readline.c: PyOS_InputHook not protected against SIGWINCH

2018-11-15 Thread STINNER Victor
STINNER Victor added the comment: Can you please describe what happens and what is the expected behavior? When I run "python3 pih.py", the script exits immediately and then a get many "kill: (5441) - No such process" errors in bash. -- nosy: +vstinner

[issue22121] IDLE should start with HOME as the initial working directory

2018-11-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: On Windows 10, Start Menu entries are no longer shortcuts, but are titles of shortcuts. On the 'most recent' and alphabetical listings, one must right click, select 'more', and then 'open file location'. One then gets a directory of shortcuts, such as

[issue22121] IDLE should start with HOME as the initial working directory

2018-11-15 Thread Eryk Sun
Eryk Sun added the comment: > I am not sure what a 'post-installation script' means in practice. IIRC, there's no way to prevent environment-variable expansion when shortcuts are created by an MSI, so the shortcuts need to be created or modified after installing IDLE. Perhaps this can be

[issue35250] Minor parameter documentation mismatch for turtle

2018-11-15 Thread Windson Yang
Windson Yang added the comment: Yes, you are right. A quick fix would change 'num' to 'btn' in parameters in https://docs.python.org/3.3/library/turtle.html?highlight=turtle#turtle.onclick. I think they are the same thing. Do you want to create a patch? -- nosy: +Windson Yang

[issue30082] hide command prompt when using subprocess.Popen with shell=False on Windows

2018-11-15 Thread neel patel
neel patel added the comment: Can I work on this? I'm not sure of it's status, though. -- nosy: +ohno ___ Python tracker ___ ___

[issue35202] Remove unused imports in standard library

2018-11-15 Thread శ్రీనివాస్ రెడ్డి తాటిపర్తి
Change by Srinivas Reddy Thatiparthy(శ్రీనివాస్ రెడ్డి తాటిపర్తి) : -- pull_requests: +9807 ___ Python tracker ___ ___

[issue35262] There should be a list.get just like dict.get

2018-11-15 Thread Abram Clark
New submission from Abram Clark : Just like with dictionaries, it is convenient to index lists without catching exceptions. Adding an import for this most basic functionality is slightly tedious, and I can't imagine it would break anything to add a list.get method. -- messages:

[issue35262] There should be a list.get just like dict.get

2018-11-15 Thread Raymond Hettinger
Raymond Hettinger added the comment: This idea has been discussed before and was rejected. While get() makes sense and has valid use cases for dictionaries which use key based lookups, there isn't a parallel for lists. In general, we do just fine without list.get(). Also, it seems that

[issue35258] Consider enabling -Wmissing-prototypes

2018-11-15 Thread Alexey Izbyshev
New submission from Alexey Izbyshev : This issue is a follow-up of msg329608 of #35081. GCC and Clang have -Wmissing-prototypes[1] diagnostic that is reported if a global function is defined without a previous declaration containing a prototype. The reasons may be the following: 1) The

[issue35244] Allow to setup Clang as default compiler for modules build

2018-11-15 Thread Brett Cannon
Change by Brett Cannon : -- components: +Windows nosy: +paul.moore, steve.dower, tim.golden, zach.ware ___ Python tracker ___ ___

[issue31171] multiprocessing.BoundedSemaphore of 32-bit python could not work while cross compiling on linux platform

2018-11-15 Thread Hongxu Jia
Change by Hongxu Jia : -- pull_requests: +9810 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue31171] multiprocessing.BoundedSemaphore of 32-bit python could not work while cross compiling on linux platform

2018-11-15 Thread Hongxu Jia
Change by Hongxu Jia : -- pull_requests: -9808 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue31171] multiprocessing.BoundedSemaphore of 32-bit python could not work while cross compiling on linux platform

2018-11-15 Thread Hongxu Jia
Change by Hongxu Jia : -- pull_requests: -9809 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue31171] multiprocessing.BoundedSemaphore of 32-bit python could not work while cross compiling on linux platform

2018-11-15 Thread Hongxu Jia
Change by Hongxu Jia : -- pull_requests: +9812 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35263] Add None handling for get_saved() in IDLE

2018-11-15 Thread Raymond Hettinger
New submission from Raymond Hettinger : Exception in Tkinter callback Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/tkinter/__init__.py", line 1705, in __call__ return self.func(*args) File

[issue31171] multiprocessing.BoundedSemaphore of 32-bit python could not work while cross compiling on linux platform

2018-11-15 Thread Hongxu Jia
Change by Hongxu Jia : -- pull_requests: +9809 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue31171] multiprocessing.BoundedSemaphore of 32-bit python could not work while cross compiling on linux platform

2018-11-15 Thread Hongxu Jia
Change by Hongxu Jia : -- pull_requests: -3087 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue31171] multiprocessing.BoundedSemaphore of 32-bit python could not work while cross compiling on linux platform

2018-11-15 Thread Hongxu Jia
Change by Hongxu Jia : -- keywords: +patch pull_requests: +9808 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list

[issue35242] multiprocessing.Queue in an inconsistent state and a traceback silently suppressed if put an unpickable object and process's target function is finished

2018-11-15 Thread Sergei Zobov
Sergei Zobov added the comment: I've decided to make the test more clean, so I added `time.sleep` and now we can be sure that here is enough time for queue's underlying process to synchronize all variables:

[issue35255] delete "How do I extract the downloaded documentation" section in Windows FAQ

2018-11-15 Thread Mathieu Dupuy
Change by Mathieu Dupuy : -- assignee: -> docs@python components: +Documentation nosy: +docs@python type: -> enhancement ___ Python tracker ___

[issue35255] delete "How do I extract the downloaded documentation" section in Windows FAQ

2018-11-15 Thread Mathieu Dupuy
New submission from Mathieu Dupuy : I think it's been a long time since Windows/IE no longer mess up with file extensions, so long I can't recall anymore. I just tried on a Windows 7 + IE 11 (released in 2013) to download the .tar.bz2 archive from docs.python.org and it worked alright. To

[issue35255] delete "How do I extract the downloaded documentation" section in Windows FAQ

2018-11-15 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch pull_requests: +9800 stage: -> patch review ___ Python tracker ___ ___

[issue35242] multiprocessing.Queue in an inconsistent state and a traceback silently suppressed if put an unpickable object and process's target function is finished

2018-11-15 Thread Sergei Zobov
Change by Sergei Zobov : -- nosy: +pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35255] delete "How do I extract the downloaded documentation" section in Windows FAQ

2018-11-15 Thread Mathieu Dupuy
Change by Mathieu Dupuy : -- pull_requests: +9802 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: