[issue33435] incorrect detection of information of some distributions

2018-05-07 Thread Roundup Robot
Change by Roundup Robot : -- pull_requests: +6410 stage: -> patch review ___ Python tracker ___

[issue33437] Defining __init__ in enums

2018-05-07 Thread Andres Ayala
New submission from Andres Ayala : I have to read and write many files for an old fortran program where the elements are coded as integer (so 0 is the X, 1 is the Y...) and I have some tags associated to each one. So I tried to create an Enum with some additional fields:

[issue32627] Header dependent _uuid build failure on Fedora 27

2018-05-07 Thread Adam
Adam added the comment: Some systems might have both uuid.h and uuid/uuid.h. For example, NetBSD provides /usr/include/uuid.h, and one might also install libuuid from a package, and the latter has uuid/uuid.h. To fix this, do not include both files, when both have been

[issue33436] Add an interactive shell for Sqlite3

2018-05-07 Thread R. David Murray
R. David Murray added the comment: It's not immediately obvious what benefits this provides over the existing sqlite-native repl and the python repl. Can you expand a bit on the use case? Also, I seem to remember that Catherine Devlin had at one point thought about

[issue33438] pkg-config file misses flags for static linking

2018-05-07 Thread Antoine Pitrou
Antoine Pitrou added the comment: (correction: in the first message, I meant "on Linux" not "on Windows". Of course :-)) -- ___ Python tracker

[issue33438] pkg-config file misses flags for static linking

2018-05-07 Thread Antoine Pitrou
Antoine Pitrou added the comment: $ PKG_CONFIG_PATH=`pwd`/Misc pkg-config --static python $ PKG_CONFIG_PATH=`pwd`/Misc pkg-config --libs python -L/home/antoine/cpython/37/usr/lib -lpython3.7m $ PKG_CONFIG_PATH=`pwd`/Misc pkg-config --libs-only-l python -lpython3.7m $

[issue33435] incorrect detection of information of some distributions

2018-05-07 Thread Roundup Robot
Change by Roundup Robot : -- pull_requests: +6411 ___ Python tracker ___

[issue33438] pkg-config file misses flags for static linking

2018-05-07 Thread Antoine Pitrou
New submission from Antoine Pitrou : Our pkg-config misses flags for static linking with libpythonXX.a, such as "-lpthread -lutil -lrt" on Windows. For dynamic linking, this is not a problem since libpythonXX.so links explicitly against those system libraries. --

[issue33436] Add an interactive shell for Sqlite3

2018-05-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It could be added in Tools/scripts directory or as a part of the sqlite3 module. > It's not immediately obvious what benefits this provides over the existing > sqlite-native repl and the python repl. The existing sqlite-native

[issue33257] Race conditions in Tkinter with non-threaded Tcl

2018-05-07 Thread Scott M
Change by Scott M : -- nosy: +PythonInTheGrass ___ Python tracker ___ ___

[issue20104] expose posix_spawn(p)

2018-05-07 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- dependencies: +Expose the sigset_t converter via private API ___ Python tracker ___

[issue33442] Python 3 doc sidebar dosnt follow page scrolling like 2.7 doc sidebar.

2018-05-07 Thread Pete Moore
New submission from Pete Moore <1petemo...@gmail.com>: the 3.x docs sidebar at location https://docs.python.org/3.6/library/logging.html does not follow the user's scrolling movements like the 2.7 docs sidebar at location https://docs.python.org/2.7/library/logging.html -- assignee:

[issue21592] Make statistics.median run in linear time

2018-05-07 Thread Dong-hee Na
Dong-hee Na added the comment: For CPython, I agree with the opinion that finding a median value with Tim sort(C version) is faster than quickselect algorithm with pure python. Or we need to implement quickselect by C API. The advantage of implementing this method by

[issue33422] Fix and update string/byte literals in help()

2018-05-07 Thread Andrés Delfino
Andrés Delfino added the comment: I was exploring pydoc, saw the literals as available help "terms" on the sysmbols section, and tried reading the help for one of them. I learnt about IDLE debugging to trace this bug :) -- ___

[issue33438] pkg-config file misses flags for static linking

2018-05-07 Thread Antoine Pitrou
Antoine Pitrou added the comment: Note that both implementations of python-config give the right information: $ ./python python-config.py --libs -lpython3.7m -lpthread -ldl -lutil -lm $ sh python-config --libs -lpython3.7m -lpthread -ldl -lutil -lm --

[issue33216] Wrong order of stack for CALL_FUNCTION_VAR and CALL_FUNCTION_VAR_KW

2018-05-07 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- priority: normal -> release blocker ___ Python tracker ___

[issue33257] Race conditions in Tkinter with non-threaded Tcl

2018-05-07 Thread Scott M
Scott M added the comment: 7 years and counting... My need for a fix is long gone, but I'd like to be able to tell the original group I worked with whether it's now safe to use tkinter from threads. It looks like my original guesses were validated and a fix has been

[issue33440] Possible lazy import opportunities in `pathlib`

2018-05-07 Thread Nick Coghlan
New submission from Nick Coghlan : Due to a python-ideas discussion about reducing boilerplate for __file__-relative path calculations, I was running "./python -X importtime -S -c 'import pathlib'" and noticed three potential candidates where it may be worthwhile deferring

[issue33315] Allow queue.Queue to be used in type annotations

2018-05-07 Thread Ivan Levkivskyi
Change by Ivan Levkivskyi : -- assignee: -> levkivskyi ___ Python tracker ___ ___

[issue20104] expose posix_spawn(p)

2018-05-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I have doubts about combining setschedpolicy and setschedparam. On one hand, they are set by independent functions in C and have separate flags. When pass arguments separately we don't need to invent a parameter name: just

[issue33439] python-config.py should be part of the stdlib

2018-05-07 Thread Antoine Pitrou
New submission from Antoine Pitrou : Rather than (or in addition to) being a standalone script, python-config should be invokable as a stdlib module, e.g. "python -m sysconfig.config". This would prevent the risk of invoking the wrong script on PATH. -- components:

[issue33441] Expose the sigset_t converter via private API

2018-05-07 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : posix_spawn() (see issue20104) needs the converter to sigset_t defined in signalmodule.c. Since the code is not trivial, it is better to share it instead of duplicate. The proposed PR: * Exposes the sigset_t converter via

[issue3692] improper scope in list comprehension, when used in class declaration

2018-05-07 Thread Ivan Levkivskyi
Ivan Levkivskyi added the comment: > Bug or not this is not going to change without a PEP, so I'm not sure it's a > good idea to keep this issue open. I agree this requires a PEP. I would like to keep this open as a place for pre-PEP discussions among those interested

[issue33441] Expose the sigset_t converter via private API

2018-05-07 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +6412 stage: -> patch review ___ Python tracker ___

[issue3692] improper scope in list comprehension, when used in class declaration

2018-05-07 Thread Guido van Rossum
Guido van Rossum added the comment: > I don't think this will need drastic changes. IIRC LOAD_NAME loads from the *local* scope, which will be the synthetic function created for the comprehension (whose scope contains the loop control variables). We may need a new opcode

[issue33443] Typo in Python/import.c

2018-05-07 Thread Yuki Wakisaka
Change by Yuki Wakisaka : -- pull_requests: +6414 ___ Python tracker ___ ___

[issue33443] Typo in Python/import.c

2018-05-07 Thread Yuki Wakisaka
New submission from Yuki Wakisaka : In the method, "_PyImportZip_Init(void)", of Python/import.c, the variable, "PyObject *path_hooks, *zimpimport;", seems to be typo, which can be "zipimport". -- components: Interpreter Core messages: 316273 nosy: ukwksk

[issue3692] improper scope in list comprehension, when used in class declaration

2018-05-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I don't think this will need drastic changes. Just setting some flags here or there for making comprehensions using LOAD_NAME instead of LOAD_GLOBAL. The fix should lie near the fix for issue33346. --

[issue33443] Typo in Python/import.c

2018-05-07 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch pull_requests: +6413 stage: -> patch review ___ Python tracker ___

[issue33437] Defining __init__ in enums

2018-05-07 Thread Ethan Furman
Ethan Furman added the comment: Setting _value_ needs to happen in __new__ for those cases where another data type, such as str or int, is mixed in. I'll look at adding an example to the docs. Thanks for the report! -- assignee: -> ethan.furman components:

[issue33414] Make shutil.copytree use os.scandir to take advantage of cached is_(dir|file|symlink)

2018-05-07 Thread Andrés Delfino
Change by Andrés Delfino : -- keywords: +patch pull_requests: +6416 stage: -> patch review ___ Python tracker ___

[issue33441] Expose the sigset_t converter via private API

2018-05-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset d54cfb160c626626394e2f171d3ccfe03309f34e by Serhiy Storchaka in branch 'master': bpo-33441: Make the sigset_t converter available in other modules. (GH-6720)

[issue33414] Make shutil.copytree use os.scandir to take advantage of cached is_(dir|file|symlink)

2018-05-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The code with using scandir() is more complex and is different enough from the code with using listdir() for having significant risk of introducing bugs. Also using scandir() introduces a risk of leaking file descriptors. We

[issue33096] ttk.Treeview.insert() does not allow to insert item with "False" iid

2018-05-07 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +6417 ___ Python tracker ___ ___

[issue33109] argparse: make new 'required' argument to add_subparsers default to False instead of True

2018-05-07 Thread Brian Skinn
Brian Skinn added the comment: I second Wolfgang's recommendation to change the default back to `False`. I started developing CLI apps in Python ~4yrs ago; I dabbled briefly in 2.7, then switched firmly to Python 3. When I started, I was aimed at supporting 3.3 to 3.5;

[issue33440] Possible lazy import opportunities in `pathlib`

2018-05-07 Thread Nathaniel Smith
Nathaniel Smith added the comment: Also it's a smaller win, but it might be worth considering whether we can avoid the import of 'nt' on posix platforms and vice-versa. -- ___ Python tracker