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

2018-07-28 Thread Jared


Jared  added the comment:

Also [PEP 543](https://www.python.org/dev/peps/pep-0543/) is related to this. 
In addition, I think [PyOpenSSL](https://pyopenssl.org/en/stable/index.html) 
provides support for what you want.

--
nosy: +j-rewerts

___
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 Nathaniel Smith


Nathaniel Smith  added the comment:

This is a duplicate of bpo-16487, which has more discussion about how the API 
might work.

--
nosy: +njs
resolution:  -> duplicate
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



[issue33113] Query performance is very low and can even lead to denial of service

2018-07-28 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

Perhaps it would be nice to add a section about catastrophic backtracking and 
ways of resolving it in the RE Howto.

--

___
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 Anton Patrushev


Anton Patrushev  added the comment:

0x1e listed as linebreak char in tests:

Lib/test/test_unicodedata.py:317

--
nosy: +apatrushev

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


Jared  added the comment:

First off, no judgment! :)

I just want to get some more details from you. 
1) How are you running your program?
2) How far into your program do you get?
3) What are you passing in as values for your Input() calls?

--
nosy: +j-rewerts

___
Python tracker 

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



[issue34268] run pool.submit in callback when future.set_result

2018-07-28 Thread gaoxinge


New submission from gaoxinge :

## abstract

When using concurrent.futures.ThreadPoolExecutor module, if we code pool.submit 
in callback, the callback may be not run. This is because main thread will 
terminate, and call _python_exit to add none to _work_queue before subthread 
run callback.

## code

```
# -*- coding: utf-8 -*-
from concurrent.futures import ThreadPoolExecutor


def func(x, y):
import time
time.sleep(1)
return x + y


def do_many(n):

def callback(fut):
nonlocal n
result = fut.result()
print('Got: ', result)
n -= 1
if n > 0:
future = pool.submit(func, n, n)
future.add_done_callback(callback)

if n > 0:
future = pool.submit(func, n, n)
future.add_done_callback(callback)
 # _python_exit will be called here, and then 
 # add none to _work_queue

pool = ThreadPoolExecutor(max_workers=8)
do_many(10)
```

## result and expectation

The code's result may be 

```
Got:  20
Got:  18
Got:  16
Got:  14
Got:  12
Got:  10
Got:  8
Got:  6
```

But my expectation is

```
Got:  20
Got:  18
Got:  16
Got:  14
Got:  12
Got:  10
Got:  8
Got:  6
Got:  4
Got:  2
```

## question

Is my expectation reasonable?

### if not reasonable

If not, my solution is 

```
from concurrent.futures import ThreadPoolExecutor


def func(x, y):
import time
time.sleep(1)
return x + y


def do_many():

def callback(fut):
global n
result = fut.result()
print('Got: ', result)
n -= 1
if n > 0:
future = pool.submit(func, n, n)
future.add_done_callback(callback)

if n > 0:
future = pool.submit(func, n, n)
future.add_done_callback(callback)

n = 10
pool = ThreadPoolExecutor(max_workers=8)
do_many()
while n > 0:  # use while to block main thread
pass
```

and is there any elegant solution?

### if reasonable

...

--
components: Library (Lib)
messages: 322605
nosy: gaoxinge
priority: normal
severity: normal
status: open
title: run pool.submit in callback when future.set_result
type: behavior
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



[issue34266] Bad behavior with "restart \" or "restart "" in pdb

2018-07-28 Thread Jared


Jared  added the comment:

Good!

Is it possible to start a python program with either \ or " as arguments 
normally (without using character escaping)?

--

___
Python tracker 

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



[issue34266] Bad behavior with "restart \" or "restart "" in pdb

2018-07-28 Thread ppperry


ppperry  added the comment:

Both of those work and don't produce an error

--

___
Python tracker 

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



[issue34266] Bad behavior with "restart \" or "restart "" in pdb

2018-07-28 Thread Jared


Jared  added the comment:

Would it be possible to escape both of those?

For the first one, restart "\\"

and for the second one, restart "\""

--

___
Python tracker 

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



[issue34266] Bad behavior with "restart \" or "restart "" in pdb

2018-07-28 Thread ppperry


ppperry  added the comment:

`restart "` also crashes with the same tb

--
title: Bad behavior with "restart \" in pdb -> Bad behavior with "restart \" or 
"restart "" in pdb

___
Python tracker 

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



[issue34266] Bad behavior with "restart \" in pdb

2018-07-28 Thread Jared


Jared  added the comment:

I wouldn't mind taking a look at this. Feel free to assign it to me!

--
nosy: +j-rewerts

___
Python tracker 

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



[issue33566] re.findall() dead locked whent the expected ending char not occur until end of string

2018-07-28 Thread Tim Peters


Tim Peters  added the comment:

Closing as not-a-bug - not enough info to reproduce, but the regexp looked 
prone to exponential-time backtracking to both MRAB and me, and there's been no 
response to requests for more info.

--
components: +Regular Expressions
nosy: +ezio.melotti
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



[issue34251] MSI build fails

2018-07-28 Thread miss-islington


miss-islington  added the comment:


New changeset 1e98d87961ec752a1623135f4d7e8a41820ae256 by Miss Islington (bot) 
in branch '3.7':
bpo-34251: Restore msilib.Win64 to preserve compatibility (GH-8510)
https://github.com/python/cpython/commit/1e98d87961ec752a1623135f4d7e8a41820ae256


--
nosy: +miss-islington

___
Python tracker 

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



[issue34267] find_python.bat doesn't find installed Python 3.7

2018-07-28 Thread Segev Finer


New submission from Segev Finer :

The PCbuild/find_python.bat script doesn't find an installed Python 3.7 and 
will proceed to download Python using nuget.

This is caused by it invoking py with "-3.6" which will only find Python 3.6 
(py doesn't seem to support a 3.6 or above flag), despite the fact that the 
build can use 3.7 and the nuget fallback will install 3.7.

--
components: Windows
messages: 322597
nosy: Segev Finer, paul.moore, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: find_python.bat doesn't find installed Python 3.7
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



[issue34266] Bad behavior with "restart \" in pdb

2018-07-28 Thread ppperry


ppperry  added the comment:

Just to be clear, even though the traceback is python 3.6, the same bug occurs 
in 3.7 with an identical traceback except for some changes in line number

--

___
Python tracker 

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



[issue34266] Bad behavior with "restart \" in pdb

2018-07-28 Thread ppperry


New submission from ppperry :

(Pdb) restart \
Traceback (most recent call last):
  File "C:\Program Files\Python36\lib\pdb.py", line 1667, in main
pdb._runscript(mainpyfile)
  File "C:\Program Files\Python36\lib\pdb.py", line 1548, in _runscript
self.run(statement)
  File "C:\Program Files\Python36\lib\bdb.py", line 431, in run
exec(cmd, globals, locals)
  File "", line 1, in 
  
  File "C:\Program Files\Python36\lib\bdb.py", line 48, in trace_dispatch
return self.dispatch_line(frame)
  File "C:\Program Files\Python36\lib\bdb.py", line 66, in dispatch_line
self.user_line(frame)
  File "C:\Program Files\Python36\lib\pdb.py", line 261, in user_line
self.interaction(frame, None)
  File "C:\Program Files\Python36\lib\pdb.py", line 352, in interaction
self._cmdloop()
  File "C:\Program Files\Python36\lib\pdb.py", line 321, in _cmdloop
self.cmdloop()
  File "C:\Program Files\Python36\lib\cmd.py", line 138, in cmdloop
stop = self.onecmd(line)
  File "C:\Program Files\Python36\lib\pdb.py", line 418, in onecmd
return cmd.Cmd.onecmd(self, line)
  File "C:\Program Files\Python36\lib\cmd.py", line 217, in onecmd
return func(arg)
  File "C:\Program Files\Python36\lib\pdb.py", line 1025, in do_run
sys.argv = shlex.split(arg)
  File "C:\Program Files\Python36\lib\shlex.py", line 305, in split
return list(lex)
  File "C:\Program Files\Python36\lib\shlex.py", line 295, in __next__
token = self.get_token()
  File "C:\Program Files\Python36\lib\shlex.py", line 105, in get_token
raw = self.read_token()
  File "C:\Program Files\Python36\lib\shlex.py", line 206, in read_token
raise ValueError("No escaped character")

--
components: Library (Lib)
messages: 322595
nosy: ppperry
priority: normal
severity: normal
status: open
title: Bad behavior with "restart \" in pdb
type: behavior
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



[issue33113] Query performance is very low and can even lead to denial of service

2018-07-28 Thread Tim Peters


Tim Peters  added the comment:

Note:  if you found a regexp like this _in_ the Python distribution, then a bug 
report would be appropriate.  It's certainly possible to write regexps that can 
suffer catastrophic backtracking, and we've repaired a few of those, over the 
years, that shipped with Python.

But we can't stop you from writing such things yourself.  If you post your 
regexp to, e.g., comp.lang.python or StackOverflow, I'm sure someone will show 
you how to rewrite it in a safe way.  But be prepared to explain in English 
what you're trying to accomplish with it.

For example, while it appears you're trying to ensure there are at least 3 
characters (of the right kind) between "|" separators, for some reason you made 
matching "|" optional.  That leaves open an exponential number of ways to try 
to match long strings of non-"|" characters between "|" separators.

--
nosy: +tim.peters

___
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 Matthias Klose


Matthias Klose  added the comment:

ok, not working on that currently

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



[issue34235] PyArg_ParseTupleAndKeywords: support required keyword arguments

2018-07-28 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

Support for keyword-only parameters was added in issue14328. Although the 
implementation never matched the documentation in the case when '|' is not 
specified before '$'.

--
nosy: +larry

___
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 miss-islington


Change by miss-islington :


--
pull_requests: +8055

___
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 Zachary Ware


Zachary Ware  added the comment:


New changeset 11eb1a94704142385ffc07852739863ced8587d2 by Zachary Ware (Berker 
Peksag) in branch 'master':
bpo-34251: Restore msilib.Win64 to preserve compatibility (GH-8510)
https://github.com/python/cpython/commit/11eb1a94704142385ffc07852739863ced8587d2


--

___
Python tracker 

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



[issue1467929] %-formatting and dicts

2018-07-28 Thread Eric V. Smith


Eric V. Smith  added the comment:

I unassigned myself from this a few months ago. If someone wants to fix it, I'm 
not opposed. But the issue is 12 years old and doesn't cause any real problems 
as far as I can see, so it's hard to get excited about it. And as we've seen 
there are a lot of corner cases. I'd hate to make things worse.

--

___
Python tracker 

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



[issue34235] PyArg_ParseTupleAndKeywords: support required keyword arguments

2018-07-28 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

The problem is that PyArg_ParseTupleAndKeywords() supports required 
keyword-only parameters, but only if all parameters are required.

"O|O$O" -- last two are optional.
"OO$O" -- all are required.

This makes designing a consistent syntax more difficult. '|' currently is not 
allowed after '$'. If allow it with the meaning that all arguments before it 
are required, and after it -- optional, this will allow to declare required and 
optional keyword-only parameters, but optional positional-or-keyword parameters 
could not be used in the same function.

--

___
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 Stefan Behnel


Stefan Behnel  added the comment:

>> Commutativity guarantees can be delivered by sorting arguments before 
>> summation.

> No thanks -- that's too expensive for such a small payoff.

Since I don't really see people use this on vectors with hundreds of 
dimensions, let me still suggest using insertion sort. It's simple and short to 
implement into the current code (right in the first loop) and should be plenty 
fast for any reasonable usage of this function.

--
nosy: +scoder

___
Python tracker 

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



[issue33113] Query performance is very low and can even lead to denial of service

2018-07-28 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

I concur with Tal. This problem is called "catastrophic backtracking".

--
resolution:  -> wont fix
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



[issue34265] Dataclasses test doesn't run independently

2018-07-28 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
resolution:  -> duplicate
superseder:  -> Lib/test/test_dataclasses.py failed when ran as a script

___
Python tracker 

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



[issue34035] Several AttributeError in zipfile seek() methods

2018-07-28 Thread Mickaël S .

Change by Mickaël S. :


--
title: zipfile: AttributeError in "seek" method of "_SharedFile" class -> 
Several AttributeError in zipfile seek() methods

___
Python tracker 

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



[issue1467929] %-formatting and dicts

2018-07-28 Thread Tal Einat


Tal Einat  added the comment:

Eric, would you like an update PR for this?

--
nosy: +taleinat

___
Python tracker 

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



[issue33113] Query performance is very low and can even lead to denial of service

2018-07-28 Thread Tal Einat


Tal Einat  added the comment:

Clarification: The given pattern is equivalent to that in my previous post, 
assuming the latter is used with the re.VERBOSE flag.

--

___
Python tracker 

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



[issue33113] Query performance is very low and can even lead to denial of service

2018-07-28 Thread Tal Einat


Tal Einat  added the comment:

I suggest closing this as "wontfix".

This is a just an non-optimized regexp pattern leading to long run times.  That 
these are possible is a well-known trait of backtracking regular expression 
engines in general, and ours in particular.

IMO this isn't a security issue since the root of the issue is the pattern.  I 
don't see this as a bug or a significant performance issue either, and there is 
no concrete enhancement suggestion here.

For clarification, the given pattern is equivalent to:
pat = r'''^
(
\(?
[\w\d\-\.\\]{3,}
\|?
)+
[\w\d\-\.\\]{3,}
\)?
$'''

--
nosy: +taleinat

___
Python tracker 

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



[issue33083] math.factorial accepts non-integral Decimal instances

2018-07-28 Thread Tal Einat


Tal Einat  added the comment:

So we keep things consistent by supporting Decimal and Fraction inputs, but 
raising ValueError if the value isn't a non-negative integer?

--
nosy: +taleinat

___
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 Segev Finer


Segev Finer  added the comment:

@scorphus Note that I made a PR for this: PR 8303

--

___
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



[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



[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



[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



[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



[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



[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



[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



[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



[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



[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



[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



[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



[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



[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



[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



[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



[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



[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


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



[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



[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



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



[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



[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



[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



[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



[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



[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



[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



[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



[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



[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



[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



[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



[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



[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



[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



[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



[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



[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



[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



[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



[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



[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



[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



[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



[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



[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



[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



[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



[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



[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



[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


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



[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



[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



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



[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



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



[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



  1   2   >