[issue34254] Include type annotations in error messages for better errors

2018-07-28 Thread Karthikeyan Singaravelan

New submission from Karthikeyan Singaravelan :

Python 3 supports type annotations in functions but when there is a TypeError 
due to calling a function then only the arguments are given in the error 
message. If the function has type annotations then adding them to the error 
message will give better experience and context. This doesn't break any 
existing code without type annotations but improves errors for code that has 
type annotations giving a better error reporting experience.

Currently format_missing method one of the methods used to raise TypeError that 
returns the name of the required positional arguments. The function receives 
the code object and type annotations are present in the function object. Hence 
I have used the code_object->co_name to get the function object from globals. 
After getting the function object I go through the annotations if present to 
form an error message to be attached with the existing error message.

I have implemented it in my branch : 
https://github.com/tirkarthi/cpython/tree/error-message-annotations


# foo_signature.py

from typing import List, Dict, NoReturn

def get_profile_a(user_id: int, likes: Dict[str, int]) -> Dict[str, int]:
return {'user_id': user_id, 'likes': len(likes.keys())}

if __name__ == "__main__":
get_profile_a()

# Error message for functions without type hints patch

cpython git:(master) ✗ ./python foo_signature.py
Traceback (most recent call last):
  File "foo_signature.py", line 11, in 
get_profile_a()
TypeError: get_profile_a() missing 2 required positional arguments: 'user_id' 
and 'likes'

# Error message for functions with type hints patch in my branch

cpython git:(error-message-annotations) ✗ ./python foo_signature.py
Traceback (most recent call last):
  File "foo_signature.py", line 11, in 
get_profile_a()
TypeError: get_profile_a() missing 2 required positional arguments: 'user_id' 
and 'likes'
Annotation: (user_id: , likes: typing.Dict[str, int], return: 
typing.Dict[str, int])


The proposed patch adds the annotations in the end thus giving more context to 
the user. 

Pros :

* Better error reporting and more context that helps beginners like Elm/Rust 
that have improved error messages.
* This will also motivate developers to write type annotations since error 
messages become more useful.

Cons : 

* Since code_object is present in the call site where TypeError is raised I 
need to do a lookup of the globals to get the function object. This can be 
fixed in the way get_type_hints works on a function object. This also blocks me 
from writing tests where the function is defined inside a class that inherits 
from unittest.TestCase.
* After getting the annotations I need to form a string with the relevant 
parameters. Since most of them are hash lookups I don't think there is a cost 
involved here. Most of the time TypeError is raised to the user. My C skills 
are also low and I hope code can be improved much better here.

I am good with the core team rejecting this patch but just wanted to put 
forward the idea. I have also created a thread in python-ideas mailing list to 
gather feedback about this and hope it gains some traction. I received good 
feedback from Ethan Smith, mypy core developer on Reddit : 
https://www.reddit.com/r/Python/comments/92eh1g/type_annotations_in_error_messages_for_better/e3655z1/

python-ideas thread : 
https://mail.python.org/pipermail/python-ideas/2018-July/052463.html

I am adding Raymond and Terry since the previous PRs I have raised regarding 
error messages were reviewed by them. Also from the past discussions they make 
decisions on whether the change and it's effect is worth enough to be added to 
the core given the implementation complexity. Feel free to un-assign yourself 
if this is irrelevant.


Thanks

--
components: Interpreter Core
messages: 322527
nosy: rhettinger, terry.reedy, xtreak
priority: normal
severity: normal
status: open
title: Include type annotations in error messages for better errors
type: enhancement
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



[issue34251] MSI build fails

2018-07-28 Thread Berker Peksag


Change by Berker Peksag :


--
keywords: +patch
pull_requests: +8027
stage: needs patch -> patch review

___
Python tracker 

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



[issue34239] Convert test_bz2 to use tempfile

2018-07-28 Thread TJG


TJG  added the comment:

Thanks, Brett. I'll address Serhiy's comment with a new PR and then tidy 
yup.

--
nosy: +tjguk

___
Python tracker 

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



[issue32215] sqlite3 400x-600x slower depending on formatting of an UPDATE statement in a string

2018-07-28 Thread Berker Peksag


Change by Berker Peksag :


--
keywords: +patch
pull_requests: +8028
stage:  -> patch review

___
Python tracker 

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



[issue34247] PYTHONOPTIMZE ignored in 3.7.0 when using custom launcher

2018-07-28 Thread Ronald Oussoren


Ronald Oussoren  added the comment:

I'm at the EuroPython sprints and currently working on a testcase for this. 
Should be a nice way to get back into actively contributing to CPython :-)

--

___
Python tracker 

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



[issue32215] sqlite3 400x-600x slower depending on formatting of an UPDATE statement in a string

2018-07-28 Thread Berker Peksag


Berker Peksag  added the comment:

https://github.com/python/cpython/commit/ab994ed8b97e1b0dac151ec827c857f5e7277565
 wasn't merged in the 2.7 branch, so this should only be reproduced in Python 
3.6+.

--
components:  -Interpreter Core
versions: +Python 3.8 -Python 2.7

___
Python tracker 

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



[issue34255] test_embed skipped when srcdir != builddir

2018-07-28 Thread Ronald Oussoren


New submission from Ronald Oussoren :

The testsuite skips test_embed when srcdir != builddir, that's because 
test.test_embed assumes that _testembed is in the source directory. 

I noticed this while working on issue34247.

--
components: Tests
messages: 322531
nosy: ronaldoussoren
priority: normal
severity: normal
stage: needs patch
status: open
title: test_embed skipped when srcdir != builddir
type: behavior
versions: Python 3.7, Python 3.8

___
Python tracker 

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



[issue34247] PYTHONOPTIMZE ignored in 3.7.0 when using custom launcher

2018-07-28 Thread Ronald Oussoren


Ronald Oussoren  added the comment:

FYI: I've filed issue34255 while working on this, test_embed assumes that 
you're building in the source directory (which I usually don't do).

--

___
Python tracker 

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



[issue34247] PYTHONOPTIMZE ignored in 3.7.0 when using custom launcher

2018-07-28 Thread Ronald Oussoren


Ronald Oussoren  added the comment:

Interesting... pylifecycle.c uses code in main.c, I hadn't expected that.

If I've read the code correctly Py_Initialize won't look at PYTHONOPTIMZE at 
all (and other environment variables that have a command-line equivalent). 
Those are read in main.c:cmdline_get_env_flags, which is only called 
(indirectly) from Py_Main and _Py_UnixMain. 

I'm note sure what's the correct solution for this.

1. Reading PYTHONOPTIMZE (and related variables) could be done 
   in _PyCoreConfig_Read, but that would then need to grow a flag to ensure
   that this won't replace values calculated earlier in the implementation 
   of Py_Main

2. Writing back the global variables is probably best done using a new
   function (lets _PyCoreConfig_SetGlobals), mirroring
   pymain_set_global_config but using a _PyCoreConfig config structure
   instead of the command-line structure used by the latter function.

--

___
Python tracker 

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



[issue4963] mimetypes.guess_extension result changes after mimetypes.init()

2018-07-28 Thread Christian Heimes


Christian Heimes  added the comment:

The PR has a merge conflict.

--
nosy: +christian.heimes

___
Python tracker 

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



[issue5978] cProfile and profile don't work with pygtk/pyqt and sys.exit(0)

2018-07-28 Thread Christian Heimes

Christian Heimes  added the comment:


New changeset 937fb55d35373fd2701078251840b6be0465a6e1 by Christian Heimes 
(Andrés Delfino) in branch 'master':
bpo-5978: Document that profiling needs cmd/function to return (GH-7938)
https://github.com/python/cpython/commit/937fb55d35373fd2701078251840b6be0465a6e1


--
nosy: +christian.heimes

___
Python tracker 

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



[issue5978] cProfile and profile don't work with pygtk/pyqt and sys.exit(0)

2018-07-28 Thread miss-islington


Change by miss-islington :


--
pull_requests: +8029

___
Python tracker 

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



[issue33921] Explain that '' can be used to bind to all interfaces for the AF_INET address family in the docs

2018-07-28 Thread miss-islington


Change by miss-islington :


--
pull_requests: +8030

___
Python tracker 

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



[issue33921] Explain that '' can be used to bind to all interfaces for the AF_INET address family in the docs

2018-07-28 Thread Christian Heimes


Christian Heimes  added the comment:


New changeset 95dfb9c3aefdc981d23af700b753a6c97159ccad by Christian Heimes 
(johnthagen) in branch 'master':
bpo-33921: Clarify how to bind to all interfaces using socket (GH-7877)
https://github.com/python/cpython/commit/95dfb9c3aefdc981d23af700b753a6c97159ccad


--
nosy: +christian.heimes

___
Python tracker 

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



[issue33921] Explain that '' can be used to bind to all interfaces for the AF_INET address family in the docs

2018-07-28 Thread miss-islington


Change by miss-islington :


--
pull_requests: +8031

___
Python tracker 

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



[issue34256] Python treats ASCII record seperator ('\x1e as a newline

2018-07-28 Thread Tim McNamara


New submission from Tim McNamara :

Hello,

I apologize if this is expected behavior, however it doesn't appear to be 
documented  haven't.

>>> "single\x1eline\x1estring".splitlines()
['single', 'line', 'string']

--
messages: 322537
nosy: timClicks
priority: normal
severity: normal
status: open
title: Python treats ASCII record seperator ('\x1e as a newline
versions: Python 3.5, Python 3.6

___
Python tracker 

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



[issue34256] Python treats ASCII record seperator ('\x1e') as a newline

2018-07-28 Thread Tim McNamara


Tim McNamara  added the comment:

Hello,

I apologize if this is expected behavior, however it doesn't appear to be 
documented.

>>> "single\x1eline\x1estring".splitlines()
['single', 'line', 'string']

The glossary refers to the universal newlines as:


> universal newlines
>A manner of interpreting text streams in which all of the 
>following are recognized as ending a line: the Unix end-of-line
>convention '\n', the Windows convention '\r\n', and the old 
>Macintosh convention '\r'. See PEP 278 and PEP 3116, as well as 
>bytes.splitlines() for an additional use.
https://docs.python.org/3/glossary.html#term-universal-newlines

According to Wikipedia, pre-POSIX QNX uses `\x1e` as a newline 
(https://en.wikipedia.org/wiki/Newline#Representation), but I don't think that 
it should be treated as the default.

--
title: Python treats ASCII record seperator ('\x1e as a newline -> Python 
treats ASCII record seperator ('\x1e') as a newline

___
Python tracker 

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



[issue5978] cProfile and profile don't work with pygtk/pyqt and sys.exit(0)

2018-07-28 Thread Andrés Delfino

Change by Andrés Delfino :


--
pull_requests: +8032

___
Python tracker 

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



[issue34257] SSL should accept cert content, instead of just cert file path

2018-07-28 Thread Rico Lin


New submission from Rico Lin :

Currently, SSL module [1] only allows file path as input.
That led to a lot of libraries only accept file path to a local file.
This lead to issues when people who trigger this python code, didn't have any 
right to access a local file. Here are two examples:

1. In multi-cloud orchestration service design, you (as an operator) like to 
create resources in another cloud with orchestration service(like Heat in 
OpenStack), but you like to set up SSL for this connection. You should not 
allow accessing a local file from the first cloud (where the orchestration 
service is running). And you can't guarantee the first cloud provider allow you 
to inject a Cert file in their environment. In this case we need to allow 
operators to input their own cert information and parse it to ssl option for 
request.

2. Serverless. In serverless, we give a python code and cloud will provide an 
environment to run it. We can try to inject cert when we try to create 
environment for operators, but it will be more secure to directly pass it to 
python instead of store it around.

The first case is what we're looking for an answer. Didn't look into the design 
for the second case, but I guess that might face the same issue.


[1] https://github.com/python/cpython/blob/master/Modules/_ssl.c#L3683

--
assignee: christian.heimes
components: SSL
messages: 322539
nosy: christian.heimes, rico-lin
priority: normal
severity: normal
status: open
title: SSL should accept cert content, instead of just cert file path
type: enhancement
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



[issue34257] SSL should accept cert content, instead of just cert file path

2018-07-28 Thread Rico Lin


Change by Rico Lin :


--
versions: +Python 3.5 -Python 3.6

___
Python tracker 

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



[issue34113] LLTRACE segv

2018-07-28 Thread Roundup Robot


Change by Roundup Robot :


--
keywords: +patch
pull_requests: +8033
stage:  -> patch review

___
Python tracker 

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



[issue34035] zipfile: AttributeError in "seek" method of "_SharedFile" class

2018-07-28 Thread Mickaël S .

Mickaël S.  added the comment:

Little word to say I am working on at EuroPython 2018.

--
nosy: +Tiger-222

___
Python tracker 

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



[issue34226] cgi.parse_multipart() requires undocumented CONTENT-LENGTH in Python 3.7

2018-07-28 Thread roger


roger  added the comment:

working on this on europython

--
nosy: +rogerduran

___
Python tracker 

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



[issue34258] Python shell keeps restarting

2018-07-28 Thread Aleksa Bulatovic


New submission from Aleksa Bulatovic :

I was writing a code for my test in idle python.When i run the module it's just 
keeps restarting.
This is my code:

sins = 0
check = input()
if check == "check_sins":
print(sins)
second = input("Ok,you can start when you are ready,type Im Ready! if you want 
to start the game")
print("Welcome to How smart are you test")
name = input("What's your name? ")
print(name)
if name == "Dimitrije":
print("Nice to meet you Dimitrije")
start = input("Ready to start the test: ")
if start == "Yes":
print("A) Gorillaz")
print("B) Alvin and the chipmunks")
print("C) Despacito 2")
print("D) Who are you even")
q1 = input("Which was the first animated band ever created? ")
a1 = "A) Gorillaz"
b1 = "B) Alvin and the chipmunks"
c1 = "C) Despacito 2"
d1 = "D) Who are you even"
if q1 == "A" or q1 == "a":
print("You are right,adding 10 sins for that")
sins += 10
else:
sins = sins - 10
print("A) Milan")
print("B) ")
print("")
print("")
else:
print(second)
if start == "Im ready!":
print("Ok,let's start")
print(q1)
print(a1)
print(b1)
print(c1)
print(d1)
if q1 == "A":
print("You are right,adding 10 sins for that")
sins = sins + 10
Note:I started learning python yesterday and sins are just a refrence of the 
youtube channel name called CinemaSins.So don't judge.

--
components: Windows
messages: 322542
nosy: Cross!Alex21, paul.moore, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: Python shell keeps restarting
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



[issue22062] Fix pathlib.Path.(r)glob doc glitches.

2018-07-28 Thread Eivind Teig


Change by Eivind Teig :


--
pull_requests: +8034
stage: needs patch -> patch review

___
Python tracker 

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



[issue32814] smtplib.send_message mishandles 8BITMIME RFC 6152

2018-07-28 Thread Pablo S Blum de Aguiar


Pablo S Blum de Aguiar  added the comment:

This is just to note that I'm investigating this as part of the CPython sprint 
in EuroPython.

--
nosy: +scorphus

___
Python tracker 

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



[issue34246] Gentoo Refleaks 3.7: test_smtplib has dangling threads

2018-07-28 Thread Pablo S Blum de Aguiar


Pablo S Blum de Aguiar  added the comment:

This is just to note that I'm investigating this issue as part of the CPython 
sprint in EuroPython.

--
nosy: +scorphus

___
Python tracker 

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



[issue33747] Failed separate test_patch_propogrates_exc_on_exit in test_unittest

2018-07-28 Thread Roundup Robot


Change by Roundup Robot :


--
keywords: +patch
pull_requests: +8035
stage:  -> patch review

___
Python tracker 

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



[issue34259] Improve docstring of list.sort

2018-07-28 Thread Tim Hoffmann


New submission from Tim Hoffmann :

The current docstring of list.sort is just "Stable sort *IN PLACE*."

This is missing a description of the arguments key and reverse. Also a short 
explanation of stable and in-place would be helpful for less experienced users.

--
messages: 322545
nosy: timhoffm
priority: normal
pull_requests: 8036
severity: normal
status: open
title: Improve docstring of list.sort
type: enhancement
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



[issue18372] _Pickler_New() doesn't call PyObject_GC_Track(self)

2018-07-28 Thread Mark Lawrence


Change by Mark Lawrence :


--
nosy:  -BreamoreBoy

___
Python tracker 

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



[issue22062] Fix pathlib.Path.(r)glob doc glitches.

2018-07-28 Thread Steve Dower


Change by Steve Dower :


--
versions: +Python 3.6, Python 3.7, Python 3.8 -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



[issue1100942] Add datetime.time.strptime and datetime.date.strptime

2018-07-28 Thread Steve Dower


Change by Steve Dower :


--
keywords:  -easy

___
Python tracker 

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



[issue22062] Fix pathlib.Path.(r)glob doc glitches.

2018-07-28 Thread Steve Dower


Change by Steve Dower :


--
keywords:  -easy

___
Python tracker 

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



[issue5978] cProfile and profile don't work with pygtk/pyqt and sys.exit(0)

2018-07-28 Thread miss-islington


miss-islington  added the comment:


New changeset c6801b48a1964d87a77f1303e0c6ddf31f54259b by Miss Islington (bot) 
in branch '3.7':
bpo-5978: Document that profiling needs cmd/function to return (GH-7938)
https://github.com/python/cpython/commit/c6801b48a1964d87a77f1303e0c6ddf31f54259b


--
nosy: +miss-islington

___
Python tracker 

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



[issue5978] cProfile and profile don't work with pygtk/pyqt and sys.exit(0)

2018-07-28 Thread Steve Dower

Steve Dower  added the comment:


New changeset 0041d721a6f6b312ef762838d390fc4d64cf5e3a by Steve Dower (Andrés 
Delfino) in branch '3.6':
[3.6] bpo-5978: Document that profiling needs cmd/function to return (GH-8515)
https://github.com/python/cpython/commit/0041d721a6f6b312ef762838d390fc4d64cf5e3a


--
nosy: +steve.dower

___
Python tracker 

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



[issue5978] cProfile and profile don't work with pygtk/pyqt and sys.exit(0)

2018-07-28 Thread Steve Dower


Change by Steve Dower :


--
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



[issue33921] Explain that '' can be used to bind to all interfaces for the AF_INET address family in the docs

2018-07-28 Thread miss-islington


miss-islington  added the comment:


New changeset 23355445625b8b41030dbda9decaf2f4aa7035a6 by Miss Islington (bot) 
in branch '3.7':
bpo-33921: Clarify how to bind to all interfaces using socket (GH-7877)
https://github.com/python/cpython/commit/23355445625b8b41030dbda9decaf2f4aa7035a6


--
nosy: +miss-islington

___
Python tracker 

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



[issue33921] Explain that '' can be used to bind to all interfaces for the AF_INET address family in the docs

2018-07-28 Thread miss-islington


miss-islington  added the comment:


New changeset 30f295b85ece2dc2b2b65018bd15090efa1de7dc by Miss Islington (bot) 
in branch '3.6':
bpo-33921: Clarify how to bind to all interfaces using socket (GH-7877)
https://github.com/python/cpython/commit/30f295b85ece2dc2b2b65018bd15090efa1de7dc


--

___
Python tracker 

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



[issue33921] Explain that '' can be used to bind to all interfaces for the AF_INET address family in the docs

2018-07-28 Thread Steve Dower


Change by Steve Dower :


--
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



[issue8145] Documentation about sqlite3 isolation_level

2018-07-28 Thread Steve Dower


Change by Steve Dower :


--
keywords:  -easy

___
Python tracker 

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



[issue34247] PYTHONOPTIMZE ignored in 3.7.0 when using custom launcher

2018-07-28 Thread Ronald Oussoren


Change by Ronald Oussoren :


--
keywords: +patch
pull_requests: +8037
stage:  -> patch review

___
Python tracker 

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



[issue34170] Py_Initialize(): computing path configuration must not have side effect (PEP 432)

2018-07-28 Thread Ronald Oussoren


Change by Ronald Oussoren :


--
pull_requests: +8038

___
Python tracker 

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



[issue34247] PYTHONOPTIMZE ignored in 3.7.0 when using custom launcher

2018-07-28 Thread Ronald Oussoren


Ronald Oussoren  added the comment:

I've created a pull request that seems to work properly, although I am not 
entirely sure that this is the right way to fix this.

As I mentioned in the pull request I created it against the 3.7 branch because 
of bpo-34170, but would happily rebase it for master.

--

___
Python tracker 

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



[issue34260] shutil.copy2 is not the same as cp -p

2018-07-28 Thread Zsolt Cserna


New submission from Zsolt Cserna :

The docstring of shutil.copy2 says the following:

Copy data and all stat info ("cp -p src dst").

This can be misleading as it is not the same as 'cp -p', as it does not copy 
the file owner (uid and gid). That would need to have a chown() call to be 
made, which is currently not called unavailable.

I would like to have the documentation fixed by adding that it does not copies 
file owner and group.

--
components: Library (Lib)
messages: 322551
nosy: csernazs
priority: normal
severity: normal
status: open
title: shutil.copy2 is not the same as cp -p
versions: Python 3.6, Python 3.7, Python 3.8

___
Python tracker 

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



[issue33289] tkinter askcolor returning floats for r, g, b values instead of ints

2018-07-28 Thread Steve Dower


Change by Steve Dower :


--
keywords:  -easy

___
Python tracker 

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



[issue33666] Document removal of os.errno

2018-07-28 Thread Petr Viktorin


Petr Viktorin  added the comment:


New changeset 1d2dafa249c7fb34f3d24e7a77d1bea02907d92b by Petr Viktorin (INADA 
Naoki) in branch 'master':
bpo-33666: Add what's new entry for os.errno removal (GH-#8497)
https://github.com/python/cpython/commit/1d2dafa249c7fb34f3d24e7a77d1bea02907d92b


--

___
Python tracker 

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



[issue34261] Add description to clinic.py

2018-07-28 Thread Tim Hoffmann


New submission from Tim Hoffmann :

When trying to update a docstring of a CPython builtin, I had problems finding 
out what Argument Clinic actually does.

First, I looked at the devguide, which does only mention that the clinic 
exists, but not what it does or how it's used.

Next, I tried "clinic.py --help". This unfortunately doesn't tell anything 
about itself.

The actual clinic doc is at https://docs.python.org/3/howto/clinic.html

To make the clinic a bit more discoverable, I propose a description including 
the link to clinic.py (see github #8518).

--
components: Argument Clinic
messages: 322552
nosy: larry, timhoffm
priority: normal
pull_requests: 8039
severity: normal
status: open
title: Add description to clinic.py
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



[issue34088] [EASY] sndhdr.what() throws exceptions on unknown files

2018-07-28 Thread Steve Dower


Change by Steve Dower :


--
keywords:  -easy

___
Python tracker 

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



[issue34260] shutil.copy2 is not the same as cp -p

2018-07-28 Thread Giampaolo Rodola'


Change by Giampaolo Rodola' :


--
nosy: +giampaolo.rodola

___
Python tracker 

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



[issue33476] String index out of range in get_group(), email/_header_value_parser.py

2018-07-28 Thread Steve Dower


Steve Dower  added the comment:


New changeset 8fe9eed937cb69b5e26ac6e36a90b5360eb11277 by Steve Dower (Dong-hee 
Na) in branch 'master':
bpo-33476: Fix _header_value_parser when address group is missing final ';' 
(GH-7484)
https://github.com/python/cpython/commit/8fe9eed937cb69b5e26ac6e36a90b5360eb11277


--
nosy: +steve.dower

___
Python tracker 

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



[issue33476] String index out of range in get_group(), email/_header_value_parser.py

2018-07-28 Thread miss-islington


Change by miss-islington :


--
pull_requests: +8040

___
Python tracker 

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



[issue34260] shutil.copy2 is not the same as cp -p

2018-07-28 Thread Roundup Robot


Change by Roundup Robot :


--
keywords: +patch
pull_requests: +8041
stage:  -> patch review

___
Python tracker 

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



[issue30974] Update os.samefile docstring to match documentation

2018-07-28 Thread Steve Dower


Steve Dower  added the comment:

Sorry, I meant the docs after the patch. Before, it's fine.

--

___
Python tracker 

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



[issue30974] Update os.samefile docstring to match documentation

2018-07-28 Thread Steve Dower


Steve Dower  added the comment:

I think the docs are too specific about the mechanism used here - if we 
document *how* it works then we may not be able to make it work correctly (with 
a different mechanic) on a different platform.

--
nosy: +steve.dower

___
Python tracker 

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



[issue33476] String index out of range in get_group(), email/_header_value_parser.py

2018-07-28 Thread miss-islington


Change by miss-islington :


--
pull_requests: +8042

___
Python tracker 

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



[issue30974] Update os.samefile docstring to match documentation

2018-07-28 Thread Steve Dower


Change by Steve Dower :


--
keywords:  -easy

___
Python tracker 

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



[issue24356] venv documentation incorrect / misleading

2018-07-28 Thread Steve Dower


Steve Dower  added the comment:


New changeset 50326927465c3f5c6c0168fc43310c8e97db0a47 by Steve Dower (Elena 
Oat) in branch 'master':
bpo-24356: Specify which Python binary will be used with venv (GH-6589)
https://github.com/python/cpython/commit/50326927465c3f5c6c0168fc43310c8e97db0a47


--
nosy: +steve.dower

___
Python tracker 

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



[issue34262] Asyncio test fails under Win 7

2018-07-28 Thread Wöllert

New submission from Wöllert :

When running tests I encounter the following error for the test:

test_sock_sendfile_not_regular_file 
(test.test_asyncio.test_proactor_events.ProactorEventLoopUnixSockSendfileTests)

---
Microsoft Visual C++ Runtime Library
---
Debug Assertion Failed!

Program: ...\EP2018\cpython\PCbuild\win32\python_d.exe
File: minkernel\crts\ucrt\src\appcrt\lowio\osfinfo.cpp
Line: 257

Expression: fh >= 0 && (unsigned)fh < (unsigned)_nhandle


---

However, when ignoring the MSCR error, the tests succeed without failing.

In addition the following failed (but not consistently):

==
FAIL: test_sendfile_close_peer_in_the_middle_of_receiving 
(test.test_asyncio.test_events.ProactorEventLoopTests)
--
Traceback (most recent call last):
  File 
"C:\Users\woellert\Desktop\EP2018\cpython\lib\test\test_asyncio\test_events.py",
 line 2510, in test_sendfile_close_peer_in_the_middle_of_receiving
self.file.tell())
AssertionError: False is not true : 131072

--


Specs: Windows 7 SP1 64bit, 

Process:
- Cloned master from github
- Installed Visual Studio 2017 Community
- Compiled with `PCbuild\build.bat -e -d` (also used 64bit via -p x64)
- Ran tests with `python.bat -m test.test_asyncio -v`

--
components: Build, Windows, asyncio
messages: 322558
nosy: asvetlov, pansen, paul.moore, steve.dower, tim.golden, yselivanov, 
zach.ware
priority: normal
severity: normal
status: open
title: Asyncio test fails under Win 7
type: crash
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



[issue24356] venv documentation incorrect / misleading

2018-07-28 Thread Steve Dower


Change by Steve Dower :


--
pull_requests: +8043

___
Python tracker 

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



[issue32769] Add 'annotations' to the glossary

2018-07-28 Thread Steve Dower


Change by Steve Dower :


--
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



[issue33601] [EASY DOC] Py_UTF8Mode is not documented

2018-07-28 Thread Steve Dower


Change by Steve Dower :


--
keywords:  -easy

___
Python tracker 

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



[issue13474] Mention of "-m" Flag Missing From Doc on Execution Model

2018-07-28 Thread Steve Dower


Change by Steve Dower :


--
keywords:  -easy

___
Python tracker 

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



[issue34113] LLTRACE segv

2018-07-28 Thread Petr Viktorin


Change by Petr Viktorin :


--
nosy: +petr.viktorin

___
Python tracker 

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



[issue34113] LLTRACE segv

2018-07-28 Thread Petr Viktorin


Petr Viktorin  added the comment:

The problem here is that tracing for STACKADJ prints out the top of the stack 
*after* adjustment. This is OK for growing the stack, but not for shrinking it 
(e.g. calling STACKADJ(-3) pops off three things at once, which can leave TOP 
undefined when it's printed out).

On the EuroPython sprints, I recommended splitting STACKADJ into STACKADJ_GROW 
and STACKADJ_SHRINK, since the printing behavior should be different.
This is performance-critical code; it needs to be reviewed carefully.

--

___
Python tracker 

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



[issue33666] Document removal of os.errno

2018-07-28 Thread miss-islington


Change by miss-islington :


--
pull_requests: +8044

___
Python tracker 

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



[issue33111] Merely importing tkinter breaks parallel code (multiprocessing, sharedmem)

2018-07-28 Thread Ronald Oussoren


Ronald Oussoren  added the comment:

That's annoying, I cannot reproduce the issue on macOS 10.13. I don't have 
access to my test VM running 10.11 at the moment, I'll work on documenting this 
when I get back home (and do have access to 10.11 again).

BTW. I don't know if providing a reliable test is possible other than testing 
that the documented procedure works in general.

--

___
Python tracker 

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



[issue34035] zipfile: AttributeError in "seek" method of "_SharedFile" class

2018-07-28 Thread Mickaël S .

Change by Mickaël S. :


--
keywords: +patch
pull_requests: +8045
stage: needs patch -> patch review

___
Python tracker 

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



[issue34263] asyncio: "relative *delay* or absolute *when* should not exceed one day"

2018-07-28 Thread Yury Selivanov


New submission from Yury Selivanov :

asyncio documentation has this bit on timeouts:

Timeouts (relative *delay* or absolute *when*) should not exceed one day.

Victor told me that the actual reason for this recommendation is a limitation 
in epoll (or other OS/selector) that prevents us from waiting for events longer 
than a day or so.

The solution to this problem is simple: we need to cap the maximum time we pass 
to the "selector.select()" function (in base_events.py/_run_once) to one day.

--
components: asyncio
messages: 322561
nosy: asvetlov, vstinner, yselivanov
priority: normal
severity: normal
status: open
title: asyncio: "relative *delay* or absolute *when* should not exceed one day"
versions: Python 3.7, Python 3.8

___
Python tracker 

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



[issue34255] test_embed skipped when srcdir != builddir

2018-07-28 Thread Ronald Oussoren


Change by Ronald Oussoren :


--
keywords: +patch
pull_requests: +8046
stage: needs patch -> patch review

___
Python tracker 

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



[issue34247] PYTHONOPTIMZE ignored in 3.7.0 when using custom launcher

2018-07-28 Thread Nick Coghlan


Nick Coghlan  added the comment:

I believe Victor is at the EuroPython sprints as well, so if I'm right about 
that, I think the best option would be for the two of you to work out a 
resolution for 3.7.1 in person that at least keeps the test suites reasonably 
consistent, even if the implementations have diverged (the new tests already 
added for bpo-34170 were the main reason I stopped working on my initial patch 
for this).

And agreed on fixing the current dependency inversion between pylifecycle and 
the py_main code - the functions needed by both Py_Main and Py_Initialize 
should be migrated down the stack into pylifecycle as part of the bpo-34170 
work.

--

___
Python tracker 

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



[issue34262] Asyncio test fails under Win 7

2018-07-28 Thread Wöllert

Wöllert  added the comment:

Regarding the MVSC runtime message, there is an issue already here:

https://bugs.python.org/issue23919

--

___
Python tracker 

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



[issue33089] Add multi-dimensional Euclidean distance function to the math module

2018-07-28 Thread Raymond Hettinger


Raymond Hettinger  added the comment:


New changeset c6dabe37e3c4d449562182b044184d1756bea037 by Raymond Hettinger in 
branch 'master':
bpo-33089: Multidimensional math.hypot() (GH-8474)
https://github.com/python/cpython/commit/c6dabe37e3c4d449562182b044184d1756bea037


--

___
Python tracker 

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



[issue28140] Attempt to give better errors for pip commands typed into the REPL

2018-07-28 Thread Tom Viner


Tom Viner  added the comment:

I am looking at this, as part of the EuroPython 2018 sprint.

--

___
Python tracker 

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



[issue34226] cgi.parse_multipart() requires undocumented CONTENT-LENGTH in Python 3.7

2018-07-28 Thread Roundup Robot


Change by Roundup Robot :


--
keywords: +patch
pull_requests: +8047
stage:  -> patch review

___
Python tracker 

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



[issue34254] Include type annotations in error messages for better errors

2018-07-28 Thread Karthikeyan Singaravelan


Karthikeyan Singaravelan  added the comment:

I have added support for functions defined inside a function and methods of a 
class along with some basic tests. Since directly taking co_name from code 
object returns only the name without any context like Foo.square inside square 
when I try to access co_name. So I have passed the function object available at 
the calls as an additional parameter. Since the API is not public or documented 
I think it's okay to add an argument in those places. Thus by directly having 
the function object I am able to get the annotations directly instead of making 
a lookup in the globals.

This approach makes places where TypeError is raised to pass function object 
like too much of positional arguments and keyword arguments type of errors etc. 
The code to form the error string can be refactored out as a helper function 
thus the logic takes a function object and returns the error message. I think 
this would require more changes in places to pass function object than my 
original approach to cover more areas thus adding some complexity.

Thanks

--

___
Python tracker 

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



[issue23642] Interaction of ModuleSpec and C Extension Modules

2018-07-28 Thread Petr Viktorin


Change by Petr Viktorin :


--
resolution:  -> fixed
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



[issue33476] String index out of range in get_group(), email/_header_value_parser.py

2018-07-28 Thread miss-islington


miss-islington  added the comment:


New changeset 2be0124b820729eacc1288950b824e336bd3a4a6 by Miss Islington (bot) 
in branch '3.7':
bpo-33476: Fix _header_value_parser when address group is missing final ';' 
(GH-7484)
https://github.com/python/cpython/commit/2be0124b820729eacc1288950b824e336bd3a4a6


--
nosy: +miss-islington

___
Python tracker 

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



[issue34263] asyncio: "relative *delay* or absolute *when* should not exceed one day"

2018-07-28 Thread Martin Altmayer


Change by Martin Altmayer :


--
keywords: +patch
pull_requests: +8048
stage:  -> patch review

___
Python tracker 

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



[issue33476] String index out of range in get_group(), email/_header_value_parser.py

2018-07-28 Thread miss-islington


miss-islington  added the comment:


New changeset f17e001746e0f697e9bd49ac3748f2543b0a0d47 by Miss Islington (bot) 
in branch '3.6':
bpo-33476: Fix _header_value_parser when address group is missing final ';' 
(GH-7484)
https://github.com/python/cpython/commit/f17e001746e0f697e9bd49ac3748f2543b0a0d47


--

___
Python tracker 

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



[issue34265] Dataclasses test doesn't run independently

2018-07-28 Thread Kay Hayen


New submission from Kay Hayen :

When I run:

python3.7 test/test_dataclasses.py

==
ERROR: test_classvar_module_level_import (__main__.TestStringAnnotations)
--
Traceback (most recent call last):
  File "/home/hayen/repos/Py2C/tests/CPython37/test/test_dataclasses.py", line 
2716, in test_classvar_module_level_import
from . import dataclass_module_1
ImportError: cannot import name 'dataclass_module_1' from '__main__' 
(/home/hayen/repos/Py2C/tests/CPython37/test/test_dataclasses.py)

==
FAIL: test_no_repr (__main__.TestRepr)
--
Traceback (most recent call last):
  File "/home/hayen/repos/Py2C/tests/CPython37/test/test_dataclasses.py", line 
1970, in test_no_repr
repr(C(3)))
AssertionError: 'test_dataclasses.TestRepr.test_no_repr..C object at' 
not found in '<__main__.TestRepr.test_no_repr..C object at 
0x7f6a2d4ffd68>'

The relative imports cannot work, as the main program is not in the test 
package. Also it has the name __main__ not the module name in repr.

As Guido said in another bug report, tests are expected to pass. Can you please 
adapt them?

I hope "Library" is proper component, as tests are below it.

Thanks,
Kay

--
components: Library (Lib)
messages: 322570
nosy: kayhayen
priority: normal
severity: normal
status: open
title: Dataclasses test doesn't run independently
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



[issue34264] Inconsistency between stack size in main thread and secondary threads on macOS

2018-07-28 Thread Ronald Oussoren


New submission from Ronald Oussoren :

configure.ac sets the stack size for the main thread on macOS to 100 (hex), 
while Python/threading_pthread.h sets the default stack size for other threads 
to 0x50. The latter is half of the former.

IMHO both should be the same, as both claim to have been chosen to be just 
large enough to accommodate the default recursion limit. 

I'd prefer to increase the default stack size of secondary threads to match the 
main thread. I tagged this as a 3.8 thread because there is a (very) small 
chance that changing the stack size breaks existing programs (although you'd 
have to create a lot of threads to use a significant amount of memory). 

This is vaguely related to issue33955.

--
components: Interpreter Core, macOS
messages: 322569
nosy: ned.deily, ronaldoussoren
priority: normal
severity: normal
stage: needs patch
status: open
title: Inconsistency between stack size in main thread and secondary threads on 
macOS
type: enhancement
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



[issue34263] asyncio: "relative *delay* or absolute *when* should not exceed one day"

2018-07-28 Thread Martin Altmayer


Martin Altmayer  added the comment:

Added a small PR. Shall we update the doc? With this PR there is no reason 
anymore to disallow timeouts greater than one day in asyncio.

Greetings from the sprints @ Edinburgh!

--
nosy: +MartinAltmayer

___
Python tracker 

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



[issue34264] Inconsistency between stack size in main thread and secondary threads on macOS

2018-07-28 Thread Ronald Oussoren


Ronald Oussoren  added the comment:

PS. A pull request will follow shortly.

--

___
Python tracker 

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



[issue34265] Dataclasses test doesn't run independently

2018-07-28 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

Looks as a duplicate of issue34184.

--
nosy: +serhiy.storchaka

___
Python tracker 

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



[issue20177] Derby #8: Convert 28 sites to Argument Clinic across 2 files

2018-07-28 Thread Petr Viktorin


Change by Petr Viktorin :


--
nosy: +petr.viktorin

___
Python tracker 

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



[issue34075] asyncio: We should prohibit setting a ProcessPoolExecutor in with set_default_executor

2018-07-28 Thread Elvis Pranskevichus


Change by Elvis Pranskevichus :


--
keywords: +patch
pull_requests: +8050
stage:  -> patch review

___
Python tracker 

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



[issue27201] expose the ABI name as a config variable

2018-07-28 Thread Petr Viktorin


Petr Viktorin  added the comment:

If Debian's talloc is fine without this, maybe we can close the issue?

--

___
Python tracker 

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



[issue33223] test_posix fails ERRNO 0

2018-07-28 Thread Ronald Oussoren


Ronald Oussoren  added the comment:

I get the same error on High Sierra, but not on the Mojave beta.  I also 
regularly get a FileNotFound error instead (which is why I ended up at this 
issue in the first place).

I'm not sure yet what causes this, a small reproducer in C works correctly and 
the code in posixmodule.c looks correct. This might be a platform bug (hence my 
attempt at writing a reproducer in C).

BTW. There is no attached file

--
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



[issue34264] Inconsistency between stack size in main thread and secondary threads on macOS

2018-07-28 Thread Ronald Oussoren


Change by Ronald Oussoren :


--
keywords: +patch
pull_requests: +8051
stage: needs patch -> patch review

___
Python tracker 

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



[issue20177] Derby #8: Convert 28 sites to Argument Clinic across 2 files

2018-07-28 Thread Tim Hoffmann


Change by Tim Hoffmann :


--
pull_requests: +8052
stage: needs patch -> patch review

___
Python tracker 

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



[issue28140] Attempt to give better errors for pip commands typed into the REPL

2018-07-28 Thread Tom Viner


Change by Tom Viner :


--
keywords: +patch
pull_requests: +8053
stage:  -> patch review

___
Python tracker 

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



[issue33476] String index out of range in get_group(), email/_header_value_parser.py

2018-07-28 Thread Steve Dower


Change by Steve Dower :


--
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



[issue33223] test_posix fails ERRNO 0

2018-07-28 Thread Ronald Oussoren


Ronald Oussoren  added the comment:

I'm slightly closer to understanding the problem. The value of errno is that of 
the last error *before* getgrouplist(3) was called, that is, getgrouplist 
return -1 but does not update errno.

And looking at Apple source code this is a bug in CPython after all: 
getgrouplist(3) return -1 when the buffer is too small, but does not set errno 
(see 
).
 The manpage also doesn't mention setting errno.

I'm pretty sure that the use of posix_error() is wrong here. 

We're running into a similar issue as with getgroups: on macOS a user can be a 
member of more than NGROUPS_MAX groups.  Because of this I'm not yet sure of 
the correct fix for this issue.

The easy part is that the call to posix_error in the implementation of 
getgrouplist should be replaced by raising some other error (or possibly just 
setting errno to EOVERFLOW before calling posix_error()).

The harder part is what to do about the definition of MAX_GROUPS for this 
function. Either force it to a larger default on macOS, or add some code to 
increase the buffer size (because the user cannot select the size of buffer to 
use). The latter is annoyingly hard because the system gives no indication on 
what the correct buffer size should be.

BTW. The same is also true on other platforms with getgrouplist(), this is not 
a macOS specific issue other than that NGROUPS_MAX is bogus there.

--

___
Python tracker 

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



[issue24356] venv documentation incorrect / misleading

2018-07-28 Thread Steve Dower


Steve Dower  added the comment:


New changeset 83b449d754f4da3be107b508392ef5180f105c8b by Steve Dower in branch 
'3.7':
bpo-24356: Specify which Python binary will be used with venv (GH-6589)
https://github.com/python/cpython/commit/83b449d754f4da3be107b508392ef5180f105c8b


--

___
Python tracker 

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



[issue24356] venv documentation incorrect / misleading

2018-07-28 Thread Steve Dower


Change by Steve Dower :


--
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



[issue29710] Incorrect representation caveat on bitwise operation docs

2018-07-28 Thread miss-islington


miss-islington  added the comment:


New changeset 8764a6ffda896af4586f07b55d7df916f86dd9b0 by Miss Islington (bot) 
in branch '3.7':
bpo-29710: Clarify documentation for Bitwise binary operation (GH-1691)
https://github.com/python/cpython/commit/8764a6ffda896af4586f07b55d7df916f86dd9b0


--
nosy: +miss-islington

___
Python tracker 

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



[issue29710] Incorrect representation caveat on bitwise operation docs

2018-07-28 Thread miss-islington


miss-islington  added the comment:


New changeset 3100b7e710dccdcfbc6991ea7e8985a1881d42e6 by Miss Islington (bot) 
in branch '3.6':
bpo-29710: Clarify documentation for Bitwise binary operation (GH-1691)
https://github.com/python/cpython/commit/3100b7e710dccdcfbc6991ea7e8985a1881d42e6


--

___
Python tracker 

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



[issue34185] Lib/test/test_bdb.py failed when ran as a script

2018-07-28 Thread Alexandre Hajjar


Change by Alexandre Hajjar :


--
keywords: +patch
pull_requests: +8054
stage:  -> patch review

___
Python tracker 

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



[issue34239] Convert test_bz2 to use tempfile

2018-07-28 Thread Tim Golden


Change by Tim Golden :


--
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



[issue34265] Dataclasses test doesn't run independently

2018-07-28 Thread Kay Hayen


Kay Hayen  added the comment:

Totally is. Closing, sorry for not seeing that one myself.

--
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



  1   2   >