[issue37563] Documentation - default for StreamHandler

2019-07-13 Thread Jonathan
Jonathan added the comment: >What fallacy? You appeared to be saying (to paraphrase) "no-one else has ever reported this, so it's never been a problem". That's a fallacy. > I was responding to "does anyone else have opinions on this?" I was asking if anyone else wanted to chime in with an opi

[issue37588] Py_DEPRECATED and unavoidable warnings

2019-07-13 Thread Phil Thompson
New submission from Phil Thompson : I have a number of static PyTypeObject declarations. In order to avoid compiler warnings about missing field initialisers I always provide explicit 0 values for unused fields (protected by #if PY_HEX_VERSION >= ...). However with v3.8b2 this triggers new wa

[issue22121] IDLE should start with HOME as the initial working directory

2019-07-13 Thread Raymond Hettinger
Raymond Hettinger added the comment: > When I start IDLE ("python -m idle") from my project directory > I expect that it doesn't change current directory and I can > access files in this directory by short relative name. I rely on this behavior when teaching Python courses. IIRC, David Beazle

[issue33326] Convert collections (cmp_op, hasconst, hasname and others) in opcode module to more optimal type

2019-07-13 Thread Raymond Hettinger
Change by Raymond Hettinger : -- versions: +Python 3.9 -Python 3.7, Python 3.8 ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue33326] Convert collections (cmp_op, hasconst, hasname and others) in opcode module to more optimal type

2019-07-13 Thread Raymond Hettinger
Raymond Hettinger added the comment: +1 for switching to sets or frozensets. -- nosy: +rhettinger ___ Python tracker ___ ___ Python

[issue28292] Make Calendar.itermonthdates() behave consistently in edge cases

2019-07-13 Thread Raymond Hettinger
Raymond Hettinger added the comment: > Do you propose to change them all? No. But we have precedent in this module and should maintain it. FWIW, there are a number of modules that have been conscientious in this regard (for example, collections and random). -- ___

[issue7940] re.finditer and re.findall should support negative end positions

2019-07-13 Thread Raymond Hettinger
Raymond Hettinger added the comment: -1 on the proposal. We don't know of any strong use cases, so there isn't a real problem being solved here. Rather than providing a benefit, this feature request makes it more likely that people will write convoluted code or that it will let bugs pass s

[issue25433] whitespace in strip()/lstrip()/rstrip()

2019-07-13 Thread Ulf Rompe
Ulf Rompe added the comment: Using a re.sub() call as documentation: 1. wouldn't be helpful for many developers. If they need to look up the documentation of a simple method they shouldn't be forced to learn about a more complex one as well to understand it. 2. would be wild guessing since t

[issue37587] JSON loads performance improvement for long strings

2019-07-13 Thread Marco Paolini
Marco Paolini added the comment: Here's the real world example $ ls -hs events-100k.json 84M events-100k.json +---+-+-+ | Benchmark | vanilla-bpo-events-100k | patched-bpo-events-100k | +===+=+===

[issue37559] IDLE: Scrolling issues with code context shown

2019-07-13 Thread Terry J. Reedy
Terry J. Reedy added the comment: I repeated Tal's experiment, on Windows, and added more. I list below multiple issues related to code context and scrolling, and possible solutions. 1: two geometry modes. After the text height is set on start up or by restore height, CC height is added to

[issue37492] should email.utils.parseaddr treat a@b. as invalid email ?

2019-07-13 Thread R. David Murray
R. David Murray added the comment: Right, those absolutely are valid addresses. A resolver will normally look up a name with an internal dot first as if it were an FQDN, but if it does so and does not get an answer it will then look it up again as a "local" address (appending in turn the st

[issue30550] Document order-preserving dictionary output in json

2019-07-13 Thread Kyle Stanley
Kyle Stanley added the comment: > The JSON encoder for dictionaries preserves the order of the items in a > dictionary >From what I can tell, the JSON encoder does nothing to preserve the order of >the keys. Although the default option is to not modify the existing >dictionary, the items()

[issue37492] should email.utils.parseaddr treat a@b. as invalid email ?

2019-07-13 Thread jpic
jpic added the comment: Thanks for the heads up. There is still one last case where maybe parseaddr should return a tuple of empty strings, currently: >>> parseaddr('a@') ('', 'a@') Is this worth changing ? -- ___ Python tracker

[issue22121] Start IDLE from icon in a better place.

2019-07-13 Thread Terry J. Reedy
Terry J. Reedy added the comment: Steve, there is a problem in both lines of this suggestion. if os.path.normcase(os.getcwd()) == os.path.normcase(sys.prefix): os.chdir(get_default_location(sys.platform)) On my 3.8 repository build, >>> import os; os.getcwd() 'F:\\dev\\38\\PCbuild\\win32

[issue13127] xml.dom.Attr.name is not labeled as read-only

2019-07-13 Thread Giovanni Cappellotto
Change by Giovanni Cappellotto : -- keywords: +patch pull_requests: +14552 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/14757 ___ Python tracker

[issue22121] Start IDLE from icon in a better place.

2019-07-13 Thread Terry J. Reedy
Change by Terry J. Reedy : -- assignee: -> terry.reedy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https

[issue13127] xml.dom.Attr.name is not labeled as read-only

2019-07-13 Thread Giovanni Cappellotto
Giovanni Cappellotto added the comment: In https://github.com/python/cpython/pull/14757 I tried updating the implementation of `Attr._set_name` to remove and reset the attr node in the owner element. So now `Attr._set_name` behaves similarly to `Document.renameNode`. All existing tests are

[issue22121] Start IDLE from icon in a better place.

2019-07-13 Thread Raymond Hettinger
Raymond Hettinger added the comment: Looking at the revised title, +1 for changing the IDLE Icon startup, but let's keep the command-line startup sticking with the current directory: $ mkdir pyclass $ cd pyclass $ python3.8 -m idlelib.idle # Should start in the pyclass directory ---

[issue37583] Got a 113 error when running the test_socket

2019-07-13 Thread hai shi
hai shi added the comment: So I add this 113 error in `get_socket_conn_refused_errs` too ;) -- ___ Python tracker ___ ___ Python-bu

[issue28292] Make Calendar.itermonthdates() behave consistently in edge cases

2019-07-13 Thread Kyle Stanley
Kyle Stanley added the comment: >But we have precedent in this module and should maintain it. In general, applying different rules to standard library modules and changing private function naming conventions on a case-by-case basis creates rather drastic inconsistency. There definitely shoul

[issue26967] argparse: allow_abbrev=False stops -vv from working

2019-07-13 Thread miss-islington
Change by miss-islington : -- pull_requests: +14553 pull_request: https://github.com/python/cpython/pull/14759 ___ Python tracker ___ __

[issue26967] argparse: allow_abbrev=False stops -vv from working

2019-07-13 Thread miss-islington
miss-islington added the comment: New changeset dffca9e925ee5c3072663cbe8d4d4768406d5307 by Miss Islington (bot) (Zac Hatfield-Dodds) in branch 'master': bpo-26967: fix flag grouping with allow_abbrev=False (GH-14316) https://github.com/python/cpython/commit/dffca9e925ee5c3072663cbe8d4d476840

[issue26967] argparse: allow_abbrev=False stops -vv from working

2019-07-13 Thread Petr Viktorin
Petr Viktorin added the comment: New changeset b1e4d1b6032d4c82b549233fa08a2c7cfe7e818b by Petr Viktorin (Miss Islington (bot)) in branch '3.8': bpo-26967: fix flag grouping with allow_abbrev=False (GH-14316) (GH-14759) https://github.com/python/cpython/commit/b1e4d1b6032d4c82b549233fa08a2c7c

[issue37589] Missing dependences in the Makefile

2019-07-13 Thread Vemake
New submission from Vemake : We use a tool to detect 138 dependence issues in the Makefile. Most of them are missing of c source files and header files. Those issues can cause incorrect results when we want to do incremental build and parallel build. For example, any changes in "Include/typ

<    1   2