[issue35545] asyncio.base_events.create_connection doesn't handle scoped IPv6 addresses

2019-01-03 Thread twisteroid ambassador
twisteroid ambassador added the comment: Hi Emmanuel, Are you referring to my PR 11403? I don't see where IPv6 uses separate parameters. -- ___ Python tracker ___

[issue35198] Build issue while compiling cpp files in AIX

2019-01-03 Thread Kevin
Kevin added the comment: Just a friendly ping that there's a PR for this bug waiting to be reviewed. -- nosy: +kadler ___ Python tracker ___

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

2019-01-03 Thread Steven D'Aprano
Steven D'Aprano added the comment: > return (-1)**k * bincoeff(n+k+1, k) Oops, that's meant to be n+k-1. -- ___ Python tracker ___

[issue35654] Remove 'guarantee' that sorting only relies on __lt__ from sorting howto

2019-01-03 Thread Tim Peters
Tim Peters added the comment: Steven, thanks for noticing the docs! I was surprised to hear it wasn't documented, but not surprised enough to check myself ;-) This decision was suggested by me, and endorsed by Guido, when designing timsort looking ahead to Python 3, where __cmp__ was going

[issue35654] Remove 'guarantee' that sorting only relies on __lt__ from sorting howto

2019-01-03 Thread Raymond Hettinger
Raymond Hettinger added the comment: I also prefer to leave this as is. FWIW, heapq and bisect are also deliberately based on __lt__. The PEP 8 advice (something I wrote) is primarily about making code less fragile and avoiding surprising behavior. -- assignee: docs@python ->

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

2019-01-03 Thread Steven D'Aprano
Steven D'Aprano added the comment: > should the function be expanded to calculate for negative > n or is the function expected to work only in combination sense? If this were my design, I would offer both but in separate functions: def comb(n, k): if n < 0: raise ValueError return

[issue35653] All regular expression match groups are the empty string

2019-01-03 Thread Matthew Barnett
Matthew Barnett added the comment: Look at the spans of the groups: >>> import re >>> re.search(r'^(?:(\d*)(\D*))*$', "42AZ").span(1) (4, 4) >>> re.search(r'^(?:(\d*)(\D*))*$', "42AZ").span(2) (4, 4) They're telling you that the groups are matching twice (because of the outer *). The first

[issue35312] lib2to3.pgen2.parse.ParseError is not roundtrip pickleable

2019-01-03 Thread Anthony Sottile
Anthony Sottile added the comment: Looks like this was merged and can be marked as resolved -- should this be backported to 3.7? -- ___ Python tracker ___

[issue35654] Remove 'guarantee' that sorting only relies on __lt__ from sorting howto

2019-01-03 Thread Steven D'Aprano
Steven D'Aprano added the comment: > That sort currently uses __lt__ only is, in my opinion, an implementation > detail. Its only an implementation detail until the language specification defines it as a guarantee of the language. Then it becomes part of the sorting API. Personally, I

[issue35598] IDLE: Modernize config_key module

2019-01-03 Thread Cheryl Sabella
Change by Cheryl Sabella : -- pull_requests: -10852 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35598] IDLE: Modernize config_key module

2019-01-03 Thread Cheryl Sabella
Change by Cheryl Sabella : -- pull_requests: -10851 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35598] IDLE: Modernize config_key module

2019-01-03 Thread Cheryl Sabella
Cheryl Sabella added the comment: Terry, I just saw your note about waiting to split this into a Window and Frame class, which was after I had already gotten the PR ready. I've been mostly offline for the past few days, so I had been working on those changes locally with the intent of

[issue35598] IDLE: Modernize config_key module

2019-01-03 Thread Cheryl Sabella
Change by Cheryl Sabella : -- pull_requests: +10850, 10851 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35598] IDLE: Modernize config_key module

2019-01-03 Thread Cheryl Sabella
Change by Cheryl Sabella : -- pull_requests: +10850, 10851, 10852 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue35598] IDLE: Modernize config_key module

2019-01-03 Thread Cheryl Sabella
Change by Cheryl Sabella : -- pull_requests: +10850 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35644] venv doesn't work on Windows when no venvlauncher executable present

2019-01-03 Thread Steve Dower
Steve Dower added the comment: It should just build directly from venv[w]launcher.vcxproj, though you'll need to rename venv[w]launcher.exe to python[w].exe (otherwise they'd conflict in the build directory). -- ___ Python tracker

[issue35654] Remove 'guarantee' that sorting only relies on __lt__ from sorting howto

2019-01-03 Thread Tim Peters
Tim Peters added the comment: I don't know that the language needs to define this, but sticking to __lt__ was a wholly deliberate design decision for CPython. -- nosy: +tim.peters ___ Python tracker

[issue35649] http.client doesn't close. Infinite loop

2019-01-03 Thread skorpeo
skorpeo added the comment: Ha, ok that would explain it. Yes, I think it would indeed be helpful to update the example, but then again I guess leaving it as is may be a good way to find out if people are reading the docs. On Thu, Jan 3, 2019 at 10:21 PM Martin Panter wrote: > > Martin

[issue35654] Remove 'guarantee' that sorting only relies on __lt__ from sorting howto

2019-01-03 Thread Martijn Pieters
New submission from Martijn Pieters : Currently, the sorting HOWTO at https://docs.python.org/3/howto/sorting.html#odd-and-ends contains the text: > The sort routines are guaranteed to use __lt__() when making comparisons > between two objects. So, it is easy to add a standard sort order to

[issue35653] All regular expression match groups are the empty string

2019-01-03 Thread adiba
New submission from adiba : This is the regular expression: ^(?:(\d*)(\D*))*$ This is the test string: 42AZ This is the expectation for the match groups: ('42', 'AZ') This is the actual return value: ('', '') https://gist.github.com/adiba/791ba943a1102994d43171dc98aaecd0 --

[issue35649] http.client doesn't close. Infinite loop

2019-01-03 Thread Martin Panter
Martin Panter added the comment: This was changed in Python 3.2+ in Issue 16723. The response object no longer sets the “closed” attribute when it runs out of data; it is only set when the “close” method is called. Perhaps the example should be amended so that it checks if “read” returned an

[issue31450] Subprocess exceptions re-raised in parent process do not have child_traceback attribute

2019-01-03 Thread miss-islington
miss-islington added the comment: New changeset 47c035f3efa77a439967776b5b6ba11d010ce466 by Miss Islington (bot) in branch '3.7': bpo-31450: Remove documentation mentioning that subprocess's child_traceback is available with the parent process (GH-11422)

[issue31450] Subprocess exceptions re-raised in parent process do not have child_traceback attribute

2019-01-03 Thread miss-islington
Change by miss-islington : -- pull_requests: +10847, 10848 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue31450] Subprocess exceptions re-raised in parent process do not have child_traceback attribute

2019-01-03 Thread miss-islington
Change by miss-islington : -- pull_requests: +10847 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue31450] Subprocess exceptions re-raised in parent process do not have child_traceback attribute

2019-01-03 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset 47a2fced84605a32b79aa3ebc543533ad1a976a1 by Gregory P. Smith (Harmandeep Singh) in branch 'master': bpo-31450: Remove documentation mentioning that subprocess's child_traceback is available with the parent process (GH-11422)

[issue31450] Subprocess exceptions re-raised in parent process do not have child_traceback attribute

2019-01-03 Thread miss-islington
Change by miss-islington : -- pull_requests: +10847, 10848, 10849 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue35605] backported patch requires new sphinx, minimum sphinx version was not bumped

2019-01-03 Thread Anthony Sottile
Anthony Sottile added the comment: I also had to update the patch for sphinx.util.status_iterator which was also introduced in sphinx 1.6 -- ___ Python tracker ___

[issue35644] venv doesn't work on Windows when no venvlauncher executable present

2019-01-03 Thread Ray Donnelly
Ray Donnelly added the comment: Thanks Steve, the sys.path value from the first comment can be discarded, it was running the wrong Python! The 'old' mechanism (which my patch reverts to) does copy all the necessary DLLs already. I released builds with this patch now and venv works fine

[issue35648] Add use_srcentry parameter to shutil.copytree()

2019-01-03 Thread flokX
flokX added the comment: A new PR is started. See https://bugs.python.org/issue35652 and https://github.com/python/cpython/pull/11425 -- nosy: -docs@python resolution: -> later stage: patch review -> resolved status: open -> closed ___ Python

[issue35652] Add use_srcentry parameter to shutil.copytree() II

2019-01-03 Thread flokX
Change by flokX : -- keywords: +patch pull_requests: +10846 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list

[issue35652] Add use_srcentry parameter to shutil.copytree() II

2019-01-03 Thread flokX
New submission from flokX : Currently it is decided if to use the srcentry in the copy_function by checking if the copy_function is copy() or copy2(). This will fail if the copy_function is a modified copy() or copy2() function. To control if the copy_function gets a srcentry or srcname

[issue35651] PEP 257 (active) references PEP 258 (rejected) as if it were active

2019-01-03 Thread Barry A. Warsaw
Change by Barry A. Warsaw : -- nosy: +barry ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35633] test_eintr fails on AIX since fcntl functions were modified

2019-01-03 Thread Michael Felt
Change by Michael Felt : -- components: -IO ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35651] PEP 257 (active) references PEP 258 (rejected) as if it were active

2019-01-03 Thread Mark Amery
New submission from Mark Amery : PEP 257 says: > Please see PEP 258, "Docutils Design Specification" [2], for a detailed > description of attribute and additional docstrings. But PEP 258 is rejected. It doesn't seem coherent that an active PEP can defer some of its details to a rejected PEP

[issue35189] PEP 475: fnctl functions are not retried if interrupted by a signal (EINTR)

2019-01-03 Thread Michael Felt
Change by Michael Felt : -- pull_requests: +10842, 10843, 10845 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue35189] PEP 475: fnctl functions are not retried if interrupted by a signal (EINTR)

2019-01-03 Thread Michael Felt
Change by Michael Felt : -- pull_requests: +10842, 10843, 10844, 10845 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue35189] PEP 475: fnctl functions are not retried if interrupted by a signal (EINTR)

2019-01-03 Thread Michael Felt
Change by Michael Felt : -- pull_requests: +10842, 10843 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35189] PEP 475: fnctl functions are not retried if interrupted by a signal (EINTR)

2019-01-03 Thread Michael Felt
Change by Michael Felt : -- pull_requests: +10842 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35633] test_eintr fails on AIX since fcntl functions were modified

2019-01-03 Thread Michael Felt
Change by Michael Felt : -- keywords: +patch, patch pull_requests: +10840, 10841 stage: -> patch review ___ Python tracker ___ ___

[issue35633] test_eintr fails on AIX since fcntl functions were modified

2019-01-03 Thread Michael Felt
Change by Michael Felt : -- keywords: +patch pull_requests: +10840 stage: -> patch review ___ Python tracker ___ ___

[issue35650] cygwin treats X and X.exe as the same file

2019-01-03 Thread Zachary Ware
Change by Zachary Ware : -- resolution: -> third party stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue35650] cygwin treats X and X.exe as the same file

2019-01-03 Thread Anthony Sottile
Anthony Sottile added the comment: hmmm probably nothing in that case -- didn't realize this also happened in the cygwin shell. insanity. feel free to close! thanks! -- ___ Python tracker

[issue35650] cygwin treats X and X.exe as the same file

2019-01-03 Thread Zachary Ware
Zachary Ware added the comment: This sounds like a Cygwin issue; what can Python do about it? >From a Cygwin shell: $ ls $ echo "test.exe" >> test.exe $ echo "test" >> test $ cat test test.exe test -- ___ Python tracker

[issue35633] test_eintr fails on AIX since fcntl functions were modified

2019-01-03 Thread Michael Felt
Michael Felt added the comment: After reading the PEP I realized it is much simpler. The test is for interrupts that occur at a low-level - and not for permission issues. The test is failing because there is a permission issue, not a missed interrupt issue. Modifying the code to: (see line

[issue35650] cygwin treats X and X.exe as the same file

2019-01-03 Thread Anthony Sottile
Anthony Sottile added the comment: ah yes, I should include more version information IEUser@IE11WIN7 ~ $ python --version Python 2.7.14 IEUser@IE11WIN7 ~ $ python3 --version --version Python 3.6.4 (default, Jan 7 2018, 17:45:56) [GCC 6.4.0] IEUser@IE11WIN7 ~ $ uname -a CYGWIN_NT-6.1

[issue35650] cygwin treats X and X.exe as the same file

2019-01-03 Thread Anthony Sottile
New submission from Anthony Sottile : >>> with open('f.exe', 'w') as f: ... f.write('hi') ... >>> with open('f') as f: ... print(f.read()) ... hi `os.path.exists(...)` and others treat them as the same file as well. It seems the only reliable way to write both files is: 1. write to

[issue35649] http.client doesn't close. Infinite loop

2019-01-03 Thread skorpeo
Change by skorpeo : -- type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35649] http.client doesn't close. Infinite loop

2019-01-03 Thread skorpeo
New submission from skorpeo : when testing example from https://docs.python.org/3/library/http.client.html. Specifically the chunked example, i.e. while not r1.closed. Results in infinite loop. I believe this is because line 398 function def _close_conn(self), should call self.close().

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

2019-01-03 Thread Yash Aggarwal
Yash Aggarwal added the comment: I have written the function in the latest patch to work only for positive n. Although the definition of combination or nChoosek makes no sense for negative n, negative binomial distribution exists and so binomial coefficient is defined for negative value of

[issue35638] Introduce fixed point locale aware format type for floating point numbers

2019-01-03 Thread Stefan Krah
Stefan Krah added the comment: For reference, the (one of the?) other GitHub issue(s) is here: https://github.com/python/cpython/pull/8612 It actually proposes to use LC_MONETARY. -- ___ Python tracker

[issue35638] Introduce fixed point locale aware format type for floating point numbers

2019-01-03 Thread Łukasz Stelmach
Łukasz Stelmach added the comment: As much as I am open to any suggestions for naming and such (although I think 'm' together with 'n' are a good supplement for 'f' and 'g'), I really would like to introduce a method to format numbers with fixed number of decimal digits (it looks good in

[issue35639] Lowecasing Unicode Characters

2019-01-03 Thread Steven D'Aprano
Change by Steven D'Aprano : -- nosy: +steven.daprano ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35638] Introduce fixed point locale aware format type for floating point numbers

2019-01-03 Thread Stefan Krah
Stefan Krah added the comment: I think there's another open GitHub issue for this, and yes, probably it should be discussed on python-ideas, too. My main concern with 'm' for libmpdec is that I'd like to reserve it for LC_MONETARY. There was one OS X issue that would have been solved by

[issue35218] decompressing and then re-compressing zipfiles with Python 3 zipfile loses flag_bits

2019-01-03 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue35218] decompressing and then re-compressing zipfiles with Python 3 zipfile loses flag_bits

2019-01-03 Thread keeely
keeely added the comment: Please note: I'm unable to fill in your contributor agreement form, so please consider the patch an illustrative example. In any case, the fix is pretty-much a one-liner, so shouldn't be a big deal to 're-write'. I'm disappointed that this has been largely

[issue35638] Introduce fixed point locale aware format type for floating point numbers

2019-01-03 Thread Łukasz Stelmach
Łukasz Stelmach added the comment: > I haven't looked at this closely yet, but you'll need to at least: > - add tests that the locale-aware formatting is happening Done. > - support decimal > - make sure it works with complex Good points. Done. Please note, that there is an inconsistency

[issue35645] Alarm usage

2019-01-03 Thread Matthew Barnett
Matthew Barnett added the comment: @Steven: The complaint is that the BEL character ('\a') doesn't result in a beep when printed. @Siva: These days, you shouldn't be relying on '\a' because it's not always supported. If you want to make a beep, do so with the appropriate function call. Ask

[issue31450] Subprocess exceptions re-raised in parent process do not have child_traceback attribute

2019-01-03 Thread Harmandeep Singh
Change by Harmandeep Singh : -- keywords: +patch, patch pull_requests: +10836, 10837 stage: -> patch review ___ Python tracker ___

[issue31450] Subprocess exceptions re-raised in parent process do not have child_traceback attribute

2019-01-03 Thread Harmandeep Singh
Change by Harmandeep Singh : -- keywords: +patch, patch, patch pull_requests: +10836, 10837, 10838 stage: -> patch review ___ Python tracker ___

[issue31450] Subprocess exceptions re-raised in parent process do not have child_traceback attribute

2019-01-03 Thread Harmandeep Singh
Change by Harmandeep Singh : -- keywords: +patch, patch, patch, patch pull_requests: +10836, 10837, 10838, 10839 stage: -> patch review ___ Python tracker ___

[issue31450] Subprocess exceptions re-raised in parent process do not have child_traceback attribute

2019-01-03 Thread Harmandeep Singh
Change by Harmandeep Singh : -- keywords: +patch pull_requests: +10836 stage: -> patch review ___ Python tracker ___ ___

[issue35434] Wrong bpo linked in What's New in 3.8

2019-01-03 Thread Yash Aggarwal
Change by Yash Aggarwal : -- pull_requests: -10809 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35434] Wrong bpo linked in What's New in 3.8

2019-01-03 Thread Yash Aggarwal
Change by Yash Aggarwal : -- pull_requests: -10811 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35434] Wrong bpo linked in What's New in 3.8

2019-01-03 Thread Yash Aggarwal
Change by Yash Aggarwal : -- pull_requests: -10810 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35641] IDLE: calltips not properly formatted for functions without doc-strings

2019-01-03 Thread Tal Einat
Tal Einat added the comment: Thanks for the report, Dan! Thanks for the fix, Emmanuel! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue35641] IDLE: calltips not properly formatted for functions without doc-strings

2019-01-03 Thread Tal Einat
Change by Tal Einat : -- pull_requests: -10831 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35641] IDLE: calltips not properly formatted for functions without doc-strings

2019-01-03 Thread Tal Einat
Change by Tal Einat : -- pull_requests: -10830, 10831 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35641] IDLE: calltips not properly formatted for functions without doc-strings

2019-01-03 Thread miss-islington
miss-islington added the comment: New changeset 3c83cb7eed4f0e8b9f1cbf39263a2053a2483cb0 by Miss Islington (bot) in branch '3.7': bpo-35641: IDLE - format calltip properly when no docstring (GH-11415) https://github.com/python/cpython/commit/3c83cb7eed4f0e8b9f1cbf39263a2053a2483cb0

[issue35646] python -v writes to stderr

2019-01-03 Thread Deepak Joshi
Deepak Joshi added the comment: Thank you for the reply Eric. Thought the behaviour is pretty wierd and opened the issue. On Thu, 3 Jan 2019, 2:28 pm Eric V. Smith > Eric V. Smith added the comment: > > That's just the way it is with 2.7. > > -- > >

[issue35648] Add use_srcentry parameter to shutil.copytree()

2019-01-03 Thread flokX
Change by flokX : -- keywords: +patch, patch, patch, patch pull_requests: +10832, 10833, 10834, 10835 stage: -> patch review ___ Python tracker ___

[issue35648] Add use_srcentry parameter to shutil.copytree()

2019-01-03 Thread flokX
Change by flokX : -- keywords: +patch, patch pull_requests: +10832, 10833 stage: -> patch review ___ Python tracker ___ ___

[issue35648] Add use_srcentry parameter to shutil.copytree()

2019-01-03 Thread flokX
Change by flokX : -- keywords: +patch pull_requests: +10832 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list

[issue35648] Add use_srcentry parameter to shutil.copytree()

2019-01-03 Thread flokX
Change by flokX : -- keywords: +patch, patch, patch pull_requests: +10832, 10833, 10835 stage: -> patch review ___ Python tracker ___

[issue35648] Add use_srcentry parameter to shutil.copytree()

2019-01-03 Thread flokX
New submission from flokX : Currently it is decided if to use the srcentry in the copy_function by checking if the copy_function is copy() or copy2(). This will fail if the copy_function is a modified copy() or copy2() function. To control if the copy_function gets a srcentry or srcname

[issue35646] python -v writes to stderr

2019-01-03 Thread Eric V. Smith
Eric V. Smith added the comment: That's just the way it is with 2.7. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue35646] python -v writes to stderr

2019-01-03 Thread Deepak Joshi
Deepak Joshi added the comment: Hello, -V and --version both write to stderr not stdout. On Thu, 3 Jan 2019, 1:29 pm Eric V. Smith > Eric V. Smith added the comment: > > -v writes to stderr, so this is the expected behavior. Although maybe this > could be better documented. > > See issue

[issue35121] Cookie domain check returns incorrect results

2019-01-03 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: I have opened issue35647 for path related checks as a separate report. -- ___ Python tracker ___

[issue35647] Cookie path check returns incorrect results

2019-01-03 Thread Karthikeyan Singaravelan
New submission from Karthikeyan Singaravelan : I came across the issue during https://bugs.python.org/issue35121#msg332583 . I think this can be dealt as a separate issue not blocking the original report. I am classifying it as security but can be reclassified as a bug fix given the section