[issue37399] XML text behaviour change if there are comments

2019-06-28 Thread Dima Tisnek
Dima Tisnek added the comment: Yes that does look suspicious! -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue37366] Add an "onitem" callback parameter to shutil.rmtree()

2019-06-28 Thread Jeffrey Kintscher
Jeffrey Kintscher added the comment: Yes, onerror allows you to delete an undeletable item. But, in the case of a mount point, the contents of the mounted filesystem get deleted *before* the mount point triggers onerror. This is the case described in issue #36422. The behavior provided by

Re: Creating a Windows executable on a Linux system

2019-06-28 Thread Cecil Westerhof
Cecil Westerhof writes: > I need to write a Python desktop program. I create it on a Linux > system, but it has to run on a Windows system. When looking at how to > create an executable it seems that you need to be on a Windows system > to create a Windows executable. Is this true, or is it

[issue37432] Fix a small param type in allocation.rst

2019-06-28 Thread miss-islington
Change by miss-islington : -- pull_requests: +14258 pull_request: https://github.com/python/cpython/pull/14442 ___ Python tracker ___

[issue37432] Fix a small param type in allocation.rst

2019-06-28 Thread Inada Naoki
Inada Naoki added the comment: New changeset b4bee03087a3c70cb040e2ce569c828860ed8e87 by Inada Naoki (Hai Shi) in branch 'master': bpo-37432: Doc: Fix signature of PyObject_Del() (GH-14430) https://github.com/python/cpython/commit/b4bee03087a3c70cb040e2ce569c828860ed8e87 -- nosy:

[issue37366] Add an "onitem" callback parameter to shutil.rmtree()

2019-06-28 Thread Christian Heimes
Christian Heimes added the comment: I'm with Giampaolo. I'm also concerned that the new callback will make the rmtree function too complicated. It's not a one-size-fits-all solution, but it covers most uses cases. -- nosy: +christian.heimes versions: -Python 3.7, Python 3.8

[issue36956] Calling "functions" used to implement generators/comps easily cause crash

2019-06-28 Thread Raymond Hettinger
Raymond Hettinger added the comment: ISTM this report is close to that covered by the traditional stance that word code hacks aren't protected from crashes because trying to do can be complicated, can be expensive, and isn't always possible. I'm not really sure where this falls on the

[issue37390] Generate table of audit events for docs

2019-06-28 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Thanks Steve, the page will serve as a good reference to all audit events. -- ___ Python tracker ___

[issue36956] Calling "functions" used to implement generators/comps easily cause crash

2019-06-28 Thread Jeffrey Kintscher
Jeffrey Kintscher added the comment: What is the preferred behavior? Raise an exception of some kind? -- ___ Python tracker ___

Re: Plumbing behind super()

2019-06-28 Thread Thomas Jollans
On 28/06/2019 02:13, adam.pre...@gmail.com wrote: I'm trying to mimick Python 3.6 as a .NET science project and have started to get into subclassing. The super() not-a-keyword-honestly-guys has tripped me up. I have to admit that I've professionally been doing a ton Python 2.7, so I'm not

[issue36956] Calling "functions" used to implement generators/comps easily cause crash

2019-06-28 Thread Jeffrey Kintscher
Jeffrey Kintscher added the comment: Specifically, the crash occurs in Python/ceval.c function _PyEval_EvalFrameDefault() in the TARGET(FOR_ITER) case at line 3198 (master branch): PyObject *next = (*iter->ob_type->tp_iternext)(iter); It segfaults because tp_iternext is NULL. --

Re: Creating a Windows executable on a Linux system

2019-06-28 Thread Cecil Westerhof
Cecil Westerhof writes: > Cecil Westerhof writes: > >> I need to write a Python desktop program. I create it on a Linux >> system, but it has to run on a Windows system. When looking at how to >> create an executable it seems that you need to be on a Windows system >> to create a Windows

[issue37432] Fix a small param type in allocation.rst

2019-06-28 Thread miss-islington
Change by miss-islington : -- pull_requests: +14257 pull_request: https://github.com/python/cpython/pull/14441 ___ Python tracker ___

Re: Copying a row from a range of Excel files to another

2019-06-28 Thread Cecil Westerhof
MRAB writes: > On 2019-06-26 22:14, Cecil Westerhof wrote: >> MRAB writes: >> >>> Does Workbook support the 'with' statement? >>> >>> If it does, then that's the best way of doing it. >>> >>> (Untested) >>> >>> with Workbook() as wb_out: >>> for filepath in filepathArr: >>>

[issue37432] Fix a small param type in allocation.rst

2019-06-28 Thread miss-islington
miss-islington added the comment: New changeset 99f2f851773c6e481e80e8e157d9f5ad4fc5cbb3 by Miss Islington (bot) in branch '3.7': bpo-37432: Doc: Fix signature of PyObject_Del() (GH-14430) https://github.com/python/cpython/commit/99f2f851773c6e481e80e8e157d9f5ad4fc5cbb3 -- nosy:

[issue37432] Fix a small param type in allocation.rst

2019-06-28 Thread miss-islington
miss-islington added the comment: New changeset ad00640f936956c3a19834b6cd12b04edf53a776 by Miss Islington (bot) in branch '3.8': bpo-37432: Doc: Fix signature of PyObject_Del() (GH-14430) https://github.com/python/cpython/commit/ad00640f936956c3a19834b6cd12b04edf53a776 --

Re: Make sure the window title is visible in tkinter

2019-06-28 Thread Cecil Westerhof
Cecil Westerhof writes: > Wildman writes: > >> On Wed, 26 Jun 2019 13:25:15 +0200, Cecil Westerhof wrote: >> >>> I need to write a desktop program. I choose to use tkinter. How can I >>> make sure the window title is visible? For example when I have the >>> following code: >>> from tkinter

[issue37439] Add random.binomialvariate()

2019-06-28 Thread Raymond Hettinger
New submission from Raymond Hettinger : This a small snippet of code I written dozens of times. It would be nice to have this in the library along with the other distributions. def binomialvariate(n, p): ''' Binomial distribution for the number of successes in *n* Bernoulli

Re: Only a message at the highest exception

2019-06-28 Thread Chris Angelico
On Fri, Jun 28, 2019 at 7:33 PM Cecil Westerhof wrote: > > I have a tkinter program where I have a function generate_report which > in a try block calls the function append_row. This function has also a > try block. When they get an exception they give message. But when > append_row has already

[issue37438] ConfigParser.set() docs should mention allow_no_value

2019-06-28 Thread Nick Coghlan
New submission from Nick Coghlan : Reviewing some code today, I came across a ConfigParser.set() call that only specified the section and key, with the value argument missing. If you look at the ConfigParser.set() docs, this seems like incorrect code, as those docs indicate that the value

Re: Only a message at the highest exception

2019-06-28 Thread Cecil Westerhof
Chris Angelico writes: > On Fri, Jun 28, 2019 at 7:33 PM Cecil Westerhof wrote: >> >> I have a tkinter program where I have a function generate_report which >> in a try block calls the function append_row. This function has also a >> try block. When they get an exception they give message. But

[issue37335] Fix unexpected ASCII aliases in locale coercion tests.

2019-06-28 Thread Jakub Kulik
Change by Jakub Kulik : -- title: Add 646 ASCII alias to locale coercion tests. -> Fix unexpected ASCII aliases in locale coercion tests. ___ Python tracker ___

[issue37335] Fix unexpected ASCII aliases in locale coercion tests.

2019-06-28 Thread Jakub Kulik
Change by Jakub Kulik : -- pull_requests: +14259 pull_request: https://github.com/python/cpython/pull/14443 ___ Python tracker ___

Only a message at the highest exception

2019-06-28 Thread Cecil Westerhof
I have a tkinter program where I have a function generate_report which in a try block calls the function append_row. This function has also a try block. When they get an exception they give message. But when append_row has already given a message then generate_report should not. To implement this

[issue37432] Fix a small param type in allocation.rst

2019-06-28 Thread hai shi
Change by hai shi : -- stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing

Re: Only a message at the highest exception

2019-06-28 Thread Cameron Simpson
On 28Jun2019 12:17, Cecil Westerhof wrote: Chris Angelico writes: On Fri, Jun 28, 2019 at 7:33 PM Cecil Westerhof wrote: I have a tkinter program where I have a function generate_report which in a try block calls the function append_row. This function has also a try block. When they get an

[issue34022] 6 tests fail using SOURCE_DATE_EPOCH env var

2019-06-28 Thread STINNER Victor
STINNER Victor added the comment: > With this change, only 3 tests fail on 3.7, and all these 3 fail because of > zipimport: test_cmd_line_script, test_multiprocessing_main_handling and > test_runpy. These tests were fixed by: commit a6e956bcb0edbfe7f18af9be2215a5326ea6bf05 Author: Elvis

[issue37337] Add _PyObject_VectorcallMethod() function

2019-06-28 Thread Inada Naoki
Inada Naoki added the comment: New changeset b1263d5a60d3f7ab02dd28409fff59b3815a3f67 by Inada Naoki (Jeroen Demeyer) in branch 'master': bpo-37337: Add _PyObject_VectorcallMethod() (GH-14228) https://github.com/python/cpython/commit/b1263d5a60d3f7ab02dd28409fff59b3815a3f67 --

Re: Hiding a progressbar in tkinter

2019-06-28 Thread Cecil Westerhof
MRAB writes: > On 2019-06-26 16:47, Cecil Westerhof wrote: >> I just started with GUI stuff in tkinter. I have a progressbar, but I >> want it to be only visible when it is used. So I tried the following: >> window = Tk() >> window.title(window_str) >> frame = Frame(window) >>

[issue37439] Add random.binomialvariate()

2019-06-28 Thread Raymond Hettinger
Raymond Hettinger added the comment: Instead of a O(n) simulation, an O(1) equivalent should be used. -- ___ Python tracker ___

[issue37428] SSLContext.post_handshake_auth implicitly enables cert validation

2019-06-28 Thread Ned Deily
Ned Deily added the comment: "Assuming no critical problems are found prior to 2019-06-28, no code changes are planned between these release candidates and the final releases." We were planning to start producing the final release artifacts in a couple of hours so we need to make a decision

[issue20443] __code__. co_filename should always be an absolute path

2019-06-28 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +14262 pull_request: https://github.com/python/cpython/pull/14446 ___ Python tracker ___

[issue37440] httplib should enable post-handshake authentication for TLS 1.3

2019-06-28 Thread Christian Heimes
New submission from Christian Heimes : httplib.client does not enable post-handshake authentication for TLS 1.3 connections. PHA is necessary for TLS 1.3 connections to servers that have conditional client cert authentication. For example Apache mod_ssl uses PHA when only certain paths or

[issue36763] Implementation of the PEP 587

2019-06-28 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +14260 pull_request: https://github.com/python/cpython/pull/1 ___ Python tracker ___

Re: Only a message at the highest exception

2019-06-28 Thread Cecil Westerhof
Cameron Simpson writes: > On 28Jun2019 12:17, Cecil Westerhof wrote: >>Chris Angelico writes: >>> On Fri, Jun 28, 2019 at 7:33 PM Cecil Westerhof wrote: I have a tkinter program where I have a function generate_report which in a try block calls the function append_row. This

[issue36763] Implementation of the PEP 587

2019-06-28 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +14261 pull_request: https://github.com/python/cpython/pull/14445 ___ Python tracker ___

[issue37428] SSLContext.post_handshake_auth implicitly enables cert validation

2019-06-28 Thread Christian Heimes
Christian Heimes added the comment: This issue breaks some stuff at work. I would appreciate if we can get the fix into 3.7.4. I wasn't aware that we are so close to cut-off to 3.7.4 release. What does the fix do? I moved all PHA related flags / options from SSL_CTX* to SSL*. The flags and

[issue37432] Fix a small param type in allocation.rst

2019-06-28 Thread SilentGhost
Change by SilentGhost : -- resolution: -> fixed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37432] Fix a small param type in allocation.rst

2019-06-28 Thread SilentGhost
Change by SilentGhost : -- versions: +Python 3.7, Python 3.8, Python 3.9 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue17239] XML vulnerabilities in Python

2019-06-28 Thread Mitar
Change by Mitar : -- nosy: +mitar ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37409] relative import without parent

2019-06-28 Thread Brett Cannon
Brett Cannon added the comment: The code doing the sanity check for importlib can be found at https://github.com/python/cpython/blob/f9f8e3ce709ceb15c8db8c8dde940daf1febf13d/Lib/importlib/_bootstrap.py#L943-L948 . -- ___ Python tracker

[issue37409] relative import without parent succeeds with builtins.__import__

2019-06-28 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37444] Differing exception between builtins and importlib when importing beyond top-level package

2019-06-28 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37367] octal escapes applied inconsistently throughout the interpreter and lib

2019-06-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: https://docs.python.org/3/reference/lexical_analysis.html#string-and-bytes-literals says, for \ooo, "In a bytes literal, hexadecimal and octal escapes denote the byte with the given value. In a string literal, these escapes denote a Unicode character with

Re: Handle foreign character web input

2019-06-28 Thread Tobiah
On 6/28/19 1:33 PM, Chris Angelico wrote:> On Sat, Jun 29, 2019 at 6:31 AM Tobiah wrote: A guy comes in and enters his last name as RÖnngren. So what did the browser really give me; is it encoded in some way, like latin-1? Does it depend on whether the name was cut and pasted from a Word

[issue37426] getpass.getpass not working with on windows when ctrl+v is used to enter the string

2019-06-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: If anything, this seems to be a getpass doc issue. -- assignee: -> docs@python components: +Documentation -Library (Lib), Windows nosy: +docs@python, terry.reedy ___ Python tracker

[issue24214] UTF-8 incremental decoder doesn't support surrogatepass correctly

2019-06-28 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Thanks Ned for the details, in future reports I will also try to add the respective release manager to the issue in case of regressions. -- ___ Python tracker

[issue37412] os.getcwdb() doesn't implement PEP 528 (UTF-8) on Windows

2019-06-28 Thread miss-islington
miss-islington added the comment: New changeset e3761ca91cda86462206d60244078f05c636dd13 by Miss Islington (bot) in branch '3.8': bpo-37412: Fix test_os.test_getcwd_long_path() on macOS (GH-14452) https://github.com/python/cpython/commit/e3761ca91cda86462206d60244078f05c636dd13 --

[issue19696] Merge all (non-syntactic) import-related tests into test_importlib

2019-06-28 Thread Brett Cannon
Brett Cannon added the comment: Thanks for the PR, aeros167! BTW, if you want to open a new issue and modernize the tests to use importlib directly that would be great! -- ___ Python tracker

[issue37411] testEnviron (test.test_wsgiref.HandlerTests) fails when environment variable X is set

2019-06-28 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- pull_requests: -14269 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue37438] ConfigParser.set() docs should mention allow_no_value

2019-06-28 Thread Prateek Nayak
Change by Prateek Nayak : -- keywords: +patch pull_requests: +14272 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/14455 ___ Python tracker

[issue37443] Python Returns NoneType when convert a string to a list and using sort() method

2019-06-28 Thread SilentGhost
SilentGhost added the comment: Yes, as documented .sort method mutates object in place and returns None. -- assignee: terry.reedy -> components: -IDLE nosy: +SilentGhost -terry.reedy resolution: -> not a bug stage: -> resolved status: open -> closed type: compile error -> behavior

[issue37443] Python Returns NoneType when convert a string to a list and using sort() method

2019-06-28 Thread Isaul Vargas
Isaul Vargas added the comment: There is no bug. It's a bit confusing that the method sort on a list object returns None, but it is doing an in-place, (in memory) sort of the list, thus modifying the list. The function sorted however, will return a new list object. The following

[issue37409] relative import without parent

2019-06-28 Thread Brett Cannon
Change by Brett Cannon : -- versions: +Python 3.8, Python 3.9 -Python 3.7 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue37434] Segfault in typeobject.c at _PyObject_GC_UNTRACK(type)

2019-06-28 Thread Benjamin Peterson
Change by Benjamin Peterson : -- status: -> open ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37434] Segfault in typeobject.c at _PyObject_GC_UNTRACK(type)

2019-06-28 Thread Benjamin Peterson
Benjamin Peterson added the comment: Could also be a bug in however protobuf handles exceptions on module initialization. -- ___ Python tracker ___

[issue37166] inspect.findsource doesn't handle shortened files gracefully

2019-06-28 Thread Michael Bejda
Michael Bejda added the comment: I do not believe it is specific to the way we package things: $ cat a.py: import inspect def foo(): pass inspect.getsource(foo) $ python3 -m compileall -b a.py $ black a.py # to remove the empty lines $ python3 a.pyc # Index error Traceback (most

[issue24214] UTF-8 incremental decoder doesn't support surrogatepass correctly

2019-06-28 Thread Ned Deily
Ned Deily added the comment: "The only changes allowed to occur in a maintenance branch without debate are bug fixes. Also, a general rule for maintenance branches is that compatibility must not be broken at any point between sibling minor releases (3.5.1, 3.5.2, etc.). For both rules, only

[issue37369] Issue with pip in venv on Powershell in Windows

2019-06-28 Thread Steve Dower
Change by Steve Dower : -- pull_requests: +14273 pull_request: https://github.com/python/cpython/pull/14456 ___ Python tracker ___

[issue37208] Weird exception behaviour in ProcessPoolExecutor

2019-06-28 Thread Brian Quinlan
Change by Brian Quinlan : -- stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list

Handle foreign character web input

2019-06-28 Thread Tobiah
A guy comes in and enters his last name as RÖnngren. So what did the browser really give me; is it encoded in some way, like latin-1? Does it depend on whether the name was cut and pasted from a Word doc. etc? Should I handle these internally as unicode? Right now my database tables are

Re: Handle foreign character web input

2019-06-28 Thread inhahe
: > > On 6/28/19 1:33 PM, Chris Angelico wrote:> On Sat, Jun 29, 2019 at 6:31 AM > Tobiah wrote: > > >> Also, what do people do when searching for a record. > >> Is there some way to get 'Ronngren' to match the other > >> possible foreign spellings? > > > > I think I've heard of algorithms

Re: Handle foreign character web input

2019-06-28 Thread Akkana Peck
On Sat, Jun 29, 2019 at 6:31 AM Tobiah wrote: > Also, what do people do when searching for a record. > Is there some way to get 'Ronngren' to match the other > possible foreign spellings? SequenceMatcher in difflib can do fuzzy string comparisons and should work for cases like that. There are

[issue37442] Minidom should not pretty-print inside text elements

2019-06-28 Thread Mitar
New submission from Mitar : Inside text elements both in HTML and SVG white-space is significant and introduces differences in how things are rendered. By default in general all white-space is collapsed into one space and then this is rendered, adding additional text content. I observed

[issue37294] concurrent.futures.ProcessPoolExecutor and multiprocessing.pool.Pool fail with super

2019-06-28 Thread Brian Quinlan
Change by Brian Quinlan : -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> function changed when pickle bound method object ___ Python tracker

[issue37409] relative import without parent succeeds with builtins.__import__

2019-06-28 Thread Brett Cannon
Change by Brett Cannon : -- title: relative import without parent -> relative import without parent succeeds with builtins.__import__ ___ Python tracker ___

[issue37444] Differing exception between builtins and importlib when importing beyond top-level package

2019-06-28 Thread Brett Cannon
Brett Cannon added the comment: import.c code raising the exception: https://github.com/python/cpython/blob/f9f8e3ce709ceb15c8db8c8dde940daf1febf13d/Python/import.c#L1675-L1677 -- ___ Python tracker

Re: Handle foreign character web input

2019-06-28 Thread Chris Angelico
On Sat, Jun 29, 2019 at 6:31 AM Tobiah wrote: > > A guy comes in and enters his last name as RÖnngren. > > So what did the browser really give me; is it encoded > in some way, like latin-1? Does it depend on whether > the name was cut and pasted from a Word doc. etc? > Should I handle these

[issue37427] sorted, list.sort reject non-boolean objects with __bool__() as `reverse` parameter

2019-06-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: Not a bug. Both function docs say "reverse is a boolean value." https://docs.python.org/3/library/stdtypes.html#boolean-values says "Boolean values are the two constant objects False and True." These should be used in new code. For compatibility with old

[issue36511] Add Windows ARM32 buildbot

2019-06-28 Thread Paul Monson
Change by Paul Monson : -- pull_requests: +14277 pull_request: https://github.com/python/cpython/pull/14460 ___ Python tracker ___

[issue37411] testEnviron (test.test_wsgiref.HandlerTests) fails when environment variable X is set

2019-06-28 Thread hai shi
Change by hai shi : -- pull_requests: +14269 pull_request: https://github.com/python/cpython/pull/14453 ___ Python tracker ___ ___

[issue37369] Issue with pip in venv on Powershell in Windows

2019-06-28 Thread Steve Dower
Steve Dower added the comment: New changeset db4d7ddb012ef8f087a8eb2a5b8a672d04a48e1a by Steve Dower in branch '3.7': bpo-37369: Fixes path for sys.executable when running from the Microsoft Store (GH-14450) https://github.com/python/cpython/commit/db4d7ddb012ef8f087a8eb2a5b8a672d04a48e1a

[issue37441] Fix a param error in exceptions.rst

2019-06-28 Thread hai shi
New submission from hai shi : Due to https://github.com/python/cpython/blob/master/Python/errors.c#L845-L846, `PyObject* PyErr_SetImportErrorSubclass(PyObject *msg, PyObject *name, PyObject *path)` should be `PyObject* PyErr_SetImportErrorSubclass(PyObject *exception, PyObject *msg, PyObject

[issue24214] UTF-8 incremental decoder doesn't support surrogatepass correctly

2019-06-28 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Thanks Ned, is there a general policy on regressions to be marked as release blocker, like if a regression that was made in 3.7.3 then it acts as a release blocker for 3.7.4 or is it based on severity? ? --

Use global, or not

2019-06-28 Thread Cecil Westerhof
I have written a GUI program where I have quit a few global variables. I did not like this, so I now use one global dict. Something like: global global_dict canceled_report = 'Genereren rapportage gecanceled.' created_report = 'Rapportage voor {} bestanden is gemaakt.'

[issue37403] Recommend .venv for virtual environment names

2019-06-28 Thread Brett Cannon
Change by Brett Cannon : -- keywords: +patch pull_requests: +14275 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/14458 ___ Python tracker

[issue37444] Differing exception between builtins and importlib when importing beyond top-level package

2019-06-28 Thread Brett Cannon
New submission from Brett Cannon : builtins.__import__() raises ValueError (as it did in Python 2.7) while importlib.__import__() raises ImportError (which makes more sense to me). Found by Ben Lewis. -- components: Interpreter Core, Library (Lib) messages: 346855 nosy: Ben Lewis2,

[issue37409] relative import without parent succeeds with builtins.__import__

2019-06-28 Thread Brett Cannon
Brett Cannon added the comment: If you run with `-Xdev`/warnings turned on you get an idea of what's happening: >>> builtins.__import__('', globals(), locals(), ('foo',), 1) :1: ImportWarning: can't resolve package from __spec__ or __package__, falling back on __name__ and __path__ The

[issue37409] relative import without parent succeeds with builtins.__import__

2019-06-28 Thread Ben Lewis
Ben Lewis added the comment: I'll look into this further and open a PR initially for the regression tests. -- ___ Python tracker ___

[issue37433] syntax error in multiline f-string produces ~40k spaces output

2019-06-28 Thread Anthony Sottile
Anthony Sottile added the comment: just an f-string doesn't trigger this, there needs to be tokens before it -- ___ Python tracker ___

[issue37433] syntax error in multiline f-string produces ~40k spaces output

2019-06-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: On Windows 10 with current 3.8 I see correct output, so the bug seems OS specific, even though the simple fix (see PR) is not. C:\Users\Terry>py f:/python/a/tem4.py File "f:/python/a/tem4.py", line 1 f'''{} ^ SyntaxError: f-string: empty expression

Re: Use global, or not

2019-06-28 Thread Rob Gaddi
On 6/28/19 6:44 AM, Cecil Westerhof wrote: I have written a GUI program where I have quit a few global variables. I did not like this, so I now use one global dict. Something like: [snip] global_dict = { 'messages': messages, 'progress': progress,

[issue37412] os.getcwdb() doesn't implement PEP 528 (UTF-8) on Windows

2019-06-28 Thread STINNER Victor
STINNER Victor added the comment: New changeset 29f609ed07aa7856741ff8b8b8b050369d0faf81 by Victor Stinner in branch 'master': bpo-37412: Fix test_os.test_getcwd_long_path() on macOS (GH-14452) https://github.com/python/cpython/commit/29f609ed07aa7856741ff8b8b8b050369d0faf81 --

[issue37369] Issue with pip in venv on Powershell in Windows

2019-06-28 Thread Steve Dower
Steve Dower added the comment: New changeset ed4657bd28432ace671a9e6ae38a3d485c69213d by Steve Dower in branch '3.7': bpo-37369: Fix venv and test symlinking (GH-14456) https://github.com/python/cpython/commit/ed4657bd28432ace671a9e6ae38a3d485c69213d --

[issue31783] Race condition in ThreadPoolExecutor when scheduling new jobs while the interpreter shuts down

2019-06-28 Thread Brian Quinlan
Brian Quinlan added the comment: New changeset 242c26f53edb965e9808dd918089e664c0223407 by Brian Quinlan in branch 'master': bpo-31783: Fix a race condition creating workers during shutdown (#13171) https://github.com/python/cpython/commit/242c26f53edb965e9808dd918089e664c0223407

[issue31783] Race condition in ThreadPoolExecutor when scheduling new jobs while the interpreter shuts down

2019-06-28 Thread Brian Quinlan
Change by Brian Quinlan : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue37403] Recommend .venv for virtual environment names

2019-06-28 Thread miss-islington
Change by miss-islington : -- pull_requests: +14276 pull_request: https://github.com/python/cpython/pull/14459 ___ Python tracker ___

[issue37403] Recommend .venv for virtual environment names

2019-06-28 Thread Brett Cannon
Brett Cannon added the comment: New changeset f9f8e3ce709ceb15c8db8c8dde940daf1febf13d by Brett Cannon in branch 'master': bpo-37403: Touch up venv docs (GH-14458) https://github.com/python/cpython/commit/f9f8e3ce709ceb15c8db8c8dde940daf1febf13d --

[issue37409] relative import without parent

2019-06-28 Thread Brett Cannon
Brett Cannon added the comment: I opened bpo-37444 for the relative import beyond top-level package issue. -- ___ Python tracker ___

[issue32912] Raise non-silent warning for invalid escape sequences

2019-06-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: The 'filled my terminal with spaces' bug mentioned in msg344764 was independently reported in #37433, with a PR. -- nosy: +terry.reedy ___ Python tracker

[issue23014] Don't have importlib.abc.Loader.create_module() be optional

2019-06-28 Thread Brett Cannon
Brett Cannon added the comment: Do realize the person who created and closed this issue is the one suggesting you open a new issue. ;) We can re-evaluate decisions and this one is 5 years old. Now I'm not making any promises that we will definitely change anything, but I'm not going to

[issue37412] os.getcwdb() doesn't implement PEP 528 (UTF-8) on Windows

2019-06-28 Thread miss-islington
Change by miss-islington : -- pull_requests: +14271 pull_request: https://github.com/python/cpython/pull/14454 ___ Python tracker ___

[issue37404] asyncio sock_recv blocks on ssl sockets.

2019-06-28 Thread Akshay Takkar
Change by Akshay Takkar : -- keywords: +patch pull_requests: +14274 stage: -> patch review pull_request: https://github.com/python/cpython/pull/14457 ___ Python tracker ___

[issue37437] update vendorized expat to 2.2.7

2019-06-28 Thread Ned Deily
Ned Deily added the comment: The expat update introduces unsightly build warnings: gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -std=c99 -Wextra -Wno-unused-result -Wno-unused-parameter -Wno-missing-field-initializers -Wstrict-prototypes

[issue37443] Python Returns NoneType when convert a string to a list and using sort() method

2019-06-28 Thread SilentGhost
Change by SilentGhost : -- assignee: terry.reedy -> components: -IDLE nosy: +SilentGhost -terry.reedy type: compile error -> behavior ___ Python tracker ___

[issue37403] Recommend .venv for virtual environment names

2019-06-28 Thread miss-islington
miss-islington added the comment: New changeset 0cba121029bae0a891b02c493cb77633620701be by Miss Islington (bot) in branch '3.8': bpo-37403: Touch up venv docs (GH-14458) https://github.com/python/cpython/commit/0cba121029bae0a891b02c493cb77633620701be -- nosy: +miss-islington

[issue37403] Recommend .venv for virtual environment names

2019-06-28 Thread Brett Cannon
Change by Brett Cannon : -- resolution: -> fixed stage: patch review -> needs patch status: open -> closed ___ Python tracker ___

[issue19696] Merge all (non-syntactic) import-related tests into test_importlib

2019-06-28 Thread miss-islington
miss-islington added the comment: New changeset 80097e089ba22a42d804e65fbbcf35e5e49eed00 by Miss Islington (bot) (Kyle Stanley) in branch 'master': bpo-19696: Moved "test_pkgimport.py" to dir "test_importlib" (GH-14303)

Re: Handle foreign character web input

2019-06-28 Thread Chris Angelico
On Sat, Jun 29, 2019 at 7:01 AM Tobiah wrote: > > > On 6/28/19 1:33 PM, Chris Angelico wrote:> On Sat, Jun 29, 2019 at 6:31 AM > Tobiah wrote: > >> > >> A guy comes in and enters his last name as RÖnngren. > >> > >> So what did the browser really give me; is it encoded > >> in some way, like

[issue26468] shutil.copy2 raises OSError if filesystem doesn't support chmod

2019-06-28 Thread Jeffrey Kintscher
Change by Jeffrey Kintscher : -- nosy: -Jeffrey.Kintscher ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

  1   2   >