[issue1438480] shutil.move raises OSError when copystat fails

2019-06-02 Thread Jeffrey Kintscher


Change by Jeffrey Kintscher :


--
nosy: +Jeffrey.Kintscher

___
Python tracker 

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



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

2019-06-02 Thread Mark Dickinson


Mark Dickinson  added the comment:

@David Ratcliffe

> the sum of the first n positive integers is binomial(n+1, 2), and the formula 
> should still work if n is zero.

I agree that's a convincing use-case.

Can you think of any practical uses for allowing negative `k`? I can't.

--

___
Python tracker 

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



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

2019-06-02 Thread Mark Dickinson


Mark Dickinson  added the comment:

> @David Ratcliffe

Radcliffe! Apologies for the misspelling. It's still early in this timezone and 
I haven't had any coffee yet.

--

___
Python tracker 

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



[issue37128] Add math.perm()

2019-06-02 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:


New changeset 5ae299ac78abb628803ab7dee0997364547f5cc8 by Serhiy Storchaka in 
branch 'master':
bpo-37128: Add math.perm(). (GH-13731)
https://github.com/python/cpython/commit/5ae299ac78abb628803ab7dee0997364547f5cc8


--

___
Python tracker 

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



[issue37128] Add math.perm()

2019-06-02 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


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



[issue37128] Add math.perm()

2019-06-02 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
resolution:  -> fixed

___
Python tracker 

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



[issue36879] bug with round() and "numpy floats"

2019-06-02 Thread Mark Dickinson


Change by Mark Dickinson :


--
resolution:  -> third party
stage: needs patch -> 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



[issue36027] Support negative exponents in pow() where a modulus is specified.

2019-06-02 Thread Mark Dickinson


Mark Dickinson  added the comment:


New changeset c52996785a45d4693857ea219e040777a14584f8 by Mark Dickinson in 
branch 'master':
bpo-36027: Extend three-argument pow to negative second argument (GH-13266)
https://github.com/python/cpython/commit/c52996785a45d4693857ea219e040777a14584f8


--

___
Python tracker 

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



[issue36027] Support negative exponents in pow() where a modulus is specified.

2019-06-02 Thread Mark Dickinson


Mark Dickinson  added the comment:

Done. Closing.

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



[issue36839] Support the buffer protocol in code objects

2019-06-02 Thread Stefan Krah


Stefan Krah  added the comment:

On Sun, Jun 02, 2019 at 02:38:21AM +, Inada Naoki wrote:
> What instance means?  code object? co_code?
> Anyway, Dino didn't propose such thing.  He only proposed accepting buffer 
> object for code constructor.
> He didn't describe how to use buffer object.  Python doesn't provide share 
> buffer object inter processes.

He did, at a high level. in the original mail:

"If code objects supported the buffer protocol it would be possible to load
 code from a memory mapped file which is shared across all of the processes."


It is not very detailed, but gives the rationale.  I assumed that the
new shared memory support would be used, but it would be nice to hear
more details.

--

___
Python tracker 

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



[issue37131] all(range()...)) is needlessley slow

2019-06-02 Thread Terji

New submission from Terji :

Checking if a range's items are ll truthy can be done y checking if 0 the range 
contains 0, however currently Python iterates over the range, making the 
operation slower than needed.

>>> rng = range(1, 1_000_000)
>>> timeit all(rng)
19.9 ms ± 599 µs per loop

If the all function could special case range, this could be like made fast like 
this:

if isinstance(obj, range):
if 0 in obj:
return False
return True

--
components: Interpreter Core
messages: 344263
nosy: Petersen
priority: normal
severity: normal
status: open
title: all(range()...)) is needlessley slow
type: performance
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



[issue37131] all(range()...)) is needlessley slow

2019-06-02 Thread Steven D'Aprano


Steven D'Aprano  added the comment:

Why should ``all()`` special case ``range``? Apart from showing off benchmarks, 
what's the point?

Should ``any()`` also special case it? How about other lazy sequences and 
computed iterables, such as itertools.count objects, itertools.cycle objects, 
itertools.repeat objects, etc? How many special cases do we want?

Personally, I don't *necessarily* oppose special-casing types, but it breaks 
the independence of types, and couples the all() function and the range() 
function. To be worth doing, we should get some practical benefit out of it. It 
isn't clear what that benefit is.

Don't get me wrong, its not like I *want* all(range(1, 10**10)) to be slow. But 
nor do I want to couple the all() function to the range function and complicate 
the implementation if there is no corresponding benefit. After all, testing 
with all() is fundamentally an O(N) worst case operation so anything better 
than that is a nice surprise.

If there were special dunders __all__ and __any__ it would be easy to 
encapsulate this behaviour inside the range objects themselves, and neither 
any() nor all() would need to know anything about range objects.

--
nosy: +steven.daprano

___
Python tracker 

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



[issue37131] all(range()...)) is needlessley slow

2019-06-02 Thread Terji


Terji  added the comment:

>> Why should ``all()`` special case ``range``? Apart from showing off 
>> benchmarks, what's the point?

Mostly to avoid silly mistakes, and the overhead of doing it would be very 
small, so a very small trade-off.

>> Should ``any()`` also special case it?

No, ``any()``takes at most two iterations to check truthiness in a ``range()``, 
so that's wouldn't be needed.

>> How about other lazy sequences and computed iterables, such as 
>> itertools.count objects, itertools.cycle objects, itertools.repeat objects, 
>> etc? How many special cases do we want?


No, I wouldn't propose that. The argument would be that those are 
iterators/generators while ``range()`` is special-cased built-in sequence with 
known properties.

--

___
Python tracker 

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



[issue17576] PyNumber_Index() is not int-subclass friendly (or operator.index() docos lie)

2019-06-02 Thread Mark Dickinson


Mark Dickinson  added the comment:

I'm working on a PR that finally changes the DeprecationWarnings that Serhiy 
introduced to TypeErrors; I think that should be acceptable, four Python 
versions and some years later. With that PR:

- int will always return something of exact type `int` (or raise)
- operator.index will always return something of exact type `int` (or raise)
- PyNumber_Index will always use `__index__` for int subclasses, so this should 
fix the issue that Barry originally reported (mismatch between 
`obj.__index__()` and `operator.index(obj)`).

--

___
Python tracker 

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



[issue37131] all(range()...)) is needlessley slow

2019-06-02 Thread Terji


Terji  added the comment:

>> If there were special dunders __all__ and __any__ it would be easy to 
>> encapsulate this behaviour inside the range objects themselves, and neither 
>> any() nor all() would need to know anything about range objects.

This sounds very interesting, and more general. It would be useful for e.g. 
numpy arrays, where ``all(arr)`` currently is slower than ``arr.all()``. Don't 
know it there's a reason it wasn't implemented this way originally?

--

___
Python tracker 

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



[issue37131] all(range()...)) is needlessley slow

2019-06-02 Thread Steven D'Aprano


Steven D'Aprano  added the comment:

> >> Why should ``all()`` special case ``range``? Apart from showing off 
> >> benchmarks, what's the point?
> 
> Mostly to avoid silly mistakes

What sort of silly mistakes?

> and the overhead of doing it would be very small, so a very small trade-off.

Its not just the overhead, its the coupling between two chunks of code 
which should be independent.

--

___
Python tracker 

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



[issue17576] PyNumber_Index() is not int-subclass friendly (or operator.index() docos lie)

2019-06-02 Thread Mark Dickinson


Change by Mark Dickinson :


--
assignee: ethan.furman -> mark.dickinson

___
Python tracker 

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



[issue17576] PyNumber_Index() is not int-subclass friendly (or operator.index() docos lie)

2019-06-02 Thread Mark Dickinson


Change by Mark Dickinson :


--
pull_requests: +13623
pull_request: https://github.com/python/cpython/pull/13740

___
Python tracker 

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



[issue37132] Add a module for integer related math functions

2019-06-02 Thread Serhiy Storchaka


New submission from Serhiy Storchaka :

The math module contains as function for floating-point numbers, as wells as 
functions for integer only numbers: factorial(), gcd(). Yet few integer 
specific functions was added in 3.8: isqrt(), perm(), comb().

The proposed PR adds the new imath module, adds into it old functions 
factorial() and gcd() and moves new functions. It also adds two additional 
functions: as_integer_ratio() and ilog2().

There are plans for adding more integer functions: divide_and_round(), 
is_prime(), primes(), but the work in progress.

--
components: Library (Lib)
messages: 344269
nosy: mark.dickinson, rhettinger, serhiy.storchaka, stutzbach, tim.peters
priority: normal
severity: normal
status: open
title: Add a module for integer related math functions
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



[issue35621] asyncio.create_subprocess_exec() only works with main event loop

2019-06-02 Thread Andrew Svetlov


Andrew Svetlov  added the comment:


New changeset 13ed07998ad93dbdd94991ba0451b9b559f07972 by Andrew Svetlov in 
branch 'master':
bpo-35621: Support running subprocesses in asyncio when loop is executed in 
non-main thread (#13630)
https://github.com/python/cpython/commit/13ed07998ad93dbdd94991ba0451b9b559f07972


--

___
Python tracker 

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



[issue35621] asyncio.create_subprocess_exec() only works with main event loop

2019-06-02 Thread Andrew Svetlov


Change by Andrew Svetlov :


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



[issue37132] Add a module for integer related math functions

2019-06-02 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


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

___
Python tracker 

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



[issue35635] asyncio.create_subprocess_exec() only works in main thread

2019-06-02 Thread Andrew Svetlov


Andrew Svetlov  added the comment:

Fixed by #35621

--
resolution:  -> duplicate
stage:  -> resolved
status: open -> closed
superseder:  -> asyncio.create_subprocess_exec() only works with main event loop

___
Python tracker 

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



[issue36027] Support negative exponents in pow() where a modulus is specified.

2019-06-02 Thread Serhiy Storchaka

Serhiy Storchaka  added the comment:

PR 13266 introduced a compiler warning.

Objects/longobject.c: In function ‘long_invmod’:
Objects/longobject.c:4246:25: warning: passing argument 2 of ‘long_compare’ 
from incompatible pointer type [-Wincompatible-pointer-types]
 if (long_compare(a, _PyLong_One)) {
 ^~~
Objects/longobject.c:3057:1: note: expected ‘PyLongObject * {aka struct 
_longobject *}’ but argument is of type ‘PyObject * {aka struct _object *}’
 long_compare(PyLongObject *a, PyLongObject *b)
 ^~~~

--
nosy: +serhiy.storchaka

___
Python tracker 

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



[issue32052] Provide access to buffer of asyncio.StreamReader

2019-06-02 Thread Andrew Svetlov


Andrew Svetlov  added the comment:

Closing.
Brief:
1. Access to an internal buffer is not an option.
2. Pushing data back to stream after fetching is not an option too: it kills 
almost any possible optimization and makes code overcomplicated. aiohttp used 
to have "unread_data()" API but we deprecated it and going to remove the method 
entirely. A wrapper around the stream with puback functionality is an option 
though unless it doesn't touch underlying stream implementation.
3. Extending a set of reader operations is a good idea, please make a separate 
issue with a concrete proposal if needed.

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



[issue37132] Add a module for integer related math functions

2019-06-02 Thread Mark Dickinson


Mark Dickinson  added the comment:

Some questions:

- What's the plan for the existing functions `math.gcd` and `math.factorial`? 
Do they eventually get deprecated, or do we keep `gcd` and `factorial` in both 
`math` and `imath`?

- Does PEP 399 apply here? If so, we'll need a pure Python version as well as a 
C version

- Should `imath.isqrt` be renamed to `imath.sqrt`?

- What's the actual benefit of this separation?

This feels like a really big change to be making a day before feature freeze; 
I'm not convinced that we don't need a PEP for this. How bad would it be if we 
have to defer until 3.9?

--

___
Python tracker 

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



[issue17576] PyNumber_Index() is not int-subclass friendly (or operator.index() docos lie)

2019-06-02 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

I am not sure that raising an error is the best option. We can just convert an 
integer subclass to an exact int using _PyLong_Copy().

I am not sure that converting to an exact int in low-level C API functions is 
the best option. In many cases we use only the content of the resulting object 
ignoring its type (when convert it to the C integer or float, to bytes array, 
to new instance of int subclass). Creating a new exact int is a waste of time.

This is why I withdrawn my patches and this issue is still open.

--

___
Python tracker 

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



[issue33694] test_asyncio: test_start_tls_server_1() fails on Python on x86 Windows7 3.7 and 3.x

2019-06-02 Thread Andrew Svetlov


Change by Andrew Svetlov :


--
pull_requests: +13625
pull_request: https://github.com/python/cpython/pull/13630

___
Python tracker 

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



[issue31087] asyncio.create_subprocess_* should honor `encoding`

2019-06-02 Thread Andrew Svetlov


Andrew Svetlov  added the comment:

encoding was explicitly disabled by #36686
Now its usage generates ValueError.

asyncio stdio/stdout/stderr streams are bytes.
If you want to propose a patch that supports text streams -- please create 
another issue for that.

--
nosy: +asvetlov
resolution:  -> duplicate
stage:  -> resolved
status: open -> closed
superseder:  -> Docs: asyncio.loop.subprocess_exec documentation is confusing, 
it's not clear how to inherit stdin, stdout or stderr in the subprocess

___
Python tracker 

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



[issue37132] Add a module for integer related math functions

2019-06-02 Thread Mark Dickinson


Mark Dickinson  added the comment:

> Should `imath.isqrt` be renamed to `imath.sqrt`?

On futher reflection, I don't think it should. It's a different function, so 
it's not like comparing `math.sqrt` and `cmath.sqrt`.

One more: I suggest renaming the new function `ilog` to `ilog2`, for 
consistency with `math.log` versus `math.log2`.

--

___
Python tracker 

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



[issue32115] Ignored SIGCHLD causes asyncio.Process.wait to hang forever

2019-06-02 Thread Andrew Svetlov


Andrew Svetlov  added the comment:

#35621 fixes the problem for default ThreadedChildWatcher

--
resolution:  -> duplicate
stage:  -> resolved
status: open -> closed
superseder:  -> asyncio.create_subprocess_exec() only works with main event loop

___
Python tracker 

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



[issue37132] Add a module for integer related math functions

2019-06-02 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

> What's the plan for the existing functions `math.gcd` and `math.factorial`?

I think they should eventually get deprecated, but with long term of 
deprecation. Deprecation warning should be added only when imath versions are 
already available in older Python versions.

But they can be also kept as pure aliases for very long time.

> Does PEP 399 apply here?

There were no Python implementations when these functions was in the math 
module. But there are Python implementations for all these functions (used in 
tests or as predecessors), so it is not hard to add them in the stdlib. Easier 
that to implement math.sin() on Python from scratch.

> Should `imath.isqrt` be renamed to `imath.sqrt`?

I considered this idea and do not have answer.

> What's the actual benefit of this separation?

Currently math becomes a mix of very different functions. Separation will help 
to keep it simpler (from user and implementation sides). It also adds a place 
for landing new integer specific functions which are too specific to add them 
into the math module or into the int class.

--

___
Python tracker 

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



[issue37132] Add a module for integer related math functions

2019-06-02 Thread Mark Dickinson


Mark Dickinson  added the comment:

I think the new `as_integer_ratio` also needs discussion: it was agreed at some 
point in the past to add `as_integer_ratio` *methods* on all numeric built-in 
types, and there's a PR for that. Adding `as_integer_ratio` as a new function 
too seems like two ways to do it.

Please can we defer to 3.9? There just isn't time for the design discussions 
that are needed, and I'd personally rather see the first version of the `imath` 
module be somewhat complete, with `is_prime` and `primes` already.

I do realise that from the perspective of adding an `imath` module, the 
accumulation of integer-based functions in the `math` module is something of a 
wart that we're making worse in 3.8, but I don't think rushing in this change 
is the solution.

Radical suggestion: should we consider delaying the inclusions of `comb`, 
`perm` and `isqrt` in the math module so that we can do this properly for 3.9?

--

___
Python tracker 

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



[issue37132] Add a module for integer related math functions

2019-06-02 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

Actually it was ilog2. There was just an error in the documentation.

Currently we have two ways to represent the number as an integer ratio. The 
official way is two properties numerator and denominator, every number should 
have them. And some concrete numeric types have the as_integer_ratio() method 
which returns both values. Rather of adding as_integer_ratio() to all other 
numeric types I propose to add a helper function which uses either the 
as_integer_ratio() method if available, or  the numerator and denominator 
properties. Currently any code that uses the as_integer_ratio() method should 
implement a fallback to numerator and denominator. With 
imath.as_integer_ratio() it can just use this function.

> Radical suggestion: should we consider delaying the inclusions of `comb`, 
> `perm` and `isqrt` in the math module so that we can do this properly for 3.9?

I like it. I suggest to delay also adding the int.as_integer_ratio() method. 
Currently it does not help because there are other numeric methods without the 
as_integer_ratio() method.

--

___
Python tracker 

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



[issue37131] all(range()...)) is needlessley slow

2019-06-02 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

You can implement it yourself.

_all = all
def all(obj):
if isinstance(obj, range):
return 0 not in obj
return _all(obj)

I do not see reasons to do this in the stdlib.

--
nosy: +serhiy.storchaka
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



[issue37132] Add a module for integer related math functions

2019-06-02 Thread Mark Dickinson


Mark Dickinson  added the comment:

I'm pretty much out of core-dev cycles for this weekend; I'm happy to review 
GH-13741, but won't have time to do so before next weekend.

I'm overall -0 on this change; there's a minor benefit in the separation, but 
for me it's outweighted by the duplication of `gcd` and `factorial` (or in the 
case of `gcd`, triplication, since it's also in the `fractions` module).

I'm out of time, so I'll be brief, but if this does go into 3.8, here are my 
thoughts:

- please remove the imath.as_integer_ratio function; it needs more discussion, 
and it has quite a different character from the other functions; it's not at 
all clear to me that it belongs. We might end up putting it back in eventually, 
but it needs discussion first, and we don't have time for that discussion 
before feature freeze.
- please add the pure Python version of imath that PEP 399 requires, or get 
Brett's confirmation that PEP 399 doesn't apply in this case.
- please get agreement from one (preferably both) of Tim and Raymond

Raymond, Tim: thoughts?

--

___
Python tracker 

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



[issue35621] asyncio.create_subprocess_exec() only works with main event loop

2019-06-02 Thread Kubilay Kocak


Change by Kubilay Kocak :


--
resolution: fixed -> 
status: closed -> open

___
Python tracker 

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



[issue35621] asyncio.create_subprocess_exec() only works with main event loop

2019-06-02 Thread Kubilay Kocak


Kubilay Kocak  added the comment:

New buildbot failure on koobs-freebsd10 that appears related to (includes) this 
changeset

Full log attached

--
nosy: +koobs
Added file: 
https://bugs.python.org/file48384/koobs-freebsd-10-non-debug-3x-build-1170.txt

___
Python tracker 

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



[issue36964] `python3 -m venv NAME`: virtualenv is not portable

2019-06-02 Thread Marco Sulla


Marco Sulla  added the comment:

Well, what about the modification to VIRTUAL_ENV? I think it's little and 
without harm.

--

___
Python tracker 

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



[issue37119] Equality on dict.values() are inconsistent between 2 and 3

2019-06-02 Thread 林自均

林自均  added the comment:

Hi Karthikeyan and Serhiy,

Thank you for the explanation. I'll check the references you gave me.

--

___
Python tracker 

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



[issue37133] Erro "ffi.h: No such file" when build python 3.8 (branch master) on windows 10

2019-06-02 Thread Андрей Казанцев

New submission from Андрей Казанцев :

Where to get "ffi.h" file?

--
components: Build
messages: 344287
nosy: heckad
priority: normal
severity: normal
status: open
title: Erro "ffi.h: No such file" when build python 3.8 (branch master) on 
windows 10
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



[issue37133] Erro "ffi.h: No such file" when build python 3.8 (branch master) on windows 10

2019-06-02 Thread SilentGhost


Change by SilentGhost :


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

___
Python tracker 

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



[issue37133] Erro "ffi.h: No such file" when build python 3.8 (branch master) on windows 10

2019-06-02 Thread SilentGhost


SilentGhost  added the comment:

How are you building python? Have you been following these instructions? 
https://cpython-core-tutorial.readthedocs.io/en/latest/build_cpython_windows.html

--
nosy: +SilentGhost

___
Python tracker 

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



[issue37126] test_threading is leaking references

2019-06-02 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:


New changeset 7ffcf848df214135abeea7f6c6faa4135fd0928f by Pablo Galindo in 
branch 'master':
bpo-37126: Allow structseq objects to be tracked by the GC (GH-13729)
https://github.com/python/cpython/commit/7ffcf848df214135abeea7f6c6faa4135fd0928f


--

___
Python tracker 

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



[issue37126] test_threading is leaking references

2019-06-02 Thread Pablo Galindo Salgado


Change by Pablo Galindo Salgado :


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

___
Python tracker 

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



[issue37133] Erro "ffi.h: No such file" when build python 3.8 (branch master) on windows 10

2019-06-02 Thread Андрей Казанцев

Андрей Казанцев  added the comment:

No, I used https://devguide.python.org/setup/ guide. I have downloaded the 
latest version of Visual Studio 2019 and evaluated in PowerShell 
"PCBuild\build.bat". After this, I opened "PCBuild\pcbuild.sln" and trying to 
build "python" solution and run it. Instead of successful build, the build 
broked.

--

___
Python tracker 

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



[issue37024] SQLite flag in configure due to homebrew not linking sqlite

2019-06-02 Thread Lysandros Nikolaou


Lysandros Nikolaou  added the comment:

This can be most likely be closed. In the last days I had some unrelated 
problems with my mac and had to do a full format. After reinstalling macOS the 
problem went away, so it must have been something specific to my previous state 
of things that triggered the error.

--

___
Python tracker 

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



[issue37024] SQLite flag in configure due to homebrew not linking sqlite

2019-06-02 Thread Ned Deily


Change by Ned Deily :


--
resolution:  -> third party
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



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

2019-06-02 Thread Tim Peters


Tim Peters  added the comment:

I'm not convinced, although I agree relaxing k <= n is less damaging than 
relaxing k >= 0.

Python isn't aimed at mathematicians (although some 3rd-party packages 
certainly are, and they're free to define things however they like).  We have 
to trade off convenience for experts in edge cases against the likelihood that 
an ordinary user is making a mistake.

For example, that's why, despite that Python supports complex numbers, 
math.sqrt(-1) raises ValueError.  For _most_ users, trying that was probably an 
error in their logic that led to the argument being negative.  Experts can use 
cmath.sqrt() instead.

Ordinary users think comb(n, k) is the value of n!//(k!*(n-k)!), and as far as 
they're concerned factorial is only defined for non-negative integers.  0 <= k 
<= n follows from that.  (Indeed, the current docs for `comb()` _define_ the 
result via the factorial expression.)

And ordinary users think of the sum of the first n integers as "number of terms 
times the average", or memorize directly that the answer is n*(n+1)/2.  That 
works fine for n=0.  Only an expert thinks of it as `comb(n+1, 2)`.

So I would still rather enforce 0 <= k <= n at the start, and relax it later 
only if there's significant demand.  In going on three decades of using Python 
and having written my own `comb()` at least a dozen times, I've never found 
that constraint limiting, and enforcing it _has_ caught errors in my code.

--

___
Python tracker 

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



[issue36670] test suite broken due to cpu usage feature on win 10/ german

2019-06-02 Thread Андрей Казанцев

Андрей Казанцев  added the comment:

I have the same problem in Russian locale.
Adding "oem" encoding in the decode method solve problem with decoding but got:
File 
"C:\Users\User\Documents\Projects\cpython\lib\test\libregrtest\win_utils.py", 
line 98, in getloadavg
load = float(toks[1].replace('"', ''))
ValueError: could not convert string to float

In typeperf_output text with description of the error:
'\r\nВыполняется выход, подождите... \r\nОшибка: 
Счетчики не указаны.\r\n\r\r'
Translation on English is "Exiting, wait... Error: Counters are not specified."

Is it possible to check if the counters are found in advance?

--
nosy: +heckad

___
Python tracker 

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



[issue30786] getaddrinfo emulation does not support AI_NUMERICSERV

2019-06-02 Thread Cheryl Sabella


Cheryl Sabella  added the comment:

I'm going to close this as the OP hasn't provided a response to Benjamin's 
question.  It can be re-opened if additional information is provided.  Thanks!

--
nosy: +cheryl.sabella
resolution:  -> out of date
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



[issue35610] IDLE: replace use of EditorWindow.context_use_ps1

2019-06-02 Thread Terry J. Reedy


Change by Terry J. Reedy :


--
pull_requests:  -10657

___
Python tracker 

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



[issue37134] Use PEP570 syntax in the documentation

2019-06-02 Thread Pablo Galindo Salgado


New submission from Pablo Galindo Salgado :

In the documentation, there are a lot of mismatches regarding function and 
method signatures that use positional-only arguments with respect to the 
docstrings (that properly use PEP570 syntax for documenting positional-only 
parameters).

Not that the official syntax for positional-only parameters is accepted (the 
"/"), the documentation needs to be updated to reflect positional-only 
parameters in the functions and methods that use them as covered in the PEP 
document.

--
assignee: docs@python
components: Documentation
messages: 344295
nosy: docs@python, pablogsal
priority: normal
severity: normal
status: open
title: Use PEP570 syntax in the documentation
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



[issue37134] [EASY] Use PEP570 syntax in the documentation

2019-06-02 Thread Pablo Galindo Salgado


Change by Pablo Galindo Salgado :


--
keywords: +easy
stage:  -> needs patch
title: Use PEP570 syntax in the documentation -> [EASY] Use PEP570 syntax in 
the documentation
type:  -> enhancement

___
Python tracker 

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



[issue37134] [EASY] Use PEP570 syntax in the documentation

2019-06-02 Thread Pablo Galindo Salgado


Change by Pablo Galindo Salgado :


--
keywords: +patch
pull_requests: +13626
stage: needs patch -> patch review
pull_request: https://github.com/python/cpython/pull/13743

___
Python tracker 

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



[issue37132] Add a module for integer related math functions

2019-06-02 Thread Raymond Hettinger


Raymond Hettinger  added the comment:

-1 I prefer these functions get left in the regular math module and just 
organize the docs to separate out integer functions.  Additional namespacing 
creates cognitive load and creates a findability problem.

Also, I really don't want gcd() to be moved yet again.

--

___
Python tracker 

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



[issue37132] Add a module for integer related math functions

2019-06-02 Thread Raymond Hettinger


Raymond Hettinger  added the comment:

After the beta feature freeze, I'll write up an edit the math module docs that 
makes in easier to find functions (by splitting out a section of the docs for 
these functions and by creating a summary link table at the top like we do for 
builtins).  I really don't want a separate module for this and think that would 
work against the needs of usres.

--

___
Python tracker 

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



[issue35610] IDLE: replace use of EditorWindow.context_use_ps1

2019-06-02 Thread Terry J. Reedy


Change by Terry J. Reedy :


--
pull_requests:  -10656

___
Python tracker 

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



[issue35610] IDLE: replace use of EditorWindow.context_use_ps1

2019-06-02 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

PR 5968 was previously linked here due to my title editing mistake, soon 
reversed, on the PR.

--

___
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

2019-06-02 Thread Pablo Galindo Salgado


Change by Pablo Galindo Salgado :


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



[issue33694] test_asyncio: test_start_tls_server_1() fails on Python on x86 Windows7 3.7 and 3.x

2019-06-02 Thread Tim Hoffmann


Change by Tim Hoffmann :


--
pull_requests: +13627
pull_request: https://github.com/python/cpython/pull/8518

___
Python tracker 

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



[issue37124] test_msilib is potentially leaking references and memory blocks

2019-06-02 Thread Pablo Galindo Salgado


Change by Pablo Galindo Salgado :


--
nosy: +lukasz.langa
priority: normal -> high

___
Python tracker 

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



[issue12639] msilib Directory.start_component() fails if keyfile is not None

2019-06-02 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:

test_msilib is leaking references https://bugs.python.org/issue37124

--
nosy: +pablogsal

___
Python tracker 

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



[issue12178] csv writer doesn't escape escapechar

2019-06-02 Thread Jeffrey Kintscher


Change by Jeffrey Kintscher :


--
nosy:  -Jeffrey.Kintscher

___
Python tracker 

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



[issue35610] IDLE: replace use of EditorWindow.context_use_ps1

2019-06-02 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

I don't especially like 'prompt_last_line', but cannot think of anything 
better.  Removing the duplication now will make any future change easier.

--

___
Python tracker 

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



[issue35047] Better error messages in unittest.mock

2019-06-02 Thread Petter S


Change by Petter S :


--
pull_requests: +13628
pull_request: https://github.com/python/cpython/pull/13746

___
Python tracker 

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



[issue35610] IDLE: replace use of EditorWindow.context_use_ps1

2019-06-02 Thread Terry J. Reedy


Terry J. Reedy  added the comment:


New changeset 6bdc4dee01788599808c7858e2fe9fdd72cf6792 by Terry Jan Reedy 
(Cheryl Sabella) in branch 'master':
bpo-35610: IDLE - Replace .context_use_ps1 with .prompt_last_line (GH-11307)
https://github.com/python/cpython/commit/6bdc4dee01788599808c7858e2fe9fdd72cf6792


--

___
Python tracker 

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



[issue35610] IDLE: replace use of EditorWindow.context_use_ps1

2019-06-02 Thread miss-islington


Change by miss-islington :


--
pull_requests: +13629
pull_request: https://github.com/python/cpython/pull/13747

___
Python tracker 

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



[issue27682] wsgiref BaseHandler / SimpleHandler can raise additional errors when handling an error

2019-06-02 Thread Petter S


Change by Petter S :


--
pull_requests: +13630
pull_request: https://github.com/python/cpython/pull/13748

___
Python tracker 

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



[issue36670] test suite broken due to cpu usage feature on win 10/ german

2019-06-02 Thread Terry J. Reedy


Change by Terry J. Reedy :


--
nosy:  -terry.reedy

___
Python tracker 

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



[issue26836] Add memfd_create to os module

2019-06-02 Thread Pierre Glaser


Pierre Glaser  added the comment:

>From a quick skim at the man page of memfd_create, this looks promising.

--

___
Python tracker 

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



[issue37124] test_msilib is potentially leaking references and memory blocks

2019-06-02 Thread Pablo Galindo Salgado


Change by Pablo Galindo Salgado :


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

___
Python tracker 

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



[issue35610] IDLE: replace use of EditorWindow.context_use_ps1

2019-06-02 Thread miss-islington


miss-islington  added the comment:


New changeset b4e0bfd4778e142f037f50c19c4bb5bd123b4641 by Miss Islington (bot) 
in branch '3.7':
bpo-35610: IDLE - Replace .context_use_ps1 with .prompt_last_line (GH-11307)
https://github.com/python/cpython/commit/b4e0bfd4778e142f037f50c19c4bb5bd123b4641


--
nosy: +miss-islington

___
Python tracker 

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



[issue35610] IDLE: replace use of EditorWindow.context_use_ps1

2019-06-02 Thread Terry J. Reedy


Change by Terry J. Reedy :


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



[issue37124] test_msilib is potentially leaking references and memory blocks

2019-06-02 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:

The leak is because creating a 'msilib.Directory' adds an entry on a global 
variable '_directories', therefore leaking.

My first PR will make sure the _directories is cleared out after the test to 
stop the leak, but it seems to me that the variable is unused.

@Steve, could you confirm that there is still a reason for the 
msilib._directories?

--
stage: patch review -> 

___
Python tracker 

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



[issue35621] asyncio.create_subprocess_exec() only works with main event loop

2019-06-02 Thread Karthikeyan Singaravelan


Karthikeyan Singaravelan  added the comment:

Also seems to occur on Ubuntu : 
https://buildbot.python.org/all/#/builders/141/builds/1912/steps/5/logs/stdio

karthi@ubuntu-s-1vcpu-1gb-blr1-01:~/cpython$ ./python -m unittest 
test.test_asyncio.test_unix_events
...Exception in thread Thread-1:
Traceback (most recent call last):
  File "/home/karthi/cpython/Lib/threading.py", line 923, in _bootstrap_inner
self.run()
  File "/home/karthi/cpython/Lib/threading.py", line 865, in run
self._target(*self._args, **self._kwargs)
  File "/home/karthi/cpython/Lib/test/test_asyncio/test_unix_events.py", line 
1833, in f
self.assertIsInstance(watcher, asyncio.SafeChildWatcher)
  File "/home/karthi/cpython/Lib/unittest/case.py", line 1330, in 
assertIsInstance
self.fail(self._formatMessage(msg, standardMsg))
  File "/home/karthi/cpython/Lib/unittest/case.py", line 748, in fail
raise self.failureException(msg)
AssertionError:  is not an instance of 
../home/karthi/cpython/Lib/asyncio/base_events.py:646: ResourceWarning: 
unclosed event loop <_UnixSelectorEventLoop running=False closed=False 
debug=False>
  _warn(f"unclosed event loop {self!r}", ResourceWarning, source=self)
ResourceWarning: Enable tracemalloc to get the object allocation traceback
...
--
Ran 116 tests in 1.391s

OK

--
nosy: +pablogsal, xtreak

___
Python tracker 

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



[issue37133] Erro "ffi.h: No such file" when build python 3.8 (branch master) on windows 10

2019-06-02 Thread Zachary Ware


Zachary Ware  added the comment:

Did running PCbuild/build.bat successfully download dependencies to the 
`externals` directory?

--

___
Python tracker 

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



[issue35621] asyncio.create_subprocess_exec() only works with main event loop

2019-06-02 Thread Karthikeyan Singaravelan


Karthikeyan Singaravelan  added the comment:

It seems the assertion has to use ThreadedChildWatcher instead of 
SafeChildWatcher as the default seems to be changed at [0] . If changing 
assertion fixes the test I am curious why it didn't fail in the primary CI.


[0] 
https://github.com/python/cpython/commit/13ed07998ad93dbdd94991ba0451b9b559f07972#diff-8441007d39090aec5e09dbfcfa9973b7R1299

--

___
Python tracker 

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



[issue17576] PyNumber_Index() is not int-subclass friendly (or operator.index() docos lie)

2019-06-02 Thread Raymond Hettinger


Raymond Hettinger  added the comment:

Can we at least switch to PyLong_CheckExact?  That would fix Barry's original 
issue and should run slightly faster.

--
nosy: +rhettinger

___
Python tracker 

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



[issue37126] test_threading is leaking references

2019-06-02 Thread STINNER Victor


STINNER Victor  added the comment:

You forgot to call PyObject_GC_UnTrack() in structseq_dealloc(), no?

--
resolution: fixed -> 
status: closed -> open

___
Python tracker 

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



[issue37126] test_threading is leaking references

2019-06-02 Thread Pablo Galindo Salgado


Change by Pablo Galindo Salgado :


--
pull_requests: +13632
stage: resolved -> patch review
pull_request: https://github.com/python/cpython/pull/13751

___
Python tracker 

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



[issue37126] test_threading is leaking references

2019-06-02 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:

> You forgot to call PyObject_GC_UnTrack() in structseq_dealloc(), no?

Yep, thanks for the catch!

--
stage: patch review -> resolved

___
Python tracker 

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



[issue37124] test_msilib is potentially leaking references and memory blocks

2019-06-02 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:


New changeset c0295dba259accc4b247beb22a0b2cc2f31d9850 by Pablo Galindo in 
branch 'master':
bpo-37124: Fix reference leak in test_msilib (GH-13750)
https://github.com/python/cpython/commit/c0295dba259accc4b247beb22a0b2cc2f31d9850


--

___
Python tracker 

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



[issue36829] Add sys.unraisablehook() to customize how "unraisable exceptions" are logged

2019-06-02 Thread STINNER Victor


Change by STINNER Victor :


--
title: Add sys.unraisablehook() to custom how "unraisable exceptions" are 
logged -> Add sys.unraisablehook() to customize how "unraisable exceptions" are 
logged

___
Python tracker 

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



[issue32912] Raise non-silent warning for invalid escape sequences

2019-06-02 Thread Raymond Hettinger


Raymond Hettinger  added the comment:

I'm seeing these warnings pop up from time to time with various third party 
packages (such as pyparsing which is invoked by ensurepip).

Am wondering whether this should be deferred for another version or so until be 
have good confidence that the major third party packages have all had a chance 
to adapt.  Otherwise, this will mostly be noise for end-users.  Also, it gets 
in the way of the end-user strategy of "backslash anything that looks special" 
as preferred over "remember exactly which things are special".  This may be a 
case of "the cure is worse than the disease".

--
nosy: +rhettinger
status: closed -> open

___
Python tracker 

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



[issue35621] asyncio.create_subprocess_exec() only works with main event loop

2019-06-02 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:

I cannot reproduce this issue locally :(

--

___
Python tracker 

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



[issue35621] asyncio.create_subprocess_exec() only works with main event loop

2019-06-02 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:

When I ran the tests, the watcher I get is a SafeChildWatcher

--

___
Python tracker 

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



[issue36829] Add sys.unraisablehook() to customize how "unraisable exceptions" are logged

2019-06-02 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +13633
pull_request: https://github.com/python/cpython/pull/13752

___
Python tracker 

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



[issue37080] Cannot compile Python3.7.3 on Alt-F (ARM)

2019-06-02 Thread Jarl Gullberg


Jarl Gullberg  added the comment:

That's correct, CPython. I'm not sure if MicroPython would fit the bill for
me, since this system is a full-blown Linux system.

On Fri, 31 May 2019 at 23:26, Terry J. Reedy  wrote:

>
> Terry J. Reedy  added the comment:
>
> I presume you are trying to compile CPython.  Perhaps you might do better
> with MicroPython, designed for micro devices.  Steve, do you know anything
> about CPython on Arm with linux?
>
> --
> nosy: +steve.dower, terry.reedy
>
> ___
> Python tracker 
> 
> ___
>

--

___
Python tracker 

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



[issue37014] [First easy issue] fileinput module should document that openhook and mode are ignored when reading from stdin

2019-06-02 Thread miss-islington


Change by miss-islington :


--
pull_requests: +13634
pull_request: https://github.com/python/cpython/pull/13753

___
Python tracker 

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



[issue37014] [First easy issue] fileinput module should document that openhook and mode are ignored when reading from stdin

2019-06-02 Thread Ezio Melotti


Ezio Melotti  added the comment:


New changeset aca273e2401ca3151e15e984f400233b7f255e15 by Ezio Melotti (Michele 
Angrisano) in branch 'master':
bpo-37014: Update docstring and Documentation of fileinput.FileInput(). 
(GH-13545)
https://github.com/python/cpython/commit/aca273e2401ca3151e15e984f400233b7f255e15


--
nosy: +ezio.melotti

___
Python tracker 

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



[issue37080] Cannot compile Python3.7.3 on Alt-F (ARM)

2019-06-02 Thread Jarl Gullberg


Jarl Gullberg  added the comment:

After some more testing, I can add that the same issue crops up when attempting 
to compile Python 2.7.16 as well.

--

___
Python tracker 

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



[issue36829] Add sys.unraisablehook() to customize how "unraisable exceptions" are logged

2019-06-02 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset cdce0574d03005e27b843fc110c54c99c7a76412 by Victor Stinner in 
branch 'master':
bpo-36829: test_threading: Fix a ref cycle (GH-13752)
https://github.com/python/cpython/commit/cdce0574d03005e27b843fc110c54c99c7a76412


--

___
Python tracker 

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



[issue36985] typing.ForwardRef is undocumented

2019-06-02 Thread Guido van Rossum


Guido van Rossum  added the comment:

Huh. I think I have mellowed with age. IOW SGTM.

On Sat, Jun 1, 2019 at 17:07 Ivan Levkivskyi  wrote:

>
> Ivan Levkivskyi  added the comment:
>
> Guido, I remember you were against exposing `ForwardRef` as public at some
> point, but recently you approved
> https://github.com/python/cpython/pull/13456 that added it to
> `typing.__all__`. I don't have any particular opinion on this, but if you
> don't object, I think it would make sense to add a short section about this
> to the docs, since it may be exposed at runtime, e.g. in `List['Cls']`.
>
> --
> nosy: +gvanrossum
>
> ___
> Python tracker 
> 
> ___
>
-- 
--Guido (mobile)

--

___
Python tracker 

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



[issue37126] test_threading is leaking references

2019-06-02 Thread STINNER Victor


STINNER Victor  added the comment:

Thanks.

commit 3caf4de6f05f68c3a175f4d8ce870d7a0016622a
Author: Pablo Galindo 
Date:   Sun Jun 2 21:52:49 2019 +0100

Call PyObject_GC_UnTrack in structseq dealloc (GH-13751)

--

FYI I also fixed test_threading:

commit cdce0574d03005e27b843fc110c54c99c7a76412
Author: Victor Stinner 
Date:   Sun Jun 2 23:08:41 2019 +0200

bpo-36829: test_threading: Fix a ref cycle (GH-13752)

--
resolution:  -> fixed
status: open -> closed

___
Python tracker 

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



[issue35621] asyncio.create_subprocess_exec() only works with main event loop

2019-06-02 Thread Andrew Svetlov


Change by Andrew Svetlov :


--
pull_requests: +13635
stage: resolved -> patch review
pull_request: https://github.com/python/cpython/pull/13754

___
Python tracker 

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



[issue35621] asyncio.create_subprocess_exec() only works with main event loop

2019-06-02 Thread Andrew Svetlov


Andrew Svetlov  added the comment:

Thanks for the report!

The failure depends on tests order execution (maybe you use -jN flag?).
Before default child watcher was SafeChildWatcher, not it is 
ThreaderChildWather.
The watcher is a global variable (a property of global event loop policy).

The failed test doesn't make sense for default ThreadChildWatcher but still 
valuable for old default SafeChildWatcher.
I've changed the test to use SafeChildWatcher explicitly.

See https://github.com/python/cpython/pull/13754 for the fix

--

___
Python tracker 

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



[issue35621] asyncio.create_subprocess_exec() only works with main event loop

2019-06-02 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:

> The failure depends on tests order execution (maybe you use -jN flag?).

Oh, I understand now!

> See https://github.com/python/cpython/pull/13754 for the fix

Thanks for the fix, Andrew! :)

--

___
Python tracker 

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



[issue20602] sys.flags and sys.float_info disappear at shutdown

2019-06-02 Thread STINNER Victor


STINNER Victor  added the comment:

Honestly, I'm not sure that this issue is really a major bug. I don't think 
that it's worth it to backport the change. It's more a subtle change in Python 
finalization which is super fragile code. I prefer to only change the master 
branch, so I close the issue.

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



[issue19184] dis module has incorrect docs for RAISE_VARARGS

2019-06-02 Thread Ezio Melotti


Ezio Melotti  added the comment:


New changeset e1179a5096fb12297ececd7a1c79969aa5747e28 by Ezio Melotti (Michele 
Angrisano) in branch 'master':
bpo-19184: Update the documentation of dis module. (GH-13652)
https://github.com/python/cpython/commit/e1179a5096fb12297ececd7a1c79969aa5747e28


--
nosy: +ezio.melotti

___
Python tracker 

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



  1   2   >