[issue34864] In Idle, Mac tabs make editor status line disappear.

2018-12-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: PR 6665, for #33397 (add font resizing to text view and help viewer) got listed because I discovered that increasing and decreasing font size with control wheel/+/- can cause the [close] button to disappear and reappear. (I hope to use FontSizer for editor t

[issue35507] multiprocessing: seg fault when creating RawArray from numpy ctypes

2018-12-14 Thread sh37211
New submission from sh37211 : After creating this post on StackOverflow... https://stackoverflow.com/questions/53757856/segmentation-fault-when-creating-multiprocessing-array ...it was suggested by one of the respondents that I file a bug report. The following code produces segmentation faults

[issue35482] can't open python368rc1.chm and python372rc1.chm

2018-12-14 Thread Ma Lin
Ma Lin added the comment: These first bad commits come from issue35054 -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue34864] In Idle, Mac tabs make editor status line disappear.

2018-12-14 Thread Cheryl Sabella
Change by Cheryl Sabella : -- pull_requests: +10414 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue35482] can't open python368rc1.chm and python372rc1.chm

2018-12-14 Thread Ma Lin
Ma Lin added the comment: python368rc1.chm has the same problem. I did a git bisect. On 3.6 branch, e825b4e1a9bbe1d4c561f4cbbe6857653ef13a15 is the first bad commit On 3.7 branch, 9a75b8470a2e0de5406edcabba140f023c99c6a9 is the first bad commit -- title: python372rc1.chm is ill -> can

[issue35208] IDLE: Squeezed lines count ignores window width

2018-12-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: My suggest simple rule would sqeeze it. With n = 50 and k = 75, if len(s) > n*k or s.count('\n') > n: squeeze(s) would squeeze at 3750. With k = 50, as 2500. I am not sure yet what to do about wrapping. For development, a count of actual lines might be m

[issue35402] Upgrade macOS and Windows installers to Tcl 8.6.9 and Tk 8.6.9.1

2018-12-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: Thank you both for the updates. After I wrote my previous message, I realized that there is a difference between updating tcl/tk to take advantage of bug fixes (after testing for regressions), and enhancing tkinter to give directly access to new tk features

[issue35488] pathlib Path.match does not behave as described

2018-12-14 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue35506] Doc: fix keyword `as` link from `import` and `try`

2018-12-14 Thread Cheryl Sabella
Change by Cheryl Sabella : -- keywords: +patch pull_requests: +10413 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-

[issue35506] Doc: fix keyword `as` link from `import` and `try`

2018-12-14 Thread Cheryl Sabella
New submission from Cheryl Sabella : In the documentation, using the :keyword:`as` role links to the `as` defined for the `with` statement, which could be confusing when it was used in the `import` or `try` section of the docs. https://docs.python.org/3/reference/simple_stmts.html#the-import-

[issue35504] `del OSError().characters_written` raises `SystemError`

2018-12-14 Thread Bachsau
Bachsau added the comment: Why is it using -1 instead of NULL as the "not-set-indicator"? -1 is a valid python integer, that can be assigned, even if it doesn't make sense in the context, while `None` can not, because it's missing an `__index__` method. -- __

[issue35505] Test test_imaplib fail in test_imap4_host_default_value

2018-12-14 Thread Petr Stupka
New submission from Petr Stupka : OS: CentOS Linux release 7.6.1810 (Core) == FAIL: test_imap4_host_default_value (test.test_imaplib.TestImaplib) -- Traceback

[issue35502] Memory leak in xml.etree.ElementTree.iterparse

2018-12-14 Thread Jess Johnson
Change by Jess Johnson : -- versions: +Python 3.6 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue35482] python372rc1.chm is ill

2018-12-14 Thread Steve Dower
Steve Dower added the comment: You're right, this is doing something weird on master as well. I'll take a look when I get a chance, but if anyone else wants to dive in feel free. In both cases, the doc file cannot be opened. Marking this as a release blocker and adding RM to the bug for awa

[issue35504] `del OSError().characters_written` raises `SystemError`

2018-12-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: PR 11172 makes deleting characters_written to be as for other non-special attributes. Deleting it will be successful only if it was set before, and will raise an AttributeError otherwise. >>> e = OSError() >>> e.characters_written = 1 >>> del e.characters_

[issue35504] `del OSError().characters_written` raises `SystemError`

2018-12-14 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +10412 stage: -> patch review ___ Python tracker ___ ___ Python-bug

[issue35488] pathlib Path.match does not behave as described

2018-12-14 Thread anthony shaw
anthony shaw added the comment: Raised a PR for the test. Will look into doc PR -- ___ Python tracker ___ ___ Python-bugs-list mail

[issue35488] pathlib Path.match does not behave as described

2018-12-14 Thread anthony shaw
Change by anthony shaw : -- keywords: +patch pull_requests: +10410 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-li

[issue35450] venv module doesn't create a copy of python binary by default

2018-12-14 Thread Marcin
Marcin added the comment: Actually the documentation hasn't been regenerated yet. I hope it will over night? -- ___ Python tracker ___ ___

[issue35504] `del OSError().characters_written` raises `SystemError`

2018-12-14 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- assignee: -> serhiy.storchaka nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list m

[issue35504] `del OSError().characters_written` raises `SystemError`

2018-12-14 Thread Bachsau
Change by Bachsau : -- title: `del OSError().characters_written` raises SystemError -> `del OSError().characters_written` raises `SystemError` ___ Python tracker ___ _

[issue35504] `del OSError().characters_written` raises SystemError

2018-12-14 Thread Bachsau
New submission from Bachsau : `del OSError().characters_written` raises `SystemError`: "null argument to internal routine" I don't know why anyone should try this in productive code, but since the documentation says, that every `SystemError` should be reported, I'm doing that. My suggestion w

[issue35502] Memory leak in xml.etree.ElementTree.iterparse

2018-12-14 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +10408 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue25638] Verify the etree_parse and etree_iterparse benchmarks are working appropriately

2018-12-14 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +10409 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue35502] Memory leak in xml.etree.ElementTree.iterparse

2018-12-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The problem was with detecting a reference cycle containing a TreeBuilder. -- nosy: +eli.bendersky, scoder versions: +Python 3.8 ___ Python tracker ___

[issue35502] Memory leak in xml.etree.ElementTree.iterparse

2018-12-14 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +10407 stage: -> patch review ___ Python tracker ___ ___ Python-bug

[issue35495] argparse does not honor default argument for nargs=argparse.REMAINDER argument

2018-12-14 Thread Terry J. Reedy
Change by Terry J. Reedy : -- nosy: +bethard stage: -> test needed versions: +Python 3.8 -Python 3.4, Python 3.5 ___ Python tracker ___ ___

[issue35492] Missing colon on func statement in library/sys doc

2018-12-14 Thread Terry J. Reedy
Change by Terry J. Reedy : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ __

[issue35486] subprocess module import hooks breaks back compatibility

2018-12-14 Thread Terry J. Reedy
Change by Terry J. Reedy : -- nosy: +brett.cannon, eric.snow, ncoghlan stage: -> test needed title: subprocess module breaks backwards compatibility with import hooks -> subprocess module import hooks breaks back compatibility type: -> behavior __

[issue35482] python372rc1.chm is ill

2018-12-14 Thread Terry J. Reedy
Change by Terry J. Reedy : -- components: +Windows nosy: +paul.moore, steve.dower, tim.golden, zach.ware ___ Python tracker ___ ___

[issue35480] argparse: add a full fledged parser as a subparser

2018-12-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: I presume you mean to close this. -- nosy: +terry.reedy stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue35472] python 3.7.2 rc1 bumped the build requirements for no reason

2018-12-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: Should we add '(subject to change in any release)' after # Require Sphinx 1.7 for build. Matthias, I presume you are on some Linux. Would a script to temporarily change conf.py to build the docs work for you? To be reasonably sure that 1.6.6 is sufficient fo

[issue35502] Memory leak in xml.etree.ElementTree.iterparse

2018-12-14 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- assignee: -> serhiy.storchaka nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list m

[issue35503] os.path.islink() works with cygwin installation but not python.org

2018-12-14 Thread pmpp
pmpp added the comment: afaik only cygwin and msys2 python flavours can handle *various* links and junctions. ( usefull tool http://schinagl.priv.at/nt/hardlinkshellext/linkshellextension.html ) and testing symlinks is may be disabled in MSVCRT paths https://github.com/python/cpython/pull/1

[issue35503] os.path.islink() works with cygwin installation but not python.org

2018-12-14 Thread Benjamin Ward
New submission from Benjamin Ward : I have python.org's Python27 installed on my laptop. In my Documnets/tmp folder/directory I created three "directories" (see below) and performed os.path.islink() on all three. in cmd window: (not dir output and prompt have be been shortened) *\Documents\

[issue35457] robotparser reads empty robots.txt file as "all denied"

2018-12-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: https://docs.python.org/2.7/library/robotparser.html#module-robotparser and https://docs.python.org/3/library/urllib.robotparser.html#module-urllib.robotparser refers users, for file structure, to http://www.robotstxt.org/orig.html. This says nothing about the

[issue35453] pathlib.Path: glob and rglob should accept PathLike patterns

2018-12-14 Thread Terry J. Reedy
Change by Terry J. Reedy : -- stage: -> test needed type: -> enhancement versions: +Python 3.8 -Python 3.7 ___ Python tracker ___

[issue35450] venv module doesn't create a copy of python binary by default

2018-12-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: Close this? -- nosy: +terry.reedy versions: -Python 3.5 ___ Python tracker ___ ___ Python-bugs-l

[issue35449] documenting objects

2018-12-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: The reason that modules, classes, and functions need a special rule for assigning the .__doc__ attribute is that one cannot get a reference to the module, class, or function within the body of its definition. And putting the docstring at the top of a file o

[issue35257] Avoid leaking linker flags into distutils: add PY_LDFLAGS_NODIST

2018-12-14 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +10406 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue35450] venv module doesn't create a copy of python binary by default

2018-12-14 Thread Brett Cannon
Brett Cannon added the comment: New changeset d5176fe2bcd35dc8d70d13220b58fa7ccd05b47a by Brett Cannon (Miss Islington (bot)) in branch '3.7': bpo-35450: reflect in docs that venv module is not always creating a copy of the Python binary (GH-11144) (GH-11167) https://github.com/python/cpytho

[issue35450] venv module doesn't create a copy of python binary by default

2018-12-14 Thread Brett Cannon
Brett Cannon added the comment: New changeset 1fb312ce1f147ea84ecb6f5993a20d1a85c53dc3 by Brett Cannon (Miss Islington (bot)) in branch '3.6': bpo-35450: reflect in docs that venv module is not always creating a copy of the Python binary (GH-11144) (GH-11168) https://github.com/python/cpytho

[issue35450] venv module doesn't create a copy of python binary by default

2018-12-14 Thread miss-islington
Change by miss-islington : -- pull_requests: +10405 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue35450] venv module doesn't create a copy of python binary by default

2018-12-14 Thread miss-islington
Change by miss-islington : -- pull_requests: +10404 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue35450] venv module doesn't create a copy of python binary by default

2018-12-14 Thread miss-islington
miss-islington added the comment: New changeset f5107dfd42121ef40b13eb678705802f0ff02cf9 by Miss Islington (bot) (mkkot) in branch 'master': bpo-35450: reflect in docs that venv module is not always creating a … (GH-11144) https://github.com/python/cpython/commit/f5107dfd42121ef40b13eb6787058

[issue35502] Memory leak in xml.etree.ElementTree.iterparse

2018-12-14 Thread STINNER Victor
STINNER Victor added the comment: Oops, there was a typo, you should read kB: 1 calls: 15.3 kB / call (total: 15.3 kB) 100 calls: 15.3 kB / call (total: 1527.7 kB) 1000 calls: 15.3 kB / call (total: 15265.0 kB) -- Added file: https://bugs.python.org/file47999/run2.py

[issue35502] Memory leak in xml.etree.ElementTree.iterparse

2018-12-14 Thread STINNER Victor
Change by STINNER Victor : Removed file: https://bugs.python.org/file47998/run.py ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue35502] Memory leak in xml.etree.ElementTree.iterparse

2018-12-14 Thread STINNER Victor
STINNER Victor added the comment: I wrote attached run.py which confirms a leak using tracemalloc: $ python3 run.py 1 calls: 15.3B / call (total: 15.3 kB) 100 calls: 15.3B / call (total: 1527.7 kB) 1000 calls: 15.3B / call (total: 15265.0 kB) -- nosy: +vstinner Added file: https://bu

[issue35448] ConfigParser .read() - handling of nonexistent files

2018-12-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: Since the code and doc agree, and since the proposal is to add a call parameter, this would be an enhancement for next release only, not a bug fix. The proposal seems reasonable. I might use it for IDLE. IDLE uses .read within this subclass method. def

[issue32810] Expose ags_gen and agt_gen in asynchronous generators

2018-12-14 Thread Zackery Spytz
Zackery Spytz added the comment: I've created a PR for this issue. -- nosy: +ZackerySpytz versions: +Python 3.8 -Python 3.7 ___ Python tracker ___

[issue35502] Memory leak in xml.etree.ElementTree.iterparse

2018-12-14 Thread Jess Johnson
New submission from Jess Johnson : When given xml that that would raise a ParseError, but parsing is stopped before the ParseError is raised, xml.etree.ElementTree.iterparse leaks memory. Example: import gc from io import StringIO import xml.etree.ElementTree as etree import objgraph def

[issue32810] Expose ags_gen and agt_gen in asynchronous generators

2018-12-14 Thread Zackery Spytz
Change by Zackery Spytz : -- keywords: +patch pull_requests: +10403 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-l

[issue35431] Add a function for computing binomial coefficients to the math module

2018-12-14 Thread Tim Peters
Tim Peters added the comment: Just for fun, here's a gonzo implementation (without arg-checking) using ideas from the sketch. All factors of 2 are shifted out first, and all divisions are done before any multiplies. For large arguments, this can run much faster than a dumb loop. For exampl

[issue35441] Dead (and buggy) code due to mishandling of PyList_SetItem() errors

2018-12-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Needed to backport it to 2.7. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue35442] Chain of several subcommands in argparse

2018-12-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: A better place to discuss format and API is python-ideas list. Almost certainly will see responses there. -- nosy: +terry.reedy stage: -> test needed versions: +Python 3.8 ___ Python tracker

[issue35499] "make profile-opt" overrides CFLAGS_NODIST

2018-12-14 Thread STINNER Victor
STINNER Victor added the comment: I also tested CFLAGS, just in case. Current behavior: $ git clean -fdx $ ./configure --with-pydebug $ make profile-opt CFLAGS="-O1" (...) gcc -pthread -c -Wno-unused-result -Wsign-compare -g -Og -Wall -O1 -std=c99 -Wextra -Wno-unused-result -Wno-unused-par

[issue35441] Dead (and buggy) code due to mishandling of PyList_SetItem() errors

2018-12-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: Can this be closed? -- nosy: +terry.reedy ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue35498] Parents objects in pathlib.Path don't support slices as __getitem__ arguments

2018-12-14 Thread Joshua Cannon
Joshua Cannon added the comment: If it is deemed a bug which needs to be fixed, I've gone ahead and attached the PR to fix it. CLA signage is pending approval at the company I work for, with most people out for the holidays (so it might be a day or two turnaround). -- _

[issue35498] Parents objects in pathlib.Path don't support slices as __getitem__ arguments

2018-12-14 Thread Joshua Cannon
Change by Joshua Cannon : -- keywords: +patch pull_requests: +10401 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-l

[issue35257] Avoid leaking linker flags into distutils: add PY_LDFLAGS_NODIST

2018-12-14 Thread STINNER Victor
STINNER Victor added the comment: See also: * bpo-35499: "make profile-opt" overrides CFLAGS_NODIST * bpo-35501: "make coverage" should use leak coverage flags to third party C extensions. -- ___ Python tracker

[issue35499] "make profile-opt" overrides CFLAGS_NODIST

2018-12-14 Thread STINNER Victor
STINNER Victor added the comment: I wrote PR 11164 to fix the issue. Example: $ git clean -fdx $ ./configure --with-pydebug $ make profile-opt CFLAGS_NODIST="-O1" (...) gcc -pthread -c -Wno-unused-result -Wsign-compare -g -Og -Wall-std=c99 -Wextra -Wno-unused-result -Wno-unused-parameter

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

2018-12-14 Thread STINNER Victor
New submission from STINNER Victor : "make coverage" modifies CFLAGS and LIBS, Makefile.pre.in: coverage: @echo "Building with support for coverage checking:" $(MAKE) clean profile-removal $(MAKE) @DEF_MAKE_RULE@ CFLAGS="$(CFLAGS) -O0 -pg -fprofile-arcs -ftest-coverage"

[issue35500] Align expected and actual calls on mock.assert_called_with error message

2018-12-14 Thread Karthikeyan Singaravelan
New submission from Karthikeyan Singaravelan : Currently, assert_called_with has expected calls list in the same line with AssertionError that causes the visualizing the difference to be hard. It will be great if Expected call occurs on the next line so that the diff is improved. The change h

[issue35499] "make profile-opt" overrides CFLAGS_NODIST

2018-12-14 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +10400 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-

[issue26415] Excessive peak memory consumption by the Python parser

2018-12-14 Thread A. Skrobov
A. Skrobov added the comment: I've run pyperformance (0.7.0) with my updated patch, and posted results at the PR page. They look encouraging enough. -- ___ Python tracker ___

[issue35499] "make profile-opt" overrides CFLAGS_NODIST

2018-12-14 Thread STINNER Victor
New submission from STINNER Victor : Makefile.pre.in contains the rule: build_all_generate_profile: $(MAKE) @DEF_MAKE_RULE@ CFLAGS_NODIST="$(CFLAGS) $(PGO_PROF_GEN_FLAG)" LDFLAGS="$(LDFLAGS) $(PGO_PROF_GEN_FLAG)" LIBS="$(LIBS)" I'm not sure that CFLAGS_NODIST="$(CFLAGS) $(PGO_PROF_GEN

[issue27715] call-matcher breaks if a method is mocked with spec=True

2018-12-14 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: I think the original issue with patch.object reported by Carl is different from the one reported by David for autospec. Analyzed the report by David and When we call autospec on a class with instance=True then the spec is modeled on the signature o

[issue35257] Avoid leaking linker flags into distutils: add PY_LDFLAGS_NODIST

2018-12-14 Thread STINNER Victor
STINNER Victor added the comment: There are multiple ways to configure and build Python, we should try most combinations: * ./configure --enable-shared * ./configure --with-lto * ./configure --enable-optimizations * make profile-opt * make * Maybe also: make install Test: * Build Python and

[issue35402] Upgrade macOS and Windows installers to Tcl 8.6.9 and Tk 8.6.9.1

2018-12-14 Thread Steve Dower
Steve Dower added the comment: New changeset 77824ef6e50e8a47a0b57df2d9f3b48bffd414ac by Steve Dower (Miss Islington (bot)) in branch '3.7': bpo-35402: Update Windows build to use Tcl and Tk 8.6.9 (GH-11146) https://github.com/python/cpython/commit/77824ef6e50e8a47a0b57df2d9f3b48bffd414ac -

[issue35348] Problems with handling the file command output in platform.architecture()

2018-12-14 Thread STINNER Victor
STINNER Victor added the comment: I don't understand the purpose of the 'linkage' information of platform.architecture(). Does anyone care if Python is an ELF program or a WindowsPE program? Maybe it was useful 20 years ago when there were COFF on Unix, but right now ELF is the defacto stand

[issue35402] Upgrade macOS and Windows installers to Tcl 8.6.9 and Tk 8.6.9.1

2018-12-14 Thread miss-islington
Change by miss-islington : -- pull_requests: +10399 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue35402] Upgrade macOS and Windows installers to Tcl 8.6.9 and Tk 8.6.9.1

2018-12-14 Thread Steve Dower
Steve Dower added the comment: New changeset f8e9bd568adf85c1e4aea1dda542a96b027797e2 by Steve Dower in branch 'master': bpo-35402: Update Windows build to use Tcl and Tk 8.6.9 (GH-11146) https://github.com/python/cpython/commit/f8e9bd568adf85c1e4aea1dda542a96b027797e2 -- _

[issue35412] test_future4 ran no test

2018-12-14 Thread STINNER Victor
Change by STINNER Victor : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ __

[issue35498] Parents objects in pathlib.Path don't support slices as __getitem__ arguments

2018-12-14 Thread Joshua Cannon
New submission from Joshua Cannon : I would expect the following to work: ``` >>> import pathlib >>> pathlib.Path.cwd().parents[0:1] Traceback (most recent call last): File "", line 1, in File "...\Python36\lib\pathlib.py", line 593, in __getitem__ if idx < 0 or idx >= len(self): TypeEr

[issue35497] Libary select docs enhance

2018-12-14 Thread Manjusaka
Change by Manjusaka : -- keywords: +patch pull_requests: +10398 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list

[issue35497] Libary select docs enhance

2018-12-14 Thread Manjusaka
New submission from Manjusaka : Since Python 3.7, Python adds a mask variable named EPOLLEXCLUSIVE for select.epoll. The mask variable is supported by the Linux Kernel since Kernel 4.5. So we can add a tip in this part of Python docs to notice the people the case. -- components: Libr

[issue35494] Inaccurate error message for f-string

2018-12-14 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- type: -> enhancement versions: +Python 3.8 -Python 3.7 ___ Python tracker ___ ___ Python-bugs-list

[issue35494] Inaccurate error message for f-string

2018-12-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: PR 11161 uses an approach similar to issue33306. -- dependencies: +Improving SyntaxError for unmatched parentheses ___ Python tracker ___ _

[issue35494] Inaccurate error message for f-string

2018-12-14 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +10397 stage: -> patch review ___ Python tracker ___ ___ Python-bug

[issue35496] left-to-right violation in match order

2018-12-14 Thread Steve Newcomb
New submission from Steve Newcomb : Documentation for the re module insists that matches are made left-to-right within the alternatives delimited by an "or* | group. I seem to have found a case where the rightmost alternative is matched unless it (and only it) is commented out. See attached

[issue35495] argparse does not honor default argument for nargs=argparse.REMAINDER argument

2018-12-14 Thread Ryan Govostes
Change by Ryan Govostes : -- versions: +Python 2.7, Python 3.4, Python 3.5, Python 3.6, Python 3.7 ___ Python tracker ___ ___ Python

[issue35495] argparse does not honor default argument for nargs=argparse.REMAINDER argument

2018-12-14 Thread Ryan Govostes
New submission from Ryan Govostes : import argparse parser = argparse.ArgumentParser() parser.add_argument('things', nargs=argparse.REMAINDER, default=['nothing']) parser.parse_args([]) >>> Namespace(things=[]) Since there were no unparsed arguments remaining, the `default` setting for `things

[issue35348] Problems with handling the file command output in platform.architecture()

2018-12-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: What result of platform.architecture() do you expect for an universal binary? -- ___ Python tracker ___ ___

[issue35348] Problems with handling the file command output in platform.architecture()

2018-12-14 Thread Ronald Oussoren
Ronald Oussoren added the comment: BTW. A related problem with platform.architecture() is that it doesn't know how to deal with fat binaries (such as those found on macOS). As an example: $ file /usr/bin/python /usr/bin/python: Mach-O universal binary with 2 architectures: [i386:Mach-O exe

[issue35348] Problems with handling the file command output in platform.architecture()

2018-12-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: PR 11160 is an alternate solution which strips the filename in the output. It does not matter if the filename contains ":", because the format of the output in the POSIX locale is strictly specified. -- ___ Pyth

[issue35494] Inaccurate error message for f-string

2018-12-14 Thread Sebastian Linke
Sebastian Linke added the comment: The same behavior applies to f'{spam[}' and f'{spam(}'. Also to f'{spam{}', but that might be expected. This message is more clear: >>> f'{spam(' File "", line 1 SyntaxError: f-string: mismatched '(', '{', or '[' Perhaps you want to apply that to the abov

[issue35348] Problems with handling the file command output in platform.architecture()

2018-12-14 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +10396 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue35494] Inaccurate error message for f-string

2018-12-14 Thread Eric V. Smith
Eric V. Smith added the comment: Go ahead, Serhiy. Thanks! -- assignee: eric.smith -> serhiy.storchaka ___ Python tracker ___ ___ P

[issue35348] Problems with handling the file command output in platform.architecture()

2018-12-14 Thread STINNER Victor
STINNER Victor added the comment: A convervative approach would be to leave stable branches unchanged and use -b in the master branch. -- ___ Python tracker ___ _

[issue35348] Problems with handling the file command output in platform.architecture()

2018-12-14 Thread STINNER Victor
STINNER Victor added the comment: > We can also check that the output starts with executable+': ' and strip this > prefix. Technically, on UNIX, ':' is valid in a filename. Filename examples which contain ':' on my Fedora 29: /usr/share/man/man3/List::Util.3pm.gz /usr/share/usb_modeswitch/0

[issue35348] Problems with handling the file command output in platform.architecture()

2018-12-14 Thread STINNER Victor
STINNER Victor added the comment: In 2.7 branch, _syscmd_file() only used -b option during one day (no Python 2.7.x release used -b): * Oct 4, 2012: commit 95038fa526c8b93e42c59b0735edf1c80b7b6449 added -b: "Closes #16112: platform.architecture does not correctly escape argument to /usr/bin

[issue35494] Inaccurate error message for f-string

2018-12-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I can take this issue if you do not mind. -- nosy: +serhiy.storchaka ___ Python tracker ___ ___

[issue35494] Inaccurate error message for f-string

2018-12-14 Thread Eric V. Smith
Change by Eric V. Smith : -- assignee: -> eric.smith nosy: +eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue35494] Inaccurate error message for f-string

2018-12-14 Thread Sebastian Linke
New submission from Sebastian Linke : Python 3.7.1 (v3.7.1:260ec2c36a, Oct 20 2018, 14:05:16) [MSC v.1915 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> spam = 'spam' >>> f'{spam[0}' File "", line 1 SyntaxError: f-string: expecting '}' The

[issue35348] Problems with handling the file command output in platform.architecture()

2018-12-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I tested that the "-b" option is supported on Linux, *BSD and OpenIndiana. But it is not a part of POSIX. So perhaps we should fall back to "file" without "-b" if "file -b" failed. We can also check that the output starts with executable+': ' and strip thi

[issue34279] RFC: issue a warning in regrtest when no tests have been executed?

2018-12-14 Thread STINNER Victor
STINNER Victor added the comment: New changeset 34b7c438b8dc0a1e7e23c9b2d7ce7f8a7c31b4f4 by Victor Stinner in branch '2.7': bpo-34279: regrtest consider that skipped tests are ran (GH-11132) (GH-11158) https://github.com/python/cpython/commit/34b7c438b8dc0a1e7e23c9b2d7ce7f8a7c31b4f4 ---

[issue35412] test_future4 ran no test

2018-12-14 Thread STINNER Victor
STINNER Victor added the comment: New changeset 34b7c438b8dc0a1e7e23c9b2d7ce7f8a7c31b4f4 by Victor Stinner in branch '2.7': bpo-34279: regrtest consider that skipped tests are ran (GH-11132) (GH-11158) https://github.com/python/cpython/commit/34b7c438b8dc0a1e7e23c9b2d7ce7f8a7c31b4f4 ---

[issue35424] multiprocessing.Pool: emit ResourceWarning

2018-12-14 Thread STINNER Victor
STINNER Victor added the comment: See this discussion: [Python-Dev] Usage of the multiprocessing API and object lifetime https://mail.python.org/pipermail/python-dev/2018-December/155946.html -- ___ Python tracker

[issue35471] Remove macpath module

2018-12-14 Thread STINNER Victor
Change by STINNER Victor : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ __

[issue35471] Remove macpath module

2018-12-14 Thread STINNER Victor
STINNER Victor added the comment: New changeset d7538dd5e3e04a8db22e1470cb2ed696bf3be160 by Victor Stinner in branch 'master': bpo-35471: Remove the macpath module (GH-11129) https://github.com/python/cpython/commit/d7538dd5e3e04a8db22e1470cb2ed696bf3be160 -- __

  1   2   >