[issue39310] Add math.ulp(x): unit in the last place

2020-01-12 Thread Mark Dickinson


Mark Dickinson  added the comment:

[Steven]

> Any chance you could look at fma too? #29282

fma is hard, for reasons explained in the issue you linked to. If you have 
suggestions for resolving the difficulties, please do add them to that issue.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue28166] WindowsConsoleIO misbehavior when Ctrl+C is ignored

2020-01-12 Thread Zackery Spytz


Change by Zackery Spytz :


--
nosy: +ZackerySpytz
versions: +Python 3.8, Python 3.9 -Python 3.6

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39222] unittest.mock.Mock.parent is broken or undocumented

2020-01-12 Thread Chris Withers


Chris Withers  added the comment:

Ah right. Well, it's called `parent` in the __init__ as that's what the 
attribute used to be called. 

My suggestion would be to add `parent` to the docs @xtreak links to as a way to 
resolve this issue.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue28166] WindowsConsoleIO misbehavior when Ctrl+C is ignored

2020-01-12 Thread Zackery Spytz


Change by Zackery Spytz :


--
pull_requests: +17383
pull_request: https://github.com/python/cpython/pull/17976

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39295] usage of bitfields in ctypes structures changed between 3.7.5 and 3.7.6

2020-01-12 Thread Vinay Sajip


Vinay Sajip  added the comment:

> it appears that an old, poorly verified bug report 

Why do you say the bug report is poorly verified? The libffi maintainers accept 
it is an issue.

https://github.com/libffi/libffi/issues/33

> inspired a change that was actually not well tested and so incorrectly broke 
> valid code without deprecation. Trying to be as polite as possible, this 
> appears to indicate a poor testing process, if not a poor understanding of 
> the actual code in question.

Well, the original developer of ctypes is no longer involved in maintaining it. 
Those of us who try to address ctypes issues are perhaps not as well-versed in 
the code as the original developer and maintainer, but we do our best. This of 
course applies to other areas in CPython, and many other projects besides.

The change was accompanied by tests, which have been no doubt found wanting, 
but do *you* write software which guarantees no bugs ever in released versions? 
Using your example above, I will look into what was missed and try to improve 
the checking. The underlying libffi issue is a real one. The change wasn't 
introduced in a cavalier manner, as you seem to be suggesting.

> I strongly encourage you and other Python devs to carefully assess what went 
> wrong here and to work out (and write down) what will be done going forward 
> to avoid such problems. Simply rolling this change back and saying "sorry, 
> but we're overworked volunteers and stuff happens" is not going to regain 
> lost trust. In fact, it's pretty close to a promise that this sort of issue 
> will happen again. I think that you may want to make sure that it is not the 
> take-away message here.
Sorry if that sounds in any way unappreciative.  Thanks.

Well, "stuff happens" is true, and I don't mean to trivialise anything. But 
almost all released non-trivial software has bugs. If we didn't have a good 
process, then we could perhaps be held to task, but that's not the case. That 
things sometimes slip through the cracks is pretty much a given in software 
development - not confined to CPython.

My backporting the changes to 3.8 and 3.7 were premature, and I have learned 
that lesson. It's often a matter of judgement, and sometimes that can go wrong.

Do you regularly test your code with Python alpha and beta versions? I ask 
because I may reinstate the check for Python 3.9 after seeing what 
false-positive cases were missed here. Python 3.9 is at alpha 2 level right 
now. Continued feedback could help to minimise the chances of future surprises.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39318] NamedTemporaryFile could cause double-close on an fd if _TemporaryFileWrapper throws

2020-01-12 Thread Robert Xiao


New submission from Robert Xiao :

tempfile.NamedTemporaryFile creates its wrapper like so:

try:
file = _io.open(fd, mode, buffering=buffering,
newline=newline, encoding=encoding, errors=errors)

return _TemporaryFileWrapper(file, name, delete)
except BaseException:
_os.unlink(name)
_os.close(fd)
raise

If _TemporaryFileWrapper throws any kind of exception (even KeyboardInterrupt), 
this closes `fd` but leaks a valid `file` pointing to that fd. The `file` will 
later attempt to close the `fd` when it is collected, which can lead to subtle 
bugs. (This particular issue contributed to this bug: 
https://nedbatchelder.com/blog/202001/bug_915_please_help.html)

This should probably be rewritten as:

try:
file = _io.open(fd, mode, buffering=buffering,
newline=newline, encoding=encoding, errors=errors)
except:
_os.unlink(name)
_os.close(fd)
raise

try:
return _TemporaryFileWrapper(file, name, delete)
except BaseException:
_os.unlink(name)
file.close()
raise

or perhaps use nested try blocks to avoid the _os.unlink duplication.

--
components: Library (Lib)
messages: 359888
nosy: nneonneo
priority: normal
severity: normal
status: open
title: NamedTemporaryFile could cause double-close on an fd if 
_TemporaryFileWrapper throws
type: behavior
versions: Python 3.5, Python 3.6, Python 3.7, Python 3.8, Python 3.9

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39317] This new feature or bug about operator "- -"?

2020-01-12 Thread Raymond Hettinger


Raymond Hettinger  added the comment:

The interpreter parses those as:
 3 - (-2)
 3 + (+2)

The first is a binary operator and the second is a unary operator..

--
nosy: +rhettinger
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39317] This new feature or bug about operator "- -"?

2020-01-12 Thread dai dai


New submission from dai dai :

```py
print(3 - - 2)
print(3 + + 2)
"""output
5
5
"""
```

--
components: Windows
messages: 359886
nosy: dai dai, paul.moore, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: This new feature or bug about operator "- -"?
type: behavior
versions: Python 3.7

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39311] difflib pathlike support for {unified, context}_diff() {from, to}file

2020-01-12 Thread Raymond Hettinger


Raymond Hettinger  added the comment:

Elsewhere users of Path objects must explicitly coerce to str.  For example:  
json.dumps(str(Path("example.py"))).   This makes good sense to me.  We don't 
want to add an dependency on pathlib just to recognize Path objects.

--
nosy: +rhettinger
resolution:  -> rejected
stage:  -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39307] Memory leak in parsetok

2020-01-12 Thread Karthikeyan Singaravelan


Change by Karthikeyan Singaravelan :


--
nosy: +pablogsal

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39295] usage of bitfields in ctypes structures changed between 3.7.5 and 3.7.6

2020-01-12 Thread Matthew Newville


Matthew Newville  added the comment:

Thanks for the reply and the fix -- I have not tried the master branch, but 
will try to do that soon. If I understand correctly, we will have to stick with 
our kludgy "workaround" version in order to work with Python 3.7.6 and 3.8.1.  
Or is there a better approach than our workaround of using

class access_rights_handler_args(ctypes.Structure):
"access rights arguments"
_fields_ = [('chid', ctypes.c_long),
('access', ctypes.c_ubyte)]

?   

As a long-time (20 years) Python user and first-time reporter of a bug to main 
Python, I'm both very appreciative of the effort and slightly alarmed by 
reading the messages related to #16575.  From far outside the Python dev world, 
it appears that an old, poorly verified bug report inspired a change that was 
actually not well tested and so incorrectly broke valid code without 
deprecation. Trying to be as polite as possible, this appears to indicate a 
poor testing process, if not a poor understanding of the actual code in 
question. 

Trust is an important aspect of open source software, and much easier to lose 
than gain.  I strongly encourage you and other Python devs to carefully assess 
what went wrong here and to work out (and write down) what will be done going 
forward to avoid such problems. Simply rolling this change back and saying 
"sorry, but we're overworked volunteers and stuff happens" is not going to 
regain lost trust. In fact, it's pretty close to a promise that this sort of 
issue will happen again. I think that you may want to make sure that it is not 
the take-away message here.
Sorry if that sounds in any way unappreciative.  Thanks.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29282] Fused multiply-add: proposal to add math.fma()

2020-01-12 Thread Steven D'Aprano


Change by Steven D'Aprano :


--
nosy: +steven.daprano

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39310] Add math.ulp(x): unit in the last place

2020-01-12 Thread Steven D'Aprano


Steven D'Aprano  added the comment:

Thank you Victor!

Any chance you could look at fma too? #29282

(The reward for a job well done is to be given more jobs :-)

--
nosy: +steven.daprano

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39310] Add math.ulp(x): unit in the last place

2020-01-12 Thread Tim Peters


Tim Peters  added the comment:

+1

--
nosy: +tim.peters

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16379] SQLite error code not exposed to python

2020-01-12 Thread Ned Batchelder


Change by Ned Batchelder :


___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16379] SQLite error code not exposed to python

2020-01-12 Thread Ned Batchelder


Ned Batchelder  added the comment:

What would it take to get this merged?

--
nosy: +nedbat

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32021] Brotli encoding is not recognized by mimetypes

2020-01-12 Thread Abhilash Raj


Change by Abhilash Raj :


--
stage: patch review -> resolved
status: open -> closed
versions:  -Python 3.8

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32021] Brotli encoding is not recognized by mimetypes

2020-01-12 Thread Abhilash Raj


Abhilash Raj  added the comment:


New changeset b2b4a51f7463a0392456f7772f33223e57fa4ccc by Abhilash Raj (Philip 
McMahon) in branch 'master':
bpo-32021: Support brotli .br encoding in mimetypes (#12200)
https://github.com/python/cpython/commit/b2b4a51f7463a0392456f7772f33223e57fa4ccc


--
nosy: +maxking

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39313] lib2to3 provide a way to use exec as a function in RefactoringTool

2020-01-12 Thread Pablo Galindo Salgado


Change by Pablo Galindo Salgado :


--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39313] lib2to3 provide a way to use exec as a function in RefactoringTool

2020-01-12 Thread miss-islington

miss-islington  added the comment:


New changeset 61b14151cc92021a10f94765eaa152ed04eb262a by Miss Islington (bot) 
(Batuhan Taşkaya) in branch 'master':
bpo-39313: Add an option to RefactoringTool for using exec as a function 
(GH-17967)
https://github.com/python/cpython/commit/61b14151cc92021a10f94765eaa152ed04eb262a


--
nosy: +miss-islington

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39308] Literal[True] prints as Literal[1] in some cases

2020-01-12 Thread kornicameister


Change by kornicameister :


--
keywords: +patch
pull_requests: +17381
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/17974

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39316] settrace skips lines when chaining methods without arguments

2020-01-12 Thread Alex Hall


New submission from Alex Hall :

When stepping through a multiline expression like this:

```
print(slug
  .replace("_", " ")
  .title()
  .upper()
  .replace("a", "b")
  .lower()
  .replace("The ", "the "))
```

only these lines are hit by the tracer function:

15 print(slug
16   .replace("_", " ")
19   .replace("a", "b")
21   .replace("The ", "the "))

I'm guessing the problem is that there are no expressions on the other lines, 
as the attributes and calls all start with slug.

--
components: Interpreter Core
files: trace_skipping_lines_bug.py
messages: 359878
nosy: alexmojaki
priority: normal
severity: normal
status: open
title: settrace skips lines when chaining methods without arguments
versions: Python 2.7, Python 3.5, Python 3.6, Python 3.7, Python 3.8, Python 3.9
Added file: https://bugs.python.org/file48837/trace_skipping_lines_bug.py

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39295] usage of bitfields in ctypes structures changed between 3.7.5 and 3.7.6

2020-01-12 Thread Vinay Sajip


Vinay Sajip  added the comment:

The change which caused this breakage has been reverted, at least for now. 
bpo-16576 is related to bpo-16575 (which is about unions rather than bitfields, 
but the cases have things in common).

Refer to bpo-16575 for PRs relating to the reversion. This includes 3.7. You 
are welcome to try the latest version (will need building from source, or 
waiting for the next release).

There is still an underlying ctypes/libffi issue, and the check was only 
supposed to catch instances being passed by value, rather than pointers to such 
structures/unions being passed. It may be that the check is faulty - your 
example will be used to investigate.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16575] ctypes: unions as arguments

2020-01-12 Thread Vinay Sajip


Vinay Sajip  added the comment:


New changeset 9dbf5d3bc2033940cdca35440cf08814544f81e4 by Vinay Sajip in branch 
'3.7':
[3.7] bpo-16575: Disabled checks for union types being passed by value. 
(GH-17960) (GH-17970)
https://github.com/python/cpython/commit/9dbf5d3bc2033940cdca35440cf08814544f81e4


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3530] ast.NodeTransformer doc bug

2020-01-12 Thread miss-islington


miss-islington  added the comment:


New changeset e222b4c69f99953a14ded52497a9909e34fc3893 by Miss Islington (bot) 
in branch '3.7':
bpo-3530: Add advice on when to correctly use fix_missing_locations in the AST 
docs (GH-17172)
https://github.com/python/cpython/commit/e222b4c69f99953a14ded52497a9909e34fc3893


--
nosy: +miss-islington

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3530] ast.NodeTransformer doc bug

2020-01-12 Thread miss-islington


miss-islington  added the comment:


New changeset ef0af30e507a29dae03aae40459b9c44c96f260d by Miss Islington (bot) 
in branch '3.8':
bpo-3530: Add advice on when to correctly use fix_missing_locations in the AST 
docs (GH-17172)
https://github.com/python/cpython/commit/ef0af30e507a29dae03aae40459b9c44c96f260d


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39313] lib2to3 provide a way to use exec as a function in RefactoringTool

2020-01-12 Thread Batuhan


Batuhan  added the comment:

After discussing with @pablogsal, instead of offering 2 options that one 
overlaps another we added -e option to 2to3.main and exec_function option 
(alongside print_funtion) to RefactoringTool.

--
nosy: +pablogsal
title: lib2to3 RefactoringTool python_grammar_no_print_and_exec_statement -> 
lib2to3 provide a way to use exec as a function in RefactoringTool

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3530] ast.NodeTransformer doc bug

2020-01-12 Thread Pablo Galindo Salgado


Change by Pablo Galindo Salgado :


--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3530] ast.NodeTransformer doc bug

2020-01-12 Thread Pablo Galindo Salgado

Pablo Galindo Salgado  added the comment:


New changeset 6680f4a9f5d15ab82b2ab6266c6f917cb78c919a by Pablo Galindo 
(Batuhan Taşkaya) in branch 'master':
bpo-3530: Add advice on when to correctly use fix_missing_locations in the AST 
docs (GH-17172)
https://github.com/python/cpython/commit/6680f4a9f5d15ab82b2ab6266c6f917cb78c919a


--
nosy: +pablogsal

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3530] ast.NodeTransformer doc bug

2020-01-12 Thread miss-islington


Change by miss-islington :


--
pull_requests: +17379
pull_request: https://github.com/python/cpython/pull/17972

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3530] ast.NodeTransformer doc bug

2020-01-12 Thread miss-islington


Change by miss-islington :


--
pull_requests: +17380
pull_request: https://github.com/python/cpython/pull/17973

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1531415] parsetok.c emits warnings by writing to stderr

2020-01-12 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:

https://github.com/python/cpython/pull/17971

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1531415] parsetok.c emits warnings by writing to stderr

2020-01-12 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:

The C version of pgen is gone so the circular dependency should not be a 
problem as as far as I can tell, Parser/parsetok.c does not emit warnings 
anymore (the functions are unused). Maybe we should just clean that code 
instead.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39177] In tkinter, simple dialogs, askstrings, etc. with flexible coordinates and no viewable parent.

2020-01-12 Thread Cheryl Sabella


Change by Cheryl Sabella :


--
nosy: +serhiy.storchaka

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue4347] Circular dependency causes SystemError when adding new syntax

2020-01-12 Thread Pablo Galindo Salgado

Pablo Galindo Salgado  added the comment:

I think there is nothing missing now that the C version of pgen is gone. And 
parsetok is already rebuilt when gramminit.h changes:

Python/compile.o Python/symtable.o Python/ast_unparse.o Python/ast.o 
Python/future.o Parser/parsetok.o: $(srcdir)/Include/graminit.h   ↪ 
$(srcdir)/Include/Python-ast.h

Feel free to re-open if we are missing something :)

--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38356] test_asyncio: SubprocessThreadedWatcherTests leaks threads

2020-01-12 Thread Kyle Stanley


Kyle Stanley  added the comment:

> I hope it is fixed now.
> Thanks, Kyle!

No problem, thanks for looking over it. 

Let me know if the warning comes up again. If it does, I'll be sure to look 
into it.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16575] ctypes: unions as arguments

2020-01-12 Thread Vinay Sajip


Change by Vinay Sajip :


--
pull_requests: +17378
pull_request: https://github.com/python/cpython/pull/17970

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38330] httplib specifies content-length when transfer-encoding present

2020-01-12 Thread Cheryl Sabella


Cheryl Sabella  added the comment:

Hi @apmatthews, thank you for the report and for the pull request.  
Unfortunately, Python 2.7 reached end of life on 1/1/2020, so no additional 
changes are being incorporated into Python 2.  Looking at the documentation for 
Python 3, I think it's OK there 
(https://docs.python.org/3/library/http.client.html#http.client.HTTPConnection.request).

--
nosy: +cheryl.sabella
resolution:  -> wont fix
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39276] type() cause segmentation fault in callback function called from C extension

2020-01-12 Thread Giacomo Mazzamuto


Giacomo Mazzamuto  added the comment:

Hello,

the segmentation fault is also resolved by finalizing the initialization of 
InternalType by calling PyType_Ready(), just like you do with 
ExternalType

--
nosy: +Giacomo Mazzamuto

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39315] Lists of objects containing lists

2020-01-12 Thread Karthikeyan Singaravelan


Karthikeyan Singaravelan  added the comment:

No problem, you're welcome :)

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39308] Literal[True] prints as Literal[1] in some cases

2020-01-12 Thread kornicameister


kornicameister  added the comment:

I will play around and maybe submit PR later this evening.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39315] Lists of objects containing lists

2020-01-12 Thread hmathers


hmathers  added the comment:

I should have known I was just doing something wrong. Thank you for your help!

--
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39315] Lists of objects containing lists

2020-01-12 Thread Karthikeyan Singaravelan


Karthikeyan Singaravelan  added the comment:

You are appending to the class attribute where both shelf[0] and shelf[1] 
refers to the same list as seen by output of id. You might want to create an 
instance variable and use it for mutating across different instances. This 
could help : 
https://docs.python.org/3/tutorial/classes.html#class-and-instance-variables


class Folder():
papers = []

def __init__(self):
self.papers_self = []

shelf = []
shelf.append(Folder)
shelf.append(Folder)

print(f"{id(shelf[0]) = }")
print(f"{id(shelf[1]) = }")

shelf = []
shelf.append(Folder())
shelf.append(Folder())

print(f"{id(shelf[0].papers_self) = }")
print(f"{id(shelf[1].papers_self) = }")

shelf[0].papers_self.append("one")
shelf[1].papers_self.append("two")
print(f"{shelf[0].papers_self = }")
print(f"{shelf[1].papers_self = }")


id(shelf[0]) = 140411765635376
id(shelf[1]) = 140411765635376
id(shelf[0].papers_self) = 140411720636864
id(shelf[1].papers_self) = 140411720668608
shelf[0].papers_self = ['one']
shelf[1].papers_self = ['two']

--
nosy: +xtreak

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38293] Deepcopying property objects results in unexpected TypeError

2020-01-12 Thread miss-islington


miss-islington  added the comment:


New changeset 3043ec7d6aed402218404c25179e734166c7fbe0 by Miss Islington (bot) 
in branch '3.8':
bpo-38293: Allow shallow and deep copying of property objects (GH-16438)
https://github.com/python/cpython/commit/3043ec7d6aed402218404c25179e734166c7fbe0


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38293] Deepcopying property objects results in unexpected TypeError

2020-01-12 Thread miss-islington


miss-islington  added the comment:


New changeset 4be97260351f214d3c8b8477682323bb52ee2af3 by Miss Islington (bot) 
in branch '3.7':
bpo-38293: Allow shallow and deep copying of property objects (GH-16438)
https://github.com/python/cpython/commit/4be97260351f214d3c8b8477682323bb52ee2af3


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39310] Add math.ulp(x): unit in the last place

2020-01-12 Thread STINNER Victor


STINNER Victor  added the comment:

See also math.isclose() and its PEP 485 which mentions ULP (Unit in the Last 
Place)... in the "Inappropriate uses" section :-)

* https://docs.python.org/dev/library/math.html#math.isclose
* https://www.python.org/dev/peps/pep-0485/#inappropriate-uses

Extract of an old python-ideas discussion on adding nextafter():

"It's also a little weird to jump from nextafter to isclose, since AFAIK
they have pretty much non-overlapping use cases..."

https://mail.python.org/pipermail/python-ideas/2017-February/044832.html

Other links:

* https://en.wikipedia.org/wiki/Unit_in_the_last_place
* https://en.wikipedia.org/wiki/Machine_epsilon
* https://en.wikipedia.org/wiki/IEEE_754

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38293] Deepcopying property objects results in unexpected TypeError

2020-01-12 Thread miss-islington


Change by miss-islington :


--
pull_requests: +17377
pull_request: https://github.com/python/cpython/pull/17969

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38293] Deepcopying property objects results in unexpected TypeError

2020-01-12 Thread Cheryl Sabella


Change by Cheryl Sabella :


--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed
versions:  -Python 3.6

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38293] Deepcopying property objects results in unexpected TypeError

2020-01-12 Thread miss-islington


Change by miss-islington :


--
pull_requests: +17376
pull_request: https://github.com/python/cpython/pull/17968

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38293] Deepcopying property objects results in unexpected TypeError

2020-01-12 Thread miss-islington

miss-islington  added the comment:


New changeset 9f3fc6c5b4993f2b362263b494f84793a21aa073 by Miss Islington (bot) 
(Guðni Natan Gunnarsson) in branch 'master':
bpo-38293: Allow shallow and deep copying of property objects (GH-16438)
https://github.com/python/cpython/commit/9f3fc6c5b4993f2b362263b494f84793a21aa073


--
nosy: +miss-islington

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39315] Lists of objects containing lists

2020-01-12 Thread hmathers


New submission from hmathers :

class Folder():
papers = []

shelf = []
shelf.append(Folder)
shelf.append(Folder)

shelf[0].papers.append("one")
shelf[1].papers.append("two")
print(shelf[0].papers) #should just print "one" right?

--
messages: 359858
nosy: hmathers
priority: normal
severity: normal
status: open
title: Lists of objects containing lists
versions: Python 3.7

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39290] lib2to3.fixes.fix_import: support imports_as_name in traverse_imports

2020-01-12 Thread Batuhan


Change by Batuhan :


--
nosy: +benjamin.peterson

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39290] lib2to3.fixes.fix_import: support imports_as_name in traverse_imports

2020-01-12 Thread Batuhan


Change by Batuhan :


--
components: +2to3 (2.x to 3.x conversion tool)
versions: +Python 3.9

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39314] Autofill the closing paraenthesis during auto-completion for functions which accept no arguments at all

2020-01-12 Thread Aurora


Change by Aurora :


--
title: Autofill the closing paraenthesis during auto-completion for functions 
which accept no arguments -> Autofill the closing paraenthesis during 
auto-completion for functions which accept no arguments at all

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39304] Don't accept a negative number for the count argument in str.replace(old, new[, count])

2020-01-12 Thread Aurora


Aurora  added the comment:

@xtreak
Understood, just as an aftermath:
I still disagree a little with such an implementation because it's riding way 
into terse-coding that it's going against the principles of mathematics, which 
is the basis of computer science and programming.
Python can use another special keyword or something(e.g. the Ellipsis notation) 
for this and all similar cases.
You'll get into trouble if you wanna explain such a thing to a mathematician or 
if you wanna write some pseudo-code based on it, which in both cases they're 
not gonna look at the underlying implementation.
A bad practice in C, followed by CPython spreaded to others.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39314] Autofill the closing paraenthesis during auto-completion for functions which accept no arguments

2020-01-12 Thread Aurora


New submission from Aurora :

If Python is compiled with the GNU readline headers, it will provide 
autocompletion for Python functions and etc.

In the Python interpreter environment, if a function is typed partially, Python 
will fill in the rest if a tab character is typed.

If a function accepts no arguments, Python still doesn't fill in the last 
closing paraenthesis during autocompletion, in the hope that the user will 
provide arguments, but in such a case it's pointless.

--
components: Interpreter Core
messages: 359855
nosy: opensource-assist
priority: normal
severity: normal
status: open
title: Autofill the closing paraenthesis during auto-completion for functions 
which accept no arguments
type: enhancement
versions: Python 3.9

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39288] Add math.nextafter(a, b)

2020-01-12 Thread STINNER Victor


STINNER Victor  added the comment:

I created bpo-39310 to propose to add math.ulp(x).

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39313] lib2to3 RefactoringTool python_grammar_no_print_and_exec_statement

2020-01-12 Thread Batuhan


Change by Batuhan :


--
keywords: +patch
pull_requests: +17375
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/17967

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39313] lib2to3 RefactoringTool python_grammar_no_print_and_exec_statement

2020-01-12 Thread Batuhan


New submission from Batuhan :

issue 23896 introduced a grammar without print and exec statements (they both 
are functions now) but both the lib2to3 cli script and RefactoringTool lacks of 
that functionality (which is pretty useful for outside users of lib2to3 like 
formatters)

(RefactoringTool)
if self.options["print_function"]:
self.grammar = pygram.python_grammar_no_print_statement
else:
self.grammar = pygram.python_grammar


It should be supported here and on the command line script.

--
components: 2to3 (2.x to 3.x conversion tool)
messages: 359853
nosy: BTaskaya, benjamin.peterson
priority: normal
severity: normal
status: open
title: lib2to3 RefactoringTool python_grammar_no_print_and_exec_statement
versions: Python 3.9

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39310] Add math.ulp(x): unit in the last place

2020-01-12 Thread Karthikeyan Singaravelan


Change by Karthikeyan Singaravelan :


--
nosy: +mark.dickinson, rhettinger, stutzbach

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39179] pandas tz_convert() seems to report incorrect date conversion

2020-01-12 Thread Cheryl Sabella


Change by Cheryl Sabella :


--
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39295] usage of bitfields in ctypes structures changed between 3.7.5 and 3.7.6

2020-01-12 Thread Cheryl Sabella


Cheryl Sabella  added the comment:

Adding @vinay.sajip to the nosy list as he worked on issue16576.

--
nosy: +cheryl.sabella, vinay.sajip

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue19557] ast - docs for every node type are missing

2020-01-12 Thread Cheryl Sabella


Cheryl Sabella  added the comment:

@BTaskaya, thank you.  I'm going to close this issue as a duplicate of that one.

--
nosy: +cheryl.sabella
resolution:  -> duplicate
stage:  -> resolved
status: open -> closed
superseder:  -> Improve the AST documentation

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39293] Windows 10 64-bit needs reboot

2020-01-12 Thread Cheryl Sabella


Change by Cheryl Sabella :


--
components: +Windows
nosy: +paul.moore, steve.dower, tim.golden, zach.ware

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39312] Expose placeholder reparse points in Windows

2020-01-12 Thread Eryk Sun


New submission from Eryk Sun :

Windows 10 apparently defaults to disguising placeholder reparse points in 
python.exe processes, but exposes them to cmd.exe and powershell.exe processes. 

A common example is a user's OneDrive folder, which extensively uses 
placeholder reparse points for files and directories. The placeholder file 
attributes include FILE_ATTRIBUTE_REPARSE_POINT, FILE_ATTRIBUTE_OFFLINE, and 
FILE_ATTRIBUTE_SPARSE_FILE, and the reparse tags are in the set
IO_REPARSE_TAG_CLOUD[_1-F] (0x9000[0-F]01A). Currently, we don't see any of 
this information in a python.exe process when we call FindFirstFile[Ex]W, 
GetFileAttributesW, or query file information on a file opened with 
FILE_FLAG_OPEN_REPARSE_POINT, such as when we call os.lstat. 

The behavior is determined by the process or per-thread 
placeholder-compatibility mode. The process mode can be queried via 
RtlQueryProcessPlaceholderCompatibilityMode [1]. The documentation says that 
"[m]ost Windows applications see exposed placeholders by default". I don't know 
what criteria Windows is using here, but in my tests with python.exe and a 
simple command-line test program, the default mode is PHCM_DISGUISE_PLACEHOLDER.

Should Python provide some way to call 
RtlSetProcessPlaceholderCompatibilityMode [2] to set PHCM_EXPOSE_PLACEHOLDERS 
mode for the current process? Should os.lstat be modified to temporarily expose 
placeholders -- for the current thread only -- via 
RtlSetThreadPlaceholderCompatibilityMode [3]? We can dynamically link to this 
ntdll function via GetProcAddress. It returns the previous mode, which we can 
restore after querying the file.

[1] 
https://docs.microsoft.com/en-us/windows-hardware/drivers/ddi/ntifs/nf-ntifs-rtlqueryprocessplaceholdercompatibilitymode
[2] 
https://docs.microsoft.com/en-us/windows-hardware/drivers/ddi/ntifs/nf-ntifs-rtlsetprocessplaceholdercompatibilitymode
[3] 
https://docs.microsoft.com/en-us/windows-hardware/drivers/ddi/ntifs/nf-ntifs-rtlsetthreadplaceholdercompatibilitymode

--
components: Library (Lib), Windows
messages: 359850
nosy: eryksun, paul.moore, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
stage: needs patch
status: open
title: Expose placeholder reparse points in Windows
type: enhancement
versions: Python 3.8, Python 3.9

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue14014] codecs.StreamWriter.reset contract not fulfilled

2020-01-12 Thread Cheryl Sabella


Cheryl Sabella  added the comment:

@lemburg, when you get a chance, please review the PR.  Thanks!

--
assignee:  -> lemburg
nosy: +cheryl.sabella
versions: +Python 3.8, Python 3.9 -Python 3.4, Python 3.5

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue34732] uuid returns version more than 5

2020-01-12 Thread Tal Einat


Tal Einat  added the comment:

The uuid module is likely used on a huge variety of operating systems and 
hardware; I feel making UUID.__init__() reject values which it accepted until 
now would unnecessarily break existing code.  While raising an exception in 
__init__ seems more natural and correct in theory, it is also a larger break in 
backwards-compatibility.

I'm specifically worried by the _windll() example in PR GH-9417, in which a 
non-RFC 4122 conforming UUID is created, leading to the addition of the new 
"strict" keyword argument so that we can disable the new check in __init__ in 
this case.  There's a good chance that there are other such scenarios of which 
we're simply not yet aware.

In light of this, returning None for UUID.version, as in PR GH-9413, actually 
seems like a very reasonable solution.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39311] difflib pathlike support for {unified, context}_diff() {from, to}file

2020-01-12 Thread Karthikeyan Singaravelan


Change by Karthikeyan Singaravelan :


--
nosy: +tim.peters

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue34732] uuid returns version more than 5

2020-01-12 Thread Tal Einat


Change by Tal Einat :


--
versions: +Python 3.7

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39311] difflib pathlike support for {unified, context}_diff() {from, to}file

2020-01-12 Thread Batuhan


New submission from Batuhan :

>>> tuple(difflib.context_diff(["abc"], ["bcd"], fromfile=Path("example.py")))
Traceback (most recent call last):
  File "", line 1, in 
  File "/usr/local/lib/python3.9/difflib.py", line 1254, in context_diff
_check_types(a, b, fromfile, tofile, fromfiledate, tofiledate, lineterm)
  File "/usr/local/lib/python3.9/difflib.py", line 1301, in _check_types
raise TypeError('all arguments must be str, not: %r' % (arg,))
TypeError: all arguments must be str, not: PosixPath('example.py')

IMHO to and from file arguments should accept PathLike objects. If agreed I can 
prepare a patch.

--
components: Library (Lib)
messages: 359847
nosy: BTaskaya
priority: normal
severity: normal
status: open
title: difflib pathlike support for {unified,context}_diff() {from,to}file
versions: Python 3.9

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39310] Add math.ulp(x)

2020-01-12 Thread STINNER Victor


Change by STINNER Victor :


--
keywords: +patch
pull_requests: +17374
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/17965

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39310] Add math.ulp(x): unit in the last place

2020-01-12 Thread STINNER Victor


Change by STINNER Victor :


--
title: Add math.ulp(x) -> Add math.ulp(x): unit in the last place

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39310] Add math.ulp(x)

2020-01-12 Thread STINNER Victor


New submission from STINNER Victor :

In bpo-39288, I added math.nextafter(x, y) function. I propose to now add 
math.ulp() companion function.

Examples from tests of my PR:

self.assertEqual(math.ulp(1.0), sys.float_info.epsilon)
self.assertEqual(math.ulp(2.0 ** 52), 1.0)
self.assertEqual(math.ulp(2.0 ** 53), 2.0)
self.assertEqual(math.ulp(2.0 ** 64), 4096.0)

Unit in the last place:

* https://en.wikipedia.org/wiki/Unit_in_the_last_place
* Java provides a java.lang.Math.ulp(x) function: 
https://docs.oracle.com/javase/8/docs/api/java/lang/Math.html#ulp-double-

In numpy, I found two references to ULP:

* numpy.testing.assert_array_almost_equal_nulp:
https://docs.scipy.org/doc/numpy-1.13.0/reference/generated/numpy.testing.assert_array_almost_equal_nulp.html

* numpy.testing.assert_array_max_ulp:
https://docs.scipy.org/doc/numpy-1.13.0/reference/generated/numpy.testing.assert_array_max_ulp.html

Attached PR implements math.ulp(x).

--
components: Library (Lib)
messages: 359846
nosy: vstinner
priority: normal
severity: normal
status: open
title: Add math.ulp(x)
versions: Python 3.9

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39288] Add math.nextafter(a, b)

2020-01-12 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset 54cfbb2feee1f7328c3d6799ec3734b00824b555 by Victor Stinner in 
branch 'master':
bpo-39288: Add examples to math.nextafter() documentation (GH-17962)
https://github.com/python/cpython/commit/54cfbb2feee1f7328c3d6799ec3734b00824b555


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16575] ctypes: unions as arguments

2020-01-12 Thread Vinay Sajip


Vinay Sajip  added the comment:


New changeset eb9ba2f66df2195a9c6295e73ab3d545a1445f05 by Vinay Sajip (Miss 
Islington (bot)) in branch '3.8':
bpo-16575: Disabled checks for union types being passed by value. (GH-17960) 
(GH-17964)
https://github.com/python/cpython/commit/eb9ba2f66df2195a9c6295e73ab3d545a1445f05


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16575] ctypes: unions as arguments

2020-01-12 Thread miss-islington


Change by miss-islington :


--
pull_requests: +17373
pull_request: https://github.com/python/cpython/pull/17964

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38356] test_asyncio: SubprocessThreadedWatcherTests leaks threads

2020-01-12 Thread Andrew Svetlov


Change by Andrew Svetlov :


--
versions: +Python 3.8

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38356] test_asyncio: SubprocessThreadedWatcherTests leaks threads

2020-01-12 Thread Andrew Svetlov


Andrew Svetlov  added the comment:

I hope it is fixed now.
Thanks, Kyle!

--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38356] test_asyncio: SubprocessThreadedWatcherTests leaks threads

2020-01-12 Thread miss-islington


miss-islington  added the comment:


New changeset 33dd75a28fe2ec6e85c5d3b315b5a9d4cf0652db by Miss Islington (bot) 
in branch '3.8':
bpo-38356: Fix ThreadedChildWatcher thread leak in test_asyncio (GH-16552)
https://github.com/python/cpython/commit/33dd75a28fe2ec6e85c5d3b315b5a9d4cf0652db


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39233] glossary entry for parameter out-of-date for positional-only parameters

2020-01-12 Thread Mark Dickinson


Mark Dickinson  added the comment:

Pablo: thanks for the quick fix!

--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38356] test_asyncio: SubprocessThreadedWatcherTests leaks threads

2020-01-12 Thread miss-islington


Change by miss-islington :


--
pull_requests: +17372
pull_request: https://github.com/python/cpython/pull/17963

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38356] test_asyncio: SubprocessThreadedWatcherTests leaks threads

2020-01-12 Thread miss-islington


miss-islington  added the comment:


New changeset 0ca7cc7fc0518c24dc9b78c38418e6064e64f148 by Miss Islington (bot) 
(Kyle Stanley) in branch 'master':
bpo-38356: Fix ThreadedChildWatcher thread leak in test_asyncio (GH-16552)
https://github.com/python/cpython/commit/0ca7cc7fc0518c24dc9b78c38418e6064e64f148


--
nosy: +miss-islington

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39233] glossary entry for parameter out-of-date for positional-only parameters

2020-01-12 Thread miss-islington


miss-islington  added the comment:


New changeset a240f0545653d961c67c1eb1597cb70b67f4e5f1 by Miss Islington (bot) 
in branch '3.8':
bpo-39233: Update positional-only section in the glossary (GH-17874)
https://github.com/python/cpython/commit/a240f0545653d961c67c1eb1597cb70b67f4e5f1


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39288] Add math.nextafter(a, b)

2020-01-12 Thread Mark Dickinson


Mark Dickinson  added the comment:

> I suggest "next_after" instead of "nextafter".

"nextafter" gives us consistency with C, with NumPy and with other compound 
names in the math module ("isnan", "isclose", "copysign"). My own brain doesn't 
perceive either of "nextafter" or "next_after" as more readable than the other.

What's the argument for "next_after"?

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39288] Add math.nextafter(a, b)

2020-01-12 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +17371
pull_request: https://github.com/python/cpython/pull/17962

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38883] Path.home() should ignore HOME env var like os.path.expanduser()

2020-01-12 Thread Christoph Reiter


Change by Christoph Reiter :


--
keywords: +patch
pull_requests: +17369
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/17961

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue36264] os.path.expanduser should not use HOME on windows

2020-01-12 Thread Christoph Reiter


Change by Christoph Reiter :


--
pull_requests: +17370
pull_request: https://github.com/python/cpython/pull/17961

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12159] Integer Overflow in __len__

2020-01-12 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset d7c7adde003ddca5cbe4fc47cf09464ab95a066e by Victor Stinner (Zac 
Hatfield-Dodds) in branch 'master':
bpo-12159: Document sys.maxsize limit in len() function reference (GH-17934)
https://github.com/python/cpython/commit/d7c7adde003ddca5cbe4fc47cf09464ab95a066e


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16575] ctypes: unions as arguments

2020-01-12 Thread Vinay Sajip


Vinay Sajip  added the comment:


New changeset c12440c371025bea9c3bfb94945f006c486c2c01 by Vinay Sajip in branch 
'master':
bpo-16575: Disabled checks for union types being passed by value. (GH-17960)
https://github.com/python/cpython/commit/c12440c371025bea9c3bfb94945f006c486c2c01


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue26628] Undefined behavior calling C functions with ctypes.Union arguments

2020-01-12 Thread Vinay Sajip


Change by Vinay Sajip :


--
dependencies: +ctypes: unions as arguments
resolution: fixed -> duplicate

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16575] ctypes: unions as arguments

2020-01-12 Thread Vinay Sajip


Change by Vinay Sajip :


--
pull_requests: +17368
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/17960

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39259] poplib.POP3/POP3_SSL should reject timeout = 0 (non-blocking mode)

2020-01-12 Thread Dong-hee Na


Change by Dong-hee Na :


--
pull_requests: +17367
pull_request: https://github.com/python/cpython/pull/17959

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com