[issue39594] Typo in documentation for os.times

2020-02-10 Thread miss-islington
miss-islington added the comment: New changeset 4d4301782cbc789eedc5b76741d1028df579cfa5 by Miss Islington (bot) in branch '3.8': bpo-39594: Fix typo in os.times documentation (GH-18443) https://github.com/python/cpython/commit/4d4301782cbc789eedc5b76741d1028df579cfa5 -- __

[issue39498] Signpost security considerations in library

2020-02-10 Thread Carol Willing
Carol Willing added the comment: I agree that a helpful entry in the index would be a nice addition. Christian would be the person to start with since he probably has ideas what would be useful too. -- nosy: +willingc ___ Python tracker

[issue38324] [Windows] test_locale and test__locale failures on Windows

2020-02-10 Thread STINNER Victor
STINNER Victor added the comment: >>> loc=locale.getlocale(locale.LC_CTYPE) >>> loc ('tr_TR', 'ISO8859-9') getlocale() has issues on Unix, but worse issues on Windows. See: * bpo-12726 * bpo-20087 * bpo-20088 * bpo-23425 * bpo-33934 * bpo-38805 I never use getlocale() and I never unders

[issue38887] test_asyncio: test_pipe_handle() failed on AMD64 Windows7 SP1 3.x

2020-02-10 Thread STINNER Victor
STINNER Victor added the comment: I didn't see the failure recently, I close the issue. -- resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker __

[issue38515] regrtest main process timed out after 5 min on AMD64 FreeBSD CURRENT Shared 3.8

2020-02-10 Thread STINNER Victor
STINNER Victor added the comment: I didn't see the failure recently, I close the issue. -- resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker __

[issue38325] [Windows] test_winconsoleio failures

2020-02-10 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +17822 stage: -> patch review pull_request: https://github.com/python/cpython/pull/18448 ___ Python tracker ___ _

[issue38061] FreeBSD: Optimize subprocess.Popen(close_fds=True) using closefrom()

2020-02-10 Thread STINNER Victor
STINNER Victor added the comment: FreeBSD change has been merged: "lang/python{27,35,36,37,38}: Add closefrom(2) support" https://svnweb.freebsd.org/ports?view=revision&revision=518640 -- ___ Python tracker

[issue39601] brace escapes are not working in formatted string literal format specifications

2020-02-10 Thread JitterMan
JitterMan added the comment: My expectation is that doubling up the braces acts to escape them, meaning that characters between the braces is treated as simple text and passed to the __format__ method as is. The only processing that should occur on the format specification is to convert the

[issue39530] Documentation about comparisons between numeric types is misleading

2020-02-10 Thread Katherine Michel
Katherine Michel added the comment: I'm at the sprints at PyCascades and was looking for an issue to work on and came across this and wanted to know more about it. As I was doing some research, I found the terms "narrower" and "wider" to seem ambiguous. I'm assuming "narrower" to mean that an

[issue11871] test_default_timeout() of test_threading.BarrierTests failure: BrokenBarrierError

2020-02-10 Thread STINNER Victor
STINNER Victor added the comment: I didn't see this failure recently, I close the issue. -- resolution: -> out of date status: open -> closed ___ Python tracker ___ _

[issue39417] Link to "Python Packaging User Guide: Creating and using virtual environments" is broken

2020-02-10 Thread Carol Willing
Carol Willing added the comment: New changeset c4a65ed7fe342bd18b5a5b0eea3470dc4fc31160 by Ogi Moore in branch 'master': bpo-39417: Fix broken link to guide to building venvs (GH-18432) https://github.com/python/cpython/commit/c4a65ed7fe342bd18b5a5b0eea3470dc4fc31160 -- nosy: +willi

[issue39600] idle_test: test_fontlist_key() fails if two font families have the same name

2020-02-10 Thread Terry J. Reedy
Change by Terry J. Reedy : -- pull_requests: +17823 pull_request: https://github.com/python/cpython/pull/18449 ___ Python tracker ___ __

[issue21998] asyncio: support fork

2020-02-10 Thread STINNER Victor
STINNER Victor added the comment: There is no activity for 2 years. Asyncio is mature now. It seems like users learnt how to work around this issue, or don't use fork() with asyncio. I close the issue. -- resolution: -> out of date stage: -> resolved status: open -> closed ___

[issue31963] AMD64 Debian PGO 3.x buildbot: compilation failed with an internal compiler error in create_edge

2020-02-10 Thread STINNER Victor
STINNER Victor added the comment: I didn't see this failure recently, I close the issue. -- resolution: -> out of date status: open -> closed ___ Python tracker ___ _

[issue35501] "make coverage" should not leak coverage compiler flags to third party C extensions

2020-02-10 Thread STINNER Victor
STINNER Victor added the comment: It's unclear to me if it's a real issue or not. Moreover, I'm not comfortable to change the Makefile. So I just close the issue. -- resolution: -> out of date stage: -> resolved status: open -> closed ___ Python

[issue13826] Having a shlex example in the subprocess.Popen docs is confusing

2020-02-10 Thread Guido van Rossum
Change by Guido van Rossum : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue38325] [Windows] test_winconsoleio failures

2020-02-10 Thread STINNER Victor
STINNER Victor added the comment: New changeset 038770edc4680e9a3dc39bacb35a8358034fb901 by Victor Stinner in branch 'master': bpo-38325: Skip non-BMP tests of test_winconsoleio (GH-18448) https://github.com/python/cpython/commit/038770edc4680e9a3dc39bacb35a8358034fb901 --

[issue38325] [Windows] test_winconsoleio failures

2020-02-10 Thread STINNER Victor
STINNER Victor added the comment: I "fixed" the issue by skipping broken tests. If anyone wants to fix the underlying issue: go ahead and open an issue, it would be way better with a PR to fix these tests! In the meanwhile, skipping broken tests help to detect regressions (new issues).

[issue35361] Update libffi dependency to 3.2.1?

2020-02-10 Thread STINNER Victor
STINNER Victor added the comment: Python 2.7 and 3.6 don't accept bugfixes anymore. I close the issue. -- resolution: -> out of date stage: -> resolved status: open -> closed versions: +Python 2.7, Python 3.6 -Python 3.8 ___ Python tracker

[issue36194] Add "make regen-configure"

2020-02-10 Thread STINNER Victor
STINNER Victor added the comment: Most developers seem to be used to "autoconf && autoheader", so it's not obvious that "make regen-configure" would benefit to anyone. I just close the issue. -- resolution: -> rejected stage: -> resolved status: open -> closed

[issue36273] test_thread leaks a core dump on PPC64 AIX 3.x

2020-02-10 Thread STINNER Victor
STINNER Victor added the comment: I didn't see this failure on PPC64 AIX 3.x recently, I close the issue. -- resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker

[issue14408] Support ./python -m unittest in test_socket

2020-02-10 Thread STINNER Victor
STINNER Victor added the comment: I marked bpo-38063 as a duplicate of this issue. -- nosy: +vstinner ___ Python tracker ___ ___ Py

[issue39578] MagicMock specialisation instance can no longer be passed to new MagicMock instance

2020-02-10 Thread Elena Oat
Elena Oat added the comment: Here's the example I ran, that indeed fails in Python 3.8 and Python 3.9 (with different errors) and works in Python 3.7. from unittest.mock import MagicMock class CustomMock(MagicMock): def __init__(self): super().__init__(__something__='something'

[issue38063] Modify test_socket.py to use unittest test discovery

2020-02-10 Thread STINNER Victor
STINNER Victor added the comment: I mark this issue as a duplicate of bpo-14408. -- resolution: -> duplicate stage: patch review -> resolved status: open -> closed superseder: -> Support ./python -m unittest in test_socket ___ Python tracker

[issue39604] Document PyDateTimeAPI / PyDateTime_CAPI struct

2020-02-10 Thread STINNER Victor
Change by STINNER Victor : -- nosy: -vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue39577] venv --prompt argument is ignored

2020-02-10 Thread Andrea
Andrea added the comment: Operative system is OS X 10.15.3 (19D76) Catalina Python 3.7.4 installed via HomeBrew If I do this python -m venv ciao --prompt NewOne by the time I activate the environment, the prompt looks like (ciao) andreamoro@MacBookAir:~/Python Am I misunderstanding the behav

[issue39600] idle_test: test_fontlist_key() fails if two font families have the same name

2020-02-10 Thread Cheryl Sabella
Cheryl Sabella added the comment: I don't see the same duplicates that Victor listed, however I do see some duplicates. (...) DejaVu Sans DejaVu Sans Mono DejaVu Serif (...) Manjari Manjari Manjari (...) Mukti Narrow Mukti Narrow (...) Ubuntu Ubuntu Ubuntu Condensed Ubuntu Mono (...) ---

[issue38374] Remove weakref.ReferenceError entry from documentation

2020-02-10 Thread Roger Hurwitz
Roger Hurwitz added the comment: At PyCascades CPython sprint and reviewing this issue. -- nosy: +rogerhurwitz ___ Python tracker ___ _

[issue39600] idle_test: test_fontlist_key() fails if two font families have the same name

2020-02-10 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 96ce22706735779cf8cc46eaaa5ac61359364b5a by Terry Jan Reedy in branch 'master': bpo-39600: Adjust code, add idlelib/NEWS item (GH-18449) https://github.com/python/cpython/commit/96ce22706735779cf8cc46eaaa5ac61359364b5a --

[issue39600] idle_test: test_fontlist_key() fails if two font families have the same name

2020-02-10 Thread miss-islington
Change by miss-islington : -- pull_requests: +17824 pull_request: https://github.com/python/cpython/pull/18450 ___ Python tracker ___ __

[issue39600] idle_test: test_fontlist_key() fails if two font families have the same name

2020-02-10 Thread miss-islington
Change by miss-islington : -- pull_requests: +17825 pull_request: https://github.com/python/cpython/pull/18451 ___ Python tracker ___ __

[issue39600] idle_test: test_fontlist_key() fails if two font families have the same name

2020-02-10 Thread Terry J. Reedy
Terry J. Reedy added the comment: font.names() lists 'symbolic' family names guaranteed to exist. 'TkDefaultFont' is the default Text widget font on a particular OS. IDLE replaces that with 'TkFixedFont', which is translated to the actual family name on each OS: Courier on Windows (ugh) an

[issue39600] idle_test: test_fontlist_key() fails if two font families have the same name

2020-02-10 Thread Terry J. Reedy
Terry J. Reedy added the comment: Cheryl, it appears that only 'weight' words are deleted. For a given family, Tk only has a (user) settable 'bold', so other weight options must be 'baked in' to the family. Perhaps X11 allows more weight settings within a family, even if not exposed in Tk.

[issue39600] idle_test: test_fontlist_key() fails if two font families have the same name

2020-02-10 Thread miss-islington
miss-islington added the comment: New changeset 32c88407d24a700946e1a6429cd5ca616cb3a810 by Miss Islington (bot) in branch '3.7': bpo-39600: Adjust code, add idlelib/NEWS item (GH-18449) https://github.com/python/cpython/commit/32c88407d24a700946e1a6429cd5ca616cb3a810 -- __

[issue39600] idle_test: test_fontlist_key() fails if two font families have the same name

2020-02-10 Thread miss-islington
miss-islington added the comment: New changeset c372f9b9e758a22608b8df33423b7413d224fdad by Miss Islington (bot) in branch '3.8': bpo-39600: Adjust code, add idlelib/NEWS item (GH-18449) https://github.com/python/cpython/commit/c372f9b9e758a22608b8df33423b7413d224fdad -- __

[issue39601] brace escapes are not working in formatted string literal format specifications

2020-02-10 Thread Chris Wilcox
Chris Wilcox added the comment: Double curly braces do not indicate to not process the inner content. They indicate to include a literal curly brace. That said, I think there may be something not quite correct. I came up with an example based on the example in the format specifiers section

[issue38324] [Windows] test_locale and test__locale failures on Windows

2020-02-10 Thread Eryk Sun
Eryk Sun added the comment: > On Windows 10 (version 1903), ANSI code page 1252, OEM code page 437, > LC_CTYPE locale "French_France.1252" The CRT default locale (i.e. the empty locale "") uses the user locale, which is the "Format" value on the Region->Formats tab. It does not use the system

[issue37970] urllib.parse docstrings incomplete

2020-02-10 Thread Ido Michael
Ido Michael added the comment: Any update on this? Adding @Tal Einat on the PR -- ___ Python tracker ___ ___ Python-bugs-list maili

[issue37970] urllib.parse docstrings incomplete

2020-02-10 Thread Senthil Kumaran
Senthil Kumaran added the comment: Hi Ido, there was a change requested by a core-dev, Zachary , on your PR. > Please have a look at PEP 257 for docstring formatting guidelines. https://github.com/python/cpython/pull/16458/files#r353422155 Please let us know if that is addressed. -

[issue39585] Delete a pending item in _warning.c

2020-02-10 Thread ppperry
ppperry added the comment: What if a warning has a metaclass with a custom __getattribute__ method? -- nosy: +ppperry ___ Python tracker ___ __

[issue37970] urllib.parse docstrings incomplete

2020-02-10 Thread Ido Michael
Ido Michael added the comment: Hey Senthil, Yes the PEP guides was fixed a while ago, also the new comment of adding the same change for the second function were taken care of. -- ___ Python tracker ___

[issue39600] idle_test: test_fontlist_key() fails if two font families have the same name

2020-02-10 Thread Terry J. Reedy
Change by Terry J. Reedy : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ __

[issue39601] brace escapes are not working in formatted string literal format specifications

2020-02-10 Thread Zachary Ware
Change by Zachary Ware : -- components: -2to3 (2.x to 3.x conversion tool) ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue39601] brace escapes are not working in formatted string literal format specifications

2020-02-10 Thread Zachary Ware
Change by Zachary Ware : -- nosy: +eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue38374] Remove weakref.ReferenceError entry from documentation

2020-02-10 Thread Roger Hurwitz
Change by Roger Hurwitz : -- keywords: +patch pull_requests: +17826 stage: -> patch review pull_request: https://github.com/python/cpython/pull/18452 ___ Python tracker ___ __

[issue39605] Fix some casts to not cast away const

2020-02-10 Thread Andy Lester
New submission from Andy Lester : gcc -Wcast-qual turns up a number of instances of casting away constness of pointers. Some of these can be safely modified, by either: * Adding the const to the type cast, as in: -return _PyUnicode_FromUCS1((unsigned char*)s, size); +return _PyUnicod

[issue39605] Fix some casts to not cast away const

2020-02-10 Thread Andy Lester
Change by Andy Lester : -- keywords: +patch pull_requests: +17827 stage: -> patch review pull_request: https://github.com/python/cpython/pull/18453 ___ Python tracker ___

[issue39577] venv --prompt argument is ignored

2020-02-10 Thread Vinay Sajip
Vinay Sajip added the comment: > Am I misunderstanding the behaviour of the prompt argument? You can see from Karthikeyan's post how it's supposed to work, and how it does work in his example. It may be that something else is overwriting the prompt in your environment - we can't tell without

[issue39593] ctypes s_set() uses strlen() and so truncates string at null character

2020-02-10 Thread hai shi
hai shi added the comment: releated bpo: issue12769 s_get() in cfield.c function have similar behavior. So far, this is a planned action(lack evidence). -- ___ Python tracker __

[issue39606] Regression: it should be possible to close async iterators multiple times

2020-02-10 Thread Nathaniel Smith
New submission from Nathaniel Smith : In bpo-39386, the 'aclose' method for async generators was fixed so that the following broken code would correctly raise an error: # -- bad code -- async def agen_fn(): yield async def do_bad_thing(): agen = agen_fn() aclose_coro = agen.aclose

[issue38374] Remove weakref.ReferenceError entry from documentation

2020-02-10 Thread miss-islington
Change by miss-islington : -- pull_requests: +17828 pull_request: https://github.com/python/cpython/pull/18454 ___ Python tracker ___ __

[issue38374] Remove weakref.ReferenceError entry from documentation

2020-02-10 Thread miss-islington
Change by miss-islington : -- pull_requests: +17829 pull_request: https://github.com/python/cpython/pull/18455 ___ Python tracker ___ __

[issue38374] Remove weakref.ReferenceError entry from documentation

2020-02-10 Thread miss-islington
miss-islington added the comment: New changeset 4eb9f4313cfaea6a9611221024a1c54f5662cc37 by Roger Hurwitz in branch 'master': bpo-38374: Remove weakref.ReferenceError from docs (GH-18452) https://github.com/python/cpython/commit/4eb9f4313cfaea6a9611221024a1c54f5662cc37 -- nosy: +mis

[issue38374] Remove weakref.ReferenceError entry from documentation

2020-02-10 Thread Guido van Rossum
Change by Guido van Rossum : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue38374] Remove weakref.ReferenceError entry from documentation

2020-02-10 Thread miss-islington
miss-islington added the comment: New changeset fcfc3c8fbe3942e8deef15acc25bfa371db7766a by Miss Islington (bot) in branch '3.7': bpo-38374: Remove weakref.ReferenceError from docs (GH-18452) https://github.com/python/cpython/commit/fcfc3c8fbe3942e8deef15acc25bfa371db7766a -- _

[issue38374] Remove weakref.ReferenceError entry from documentation

2020-02-10 Thread miss-islington
miss-islington added the comment: New changeset 3f8d181446aa9d87e3773896c2695161ea8f6e42 by Miss Islington (bot) in branch '3.8': bpo-38374: Remove weakref.ReferenceError from docs (GH-18452) https://github.com/python/cpython/commit/3f8d181446aa9d87e3773896c2695161ea8f6e42 -- _

[issue39601] brace escapes are not working in formatted string literal format specifications

2020-02-10 Thread Eric V. Smith
Eric V. Smith added the comment: I always use datetime for testing such things. Its __format__() returns its argument, as long as you don't have '%' in it. I do agree that it's odd that the doubled braces cause the expression to be evaluated, but are still kept as single braces in the result

[issue39530] Documentation about comparisons between numeric types is misleading

2020-02-10 Thread Mark Dickinson
Mark Dickinson added the comment: Hi Katherine, My report was really just about the last sentence, but I agree that the "narrower" language is confusing here. If someone says that a type "A" is narrower than type "B", that suggests to my ears that "A" represents a subset of the values of "B

<    1   2