[issue36898] Add parameter @case_sensitive to glob and rglob in pathlib

2019-05-13 Thread SilentGhost


Change by SilentGhost :


--
pull_requests: +13179
stage:  -> patch review
versions: +Python 3.8 -Python 3.7

___
Python tracker 

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



[issue36898] Add parameter @case_sensitive to glob and rglob in pathlib

2019-05-13 Thread Chuang Men


New submission from Chuang Men :

In pathlib, I add a parameter @case_sensitive to glob and rglob.

Sometimes the extension would be in upper case but sometimes it would be lower 
case, for example: *.tif and *.TIF. So the parameter @case_sensitive may be 
useful in some cases.

Usage example:
In [1]: from pathlib import Path

In [2]: path = Path('.')

In [3]: for each_file in path.glob('*.tif'):
   ...: print(each_file)
   ...:
a.tif
b.tif

In [4]: for each_file in path.rglob('*.TIF'):
   ...: print(each_file)
   ...:
c.TIF
TEST/d.TIF

In [5]: for each_file in path.glob('*.TIF', case_sensitive=False):
   ...: print(each_file)
   ...:
a.tif
c.TIF
b.tif

In [6]: for each_file in path.rglob('*.TIF', case_sensitive=False):
   ...: print(each_file)
   ...:
a.tif
c.TIF
b.tif
TEST/d.TIF
TEST/e.tif

--
components: Library (Lib)
files: pathlib.py
messages: 342284
nosy: Chuang Men
priority: normal
severity: normal
status: open
title: Add parameter @case_sensitive to glob and rglob in pathlib
type: enhancement
versions: Python 3.7
Added file: https://bugs.python.org/file48328/pathlib.py

___
Python tracker 

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



[issue36783] No documentation for _FromXandFold C API functions

2019-05-13 Thread Stéphane Wirtel

Stéphane Wirtel  added the comment:


New changeset d28772ab6967fea136c0707f0207673ebad66f61 by Stéphane Wirtel 
(Edison A) in branch 'master':
bpo-36783: Add new references for C API Documentation changes (GH-13204)
https://github.com/python/cpython/commit/d28772ab6967fea136c0707f0207673ebad66f61


--
nosy: +matrixise

___
Python tracker 

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



[issue36783] No documentation for _FromXandFold C API functions

2019-05-13 Thread Stéphane Wirtel

Stéphane Wirtel  added the comment:

Thank you for your PR.

@Cherryl, the PR 13204 was not merged and the issue was closed :/

--

___
Python tracker 

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



[issue36898] Add parameter @case_sensitive to glob and rglob in pathlib

2019-05-13 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

You can use the pattern '*.[Tt][Ii][Ff]'.

--
nosy: +serhiy.storchaka

___
Python tracker 

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



[issue6584] gzip module has no custom exception

2019-05-13 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:


New changeset cf599f6f6f1c392d8f12936982a370d533782195 by Serhiy Storchaka 
(Zackery Spytz) in branch 'master':
bpo-6584: Add a BadGzipFile exception to the gzip module. (GH-13022)
https://github.com/python/cpython/commit/cf599f6f6f1c392d8f12936982a370d533782195


--

___
Python tracker 

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



[issue6584] gzip module has no custom exception

2019-05-13 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


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



[issue36898] Add parameter @case_sensitive to glob and rglob in pathlib

2019-05-13 Thread Chuang Men


Chuang Men  added the comment:

It is a good solution but when pattern is long, it might be a little 
inconvenient. 
Anyway, just an advice. Thank you for your reply!

--

___
Python tracker 

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



[issue36778] test_site.StartupImportTests.test_startup_imports fails if default code page is cp65001

2019-05-13 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset 3aef48e3157f52a8bcdbacf47a35d0016348735e by Victor Stinner in 
branch 'master':
bpo-36778: Update cp65001 codec documentation (GH-13240)
https://github.com/python/cpython/commit/3aef48e3157f52a8bcdbacf47a35d0016348735e


--

___
Python tracker 

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



[issue36728] Remove PyEval_ReInitThreads() from the public C API

2019-05-13 Thread STINNER Victor


STINNER Victor  added the comment:

> i double checked in our massive internal codebase at work and found no calls 
> other than python interpreters themselves.

Thanks. It confirms what I understood using GitHub code search (see my initial 
message).

--

___
Python tracker 

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



[issue36084] Threading: add builtin TID attribute to Thread objects

2019-05-13 Thread STINNER Victor


STINNER Victor  added the comment:

I dislike adding a function which always return 0 when the feature is not 
supported:

unsigned long
PyThread_get_thread_native_id(void)
{
...
#if ...
...
#else
unsigned long native_id;
native_id = 0;
#endif
return (unsigned long) native_id;
}

I would prefer to not define the function if it's not available, so the 
attribute would be missing.

With the commited change, how can I know if native thread identifier is 
supported or not?

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



[issue36084] Threading: add builtin TID attribute to Thread objects

2019-05-13 Thread STINNER Victor


STINNER Victor  added the comment:

> """Native integral thread ID of this thread or 0 if it has not been started. 
> (...)

Why not set the attribute to None before a thread starts? It would be more 
consistent with the the "ident" attribute behavior, no? Extract __repr__():

def __repr__(self):
assert self._initialized, "Thread.__init__() was not called"
status = "initial"
if self._started.is_set():
status = "started"
...
if self._ident is not None:
status += " %s" % self._ident
return "<%s(%s, %s)>" % (self.__class__.__name__, self._name, status)

"is None" is a reliable check to decide if the attribute is set or not.

With the current implementation, it's hard to guess since 
PyThread_get_thread_native_id() returns on some platforms... But again, I would 
prefer to not have the attribute if PyThread_get_thread_native_id() is not 
available on a platform.

--

___
Python tracker 

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



[issue36895] time.clock() marked for removal in 3.8 – still there.

2019-05-13 Thread STINNER Victor


STINNER Victor  added the comment:

I would prefer to remove time.clock() documentation if the function is removed.

Would you mind to update Python 3.7 documentation to mention that the function 
is removed from Python 3.8?
https://docs.python.org/3.7/library/time.html#time.clock

In short, use ".. deprecated-removed:: 3.3 3.8 " in Python 3.7 doc.

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



[issue36751] Changes in the inspect module for PEP 570

2019-05-13 Thread Miro Hrončok

Miro Hrončok  added the comment:

Just a quick idea: What if a warning happened iff positional only argument are 
there, but not with functions that don't use those? Might be a different kind 
of warning.

--
nosy: +hroncok

___
Python tracker 

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



[issue36751] Changes in the inspect module for PEP 570

2019-05-13 Thread STINNER Victor


STINNER Victor  added the comment:

> And no, the undeprecation wasn't because of Python 2 (Py2 doesn't have 
> getfullargspec() - it's a Py3 only API).

Python 3.8.0 is scheduled for: "3.8.0 final: Monday, 2019-10-21"

Something like 2 months before 2.7 end of support: 2019-12-31.

Does the "because of Python 2" still stand for Python 3.8?

A deprecating warning doesn't hurt: you are still able to run your code. 
Moreover, deprecating warnings are ignored by default (except in the __main__ 
module). I don't see what is the *practical* issue of deprecating 
getfullargspec().

getfullargspec() has to die sometimes, it's good to warn users, no :-)

Or is the *long term plan* to keep getfullargspec() forever?

--

I basically have no opinion on these questions. I'm more curious about the long 
term plan ;-)

--

___
Python tracker 

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



[issue36899] datetime utcfromtimestamp ignores astimezone

2019-05-13 Thread Piotr Kamoda


New submission from Piotr Kamoda :

See below code:
>>> datetime.utcfromtimestamp(1557395250).astimezone(get_localzone()).strftime('%Y-%m-%d
>>>  %H:%M:%S %z %Z')
'2019-05-09 09:47:30 +0200 CEST'
>>> datetime.fromtimestamp(1557395250).astimezone(get_localzone()).strftime('%Y-%m-%d
>>>  %H:%M:%S %z %Z')
'2019-05-09 11:47:30 +0200 CEST'

As you can see, utcfromtimestamp refuses to be 'timezoned', second one is 
correct.

--
messages: 342297
nosy: Piotr Kamoda
priority: normal
severity: normal
status: open
title: datetime utcfromtimestamp ignores astimezone
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



[issue36895] time.clock() marked for removal in 3.8 – still there.

2019-05-13 Thread Karthikeyan Singaravelan


Karthikeyan Singaravelan  added the comment:

Should this section also be updated about time.clock removal?

https://docs.python.org/3.8/whatsnew/3.8.html#api-and-feature-removals

--
nosy: +xtreak

___
Python tracker 

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



[issue36899] datetime utcfromtimestamp ignores astimezone

2019-05-13 Thread SilentGhost

SilentGhost  added the comment:

The utcfromtimestamp returns a naïve object that is assumed to be in the UTC 
timezone, you're then effectively turning it into a aware object in CEST 
timezone. I'm not sure what you think is wrong with utcfromtimestamp here, but 
it behaves according to documentation.

--
nosy: +SilentGhost
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed
type:  -> behavior

___
Python tracker 

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



[issue36899] datetime utcfromtimestamp ignores astimezone

2019-05-13 Thread SilentGhost


Change by SilentGhost :


--
components: +Library (Lib)

___
Python tracker 

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



[issue36899] datetime utcfromtimestamp ignores astimezone

2019-05-13 Thread Piotr Kamoda


Piotr Kamoda  added the comment:

Docs state that fromtimestamp returns a naive datetime object 
(https://docs.python.org/3.7/library/datetime.html#datetime.datetime.fromtimestamp)
 and not utcfromtimestamp. Perhaps it needs fixing.

Additionally, astimezone fails silently, I even tried
>>> datetime.utcfromtimestamp(1557395250).astimezone(pytz.utc).astimezone(get_localzone()).strftime('%Y-%m-%d
>>>  %H:%M:%S %z %Z')
'2019-05-09 09:47:30 +0200 CEST'
Which looks weird, but why it ignores that function silently is also weird.

--

___
Python tracker 

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



[issue36899] datetime utcfromtimestamp ignores astimezone

2019-05-13 Thread SilentGhost

SilentGhost  added the comment:

In the same page about utcfromtimestamp 
https://docs.python.org/3.7/library/datetime.html#datetime.datetime.utcfromtimestamp
 it says:

> with tzinfo None

Also below, "To get an aware datetime object". All this means or implies naïve 
object.

I've no idea what you mean by "fails silently". In what way does astimezone 
fail silently. You have your naïve object, then you convert it aware object, 
then to a different timezone. What is the problem here?

--

___
Python tracker 

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



[issue36891] Additional startup plugin for vendors

2019-05-13 Thread Inada Naoki


Inada Naoki  added the comment:

Why is sitevendor required in addition to sitecustomize?

--
nosy: +inada.naoki

___
Python tracker 

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



[issue36891] Additional startup plugin for vendors

2019-05-13 Thread STINNER Victor


Change by STINNER Victor :


--
nosy: +vstinner

___
Python tracker 

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



[issue36899] datetime utcfromtimestamp ignores astimezone

2019-05-13 Thread Piotr Kamoda


Piotr Kamoda  added the comment:

Ok, now I see that naive object assumes my timezone in some cases. That's still 
mind-boggling that utcfromtimestamp returns an object that shows utc hour but 
when astimezone is applied it reverts without converting the hour to local 
timezone.

See below as explanation:
>>> datetime.utcfromtimestamp(1557395250).astimezone(pytz.utc).strftime('%Y-%m-%d
>>>  %H:%M:%S %z %Z')
'2019-05-09 07:47:30 + UTC'
>>> datetime.utcfromtimestamp(1557395250).astimezone(get_localzone()).strftime('%Y-%m-%d
>>>  %H:%M:%S %z %Z')
'2019-05-09 09:47:30 +0200 CEST'

--

___
Python tracker 

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



[issue36880] Returning None from a callback with restype py_object decrements None's refcount too much

2019-05-13 Thread dgelessus


dgelessus  added the comment:

Thank you for looking into this! I can confirm that Eryk Sun's change fixes the 
issue for me locally.

I'm up for making the patch for this. Regarding tests, I see there are already 
some refcount-related ctypes tests in Lib/ctypes/test/test_refcounts.py - 
should I add another test case there that reproduces this situation and ensures 
that None's refcount is unaffected? (I imagine testing against None's refcount 
will be a bit fragile, so it might be best to call the previously-buggy 
function in a loop and check afterwards that None's refcount hasn't changed 
significantly.)

--

___
Python tracker 

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



[issue36899] datetime utcfromtimestamp ignores astimezone

2019-05-13 Thread SilentGhost

SilentGhost  added the comment:

Naïve object does not assume anything, naïve object *lacks* timezone 
information. It cannot convert anything. It is a mistake to set a wrong 
timezone to a naïve object, a mistake that you're making.

Piotr, this is a bug tracker for development of CPython, let's not turn it into 
support forum, there are many of those on the internet. I will not respond any 
further and I hope you're satisfied that this is not an issue in datetime 
module as distributed with standard library.

--

___
Python tracker 

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



[issue36728] Remove PyEval_ReInitThreads() from the public C API

2019-05-13 Thread STINNER Victor


Change by STINNER Victor :


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



[issue36728] Remove PyEval_ReInitThreads() from the public C API

2019-05-13 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset d5d9e81ce9a7efc5bc14a5c21398d1ef6f626884 by Victor Stinner in 
branch 'master':
bpo-36728: Remove PyEval_ReInitThreads() from C API (GH-13241)
https://github.com/python/cpython/commit/d5d9e81ce9a7efc5bc14a5c21398d1ef6f626884


--

___
Python tracker 

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



[issue36763] PEP 587: Rework initialization API to prepare second version of the PEP

2019-05-13 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +13180

___
Python tracker 

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



[issue36867] Make semaphore_tracker track other system resources

2019-05-13 Thread Pierre Glaser


Pierre Glaser  added the comment:

Yes, one test I wrote in an unrelated commit does not unlink a memory segment. 
Now the ResourceTracker complains. Fixing it now.

--

___
Python tracker 

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



[issue36867] Make semaphore_tracker track other system resources

2019-05-13 Thread Pierre Glaser


Pierre Glaser  added the comment:

Actually, I was properly unlinking the shared_memory segments. The warning 
messages are due to bad interactions between the ResourceTracker and the 
SharedMemoryManager object. In this particular case, it's easy to change a 
little bit the  problematic test to avoid the warnings. I will focus on solving 
those bad interactions right after.

--

___
Python tracker 

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



[issue36867] Make semaphore_tracker track other system resources

2019-05-13 Thread STINNER Victor


STINNER Victor  added the comment:

test_shared_memory_cleaned_after_process_termination() uses time as a weak 
synchronization primitive:


# killing abruptly processes holding reference to a shared memory
# segment should not leak the given memory segment.
p.terminate()
p.wait()
time.sleep(1.0)  # wait for the OS to collect the segment

with self.assertRaises(FileNotFoundError):
smm = shared_memory.SharedMemory(name, create=False)

Would it be possible to use a more reliable synchronization? Such test usually 
fail randomly.
https://pythondev.readthedocs.io/unstable_tests.html

--
nosy: +vstinner

___
Python tracker 

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



[issue36900] Use _PyCoreConfig rather than global configuration variables

2019-05-13 Thread STINNER Victor


New submission from STINNER Victor :

PyInterpreterState.config is now preferred over global configuration variables, 
so two interpreters can have a different configuration, the "state" of an 
interpreter is now better defined (especially when and how its configuration is 
set).

Attached PRs fix these isssues.

--
components: Interpreter Core
messages: 342310
nosy: vstinner
priority: normal
severity: normal
status: open
title: Use _PyCoreConfig rather than global configuration variables
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



[issue36867] Make semaphore_tracker track other system resources

2019-05-13 Thread Pierre Glaser


Change by Pierre Glaser :


--
pull_requests: +13182

___
Python tracker 

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



[issue36901] Fix leaks in /PC/bdist_wininst/install.c

2019-05-13 Thread Cheryl Sabella


New submission from Cheryl Sabella :

/PC/bdist_wininst/install.c contains some memory leaks.

PR2142 appears to be abandoned, so a new PR needs to be opened with the changes 
and also with the additional changes requested by Serhiy.

--
components: Installation
messages: 342311
nosy: cheryl.sabella, serhiy.storchaka, vstinner
priority: normal
severity: normal
stage: needs patch
status: open
title: Fix leaks in /PC/bdist_wininst/install.c
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



[issue36901] Fix leaks in /PC/bdist_wininst/install.c

2019-05-13 Thread Tiago Filipe Silva


Change by Tiago Filipe Silva :


--
keywords: +patch
pull_requests: +13183
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



[issue36008] [good first issue] Update documentation for 3.8

2019-05-13 Thread Cheryl Sabella


Cheryl Sabella  added the comment:


New changeset 3e2afd78babe5bd270e7f3b9df8796eeabc79865 by Cheryl Sabella 
(Utkarsh Gupta) in branch 'master':
bpo-36008: Doc update for 3.8 migration (GH-12887)
https://github.com/python/cpython/commit/3e2afd78babe5bd270e7f3b9df8796eeabc79865


--

___
Python tracker 

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



[issue36008] [good first issue] Update documentation for 3.8

2019-05-13 Thread Cheryl Sabella


Change by Cheryl Sabella :


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



[issue36807] IDLE doesn't call os.fsync()

2019-05-13 Thread Terry J. Reedy


Terry J. Reedy  added the comment:


New changeset 4f098b35f58e911639f8e9adc393d5cf5c792e7f by Terry Jan Reedy 
(Guido van Rossum) in branch 'master':
bpo-36807: When saving a file in IDLE, call flush and fsync (#13102)
https://github.com/python/cpython/commit/4f098b35f58e911639f8e9adc393d5cf5c792e7f


--

___
Python tracker 

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



[issue36902] Wireless Network Engineer

2019-05-13 Thread rudragavara


New submission from rudragavara :

A Wireless Network Engineer is responsible for installing, configuring and 
maintaining wireless network equipment, network management and security 
including 802.11 b/g/n/ac standards and industry best practices for 
implementing high-density WIFI solutions.

Moreover, to put it concisely, this person needs to assess, plan and develop 
for several operations capabilities for wireless telecommunications.

As more companies continue to embrace Wireless LAN, the demand for wireless 
network engineers has grown manifold in the recent past. The proliferation of 
mobile applications, which require testing in a wireless environment, is also 
one of the other reasons why enterprises need their services more, currently.

Read More; https://www.fieldengineer.com/engineers/field-engineer-jobs

--
messages: 342314
nosy: rudragavara
priority: normal
severity: normal
status: open
title: Wireless Network Engineer

___
Python tracker 

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



[issue36902] spam

2019-05-13 Thread SilentGhost


Change by SilentGhost :


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



[issue36902] spam

2019-05-13 Thread SilentGhost


Change by SilentGhost :


--
Removed message: https://bugs.python.org/msg342314

___
Python tracker 

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



[issue36902] spam

2019-05-13 Thread SilentGhost


Change by SilentGhost :


--
nosy:  -rudragavara
title: Wireless Network Engineer -> spam

___
Python tracker 

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



[issue22021] shutil.make_archive() root_dir do not work

2019-05-13 Thread Cheryl Sabella


Cheryl Sabella  added the comment:

@giampaolo.rodola, would you be able to provide a review of this doc change?  
Thanks!

--
nosy: +cheryl.sabella, giampaolo.rodola
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



[issue34424] Unicode names break email header

2019-05-13 Thread Cheryl Sabella


Cheryl Sabella  added the comment:

This looks like it was just pending final approval after changes.  Please let 
me know if I can help move it along.  Thanks!

--
nosy: +cheryl.sabella
versions: +Python 3.8 -Python 3.7

___
Python tracker 

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



[issue10991] trace fails when test imported a temporary file

2019-05-13 Thread SilentGhost


SilentGhost  added the comment:

Brett, is this something that is still relevant for the supported versions or 
are you OK with closing this issue as out of date or wont fix?

--
nosy: +SilentGhost, brett.cannon

___
Python tracker 

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



[issue36867] Make semaphore_tracker track other system resources

2019-05-13 Thread Olivier Grisel


Olivier Grisel  added the comment:

As Victor said, the `time.sleep(1.0)` might lead to Heisen failures. I am not 
sure how to write proper strong synchronization in this case but we could 
instead go for something intermediate such as the following pattern:


...
p.terminate()
p.wait()
for i in range(60):
try:
shared_memory.SharedMemory(name, create=False)
except FileNotFoundError:
# the OS successfully collected the segment as expected
break

time.sleep(1.0)  # wait for the OS to collect the segment

 else:
 raise AssertionError(f"Failed to collect shared_memory segment 
{name}")


What do you think?

--
nosy: +Olivier.Grisel

___
Python tracker 

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



[issue36008] [good first issue] Update documentation for 3.8

2019-05-13 Thread Stéphane Wirtel

Stéphane Wirtel  added the comment:

I suggest to remove b2+ and just keep 3.8.0

--

___
Python tracker 

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



[issue36867] Make semaphore_tracker track other system resources

2019-05-13 Thread Pierre Glaser


Pierre Glaser  added the comment:

We can do that, or maybe we can try to wait on the `resource_tracker's` pid?

--

___
Python tracker 

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



[issue36900] Use _PyCoreConfig rather than global configuration variables

2019-05-13 Thread STINNER Victor


Change by STINNER Victor :


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

___
Python tracker 

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



[issue36008] [good first issue] Update documentation for 3.8

2019-05-13 Thread Stéphane Wirtel

Stéphane Wirtel  added the comment:

@Cheryl,

I was reading the last commits on master and I have seen the merge of that PR, 
but 3.8.0 is not yet in Beta2. Maybe we should fix that in an other PR for the 
same issue.

--
nosy: +matrixise

___
Python tracker 

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



[issue35907] [security][CVE-2019-9948] Unnecessary URL scheme exists to allow file:// reading file in urllib

2019-05-13 Thread STINNER Victor


Change by STINNER Victor :


--
title: Unnecessary URL scheme exists to allow file:// reading file  in urllib 
-> [security][CVE-2019-9948] Unnecessary URL scheme exists to allow file:// 
reading file  in urllib

___
Python tracker 

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



[issue35727] sys.exit() in a multiprocessing.Process does not align with Python behavior

2019-05-13 Thread Cheryl Sabella


Change by Cheryl Sabella :


--
nosy: +davin
versions:  -Python 3.5

___
Python tracker 

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



[issue36008] [good first issue] Update documentation for 3.8

2019-05-13 Thread Utkarsh Gupta


Utkarsh Gupta  added the comment:

Sure, but ultimately (soon enough) it is going to happen, no?

--

___
Python tracker 

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



[issue33882] doc Mention breakpoint() in debugger-related FAQ

2019-05-13 Thread Stéphane Wirtel

Stéphane Wirtel  added the comment:


New changeset af5ef3e1077bc2ed177a7c8598f8ecc756ecf6f9 by Stéphane Wirtel (Miss 
Islington (bot)) in branch '3.7':
bpo-33882: mention breakpoint() in debugger-related FAQ (GH-7759) (GH-13077)
https://github.com/python/cpython/commit/af5ef3e1077bc2ed177a7c8598f8ecc756ecf6f9


--
nosy: +matrixise

___
Python tracker 

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



[issue33882] doc Mention breakpoint() in debugger-related FAQ

2019-05-13 Thread Stéphane Wirtel

Stéphane Wirtel  added the comment:

Thank you for your PR,

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



[issue34682] Typo reports on docs@

2019-05-13 Thread miss-islington


Change by miss-islington :


--
pull_requests: +13185

___
Python tracker 

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



[issue34682] Typo reports on docs@

2019-05-13 Thread miss-islington


miss-islington  added the comment:


New changeset 778a9107586e29421af3a08209cf0b557c1fe5bc by Miss Islington (bot) 
(divyag9) in branch 'master':
bpo-34682: Wording and grammatical changes to the 
doc(https://docs.python.org/3) (GH-13120)
https://github.com/python/cpython/commit/778a9107586e29421af3a08209cf0b557c1fe5bc


--
nosy: +miss-islington

___
Python tracker 

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



[issue36807] IDLE doesn't call os.fsync()

2019-05-13 Thread miss-islington


Change by miss-islington :


--
pull_requests: +13186

___
Python tracker 

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



[issue36867] Make semaphore_tracker track other system resources

2019-05-13 Thread STINNER Victor


STINNER Victor  added the comment:

I like Olivier's pattern. Maybe we can slowly increase the sleep to stop 
shortly if the resource goes away shortly.

deadline = time.monotonic() + 60.0
sleep = 0.010
while ...:
   if : break
   if time.monotonic() > deadline: ... assert error ...
   sleep = min(sleep * 2, 5.0)
   time.sleep(1.0)

It's kind of a common pattern. Maybe it should be an helper in test.support 
module.


> We can do that, or maybe we can try to wait on the `resource_tracker's` pid?

I prefer to make sure that the resource goes away without inspecting 
multiprocessing internals.

--

___
Python tracker 

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



[issue34682] Typo reports on docs@

2019-05-13 Thread Stéphane Wirtel

Change by Stéphane Wirtel :


--
pull_requests: +13187

___
Python tracker 

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



[issue36890] python-3.7.3-macosx10.6.pkg verification error on macOS 10.6 Snow Leopard

2019-05-13 Thread Stéphane Wirtel

Stéphane Wirtel  added the comment:

Hi,

In fact, there is another question, MacOS X Snow Leopard is not supported since 
2014, do we need to continue to generate the package for this version?

https://en.wikipedia.org/wiki/Mac_OS_X_Snow_Leopard

--
nosy: +matrixise

___
Python tracker 

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



[issue34682] Typo reports on docs@

2019-05-13 Thread Julien Palard

Julien Palard  added the comment:


New changeset 074d7c44a474680122ed869bb6be89c1f4f18f12 by Julien Palard 
(Stéphane Wirtel) in branch '3.7':
[3.7] bpo-34682: Wording and grammatical changes to the 
doc(https://docs.python.org/3) (GH-13120) (GH-13281)
https://github.com/python/cpython/commit/074d7c44a474680122ed869bb6be89c1f4f18f12


--
nosy: +mdk

___
Python tracker 

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



[issue36783] No documentation for _FromXandFold C API functions

2019-05-13 Thread Paul Ganssle

Paul Ganssle  added the comment:

@Stéphane The reason this issue was closed before PR 13204 was merged is that 
PR 13147 was merged a bit prematurely due to a miscommunication, which is why 
Cheryl closed the issue. I was going to re-open it after we realized what 
happened, but since we were at sprints and I knew 13204 was coming soon, I 
didn't bother.

--

___
Python tracker 

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



[issue36725] Reference leak regression with Python3.8a3

2019-05-13 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +13188
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



[issue36903] ResourceWarning in test_logging.HandlerTest.test_post_fork_child_no_deadlock

2019-05-13 Thread Karthikeyan Singaravelan


New submission from Karthikeyan Singaravelan :

There was a test added with 64aa6d2000665efb1a2eccae176df9520bf5f5e6. It  opens 
a stream of '/dev/null' in the test and doesn't close it causing 
ResourceWarning. A fix would be to assign it to a variable and close it as part 
of test's cleanup process. I will raise a PR for this.

./python.exe -m unittest 
test.test_logging.HandlerTest.test_post_fork_child_no_deadlock
/Users/karthikeyansingaravelan/stuff/python/cpython/Lib/test/test_logging.py:142:
 ResourceWarning: unclosed file <_io.TextIOWrapper name='/dev/null' mode='wt' 
encoding='UTF-8'>
  loggerDict.clear()
ResourceWarning: Enable tracemalloc to get the object allocation traceback
.
--
Ran 1 test in 0.606s

OK

--
components: Tests
messages: 342330
nosy: gregory.p.smith, xtreak
priority: normal
severity: normal
status: open
title: ResourceWarning in 
test_logging.HandlerTest.test_post_fork_child_no_deadlock
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



[issue36903] ResourceWarning in test_logging.HandlerTest.test_post_fork_child_no_deadlock

2019-05-13 Thread STINNER Victor


Change by STINNER Victor :


--
nosy: +vstinner

___
Python tracker 

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



[issue36728] Remove PyEval_ReInitThreads() from the public C API

2019-05-13 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +13189

___
Python tracker 

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



[issue36890] python-3.7.3-macosx10.6.pkg verification error on macOS 10.6 Snow Leopard

2019-05-13 Thread S. J. Cunningham


S. J. Cunningham  added the comment:

Apple's decision to support or not support their products is driven by Apple's 
business considerations and is not binding on anyone else.  Many people 
continue to use earlier versions because of dependence on applications which do 
not run on later versions and/or because later versions do not offer sufficient 
benefits to justify the cost of upgrading.  I don't know on what basis the 
Python organization makes these decisions but I hope it is more than simply 
following Apple's decisions.

--

___
Python tracker 

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



[issue36903] ResourceWarning in test_logging.HandlerTest.test_post_fork_child_no_deadlock

2019-05-13 Thread Karthikeyan Singaravelan


Change by Karthikeyan Singaravelan :


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

___
Python tracker 

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



[issue36725] Reference leak regression with Python3.8a3

2019-05-13 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests:  -13188

___
Python tracker 

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



[issue36890] python-3.7.3-macosx10.6.pkg verification error on macOS 10.6 Snow Leopard

2019-05-13 Thread Ronald Oussoren


Ronald Oussoren  added the comment:

We generally don't drop support for OS versions in patch releases for Python. 
The 3.8 installer will require macOS 10.9, as does the default x86-64 installer 
for 3.7.

--

___
Python tracker 

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



[issue36725] Reference leak regression with Python3.8a3

2019-05-13 Thread Joannah Nanjekye


Change by Joannah Nanjekye :


--
assignee: nanjekyejoannah -> 

___
Python tracker 

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



[issue36728] Remove PyEval_ReInitThreads() from the public C API

2019-05-13 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset c1f7262f7013074613805347db2276f8b5e0e3a4 by Victor Stinner in 
branch 'master':
bpo-36728: Remove PyEval_ReInitThreads documentation (GH-13282)
https://github.com/python/cpython/commit/c1f7262f7013074613805347db2276f8b5e0e3a4


--

___
Python tracker 

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



[issue36807] IDLE doesn't call os.fsync()

2019-05-13 Thread Guido van Rossum


Change by Guido van Rossum :


--
pull_requests: +13191

___
Python tracker 

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



[issue35907] [security][CVE-2019-9948] Unnecessary URL scheme exists to allow file:// reading file in urllib

2019-05-13 Thread STINNER Victor


STINNER Victor  added the comment:

Christian:
> I agree, this looks like an implementation artefact. urllib should not expose 
> the local_file schema. In Python 3 refuses local_file:// (tested with 3.4 to 
> 3.7).

I'm not sure that I understand well the issue. urllib accepts various scheme by 
design: HTTP, HTTPS, FTP, FILE, etc.

For example, file:// scheme is legit and works as expected. Python 3 example:
---
import urllib.request
req = urllib.request.Request('file:///etc/passwd')
print(f"URL scheme: {req.type}")
fp = urllib.request.urlopen(req)
print(fp.read()[:30])
fp.close()
---

Output with Python 3:
---
URL scheme: file
b'root:x:0:0:root:/root:/bin/bas'
---


I get a similar output with this Python 2 example:
---
import urllib
req = urllib.urlopen('file:///etc/passwd')
print(req.read()[:30])
req.close()
---


Christian:
> I agree, this looks like an implementation artefact. urllib should not expose 
> the local_file schema.

I understand that Python 2 handles local_file://url as file://url. Ok. But is 
this a security issue? If you care of security, you ensure that the url scheme 
is HTTP or HTTPS, not only forbid FILE, no?

I'm asking because of:

Karthikeyan Singaravelan:
> This issue seems to have been assigned CVE-2019-9948 
> (https://nvd.nist.gov/vuln/detail/CVE-2019-9948) ...

--
nosy: +vstinner

___
Python tracker 

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



[issue35907] [security][CVE-2019-9948] Unnecessary URL scheme exists to allow file:// reading file in urllib

2019-05-13 Thread Christian Heimes


Christian Heimes  added the comment:

The issue is not about whether "file://" schema or not.

It's about the fact that urllib on Python 2 has two schemas that allow local 
file access. There is the well-known "file://" schema and there is the 
implementation artifact "local_file://". A careful, security-minded developer 
knows about the file:// schema and also knows how to block it. But the 
"local_file://" schema is a surprising side-effect of the implementation.

--

___
Python tracker 

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



[issue36903] ResourceWarning in test_logging.HandlerTest.test_post_fork_child_no_deadlock

2019-05-13 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset 2c10538d11fa9be9a1a9f21605861e10ec4fa207 by Victor Stinner 
(Xtreak) in branch 'master':
bpo-36903: Fix ResourceWarning in test_logging (GH-13283)
https://github.com/python/cpython/commit/2c10538d11fa9be9a1a9f21605861e10ec4fa207


--

___
Python tracker 

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



[issue36903] ResourceWarning in test_logging.HandlerTest.test_post_fork_child_no_deadlock

2019-05-13 Thread miss-islington


Change by miss-islington :


--
pull_requests: +13192

___
Python tracker 

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



[issue35907] [security][CVE-2019-9948] Unnecessary URL scheme exists to allow file:// reading file in urllib

2019-05-13 Thread STINNER Victor


STINNER Victor  added the comment:

If you use directly the URLopener class, Python 3 has a similar issue:
---
import urllib.request
req = urllib.request.URLopener().open('local_file:///etc/passwd')
print(req.read()[:30])
req.close()
---

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



[issue36900] Use _PyCoreConfig rather than global configuration variables

2019-05-13 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset 410b85a7f701be280eb15b0ca4fe116e86f1d008 by Victor Stinner in 
branch 'master':
bpo-36900: import.c uses PyInterpreterState.core_config (GH-13278)
https://github.com/python/cpython/commit/410b85a7f701be280eb15b0ca4fe116e86f1d008


--

___
Python tracker 

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



[issue35907] [security][CVE-2019-9948] Unnecessary URL scheme exists to allow local_file:// reading file in urllib

2019-05-13 Thread Christian Heimes


Change by Christian Heimes :


--
title: [security][CVE-2019-9948] Unnecessary URL scheme exists to allow file:// 
reading file  in urllib -> [security][CVE-2019-9948] Unnecessary URL scheme 
exists to allow local_file:// reading file  in urllib

___
Python tracker 

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



[issue36904] Implement _PyStack_UnpackDict() with a single allocation

2019-05-13 Thread Jeroen Demeyer


New submission from Jeroen Demeyer :

_PyStack_UnpackDict() is used to convert from the FastCallDict calling 
convention to FastCallKeywords. It currently needs two allocations: one for the 
tuple of keyword names and one for the array of arguments (positional and 
keyword).

This can be optimized by using a single allocation, storing everything in a 
single tuple. That tuple can then be artificially truncated to the required 
size when done.

--
components: Library (Lib)
messages: 342339
nosy: Mark.Shannon, jdemeyer, petr.viktorin, scoder
priority: normal
severity: normal
status: open
title: Implement _PyStack_UnpackDict() with a single allocation
type: performance
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



[issue36904] Implement _PyStack_UnpackDict() with a single allocation

2019-05-13 Thread Jeroen Demeyer


Change by Jeroen Demeyer :


--
nosy: +vstinner

___
Python tracker 

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



[issue36895] time.clock() marked for removal in 3.8 – still there.

2019-05-13 Thread Matthias Bussonnier


Change by Matthias Bussonnier :


--
pull_requests: +13193
stage: commit review -> patch review

___
Python tracker 

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



[issue36725] Reference leak regression with Python3.8a3

2019-05-13 Thread STINNER Victor


STINNER Victor  added the comment:

This leak has been fixed by:

commit f00828a742d2e88c910bdfd00f08fcd998554ba5 (refs/bisect/bad)
Author: Pablo Galindo 
Date:   Thu May 9 16:52:02 2019 +0100

bpo-36851: Clean the frame stack if the execution ends with a return and 
the stack is not empty (GH-13191)

--
resolution:  -> duplicate
stage: patch review -> resolved
status: open -> closed
superseder:  -> Frame stack is not cleaned after execution is finished with 
return

___
Python tracker 

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



[issue36851] Frame stack is not cleaned after execution is finished with return

2019-05-13 Thread STINNER Victor


STINNER Victor  added the comment:

I marked bpo-36725 as a duplicate of this issue.

--
nosy: +vstinner

___
Python tracker 

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



[issue32573] All sys attributes (.argv, ...) should exist in embedded environments

2019-05-13 Thread STINNER Victor


STINNER Victor  added the comment:

In Python 3.8, sys.argv is now always created. It's initialized to sys.argv = 
[""] if (argc, argv) are not set in _PyCoreConfig.

So PR 12463 looks useless to me, except if someone wants to change the behavior.

--

___
Python tracker 

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



[issue13286] PEP 3151 breaks backward compatibility: it should be documented

2019-05-13 Thread Matthias Bussonnier


Change by Matthias Bussonnier :


--
pull_requests: +13194

___
Python tracker 

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



[issue32573] All sys attributes (.argv, ...) should exist in embedded environments

2019-05-13 Thread STINNER Victor


STINNER Victor  added the comment:

See also the PEP 587.

--

___
Python tracker 

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



[issue36895] time.clock() marked for removal in 3.8 – still there.

2019-05-13 Thread Matthias Bussonnier


Change by Matthias Bussonnier :


--
pull_requests: +13195

___
Python tracker 

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



[issue13286] PEP 3151 breaks backward compatibility: it should be documented

2019-05-13 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests:  -13194

___
Python tracker 

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



[issue36903] ResourceWarning in test_logging.HandlerTest.test_post_fork_child_no_deadlock

2019-05-13 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset 744129db5d4e7706fd7d46dfc691aa47fabd66fa by Victor Stinner (Miss 
Islington (bot)) in branch '3.7':
bpo-36903: Fix ResourceWarning in test_logging (GH-13283) (GH-13285)
https://github.com/python/cpython/commit/744129db5d4e7706fd7d46dfc691aa47fabd66fa


--

___
Python tracker 

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



[issue36895] time.clock() marked for removal in 3.8 – still there.

2019-05-13 Thread Matthias Bussonnier


Matthias Bussonnier  added the comment:

Done:
 -  1 PR against master to remove the documentation and update 
api-and-feature-removals 
 - and one against 3.7 to add the deprecated-removed.

--

___
Python tracker 

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



[issue36903] ResourceWarning in test_logging.HandlerTest.test_post_fork_child_no_deadlock

2019-05-13 Thread Karthikeyan Singaravelan


Change by Karthikeyan Singaravelan :


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



[issue36084] Threading: add builtin TID attribute to Thread objects

2019-05-13 Thread STINNER Victor


STINNER Victor  added the comment:

This change broke the AIX buildbot:
https://buildbot.python.org/all/#/builders/132/builds/486

==
FAIL: test_various_ops (test.test_threading.ThreadTests)
--
Traceback (most recent call last):
  File 
"/home/shager/cpython-buildarea/3.x.edelsohn-aix-ppc64/build/Lib/test/test_threading.py",
 line 109, in test_various_ops
self.assertEqual(len(native_ids), NUMTASKS + 1)
AssertionError: 1 != 11

==
FAIL: test_various_ops_large_stack (test.test_threading.ThreadTests)
--
Traceback (most recent call last):
  File 
"/home/shager/cpython-buildarea/3.x.edelsohn-aix-ppc64/build/Lib/test/test_threading.py",
 line 159, in test_various_ops_large_stack
self.test_various_ops()
  File 
"/home/shager/cpython-buildarea/3.x.edelsohn-aix-ppc64/build/Lib/test/test_threading.py",
 line 109, in test_various_ops
self.assertEqual(len(native_ids), NUMTASKS + 1)
AssertionError: 1 != 11

==
FAIL: test_various_ops_small_stack (test.test_threading.ThreadTests)
--
Traceback (most recent call last):
  File 
"/home/shager/cpython-buildarea/3.x.edelsohn-aix-ppc64/build/Lib/test/test_threading.py",
 line 147, in test_various_ops_small_stack
self.test_various_ops()
  File 
"/home/shager/cpython-buildarea/3.x.edelsohn-aix-ppc64/build/Lib/test/test_threading.py",
 line 109, in test_various_ops
self.assertEqual(len(native_ids), NUMTASKS + 1)
AssertionError: 1 != 11

--

___
Python tracker 

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



[issue22021] shutil.make_archive() root_dir do not work

2019-05-13 Thread Giampaolo Rodola'


Giampaolo Rodola'  added the comment:

@cheryl.sabella don't have the bandwidth right now (traveling), sorry.

--

___
Python tracker 

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



[issue32893] ast.literal_eval() shouldn't accept booleans as numbers in AST

2019-05-13 Thread Chris Angelico


Change by Chris Angelico :


--
pull_requests: +13196

___
Python tracker 

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



[issue36905] test_typing.GetTypeHintTests.test_get_type_hints_modules_forwardref unexpected success while running whole test suite sequentially

2019-05-13 Thread Karthikeyan Singaravelan


New submission from Karthikeyan Singaravelan :

This happens only while running the tests sequentially and also with whole test 
suite. This error is present in optional GCC build consistently as below : 

https://travis-ci.org/python/cpython/jobs/531845094#L2103

Running whole test suite sequentially in verbose mode brings below message 
locally : 

test_get_type_hints_modules_forwardref (test.test_typing.GetTypeHintTests) ... 
unexpected success

I am not sure of the relation in running this sequentially along with the whole 
test suite. Feel free to close this if this is a false positive.

--
components: Tests
messages: 342348
nosy: levkivskyi, xtreak
priority: normal
severity: normal
status: open
title: test_typing.GetTypeHintTests.test_get_type_hints_modules_forwardref 
unexpected success while running whole test suite sequentially
type: behavior
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



[issue32587] Make REG_MULTI_SZ support zero-length strings

2019-05-13 Thread Steve Dower


Steve Dower  added the comment:

Updating the title to actually reflect the issue - Zackery, could you update 
your PR and NEWS entry?

I just spent way too long looking for a MoveFileEx call that doesn't exist, 
because this isn't actually about doing things on reboot :)

For tests, you should be able to create your own REG_MULTI_SZ key with 
zero-length strings and read it back. If the winreg module won't let you do it, 
you may need ctypes (but that's okay in Windows-only tests).

Alternatively, if you want to dive deeper into the C API code, you could expose 
the fixupMultiSz function as a private function (winreg._split_multi_sz) and 
test it directly. That's my preferred way of unit testing things like this, but 
it's a decent amount of boilerplate just for a test.

--
title: Make REG_MULTI_SZ support PendingFileRenameOperations -> Make 
REG_MULTI_SZ support zero-length strings

___
Python tracker 

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



  1   2   3   >