[issue35732] Typo in library/warnings documentation

2019-01-14 Thread Antoine Wecxsteen
Antoine Wecxsteen added the comment: Hello Pablo, Yes, I'll be happy to make a PR. I don't think it should be removed after all as, actually, the two "see above" do not refer to the same paragraph ("Warning Categories" and "The Warnings Filter" respectively). -- __

[issue35732] Typo in library/warnings documentation

2019-01-14 Thread Antoine Wecxsteen
Change by Antoine Wecxsteen : -- keywords: +patch pull_requests: +11171 stage: -> patch review ___ Python tracker ___ ___ Python-bu

[issue35732] Typo in library/warnings documentation

2019-01-14 Thread Antoine Wecxsteen
Change by Antoine Wecxsteen : -- keywords: +patch, patch pull_requests: +11171, 11172 stage: -> patch review ___ Python tracker ___ ___

[issue35732] Typo in library/warnings documentation

2019-01-14 Thread Antoine Wecxsteen
Change by Antoine Wecxsteen : -- keywords: +patch, patch, patch pull_requests: +11171, 11172, 11173 stage: -> patch review ___ Python tracker ___ _

[issue35732] Typo in library/warnings documentation

2019-01-14 Thread Antoine Wecxsteen
Change by Antoine Wecxsteen : -- keywords: +patch, patch, patch, patch pull_requests: +11171, 11172, 11173, 11174 stage: -> patch review ___ Python tracker ___ ___

[issue35732] Typo in library/warnings documentation

2019-01-14 Thread Antoine Wecxsteen
Antoine Wecxsteen added the comment: https://github.com/python/cpython/pull/11549 Reading the dev guide, I see there is actually no need to open an issue for mere typos. I should have made a PR directly... -- ___ Python tracker

[issue33944] Deprecate and remove pth files

2019-01-14 Thread STINNER Victor
STINNER Victor added the comment: I really hate .pth files because the slow down Python startup time for *all* applications whereas .pth files are usually specific to a very few applications using one or two specific modules. They can also modify the behavior of Python for all applications,

[issue33944] Deprecate and remove pth files

2019-01-14 Thread Antoine Pitrou
Antoine Pitrou added the comment: As I said: editable installs (`pip install -e`) are an important use case of .pth files. I don't see how namespace packages have anything to do with this, sorry. -- ___ Python tracker

[issue35730] IDLE: Fix squeezer test_reload.

2019-01-14 Thread STINNER Victor
STINNER Victor added the comment: https://buildbot.python.org/all/#/builders/108/builds/895/steps/5/logs/stdio https://buildbot.python.org/all/#/builders/115/builds/888/steps/4/logs/stdio == FAIL: test_reload (idlelib.idle_tes

[issue35378] multiprocessing.Pool.imaps iterators do not maintain alive the multiprocessing.Pool objects

2019-01-14 Thread STINNER Victor
STINNER Victor added the comment: According to all previous discussions, I now agree with having a strong reference. -- ___ Python tracker ___ ___

[issue35730] IDLE: Fix squeezer test_reload.

2019-01-14 Thread Tal Einat
Tal Einat added the comment: > The test rely on a specific font name and specific font size: maybe this > specific font is not available. Can you help by checking this? Is there another font known to be universally available? > Instead of skipping the test, would it make same to accept that

[issue30235] Validate shutil supports path-like objects, update docs accordingly

2019-01-14 Thread Mickaël Schoentgen
Change by Mickaël Schoentgen : -- nosy: +Tiger-222 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue33944] Deprecate and remove pth files

2019-01-14 Thread SilentGhost
Change by SilentGhost : -- nosy: +SilentGhost ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue34384] os.readlink does not accept pathlib.Path on Windows

2019-01-14 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- status: open -> pending ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https

[issue35720] Memory leak in Modules/main.c:pymain_parse_cmdline_impl when using the CLI flag

2019-01-14 Thread SilentGhost
Change by SilentGhost : -- nosy: +vstinner type: -> resource usage versions: +Python 3.7, Python 3.8 ___ Python tracker ___ ___ Pyt

[issue33301] Add __contains__ to pathlib

2019-01-14 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> rejected stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Pytho

[issue35730] IDLE: Fix squeezer test_reload.

2019-01-14 Thread STINNER Victor
STINNER Victor added the comment: > Not really. This test, test_reload(), is specifically checking that the > reload() function updates zero_char_width after font changes. What if the old and the new font have the same width? -- ___ Python tracker

[issue35730] IDLE: Fix squeezer test_reload.

2019-01-14 Thread Tal Einat
Tal Einat added the comment: > What if the old and the new font have the same width? The font is set to Courier 10 in the test's setup, and it is then set to Courier 20 by the test before calling reload(). The zero character should certainly not have the same width in both cases. ISTM that

[issue34512] Document platform-specific strftime() behavior for non-ASCII format strings

2019-01-14 Thread STINNER Victor
STINNER Victor added the comment: A solution to make time.strftime() more portable would be to split the format string, format each "%xxx" substring separately but don't pass substrings between "%xxx" to strftime(). There is a similar discussion about trailing "%": bpo-35066. -- nos

[issue35066] Inconsistency between dangling '%' handling in time.strftime() and datetime.strftime()

2019-01-14 Thread STINNER Victor
STINNER Victor added the comment: The behavior of strftime() with non-ASCII is not portable: bpo-34512. A solution to make time.strftime() more portable would be to split the format string, format each "%xxx" substring separately but don't pass substrings between "%xxx" to strftime(). -

[issue35066] Inconsistency between dangling '%' handling in time.strftime() and datetime.strftime()

2019-01-14 Thread miss-islington
Change by miss-islington : -- pull_requests: +11175 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue35066] Inconsistency between dangling '%' handling in time.strftime() and datetime.strftime()

2019-01-14 Thread STINNER Victor
STINNER Victor added the comment: New changeset 454b3d4ea246e8751534e105548d141ed7b0b032 by Victor Stinner (MichaelSaah) in branch 'master': bpo-35066: _dateime.datetime.strftime copies trailing '%' (GH-10692) https://github.com/python/cpython/commit/454b3d4ea246e8751534e105548d141ed7b0b032

[issue35066] Inconsistency between dangling '%' handling in time.strftime() and datetime.strftime()

2019-01-14 Thread miss-islington
Change by miss-islington : -- pull_requests: +11175, 11176 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue35066] Inconsistency between dangling '%' handling in time.strftime() and datetime.strftime()

2019-01-14 Thread miss-islington
Change by miss-islington : -- pull_requests: +11175, 11176, 11177 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue35730] IDLE: Fix squeezer test_reload.

2019-01-14 Thread STINNER Victor
STINNER Victor added the comment: The test still pass on my Fedora 29 with: diff --git a/Lib/idlelib/idle_test/test_squeezer.py b/Lib/idlelib/idle_test/test_squeezer.py index 71eccd3693..e026567789 100644 --- a/Lib/idlelib/idle_test/test_squeezer.py +++ b/Lib/idlelib/idle_test/test_squeezer.p

[issue35066] Inconsistency between dangling '%' handling in time.strftime() and datetime.strftime()

2019-01-14 Thread miss-islington
miss-islington added the comment: New changeset 26122de1a80d1618ee80862cf3b8f73f8ec7d9cf by Miss Islington (bot) in branch '3.7': bpo-35066: _dateime.datetime.strftime copies trailing '%' (GH-10692) https://github.com/python/cpython/commit/26122de1a80d1618ee80862cf3b8f73f8ec7d9cf --

[issue35066] Inconsistency between dangling '%' handling in time.strftime() and datetime.strftime()

2019-01-14 Thread STINNER Victor
STINNER Victor added the comment: I proposed two different implementations to make time.strftime() more portable, so it seems like it's more complex than what I expected. I merged the datetime change since this one is self-sufficient, so someone can work on a time change on top of it. -

[issue30235] Validate shutil supports path-like objects, update docs accordingly

2019-01-14 Thread Mickaël Schoentgen
Mickaël Schoentgen added the comment: There is another place where the use of Path objects is not yet working: when move() is given a directory as argument. A patch is in review in issue32689. -- ___ Python tracker

[issue32689] shutil.move raises AttributeError if first argument is a pathlib.Path object and destination is a directory

2019-01-14 Thread Mickaël Schoentgen
Change by Mickaël Schoentgen : -- versions: +Python 3.7, Python 3.8 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr

[issue30235] Validate shutil supports path-like objects, update docs accordingly

2019-01-14 Thread Mickaël Schoentgen
Change by Mickaël Schoentgen : -- versions: +Python 3.8 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:

[issue34756] Few changes in sys.breakpointhook()

2019-01-14 Thread miss-islington
Change by miss-islington : -- pull_requests: +11178 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue34756] Few changes in sys.breakpointhook()

2019-01-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 6fe9c446f8302553952f63fc6d96be4dfa48ceba by Serhiy Storchaka in branch 'master': bpo-34756: Silence only ImportError and AttributeError in sys.breakpointhook(). (GH-9457) https://github.com/python/cpython/commit/6fe9c446f8302553952f63fc6d96be

[issue34756] Few changes in sys.breakpointhook()

2019-01-14 Thread miss-islington
Change by miss-islington : -- pull_requests: +11178, 11179 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue34756] Few changes in sys.breakpointhook()

2019-01-14 Thread miss-islington
Change by miss-islington : -- pull_requests: +11178, 11179, 11180 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue34756] Few changes in sys.breakpointhook()

2019-01-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The part of the clean up was applied in PR 9519. And since _PyObject_GetBuiltin() was gone, the rest of the clean up no longer applicable. The only part that is left is to make unexpected exceptions no longer silenced. -- _

[issue34756] Few changes in sys.breakpointhook()

2019-01-14 Thread miss-islington
miss-islington added the comment: New changeset 6d0254bae4d739b487fcaa76705a2d309bce8e75 by Miss Islington (bot) in branch '3.7': bpo-34756: Silence only ImportError and AttributeError in sys.breakpointhook(). (GH-9457) https://github.com/python/cpython/commit/6d0254bae4d739b487fcaa76705a2d3

[issue33416] Add endline and endcolumn to every AST node

2019-01-14 Thread Ivan Levkivskyi
Ivan Levkivskyi added the comment: > I'm sure we will find use cases though I doubt that many compiler syntax > errors would benefit (since a syntax error means that we don't have a > completely matched grammar rule). This is mostly useful for code analysis tools and IDEs. > BTW, does this

[issue22616] Allow connecting AST nodes with corresponding source ranges

2019-01-14 Thread Ivan Levkivskyi
Change by Ivan Levkivskyi : -- nosy: +levkivskyi stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-l

[issue22616] Allow connecting AST nodes with corresponding source ranges

2019-01-14 Thread Ivan Levkivskyi
Ivan Levkivskyi added the comment: Closed as superseded by https://bugs.python.org/issue33416 -- superseder: -> Add endline and endcolumn to every AST node ___ Python tracker ___

[issue28657] cmd.Cmd.get_help() implementation can't see do_*() methods added dynamically by setattr()

2019-01-14 Thread Rémi Lapeyre
Change by Rémi Lapeyre : -- nosy: +catherinedevlin, tleonhardt ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue28657] cmd.Cmd.get_help() implementation can't see do_*() methods added dynamically by setattr()

2019-01-14 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: CC-ing Catherine Devlin and Todd Leonhardt so we can close the issue by either accepting or refusing such feature. -- ___ Python tracker ___ __

[issue34756] Few changes in sys.breakpointhook()

2019-01-14 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue35734] ipaddress's _BaseV4._is_valid_netmask fails to detect invalid netmask like 255.254.128.0

2019-01-14 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: I couldn't find any use of _is_valid_netmask() in the code, why should this netmask be invalid? As far as I can tell this should be a valid one, is there a reason to refuse it? -- nosy: +remi.lapeyre ___ Python track

[issue35734] ipaddress's _BaseV4._is_valid_netmask fails to detect invalid netmask like 255.254.128.0

2019-01-14 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: > I couldn't find any use of _is_valid_netmask() in the code, why should this > netmask be invalid? There is an open issue to remove this method which is unused and undocumented issue27860. I have less knowledge on the subnet masking area but on

[issue33944] Deprecate and remove pth files

2019-01-14 Thread Nick Coghlan
Nick Coghlan added the comment: Namespace packages in general didn't rely on pth files - only the setuptools/pkg_resources implementation of them did. I'll also reiterate that I am *completely* opposed to deprecating the "append entries to sys.path" usage model, as there is absolutely nothin

[issue22616] Allow connecting AST nodes with corresponding source ranges

2019-01-14 Thread Edward K Ream
Edward K Ream added the comment: On Mon, Jan 14, 2019 at 5:24 AM Ivan Levkivskyi wrote: Adding endline and endcolumn to every ast node will be a big improvement. Edward -- Edward K. Ream: edream...@gmail.

[issue35730] IDLE: Fix squeezer test_reload.

2019-01-14 Thread Terry J. Reedy
Change by Terry J. Reedy : -- pull_requests: +11181, 11182, 11183 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue35730] IDLE: Fix squeezer test_reload.

2019-01-14 Thread Terry J. Reedy
Change by Terry J. Reedy : -- pull_requests: +11181 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue35730] IDLE: Fix squeezer test_reload.

2019-01-14 Thread Terry J. Reedy
Change by Terry J. Reedy : -- pull_requests: +11181, 11182 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue35723] Add "time zone index" cache to datetime objects

2019-01-14 Thread STINNER Victor
STINNER Victor added the comment: I dislike adding a public API for an optimization. Would it be possible to make it private? Would it make sense? tzidx => _tzidx. > One other thing I might mention here is that I did explore the idea of > storing this cache on the tzinfo implementation itsel

[issue35734] ipaddress's _BaseV4._is_valid_netmask fails to detect invalid netmask like 255.254.128.0

2019-01-14 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: Still 255.254.128.0 is a valid subnet. If I understand correctly, rfc1519 relate to how public ip addresses should be attributed. It does not cover what private subnets you use and you still can such submask (as long as you own the whole /16 for example). rfc9

[issue33416] Add endline and endcolumn to every AST node

2019-01-14 Thread Aivar Annamaa
Aivar Annamaa added the comment: I strongly support this feature, because my IDE (https://thonny.org) needs to highlight AST nodes in the source code. There would be many interested parties if you count the stars of this project: https://github.com/gristlabs/asttokens -- nosy: +Aiva

[issue35698] [statistics] Division by 2 in statistics.median

2019-01-14 Thread Steven D'Aprano
Steven D'Aprano added the comment: I agree that for numeric data, it isn't worth changing the behaviour of median to avoid the division in the case of two equal middle values. Even if we did accept this feature request, it is not going to eliminate the change in type in all circumstances. me

[issue35698] [statistics] Division by 2 in statistics.median

2019-01-14 Thread Jonathan Fine
Jonathan Fine added the comment: I'm still thinking about this. I find Steve's closing of the issue premature, but I'm not going to reverse it. -- ___ Python tracker ___

[issue35698] [statistics] Division by 2 in statistics.median

2019-01-14 Thread STINNER Victor
STINNER Victor added the comment: > I find Steve's closing of the issue premature, but I'm not going to reverse > it. Steven D'Aprano is the maintainer of the module (he wrote 450 and implemented it), he has the last word. Steven D'Aprano, Raymond Hettinger and me are 3 core developers and

[issue35736] Missing component in table after getElementsByTagName("nn")

2019-01-14 Thread Michael Krötlinger
New submission from Michael Krötlinger : After operations = xmltree.getElementsByTagName("operation") the table does not contain operations antragstypenErmitteln and mammographieIndikationenErmitteln -- files: EbsService.wsdl messages: 333621 nosy: MiKr41 priority: normal severity: norm

[issue35723] Add "time zone index" cache to datetime objects

2019-01-14 Thread Paul Ganssle
Paul Ganssle added the comment: > I dislike adding a public API for an optimization. Would it be possible to > make it private? Would it make sense? tzidx => _tzidx. This also would have been my preference, but it is unfortunately not possible because of the way tzinfo works. tzinfo is an ab

[issue35736] Missing component in table after getElementsByTagName("nn")

2019-01-14 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Thanks for the report. Please post a minimal code snippet with what you are expecting and the actual output of the program explaining the problem and how it's a bug in Python and not the actual code's logic. -- nosy: +xtreak __

[issue35721] _UnixSubprocessTransport leaks socket pair if Popen fails

2019-01-14 Thread Niklas Fiekas
Change by Niklas Fiekas : -- keywords: +patch pull_requests: +11184 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-l

[issue35721] _UnixSubprocessTransport leaks socket pair if Popen fails

2019-01-14 Thread Niklas Fiekas
Change by Niklas Fiekas : -- keywords: +patch, patch pull_requests: +11184, 11185 stage: -> patch review ___ Python tracker ___ ___

[issue35674] Expose os.posix_spawnp()

2019-01-14 Thread Joannah Nanjekye
Change by Joannah Nanjekye : -- pull_requests: +11187, 11188 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35721] _UnixSubprocessTransport leaks socket pair if Popen fails

2019-01-14 Thread Niklas Fiekas
Change by Niklas Fiekas : -- keywords: +patch, patch, patch pull_requests: +11184, 11185, 11186 stage: -> patch review ___ Python tracker ___ _

[issue35674] Expose os.posix_spawnp()

2019-01-14 Thread Joannah Nanjekye
Change by Joannah Nanjekye : -- pull_requests: +11187, 11188, 11189 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue35674] Expose os.posix_spawnp()

2019-01-14 Thread Joannah Nanjekye
Change by Joannah Nanjekye : -- pull_requests: +11187 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue35736] Missing component in table after getElementsByTagName("nn")

2019-01-14 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- Removed message: https://bugs.python.org/msg333624 ___ Python tracker ___ ___ Python-bugs-list maili

[issue35736] Missing component in table after getElementsByTagName("nn")

2019-01-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Please do not post a large amount of text as a message. This would make communication harder. -- nosy: +serhiy.storchaka ___ Python tracker __

[issue35736] Missing component in table after getElementsByTagName("nn")

2019-01-14 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: It seems you have added a reply with the program at https://bugs.python.org/file48049/unnamed but it's filled with escaped HTML I hope. I assume you have a problem that there are 34 items with 'operation name' under grep and in the program it causes

[issue24780] unittest assertEqual difference output foiled by newlines

2019-01-14 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Sorry, I just stumbled upon issue2142 which is a similar report for unique_diff producing wrong output due to missing trailing newlines and could have been the original reason where the title was changed. But since there is a PR now towards adding

[issue35737] crypt AuthenticationError introduced with new Linux kernel

2019-01-14 Thread Brett R
New submission from Brett R : We are seeing a crash apparently in crypt.py when invoked via SaltStack and have narrowed it down to some change in the Linux kernel introduced by this security update: https://access.redhat.com/errata/RHSA-2018:3083 Linux kernel 3.10.0-862.14.4.el7.x86_64 works

[issue34323] False timeout log message on proactor close

2019-01-14 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +11190 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue34323] False timeout log message on proactor close

2019-01-14 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +11190, 11191 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue34323] False timeout log message on proactor close

2019-01-14 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +11190, 11191, 11192 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue35537] use os.posix_spawn in subprocess

2019-01-14 Thread STINNER Victor
STINNER Victor added the comment: > https://wiki.musl-libc.org/faq.html """ Q: Why is there no __MUSL__ macro? It’s a bug to assume a certain implementation has particular properties rather than testing. So far, every time somebody’s asked for this with a particular usage case in mind, the u

[issue35701] [uuid] 3.8 breaks weak references for UUIDs

2019-01-14 Thread David Heiberg
David Heiberg added the comment: Since there has been no objection to this yet, would it be alright for me to take this as my first PR? On top of the change you mentioned to the __slots__ list, should there also be a test written so that a similar regression doesn't happen again? -

[issue35701] [uuid] 3.8 breaks weak references for UUIDs

2019-01-14 Thread Tal Einat
Tal Einat added the comment: Indeed, a PR for this should include a test that weakrefs work. -- ___ Python tracker ___ ___ Python-b

[issue35701] [uuid] 3.8 breaks weak references for UUIDs

2019-01-14 Thread wouter bolsterlee
wouter bolsterlee added the comment: the test could be sth like x = uuid.uuid4() y = weakref.ref(x) assert x is y() -- ___ Python tracker ___

[issue35701] [uuid] 3.8 breaks weak references for UUIDs

2019-01-14 Thread David Heiberg
David Heiberg added the comment: Ok thanks for your input, I will work on a PR and hopefully submit one tomorrow or Wednesday depending on schedule. -- ___ Python tracker ___

[issue35735] Current "make test" status for AIX

2019-01-14 Thread Michael Felt
Michael Felt added the comment: Well, I can close this again - whatever was wrong with test_xml_etree_c disappeared - and a cursory look at test_os reveals that the issue might be the time lag between the NFS server where the temp files are made and the "local" sense of time. Most of the ti

[issue35735] Current "make test" status for AIX

2019-01-14 Thread Michael Felt
Change by Michael Felt : -- stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue31658] xml.sax.parse won't accept path objects

2019-01-14 Thread Mickaël Schoentgen
Change by Mickaël Schoentgen : -- versions: +Python 3.7, Python 3.8 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr

[issue35738] Update timeit documentation to reflect default repeat of three

2019-01-14 Thread Jayanth Raman
New submission from Jayanth Raman : In the Examples section of the timeit documentation, repeat() returns a list of size three. But the default is now five and the documentation should reflect that. Thanks. -- assignee: docs@python components: Documentation messages: 333635 nosy: doc

[issue35732] Typo in library/warnings documentation

2019-01-14 Thread Cheryl Sabella
Change by Cheryl Sabella : -- resolution: -> duplicate stage: patch review -> resolved status: open -> closed superseder: -> Doc: warnings.rst - add links to references ___ Python tracker __

[issue35732] Typo in library/warnings documentation

2019-01-14 Thread Cheryl Sabella
Cheryl Sabella added the comment: Closing as a duplicate of #35563, which converts the 'see above' to links. -- nosy: +cheryl.sabella ___ Python tracker ___ __

[issue35738] Update timeit documentation to reflect default repeat of three

2019-01-14 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue33944] Deprecate and remove pth files

2019-01-14 Thread Jason R. Coombs
Jason R. Coombs added the comment: I like Nick's proposal. It has I believe the features that satisfy the use-cases of which I'm currently aware... with one edge case you may not have considered - support for multiple `__sitecustomize__` locations. Consider, for example, the case where `__si

[issue33944] Deprecate and remove pth files

2019-01-14 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Jan 14, 2019, at 04:02, STINNER Victor wrote: > > I really hate .pth files because the slow down Python startup time for *all* > applications whereas .pth files are usually specific to a very few > applications using one or two specific modules. > > The

[issue33944] Deprecate and remove pth files

2019-01-14 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Jan 14, 2019, at 04:14, Antoine Pitrou wrote: > > As I said: editable installs (`pip install -e`) are an important use case of > .pth files. Is that true outside of virtual environments? I care less about .pth files inside venvs, since those are typica

[issue33944] Deprecate and remove pth files

2019-01-14 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Jan 14, 2019, at 07:17, Nick Coghlan wrote: > > I'll also reiterate that I am *completely* opposed to deprecating the "append > entries to sys.path" usage model, as there is absolutely nothing wrong with > that (if distros are ending up with an overly cl

[issue32496] lib2to3 fails to parse a ** of a conditional expression

2019-01-14 Thread Ori Avtalion
Ori Avtalion added the comment: This can be circumvented by adding parenthesis: dummy(**(kwargs if kwargs else dict())) -- nosy: +salty-horse ___ Python tracker ___ ___

[issue33944] Deprecate and remove pth files

2019-01-14 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Is that true outside of virtual environments? Not in my experience. But I'm not sure special-casing virtual environments will make the situation easier to understand ;-) -- ___ Python tracker

[issue28657] cmd.Cmd.get_help() implementation can't see do_*() methods added dynamically by setattr()

2019-01-14 Thread Raymond Hettinger
Raymond Hettinger added the comment: > Maybe the methods could all rely on `get_names` that > return `dir(self.__class__)`, Please read the previous posts on the subject. The only reason to do this is if we want the module to explicitly support attaching methods directly to instances. That

[issue33944] Deprecate and remove pth files

2019-01-14 Thread STINNER Victor
STINNER Victor added the comment: I don't think that you will like it, but I feel that a PEP will be needed here to list use cases and explain what replace .pth files for each use case. Maybe no replacement for some use cases is fine. The PEP doesn't have to be long. I also expect that it's go

[issue33944] Deprecate and remove pth files

2019-01-14 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Jan 14, 2019, at 17:30, STINNER Victor wrote: > > I don't think that you will like it, but I feel that a PEP will be needed > here to list use cases and explain what replace .pth files for each use > case. Maybe no replacement for some use cases is fine.

[issue35537] use os.posix_spawn in subprocess

2019-01-14 Thread Alexey Izbyshev
Alexey Izbyshev added the comment: > Until muscl decides to provide an "#ifdef __MUSL__"-like or any way that it's > musl, I propose to not support musl: don't use os.posix_spawn() but > _posixsubprocess. FYI, I'm researching how to use vfork(), focusing on Linux, but I'll need more time to

[issue35661] Store the venv prompt in pyvenv.cfg

2019-01-14 Thread Cheryl Sabella
Cheryl Sabella added the comment: Steve, thanks for explaining that. I understand what you're saying now. It's funny but because the context prompt has the space added at the end when it's created (`context.prompt = '(%s) ' % prompt`), I added it to the test, but completely forgot about it

[issue26410] "incompatible pointer type" while compiling Python3.5.1

2019-01-14 Thread Cheryl Sabella
Change by Cheryl Sabella : -- resolution: -> duplicate stage: -> resolved ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue26410] "incompatible pointer type" while compiling Python3.5.1

2019-01-14 Thread Cheryl Sabella
Change by Cheryl Sabella : -- status: open -> closed superseder: -> Use Py_uintptr_t instead of void* for atomic pointers ___ Python tracker ___ __

[issue35739] Enable verbose of tests during PGO build on amd64 platforms

2019-01-14 Thread Jorge Ramos
New submission from Jorge Ramos : It would be interesting to allow regrtests to output to command line during testing with PGO enabled. The default behavior is to not display output unless some fatal error occurs ("quiet" mode). Making this issue to create a pull request. -- componen

[issue35739] Enable verbose of tests during PGO build on amd64 platforms

2019-01-14 Thread Jorge Ramos
Change by Jorge Ramos : -- keywords: +patch, patch pull_requests: +11193, 11194 stage: -> patch review ___ Python tracker ___ ___ P

[issue35739] Enable verbose of tests during PGO build on amd64 platforms

2019-01-14 Thread Jorge Ramos
Change by Jorge Ramos : -- keywords: +patch pull_requests: +11193 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-lis

  1   2   >