[issue33875] Allow dynamic password evaluation in pypirc configuration file.

2018-06-22 Thread Jakub Wilk
Change by Jakub Wilk : -- nosy: +jwilk ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33932] Calling Py_Initialize() twice now triggers a fatal error (Python 3.7)

2018-06-22 Thread STINNER Victor
STINNER Victor added the comment: New changeset 209abf746985526bce255e2fba97d3246924885d by Victor Stinner in branch 'master': bpo-33932: Calling Py_Initialize() twice does nothing (GH-7845) https://github.com/python/cpython/commit/209abf746985526bce255e2fba97d3246924885d --

[issue33932] Calling Py_Initialize() twice now triggers a fatal error (Python 3.7)

2018-06-22 Thread miss-islington
miss-islington added the comment: New changeset 3747dd16d5d2af3499f586386e49740a0454cf44 by Miss Islington (bot) in branch '3.7': bpo-33932: Calling Py_Initialize() twice does nothing (GH-7845) https://github.com/python/cpython/commit/3747dd16d5d2af3499f586386e49740a0454cf44 --

[issue33944] Deprecate and remove pth files

2018-06-22 Thread Eric V. Smith
Eric V. Smith added the comment: Also +1. -- nosy: +eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue33923] py.ini cannot set 32/64bits for specific version

2018-06-22 Thread Ned Deily
Change by Ned Deily : -- components: +Windows nosy: +paul.moore, steve.dower, tim.golden, zach.ware versions: +Python 3.8 ___ Python tracker ___

[issue33944] Deprecate and remove pth files

2018-06-22 Thread Thomas Kluyver
Thomas Kluyver added the comment: I'm generally in favour of getting rid of .pth files. But I did accept a PR adding support for them in Flit to act as a substitute for symlinks on Windows, to achieve something like a 'development install'. I'm not sure what the alternative is if they go

[issue33919] Expose _PyCoreConfig structure to Python

2018-06-22 Thread STINNER Victor
STINNER Victor added the comment: Nick plans to finish his PEP 432 for Python 3.8 and make the API public. See with him? The PEP should document these structures but I was ahead and made changes which were not scheduled and the PEP is now outdated. --

[issue33894] tempfile.tempdir cannot be unset

2018-06-22 Thread Philip Rowlands
Philip Rowlands added the comment: Thanks for the edit. I did try a PR but was defeated by build/doc tool's recent version requirements (and didn't want to send untested changes, however minor). The reason for getting rid of "unset" is the confusion of "state", i.e. it has never been

[issue33877] doc Mention Windows along UNIX for script running instructions

2018-06-22 Thread Ned Deily
Ned Deily added the comment: The statement is true for macOS (note macOS is the correct current styling per Apple); in general, macOS is a UNIX platform as far as Python is concerned. So, yes, it appears the documentation there could be simplified by eliminating the platform distinction.

[issue27780] memory leaks in pgen build step abort build with address sanitizer enabled

2018-06-22 Thread Ned Deily
Ned Deily added the comment: Thanks, Zackery. @Benjamin, any opinion about a need for a 2.7 backport? Otherwise, it sounds like this can be closed. -- nosy: +benjamin.peterson ___ Python tracker

[issue33877] doc Mention Windows along UNIX for script running instructions

2018-06-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: Thanks. I did that and will merge when possible. -- assignee: docs@python -> terry.reedy ___ Python tracker ___

[issue33877] doc Mention Windows along UNIX for script running instructions

2018-06-22 Thread miss-islington
Change by miss-islington : -- pull_requests: +7473 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33877] Doc: Delete UNIX qualification for script running instructions

2018-06-22 Thread Terry J. Reedy
Change by Terry J. Reedy : -- title: doc Mention Windows along UNIX for script running instructions -> Doc: Delete UNIX qualification for script running instructions ___ Python tracker

[issue33944] Deprecate and remove pth files

2018-06-22 Thread Ethan Smith
Ethan Smith added the comment: I am in favor of symlinks no longer being able to execute arbitrary code, however, I do think having them add to the path cannot be killed in two releases. Here is why: 1. Windows support for symlinks is still not automatic. In the creators update of Windows

[issue33671] Efficient zero-copy for shutil.copy* functions (Linux, OSX and Win)

2018-06-22 Thread STINNER Victor
STINNER Victor added the comment: New changeset 8fbbdf0c3107c3052659e166f73990b466eacbb0 by Victor Stinner in branch 'master': bpo-33671: Add support.MS_WINDOWS and support.MACOS (GH-7800) https://github.com/python/cpython/commit/8fbbdf0c3107c3052659e166f73990b466eacbb0 --

[issue33945] concurrent.futures ProcessPoolExecutor submit() blocks on results being written

2018-06-22 Thread Daniel Barcay
Daniel Barcay added the comment: Line number was incorrect due to local edits. Correct line number is process.py:L464 "self._result_queue.put(None)" -- ___ Python tracker

[issue33885] doc Replace "hook function" with "callable" in urllib.request.urlretrieve

2018-06-22 Thread Senthil Kumaran
Senthil Kumaran added the comment: @Terry, the change in terminology looks good to me. -- ___ Python tracker ___ ___

[issue33934] locale.getlocale() seems wrong when the locale is yet unset (python3 on linux)

2018-06-22 Thread Ned Deily
Ned Deily added the comment: Can you say on which Linux platform/release you see this behavior and with which Python 3.6.3, i.e. from the platform distributor or built yourself? If I understand your concern correctly, I cannot reproduce that behavior on a current Debian test system using

[issue33941] datetime.strptime not able to recognize invalid date formats

2018-06-22 Thread Ned Deily
Change by Ned Deily : -- nosy: +belopolsky ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33940] datetime.strptime have no directive to convert date values with Era and Time Zone name

2018-06-22 Thread Ned Deily
Change by Ned Deily : -- nosy: +belopolsky, lemburg ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33919] Expose _PyCoreConfig structure to Python

2018-06-22 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Nosying Nick. I agree there's some overlap with Python startup restructuring, but it feels kind of orthogonal too. I really am only exposing (some elements) of that structure to Python. What might be interesting though would be if we want to expose the

[issue33944] Deprecate and remove pth files

2018-06-22 Thread Thomas Kluyver
Thomas Kluyver added the comment: I don't want to use the execution features of .pth files, just their original functionality of adding extra directories to sys.path. I'd be very happy to see the arbitrary code execution 'feature' of .pth files go away. Windows supports symlinks, but the

[issue33868] test__xxsubinterpreters: test_subinterpreter() fails randomly on AMD64 Ubuntu Shared 3.x

2018-06-22 Thread Eric Snow
Change by Eric Snow : -- nosy: +emilyemorehouse ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33941] datetime.strptime not able to recognize invalid date formats

2018-06-22 Thread Chris Wilcox
Chris Wilcox added the comment: I looked a bit at _strptime.py and the corresponding tests and thought I would share my notes. The regular expressions clearly allow non-zero padded values for both %d and %m matches. There is one test where the following is run: time.strptime("Mar 1", "%b

[issue33930] Segfault with deep recursion into object().__dir__

2018-06-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: Serhiy, is this one of the cases we decided to leave as won't fix? -- nosy: +serhiy.storchaka, terry.reedy ___ Python tracker ___

[issue33919] Expose _PyCoreConfig structure to Python

2018-06-22 Thread STINNER Victor
STINNER Victor added the comment: Barry: generating a 32 bit seed gives less entropy and so makes Python easier to crash. If you need reproducible Python: generate a seed and set the env var before starting Python. Tox does that. Regrtest should do that. --

[issue33885] doc Replace "hook function" with "callable" in urllib.request.urlretrieve

2018-06-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset c45cb479074b5d25f0d382d3109f527520a9f03c by Terry Jan Reedy (Andrés Delfino) in branch '3.6': bpo-33885: Replace "hook function" with "callable" (GH-7765) https://github.com/python/cpython/commit/c45cb479074b5d25f0d382d3109f527520a9f03c

[issue32933] mock_open does not support iteration around text files.

2018-06-22 Thread Ned Deily
Ned Deily added the comment: Anthony's PR is awaiting merge. Although Yury has reviewed it, as the core developers mocktest experts, it would be good if Michael and/or Robert could also take a look. -- nosy: +ned.deily ___ Python tracker

[issue33870] pdb continue + breakpoint

2018-06-22 Thread Philip Rowlands
Philip Rowlands added the comment: Considering the semantics a little more, "cont 99" could be equivalent to tbreak 99 cont perhaps with an implicit clear on SIGINT. This is similar in the simple case to "until 99", except "until" stops on frame boundaries, refuses to go backwards (e.g. in

[issue33877] Doc: Delete UNIX qualification for script running instructions

2018-06-22 Thread miss-islington
miss-islington added the comment: New changeset f47d8983fe35239cccf4e623e4ad70c9e0f636f9 by Miss Islington (bot) in branch '3.7': bpo-33877: Remove UNIX qualification for running complete programs (GH-7744) https://github.com/python/cpython/commit/f47d8983fe35239cccf4e623e4ad70c9e0f636f9

[issue33944] Deprecate and remove pth files

2018-06-22 Thread Eric V. Smith
Eric V. Smith added the comment: My understanding about symlinks on Windows is that they require a permission ("Create symbolic links"), that normal users by default do not have. I'm not sure if this has changed recently. -- ___ Python tracker

[issue33946] os.symlink on Windows should use the new non-admin flag

2018-06-22 Thread Ethan Smith
New submission from Ethan Smith : In the creators update CreateSymbolicLink added a dwflag SYMBOLIC_LINK_FLAG_ALLOW_UNPRIVILEGED_CREATE, which will allow any user to create a symlink (not only an admin). I think we should detect and try to use this flag if possible. I also think it would be

[issue33607] [subinterpreters] Explicitly track object ownership (and allocator).

2018-06-22 Thread Eric Snow
Change by Eric Snow : -- nosy: +emilyemorehouse ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33608] [subinterpreters] Add a cross-interpreter-safe mechanism to indicate that an object may be destroyed.

2018-06-22 Thread Eric Snow
Change by Eric Snow : -- nosy: +emilyemorehouse ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue31558] gc.freeze() - an API to mark objects as uncollectable

2018-06-22 Thread Eric Snow
Change by Eric Snow : -- nosy: +eric.snow ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33877] doc Mention Windows along UNIX for script running instructions

2018-06-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: The paragraph reads: Under Unix, a complete program can be passed to the interpreter in three forms: with the -c string command line option, as a file passed as the first command line argument, or as standard input. If the file or standard input is a tty

[issue33919] Expose _PyCoreConfig structure to Python

2018-06-22 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: I think there's another thing I'd like to change, and it seems like it's "just" an implementation detail. In _Py_HashRandomization_Init(), if use_hash_seed is 0, then we directly inject the random bits into the buffer, and then there's no hash_seed. I'd

[issue33877] doc Mention Windows along UNIX for script running instructions

2018-06-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset c9d43c702a53804c23ecb22a0dbf6a47c804d2b1 by Terry Jan Reedy (Andrés Delfino) in branch 'master': bpo-33877: Remove UNIX qualification for running complete programs (GH-7744)

[issue33877] doc Mention Windows along UNIX for script running instructions

2018-06-22 Thread miss-islington
Change by miss-islington : -- pull_requests: +7472 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33944] Deprecate and remove pth files

2018-06-22 Thread Brett Cannon
Brett Cannon added the comment: Windows has symlinks now I believe, you just have to turn them on. And I would say there is no need for alternative. If a package needs to do something funky they can do it in their __init__.py file. Otherwise if I don't import a package it shouldn't get to

[issue33877] Doc: Delete UNIX qualification for script running instructions

2018-06-22 Thread miss-islington
miss-islington added the comment: New changeset 688325ed1a4d549f03d886507c265093aa3b2cab by Miss Islington (bot) in branch '3.6': bpo-33877: Remove UNIX qualification for running complete programs (GH-7744) https://github.com/python/cpython/commit/688325ed1a4d549f03d886507c265093aa3b2cab

[issue33927] Allow json.tool to have identical infile and outfile

2018-06-22 Thread Rémi Lapeyre
Change by Rémi Lapeyre : -- keywords: +patch pull_requests: +7474 stage: -> patch review ___ Python tracker ___ ___

[issue33944] Deprecate and remove pth files

2018-06-22 Thread Brett Cannon
Brett Cannon added the comment: My only answer to Ethan is "don't use eggs". :) -- ___ Python tracker ___ ___ Python-bugs-list

[issue33944] Deprecate and remove pth files

2018-06-22 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: There are lots of problems with pth files, although arbitrary code execution is probably the most egregious. They are also notoriously difficult to debug, and happen before any control is given to user code. They certainly are unnecessary for namespace

[issue33919] Expose _PyCoreConfig structure to Python

2018-06-22 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Although I guess that would require modifications to lcg_urandom(). I don't feel qualified to change that function. -- ___ Python tracker

[issue30411] git doesn't support "-C" args under 1.8.5 occurs in configure.ac

2018-06-22 Thread Ned Deily
Ned Deily added the comment: Thanks for the PR. I agree with Xiang Zhang that using --git-dir appears to be a better solution. See other review comments on the PR. -- ___ Python tracker

[issue33919] Expose _PyCoreConfig structure to Python

2018-06-22 Thread Eric Snow
Change by Eric Snow : -- nosy: +emilyemorehouse, eric.snow ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33885] doc Replace "hook function" with "callable" in urllib.request.urlretrieve

2018-06-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: I am not even sure what a 'hook function' is supposed to mean. A beginner might think it means something other than any old callable. Unless Sentil or someone objects within a week, I would merge this. Ping me if nothing happens. -- nosy:

[issue33943] doc Add references to logging.basicConfig

2018-06-22 Thread Ned Deily
Change by Ned Deily : -- nosy: +vinay.sajip ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33940] datetime.strptime have no directive to convert date values with Era and Time Zone name

2018-06-22 Thread Ned Deily
Change by Ned Deily : -- nosy: -lemburg ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33885] doc Replace "hook function" with "callable" in urllib.request.urlretrieve

2018-06-22 Thread miss-islington
Change by miss-islington : -- pull_requests: +7471 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33885] doc Replace "hook function" with "callable" in urllib.request.urlretrieve

2018-06-22 Thread miss-islington
miss-islington added the comment: New changeset e4db73058b6c31f71c64d0f87a10547f3cf72f20 by Miss Islington (bot) in branch '3.7': bpo-33885: Replace "hook function" with "callable" (GH-7765) https://github.com/python/cpython/commit/e4db73058b6c31f71c64d0f87a10547f3cf72f20 -- nosy:

[issue33919] Expose _PyCoreConfig structure to Python

2018-06-22 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: We could make the hash_seed 64 bits. -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue33919] Expose _PyCoreConfig structure to Python

2018-06-22 Thread Barry A. Warsaw
Change by Barry A. Warsaw : -- keywords: +patch pull_requests: +7475 stage: needs patch -> patch review ___ Python tracker ___ ___

[issue33877] Doc: Delete UNIX qualification for script running instructions

2018-06-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 1c9a72cc99d4f76a18755d7227bd1c375e44b4ad by Terry Jan Reedy (Andrés Delfino) in branch '2.7': [2.7] bpo-33877: Remove UNIX qualification for running complete programs (GH-7744)

[issue33939] Raise OverflowError in __length_hint__ for consistently infinite iterators

2018-06-22 Thread bbayles
Change by bbayles : -- nosy: +bbayles ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33877] Doc: Delete UNIX qualification for script running instructions

2018-06-22 Thread Andrés Delfino
Change by Andrés Delfino : -- pull_requests: +7476 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33931] Building 2.7 on Windows with PC\VS9.0 is broken

2018-06-22 Thread Zachary Ware
Change by Zachary Ware : -- stage: patch review -> resolved status: pending -> closed ___ Python tracker ___ ___ Python-bugs-list

[issue27780] memory leaks in pgen build step abort build with address sanitizer enabled

2018-06-22 Thread Benjamin Peterson
Benjamin Peterson added the comment: New changeset 482fac74999028af4764645a1f28dd4289b2f255 by Benjamin Peterson in branch '2.7': [2.7] properly free memory in pgen. (GH-7869) (closes bpo-27780 https://github.com/python/cpython/commit/482fac74999028af4764645a1f28dd4289b2f255 --

[issue33944] Deprecate and remove pth files

2018-06-22 Thread Nick Coghlan
Nick Coghlan added the comment: Strong -1 without a functional replacement that provides comparable LD_PRELOAD capabilities (it also needs a full PEP that analyses all of the ways that setuptools and other packaging utilities use these files, such as for the implementation of "develop"

[issue33944] Deprecate and remove pth files

2018-06-22 Thread Nick Coghlan
Nick Coghlan added the comment: Concrete use case for the original path extension capability: "pew add", which chains virtual environments together (allowing shared environments with a common default dependency set, and then additional per-application dependencies) --

[issue33942] IDLE: Improve Apple MacOS Tcl/Tk warning and web page

2018-06-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: I agree that an install screen is a better place for the link. And if the 3.6.7 installer links with an included 8.6, the 8.5.7/9 message will be obsolete for the included IDLE, hence no point in patching it. Hooray. I will open separate issues about

[issue27780] memory leaks in pgen build step abort build with address sanitizer enabled

2018-06-22 Thread Benjamin Peterson
Change by Benjamin Peterson : -- keywords: +patch pull_requests: +7477 stage: needs patch -> patch review ___ Python tracker ___

[issue33943] doc Add references to logging.basicConfig

2018-06-22 Thread Andrés Delfino
Change by Andrés Delfino : -- keywords: +patch pull_requests: +7468 stage: -> patch review ___ Python tracker ___ ___

[issue33932] Calling Py_Initialize() twice now triggers a fatal error (Python 3.7)

2018-06-22 Thread miss-islington
Change by miss-islington : -- pull_requests: +7469 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33941] datetime.strptime not able to recognize invalid date formats

2018-06-22 Thread Chris Wilcox
Chris Wilcox added the comment: As %m and %d denote zero padded forms of month and day it seems to me this shouldn't match. Executing a small c program `char* ret = strptime("181223", "%Y%m%d", );` confirms that this is considered invalid to c. The datetime docs indicate that the behavior

[issue33919] Expose _PyCoreConfig structure to Python

2018-06-22 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Thanks for the hint! I had a feeling there had to be an API to get at it, but I couldn’t find it. Maybe we should start documenting the Python Secret Underscore API? :) On Jun 22, 2018, at 00:04, STINNER Victor wrote: > > _PyCoreConfig *core_config = >

[issue33927] Allow json.tool to have identical infile and outfile

2018-06-22 Thread Ned Deily
Change by Ned Deily : -- nosy: +ezio.melotti, rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33932] Calling Py_Initialize() twice now triggers a fatal error (Python 3.7)

2018-06-22 Thread Ned Deily
Ned Deily added the comment: Since the undocumented change in behavior from 3.6 to 3.7 appears to be causing some downstream regressions at this late stage, I think Victor's change should be cherry-picked for 3.7.0 final. Nick or Eric, if you merge a 3.7 doc change, I'll cherry-pick that as

[issue33885] doc Replace "hook function" with "callable" in urllib.request.urlretrieve

2018-06-22 Thread Ned Deily
Change by Ned Deily : -- nosy: +orsenthil ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33921] Explain that '' can be used to bind to all interfaces for the AF_INET address family in the docs

2018-06-22 Thread Ned Deily
Ned Deily added the comment: John, since you raised the issue, would you like to provide a doc PR? -- keywords: +easy nosy: +ned.deily stage: -> needs patch versions: -Python 3.5 ___ Python tracker

[issue33942] IDLE: Improve Apple MacOS Tcl/Tk warning and web page

2018-06-22 Thread Ned Deily
Ned Deily added the comment: Jasper, as Terry notes, you can either download and install a version of ActiveState Tcl/Tk 8.5 (not 8.6) to use with the version of Python 3.6.5 installed or, better, download and install from the alternate 10.9+ 64-bit-only Python 3.6.5 insteller from

[issue33945] concurrent.futures ProcessPoolExecutor submit() blocks on results being written

2018-06-22 Thread Daniel Barcay
Daniel Barcay added the comment: adding experts bquinlan and pitrou for concurrent.futures to nosy-list as per bug tracker directions. -- nosy: +bquinlan, pitrou ___ Python tracker

[issue33935] shutil.copyfile throws incorrect SameFileError on Google Drive File Stream

2018-06-22 Thread Steve Dower
Steve Dower added the comment: For Windows it would be best (though slower) to pass the paths through os._getfinalpathname before comparison. Detecting that function is an easy way to get the platform right, too. Unfortunately, the MSDN docs don't make clear that the VSN can be modified,

[issue33945] concurrent.futures ProcessPoolExecutor submit() blocks on results being written

2018-06-22 Thread Daniel Barcay
New submission from Daniel Barcay : I have tracked down the exact cause of a sizable performance issue in using concurrent.futures.ProcessPoolExecutors, especially visible in cases where large amounts of data are being copied across the result. The line-number causing the bad behavior, and

[issue33944] Deprecate and remove pth files

2018-06-22 Thread Christian Heimes
Christian Heimes added the comment: +1 -- nosy: +christian.heimes ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue33942] IDLE: Improve Apple MacOS Tcl/Tk warning and web page

2018-06-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: Jasper: when you installed 3.6.5 on your 10.11 machine, you had a choice of the 64-/32-bit installer, good back to 10.6, and newer and better 64-bit installer, good back to 10.9. Since it seems that the latter, the new and improved option, should work for

[issue33899] Tokenize module does not mirror "end-of-input" is newline behavior

2018-06-22 Thread Ned Deily
Change by Ned Deily : -- nosy: +meador.inge ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33943] doc Add references to logging.basicConfig

2018-06-22 Thread Andrés Delfino
New submission from Andrés Delfino : IMHO, the logging.basicConfig documentation could have some useful references for filemodes, time.strftime, printf-formatting, and logging level. PR adds them. -- assignee: docs@python components: Documentation messages: 320242 nosy: adelfino,

[issue32568] Fix handling of sizehint=-1 in select.epoll()

2018-06-22 Thread Tal Einat
Tal Einat added the comment: >> Also sizehint=0 was rejected before >> 2fb9ae9dfc5a6830d902332ba93b13387e292ddb. Now it is accepted. Please note that by "Now it is accepted" I meant in the current codebase, before PR 7840. In this regard, that PR changes nothing. Given the documentation

[issue32568] Fix handling of sizehint=-1 in select.epoll()

2018-06-22 Thread Tal Einat
Change by Tal Einat : -- pull_requests: +7470 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33944] Deprecate and remove pth files

2018-06-22 Thread Barry A. Warsaw
New submission from Barry A. Warsaw : pth files are evil. They are very difficult to debug because they're processed too early. They usually contain globs of inscrutable code. Exceptions in pth files can get swallowed in some cases. They are loaded in indeterminate order. They are also

[issue33939] Raise TypeError in __length_hint__ for consistently infinite iterators

2018-06-22 Thread Erik Bray
Erik Bray added the comment: Per the discussion in https://trac.sagemath.org/ticket/24757, it would also be nice if some other common iterables like map and filter implemented a similar __length_hint__ which would interrogate whatever iterables were give as their argument(s). To summarize

[issue32568] Fix handling of sizehint=-1 in select.epoll()

2018-06-22 Thread STINNER Victor
STINNER Victor added the comment: > Also sizehint=0 was rejected before 2fb9ae9dfc5a6830d902332ba93b13387e292ddb. > Now it is accepted. DESCRIPTION epoll_create() creates a new epoll(7) instance. Since Linux 2.6.8, the size argument is ignored, but must be greater than zero;

[issue31558] gc.freeze() - an API to mark objects as uncollectable

2018-06-22 Thread Jesús Cea Avión
Change by Jesús Cea Avión : -- nosy: +jcea ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue1617161] Instance methods compare equal when their self's are equal

2018-06-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: PR 7848 is based on method_compare.diff and 1617161_test_update.diff, but also makes types.MethodWrapperType unorderable, adds more tests and fixes some outdated tests. This change can be considered as a bugfix, but since it can break the user code

[issue33897] Add a restart option to logging.basicConfig()

2018-06-22 Thread Vinay Sajip
Vinay Sajip added the comment: You would just clear all handlers added to the root logger before calling the existing code: try: # new code to be added, not tested for h in root.handlers[:]: root.removeHandler(h) h.close() # existing code

[issue33897] Add a restart option to logging.basicConfig()

2018-06-22 Thread Dong-hee Na
Dong-hee Na added the comment: "force" +1 -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33919] Expose _PyCoreConfig structure to Python

2018-06-22 Thread STINNER Victor
STINNER Victor added the comment: > I think the basic implementation problem is that by the time you get to > get_hash_info() in sysmodule.c, you no longer have access to the > _PyCoreConfig object, nor the _PyMain object that it's generally attached to. An interpreter now keeps a copy of

[issue30345] test_gdb fails on Python 3.6 when built with LTO+PGO

2018-06-22 Thread STINNER Victor
STINNER Victor added the comment: New changeset 78392885c9b08021c89649728053d31503d8a509 by Victor Stinner in branch '3.6': bpo-30345: Add -g to LDFLAGS for LTO (GH-7709) (GH-7826) https://github.com/python/cpython/commit/78392885c9b08021c89649728053d31503d8a509 --

[issue30345] test_gdb fails on Python 3.6 when built with LTO+PGO

2018-06-22 Thread STINNER Victor
STINNER Victor added the comment: New changeset 319cfb5f30c2f5da0cdcd556574727ca347cb7de by Victor Stinner in branch '2.7': bpo-30345: Add -g to LDFLAGS for LTO (GH-7709) (GH-7825) https://github.com/python/cpython/commit/319cfb5f30c2f5da0cdcd556574727ca347cb7de --

[issue30345] test_gdb fails on Python 3.6 when built with LTO+PGO

2018-06-22 Thread STINNER Victor
STINNER Victor added the comment: New changeset 1bb9dd337ed5aa9eafc8e2ce017ceedf044145e3 by Victor Stinner (Miss Islington (bot)) in branch '3.7': bpo-30345: Add -g to LDFLAGS for LTO (GH-7709) (GH-7824) https://github.com/python/cpython/commit/1bb9dd337ed5aa9eafc8e2ce017ceedf044145e3

[issue30345] test_gdb fails on Python 3.6 when built with LTO+PGO

2018-06-22 Thread STINNER Victor
STINNER Victor added the comment: > I created backports to 2.7, 3.6 and 3.7 branches: do you see any reason to > not fix python-gdb.py in these branches? (Any reason to not add -g to > $LTOFLAGS?) Honestly, the risk is very low: only "./configure --with-lto" is impacted and the addition of

[issue33937] [3.6] test_socket: testSendmsgTimeout() failed on Travis CI

2018-06-22 Thread STINNER Victor
New submission from STINNER Victor : https://travis-ci.org/python/cpython/jobs/395349473 == ERROR: testSendmsgTimeout (test.test_socket.SendmsgSCTPStreamTest)

[issue33720] test_marshal: crash in Python 3.7b5 on Windows 10

2018-06-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: What are your thoughts about rewriting the test (PR 7336)? -- ___ Python tracker ___ ___

[issue33936] OPENSSL_VERSION_1_1 never defined in _hashopenssl.c

2018-06-22 Thread Xiang Zhang
Change by Xiang Zhang : -- nosy: +christian.heimes ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33932] Calling Py_Initialize() twice now triggers a fatal error (Python 3.7)

2018-06-22 Thread Xiang Zhang
Xiang Zhang added the comment: > Note: the doc doesn't say that the function must only be called once, nor > document the (current) new Python 3.7 restriction (must only be called once): But the doc says: This is a no-op when called for a second time (without calling Py_FinalizeEx()

[issue33932] Calling Py_Initialize() twice now triggers a fatal error (Python 3.7)

2018-06-22 Thread Nick Coghlan
Nick Coghlan added the comment: While I agree the documentation issue means that this should be made to work again for Python 3.7.1, I'd like for Python 3.7 to at least deprecate calling Py_Initialize twice without an intervening Py_Finalize. Otherwise the public multi-phase interpreter

[issue33932] Calling Py_Initialize() twice now triggers a fatal error (Python 3.7)

2018-06-22 Thread STINNER Victor
STINNER Victor added the comment: > While I agree the documentation issue means that this should be made to work > again for Python 3.7.1, I'd like for Python 3.7 to at least deprecate calling > Py_Initialize twice without an intervening Py_Finalize. In term of timeline, I would prefer to

[issue33932] Calling Py_Initialize() twice now triggers a fatal error (Python 3.7)

2018-06-22 Thread STINNER Victor
STINNER Victor added the comment: "no-op means it could be called twice" oops right :-) So it's a regression. Would you mind to review my PR 7845, Xiang? -- ___ Python tracker

  1   2   >