[issue1054] scriptsinstall target fails in alternate build dir

2019-05-06 Thread SilentGhost


Change by SilentGhost :


Removed file: https://bugs.python.org/file25985/pec34.html

___
Python tracker 

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



[issue1054] scriptsinstall target fails in alternate build dir

2019-05-06 Thread SilentGhost


Change by SilentGhost :


Removed file: https://bugs.python.org/file25981/pec30.html

___
Python tracker 

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



[issue1054] scriptsinstall target fails in alternate build dir

2019-05-06 Thread SilentGhost


Change by SilentGhost :


Removed file: https://bugs.python.org/file25982/pec31.html

___
Python tracker 

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



[issue1054] scriptsinstall target fails in alternate build dir

2019-05-06 Thread SilentGhost


Change by SilentGhost :


Removed file: https://bugs.python.org/file25983/pec32.html

___
Python tracker 

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



[issue1054] scriptsinstall target fails in alternate build dir

2019-05-06 Thread SilentGhost


Change by SilentGhost :


Removed file: https://bugs.python.org/file25976/pec25.html

___
Python tracker 

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



[issue1054] scriptsinstall target fails in alternate build dir

2019-05-06 Thread SilentGhost


Change by SilentGhost :


Removed file: https://bugs.python.org/file25977/pec26.html

___
Python tracker 

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



[issue1054] scriptsinstall target fails in alternate build dir

2019-05-06 Thread SilentGhost


Change by SilentGhost :


Removed file: https://bugs.python.org/file25980/pec29.html

___
Python tracker 

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



[issue1054] scriptsinstall target fails in alternate build dir

2019-05-06 Thread SilentGhost


Change by SilentGhost :


Removed file: https://bugs.python.org/file25978/pec27.html

___
Python tracker 

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



[issue1054] scriptsinstall target fails in alternate build dir

2019-05-06 Thread SilentGhost


Change by SilentGhost :


Removed file: https://bugs.python.org/file25979/pec28.html

___
Python tracker 

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



[issue1054] scriptsinstall target fails in alternate build dir

2019-05-06 Thread SilentGhost


Change by SilentGhost :


Removed file: https://bugs.python.org/file25974/pec23.html

___
Python tracker 

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



[issue1054] scriptsinstall target fails in alternate build dir

2019-05-06 Thread SilentGhost


Change by SilentGhost :


Removed file: https://bugs.python.org/file25975/pec24.html

___
Python tracker 

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



[issue1054] scriptsinstall target fails in alternate build dir

2019-05-06 Thread SilentGhost


Change by SilentGhost :


--
nosy:  -SilentGhost

___
Python tracker 

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



[issue1054] scriptsinstall target fails in alternate build dir

2019-05-06 Thread SilentGhost


Change by SilentGhost :


Removed file: https://bugs.python.org/file25968/pec17.html

___
Python tracker 

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



[issue1054] scriptsinstall target fails in alternate build dir

2019-05-06 Thread SilentGhost


Change by SilentGhost :


Removed file: https://bugs.python.org/file25973/pec22.html

___
Python tracker 

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



[issue1054] scriptsinstall target fails in alternate build dir

2019-05-06 Thread SilentGhost


Change by SilentGhost :


Removed file: https://bugs.python.org/file25966/pec15.html

___
Python tracker 

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



[issue1054] scriptsinstall target fails in alternate build dir

2019-05-06 Thread SilentGhost


Change by SilentGhost :


Removed file: https://bugs.python.org/file25967/pec16.html

___
Python tracker 

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



[issue1054] scriptsinstall target fails in alternate build dir

2019-05-06 Thread SilentGhost


Change by SilentGhost :


Removed file: https://bugs.python.org/file25972/pec21.html

___
Python tracker 

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



[issue1054] scriptsinstall target fails in alternate build dir

2019-05-06 Thread SilentGhost


Change by SilentGhost :


Removed file: https://bugs.python.org/file25971/pec20.html

___
Python tracker 

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



[issue1054] scriptsinstall target fails in alternate build dir

2019-05-06 Thread SilentGhost


Change by SilentGhost :


Removed file: https://bugs.python.org/file25970/pec19.html

___
Python tracker 

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



[issue1054] scriptsinstall target fails in alternate build dir

2019-05-06 Thread SilentGhost


Change by SilentGhost :


Removed file: https://bugs.python.org/file25965/pec14.html

___
Python tracker 

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



[issue1054] scriptsinstall target fails in alternate build dir

2019-05-06 Thread SilentGhost


Change by SilentGhost :


Removed file: https://bugs.python.org/file25963/pec12.html

___
Python tracker 

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



[issue1054] scriptsinstall target fails in alternate build dir

2019-05-06 Thread SilentGhost


Change by SilentGhost :


Removed file: https://bugs.python.org/file25964/pec13.html

___
Python tracker 

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



[issue1054] scriptsinstall target fails in alternate build dir

2019-05-06 Thread SilentGhost


Change by SilentGhost :


Removed file: https://bugs.python.org/file25961/pec10.html

___
Python tracker 

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



[issue1054] scriptsinstall target fails in alternate build dir

2019-05-06 Thread SilentGhost


Change by SilentGhost :


Removed file: https://bugs.python.org/file25969/pec18.html

___
Python tracker 

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



[issue1054] scriptsinstall target fails in alternate build dir

2019-05-06 Thread SilentGhost


Change by SilentGhost :


Removed file: https://bugs.python.org/file25962/pec11.html

___
Python tracker 

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



[issue1054] scriptsinstall target fails in alternate build dir

2019-05-06 Thread SilentGhost


Change by SilentGhost :


Removed file: https://bugs.python.org/file25957/pec6.html

___
Python tracker 

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



[issue1054] scriptsinstall target fails in alternate build dir

2019-05-06 Thread SilentGhost


Change by SilentGhost :


Removed file: https://bugs.python.org/file25959/pec8.html

___
Python tracker 

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



[issue1054] scriptsinstall target fails in alternate build dir

2019-05-06 Thread SilentGhost


Change by SilentGhost :


Removed file: https://bugs.python.org/file25958/pec7.html

___
Python tracker 

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



[issue1054] scriptsinstall target fails in alternate build dir

2019-05-06 Thread SilentGhost


Change by SilentGhost :


Removed file: https://bugs.python.org/file25960/pec9.html

___
Python tracker 

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



[issue1054] scriptsinstall target fails in alternate build dir

2019-05-06 Thread SilentGhost


Change by SilentGhost :


Removed file: https://bugs.python.org/file25955/pec4.html

___
Python tracker 

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



[issue1054] scriptsinstall target fails in alternate build dir

2019-05-06 Thread SilentGhost


Change by SilentGhost :


Removed file: https://bugs.python.org/file25956/pec5.html

___
Python tracker 

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



[issue1054] scriptsinstall target fails in alternate build dir

2019-05-06 Thread SilentGhost


Change by SilentGhost :


Removed file: https://bugs.python.org/file25954/pec3.html

___
Python tracker 

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



[issue1054] scriptsinstall target fails in alternate build dir

2019-05-06 Thread SilentGhost


SilentGhost  added the comment:

Closing as out of date. Too much spam in this issue.

--
nosy: +SilentGhost -topworker
resolution:  -> out of date
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



[issue1054] scriptsinstall target fails in alternate build dir

2019-05-06 Thread SilentGhost


Change by SilentGhost :


Removed file: https://bugs.python.org/file25953/pec2.html

___
Python tracker 

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



[issue1054] scriptsinstall target fails in alternate build dir

2019-05-06 Thread SilentGhost


Change by SilentGhost :


Removed file: https://bugs.python.org/file25952/pec1.html

___
Python tracker 

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



[issue36822] Minor grammatical fix in glossary.rst

2019-05-06 Thread SilentGhost


Change by SilentGhost :


--
type: enhancement -> behavior
versions:  -Python 3.5, Python 3.6, Python 3.9

___
Python tracker 

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



[issue36817] Add = to f-strings for easier debugging.

2019-05-06 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

I like this!

Except that I think that !f is not needed. You can use repr by default only 
when no format spec is specified, and add explicit !r if you want to use repr 
with the format spec. If you want to format the value without repr and the 
format spec -- specify the empty format spec: f"{foo=:}".

--
nosy: +serhiy.storchaka

___
Python tracker 

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



[issue34616] implement "Async exec"

2019-05-06 Thread Matthias Bussonnier


Matthias Bussonnier  added the comment:

Thank Yuri for the guidance; I worked on it, cleaned things up a bit and posted 
a draft PR (#13148) with some example. 

That helps cleaning up a lot of code; and in the PR is a ~30 line example that 
implement an asyncio-repl.

--

___
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-06 Thread Dan Halbert


Dan Halbert  added the comment:

I'm one of the CircuitPython core devs. This issue is OS-dependent: Windows and 
Linux don't necessarily write data and metadata out to USB drives promptly. The 
problem is particularly acute for FAT12 filesystems on Windows, which are 
typically 16MB or smaller: Windows can take up to 90 seconds to flush, due to a 
driver bug or perhaps some ancient concerns about floppy drives. MacOS doesn't 
have this issue.

See 
https://superuser.com/questions/1197897/windows-delays-writing-fat-table-on-small-usb-drive-despite-quick-removal/1203781
 for details. We have contacted Microsoft about this but getting it fixed is a 
long-term and uncertain process.

I'll test on Windows when I return from PyCon. Thank you for the prompt fix!

--
nosy: +dhalbert

___
Python tracker 

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



[issue35925] test_httplib test_nntplib test_ssl fail on ARMv7 Debian buster bot (OpenSSL 1.1.1a)

2019-05-06 Thread Gregory P. Smith


Gregory P. Smith  added the comment:

The merged PR basically skips the specific failing unit test cases of the ssl 
key strength check error is detected during these network tests.  It should 
probably be backported into 3.6 and 2.7 to ease maintenance and trust of the 
buildbots on those.

Only people running regrtest -u all or at least -u networking to enable the 
live network connectivity tests would run into this when building their own 
CPython.

--
stage: patch review -> backport needed
versions: +Python 3.6 -Python 3.7, Python 3.8

___
Python tracker 

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



[issue35925] test_httplib test_nntplib test_ssl fail on ARMv7 Debian buster bot (OpenSSL 1.1.1a)

2019-05-06 Thread miss-islington


miss-islington  added the comment:


New changeset ffa29b5aca1aaeae46af2582c401ef0ed20d4153 by Miss Islington (bot) 
in branch '3.7':
bpo-35925: Skip SSL tests that fail due to weak external certs. (GH-13124)
https://github.com/python/cpython/commit/ffa29b5aca1aaeae46af2582c401ef0ed20d4153


--
nosy: +miss-islington

___
Python tracker 

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



[issue24263] unittest cannot load module whose name starts with Unicode

2019-05-06 Thread Toshio Kuratomi


Change by Toshio Kuratomi :


--
pull_requests: +13064
stage: test needed -> patch review

___
Python tracker 

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



[issue36823] shutil.copytree copies directories and files but fails with that same directory with '[Errno 1] Operation not permitted')

2019-05-06 Thread Ryan Avery


New submission from Ryan Avery :

I am trying to use shutil.copytree on an Azure VM that has Azure FileStorage 
mounted with SMB 3.0. When I run the following to copy directories from one 
location on my Azure File Storage to another location on my File Storage, the 
whole directory, subdirectory, and files are copied succesfully but then this 
errors on those very same files:

shutil.copytree(
os.path.join(wflow.TRAIN, 'tile_512-4608'), 
os.path.join(wflow.TEST, 'tile_512-4608')
)

Error: [('/mnt/point/landsat-1024-cp/train/tile_512-4608/image', 
'/mnt/point/landsat-1024-cp/test/tile_512-4608/image', '[Errno 1] Operation not 
permitted'), ('/mnt/point/landsat-1024-cp/train/tile_512-4608/mask', 
'/mnt/point/landsat-1024-cp/test/tile_512-4608/mask', '[Errno 1] Operation not 
permitted'), ('/mnt/point/landsat-1024-cp/train/tile_512-4608', 
'/mnt/point/landsat-1024-cp/test/tile_512-4608', '[Errno 1] Operation not 
permitted')]

After this error, all of the items listed above were actually copied so I'm not 
sure why this errors

--
components: Library (Lib)
messages: 341677
nosy: rbavery
priority: normal
severity: normal
status: open
title: shutil.copytree copies directories and files but fails with that same 
directory with '[Errno 1] Operation not permitted')
type: behavior
versions: Python 3.7

___
Python tracker 

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



[issue36783] No documentation for _FromXandFold C API functions

2019-05-06 Thread Edison Abahurire


Edison Abahurire  added the comment:

I have submitted a PR to address this. Awaiting Review.

--

___
Python tracker 

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



[issue34616] implement "Async exec"

2019-05-06 Thread Matthias Bussonnier


Change by Matthias Bussonnier :


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

___
Python tracker 

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



[issue36782] Add tests for the datetime C API

2019-05-06 Thread Edison Abahurire


Edison Abahurire  added the comment:

@p-ganssle 
Please open a new bpo for the Untested macros. I will be happy to work on that 
in the sprints tomorrow.

--

___
Python tracker 

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



[issue36782] Add tests for the datetime C API

2019-05-06 Thread Edison Abahurire


Edison Abahurire  added the comment:

I have submitted PR (under review) for these tests:

- PyDate_FromDate / PyDateTimeAPI->Date_FromDate
- PyDateTime_FromDateAndTime / PyDateTimeAPI->DateTime_FromDateAndTime
- PyDateTime_FromDateAndTimeAndFold / 
PyDateTimeAPI->DateTime_FromDateAndTimeAndFold
- PyTime_FromTime -> PyDateTimeAPI->Time_FromTime
- PyTime_FromTimeAndFold -> PyDateTime->Time_FromTimeAndFold
- PyDelta_FromDSU / PyDateTime->Delta_FromDelta

--

___
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-06 Thread Inada Naoki


Inada Naoki  added the comment:

FYI, I expect cp65001 will be used more widely in near future,
because non UTF-8 default encoding reduced Developer eXperience,
and Microsoft try to improve DX recent years.

Today, Microsoft announced new Terminal application.
It seems use `SetConsoleOutputCP(65001)` and `SetConsoleCP(65001)`.

I think treating cp65001 as right "UTF-8" locale is better for all
Windows developers.

--

___
Python tracker 

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



[issue36806] Forbid creating of stream objects outside of asyncio

2019-05-06 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



[issue13824] argparse.FileType opens a file and never closes it

2019-05-06 Thread Mitar


Mitar  added the comment:

Why not make FileType instance also a context manager, so you could do 
something like:

with arguments.input as f:
   assert arguments.input is f

For backwards compatibility, FileType would open eagerly as now, but it would 
be closed at exit from context manager.

We should just make sure we do not close stdout/stderr.

--
nosy: +mitar

___
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-06 Thread Roundup Robot


Change by Roundup Robot :


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

___
Python tracker 

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



[issue36792] [Windows] time: crash on formatting time with de_DE locale

2019-05-06 Thread Jeremy Kloth


Jeremy Kloth  added the comment:

Thanks for the reminder Eryk Sun.  This means the test needs to be run yet one 
more time :)

import ctypes, locale, struct
crt_time = ctypes.CDLL('api-ms-win-crt-time-l1-1-0', use_errno=True)
locale.setlocale(locale.LC_ALL, 'de_DE')
buf = ctypes.create_string_buffer(1024)
tm = struct.pack('9i', 2019, 5, 6, 9, 50, 4, 0, 126, 1)
print('count:', crt_time.strftime(buf, 1024, b'%Z', tm))
print('value:', buf.value)
wbuf = ctypes.create_unicode_buffer(1024)
print('count:', crt_time.wcsftime(wbuf, 1024, '%Z', tm))
print('value:', wbuf.value)
crt_convert = ctypes.CDLL('api-ms-win-crt-convert-l1-1-0', use_errno=True)
print('count:', crt_convert.mbstowcs(wbuf, buf, 1024))
print('value:', wbuf.value)

--

___
Python tracker 

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



[issue36817] Add = to f-strings for easier debugging.

2019-05-06 Thread Ivan Levkivskyi


Ivan Levkivskyi  added the comment:

+1 from me (as a big fan of print-debugging).

--
nosy: +levkivskyi

___
Python tracker 

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



[issue23697] Module level map & submit for concurrent.futures

2019-05-06 Thread Josh Rosenberg


Josh Rosenberg  added the comment:

For the process based versions, it makes it too easy to accidentally fork bomb 
yourself, since each process that call psubmit would implicitly created another 
#CPUs workers of its own, so a process based version Brian's case with a mere 
four top-level psubmits each of which performs a single psubmit of its own 
would logically involve 1 + #CPUs + #CPU**2 total processes, without the user 
ever explicitly asking for them.

Especially in a fork-based context, this could easily trigger the Linux 
OOM-killer if the parent process is of even moderate size, since a four core 
system with a 1 GB parent process would suddenly be asking for up to 21 GB of 
memory. Most of that is only potentially used, given COW behavior, but the OOM 
killer assumes COW memory will eventually be copied (and it's largely right 
about that for CPython given the cyclic garbage collector's twiddling of 
reference counts), so it's hardly relevant if 21 GB is actually used; the 
OOM-killer doesn't care, and will murder the process anyway.

The alternative would be having the default process executor shared with the 
child processes, but that just means process usage would be subject to the same 
deadlocks as in Brian's threaded case.

This also defeats the purpose of the Executor model; Java, which pioneered it 
to my knowledge, intentionally required you to create the executor up front 
(typically in a single global location) because the goal is to allow you to 
change your program-wide parallelism model by changing a single line (the 
definition of the executor), with all uses of the executor remaining unchanged. 
Making a bunch of global functions implicitly tied to different 
executors/executor models means the parallelism is no longer centrally defined, 
so switching models means changes all over the code base (in Python, that's 
often unavoidable due to constraints involving pickling and data sharing, but 
there is no need to make it worse).

--
nosy: +josh.r

___
Python tracker 

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



[issue10653] test_time test_strptime fails on windows

2019-05-06 Thread Jeremy Kloth


Change by Jeremy Kloth :


--
nosy: +jkloth

___
Python tracker 

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



[issue36684] codecov.io code coverage has not updated since 2019-04-13

2019-05-06 Thread Gordon P. Hemsley


Change by Gordon P. Hemsley :


--
pull_requests: +13059

___
Python tracker 

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



[issue36684] codecov.io code coverage has not updated since 2019-04-13

2019-05-06 Thread Gordon P. Hemsley


Gordon P. Hemsley  added the comment:

Hah, that's indeed where I've landed in my experimentation.

--

___
Python tracker 

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



[issue36822] Minor grammatical fix in glossary.rst

2019-05-06 Thread Sanyam Khurana


Change by Sanyam Khurana :


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



[issue36822] Minor grammatical fix in glossary.rst

2019-05-06 Thread Sanyam Khurana


New submission from Sanyam Khurana :

While working on translations, I saw a minor grammatical error in 
`Doc/glossary.rst`:

```
  * The default Python prompt of the interactive shell when entering 
code for an indented code block ...
```

should be

```
  * The default Python prompt of the interactive shell when entering  the 
code for an indented code block ...
```

Attaching the path with this.

--
assignee: docs@python
components: Documentation
messages: 341665
nosy: CuriousLearner, docs@python
priority: normal
severity: normal
stage: needs patch
status: open
title: Minor grammatical fix in glossary.rst
type: enhancement
versions: Python 3.5, Python 3.6, Python 3.7, Python 3.8, Python 3.9

___
Python tracker 

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



[issue36814] posix_spawn explicit file_actions=None throws error

2019-05-06 Thread anthony shaw


anthony shaw  added the comment:

After patch:

Python 3.8.0a3+ (heads/31968-dirty:c664b342a4, May  6 2019, 18:06:21) 
[Clang 10.0.1 (clang-1001.0.46.4)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import os
>>> os.posix_spawnp('whoami', ['whoami'], os.environ, file_actions=None)
17300
>>> anthonyshaw

--

___
Python tracker 

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



[issue36814] posix_spawn explicit file_actions=None throws error

2019-05-06 Thread anthony shaw


anthony shaw  added the comment:

Issue is in parse_file_actions

parse_file_actions(PyObject *file_actions,
   posix_spawn_file_actions_t *file_actionsp,
   PyObject *temp_buffer)
{
PyObject *seq;
PyObject *file_action = NULL;
PyObject *tag_obj;

seq = v(file_actions,
  "file_actions must be a sequence or None");
if (seq == NULL) {
return -1;
}

PySequence_Fast will raise a TypeError if PyObject_GetIter fails.

--
assignee:  -> anthonypjshaw

___
Python tracker 

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



[issue36814] posix_spawn explicit file_actions=None throws error

2019-05-06 Thread anthony shaw


anthony shaw  added the comment:

Raised a fix in GH-13144

--
stage: patch review -> 

___
Python tracker 

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



[issue36395] Add deferred single-threaded/fake executor to concurrent.futures

2019-05-06 Thread Brian McCutchon


Brian McCutchon  added the comment:

I understand your hesitation to add a fake. Would it be better to make it 
possible to subclass Executor so that a third party implementation of this can 
be developed?

As for an example, here is an example of nondeterminism when using a 
ThreadPoolExecutor with a single worker. It sometimes prints "False" and 
sometimes "True" on my machine.

from concurrent import futures
import time

complete = False

def complete_eventually():
  global complete
  for _ in range(15):
pass
  complete = True

with futures.ThreadPoolExecutor(max_workers=1) as pool:
  pool.submit(complete_eventually)
  print(complete)

--

___
Python tracker 

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



[issue36814] posix_spawn explicit file_actions=None throws error

2019-05-06 Thread anthony shaw


Change by anthony shaw :


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

___
Python tracker 

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



[issue33187] Document ElementInclude (XInclude) support in ElementTree

2019-05-06 Thread Sanyam Khurana


Sanyam Khurana  added the comment:

Hello Anjali,

This PR is still lurking for your updates from almost 11 months. Please let us 
know if you're still working on this, else, we'll get this in.

Thanks for your work!

--

___
Python tracker 

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



[issue34975] start_tls() difficult when using asyncio.start_server()

2019-05-06 Thread Ian Good


Change by Ian Good :


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

___
Python tracker 

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



[issue36814] posix_spawn explicit file_actions=None throws error

2019-05-06 Thread anthony shaw


anthony shaw  added the comment:

Verified on master
Python 3.8.0a3+ (heads/bpo-28367:373c7aa098, May  6 2019, 17:34:39) 
[Clang 10.0.1 (clang-1001.0.46.4)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> os.posix_spawnp('whoami', ['whoami'], os.environ, file_actions=None)
Traceback (most recent call last):
  File "", line 1, in 
NameError: name 'os' is not defined
>>> import os
>>> os.posix_spawnp('whoami', ['whoami'], os.environ, file_actions=None)
Traceback (most recent call last):
  File "", line 1, in 
TypeError: file_actions must be a sequence or None

--
nosy: +anthonypjshaw

___
Python tracker 

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



[issue36819] Crash during encoding using UTF-16/32 and custom error handler

2019-05-06 Thread anthony shaw


anthony shaw  added the comment:

Easily reproduced on master, thanks

(lldb) run encode_crash.py
Process 14743 launched: '/Users/anthonyshaw/repo/cpython/python.exe' (x86_64)
Objects/unicodeobject.c:448: _PyUnicode_CheckConsistency: Assertion 
"((PyObject*)(op))->ob_type))->tp_flags & ((1UL << 28))) != 0)" failed
Enable tracemalloc to get the memory block allocation traceback

object  : Process 14743 stopped
* thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS 
(code=EXC_I386_GPFLT)
frame #0: 0x0001000b5c15 python.exe`PyObject_Repr(v=0x000101376f90) 
at object.c:535:11
   532 infinitely. */
   533  if (Py_EnterRecursiveCall(" while getting the repr of an object"))
   534  return NULL;
-> 535  res = (*v->ob_type->tp_repr)(v);
   536  Py_LeaveRecursiveCall();
   537  if (res == NULL)
   538  return NULL;

--
nosy: +anthonypjshaw

___
Python tracker 

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



[issue36821] Termios module largely untested

2019-05-06 Thread anthony shaw


anthony shaw  added the comment:

This could be a good issue for the PyCon sprints, otherwise I'm happy to 
implement it

--

___
Python tracker 

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



[issue36821] Termios module largely untested

2019-05-06 Thread anthony shaw


New submission from anthony shaw :

I noticed that the termios.c module is largely untested.

There is some coverage via test_pty, test_ioctl and test_getpass, but there is 
nothing to cover regression and the behaviours in the module functions.

Tests are required for:
- termios.tcgetattr()
- termios.tcsetattr()
- termios.tcsendbreak()
- termios.tcdrain()
- termios.tcflush()
- termios.tcflow()

--
assignee: anthonypjshaw
components: Tests
messages: 341656
nosy: anthonypjshaw
priority: normal
severity: normal
status: open
title: Termios module largely untested
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



[issue28367] Add more standard baud rate constants to "termios"

2019-05-06 Thread anthony shaw


anthony shaw  added the comment:

Converted the original patch as a PR GH-13142 this seems like a good idea and 
an easy change

--
nosy: +anthonypjshaw

___
Python tracker 

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



[issue28367] Add more standard baud rate constants to "termios"

2019-05-06 Thread anthony shaw


Change by anthony shaw :


--
pull_requests: +13055

___
Python tracker 

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



[issue27534] IDLE: Reduce number and time for user process imports

2019-05-06 Thread anthony shaw


anthony shaw  added the comment:

It would be great for this issue to be revisited, there has been some further 
interest from users.

--
nosy: +anthonypjshaw

___
Python tracker 

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



[issue33110] Adding a done callback to a concurrent.futures Future once it has already completed, may raise an exception, contrary to docs

2019-05-06 Thread Sam Martin


Change by Sam Martin :


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

___
Python tracker 

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



[issue25251] Unknown MS Compiler version 1900

2019-05-06 Thread anthony shaw


anthony shaw  added the comment:

Closing as 3rd party feature for setuptools

--
nosy: +anthonypjshaw
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



[issue28775] Option to set startup directory in IDLE

2019-05-06 Thread anthony shaw


anthony shaw  added the comment:

Hi Nofar are you still interested on working on this request?

--
nosy: +anthonypjshaw

___
Python tracker 

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



[issue31968] exec(): method's default arguments from dict-inherited globals

2019-05-06 Thread anthony shaw


anthony shaw  added the comment:

Added a PR for the documentation clarification.

--
nosy: +anthonypjshaw

___
Python tracker 

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



[issue31968] exec(): method's default arguments from dict-inherited globals

2019-05-06 Thread anthony shaw


Change by anthony shaw :


--
pull_requests: +13053

___
Python tracker 

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



[issue35925] test_httplib test_nntplib test_ssl fail on ARMv7 Debian buster bot (OpenSSL 1.1.1a)

2019-05-06 Thread Gregory P. Smith


Gregory P. Smith  added the comment:


New changeset 2cc0223f43a1ffd59c887a73e2b0ce5202f3be90 by Gregory P. Smith in 
branch 'master':
bpo-35925: Skip SSL tests that fail due to weak external certs. (GH-13124)
https://github.com/python/cpython/commit/2cc0223f43a1ffd59c887a73e2b0ce5202f3be90


--

___
Python tracker 

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



[issue35925] test_httplib test_nntplib test_ssl fail on ARMv7 Debian buster bot (OpenSSL 1.1.1a)

2019-05-06 Thread miss-islington


Change by miss-islington :


--
pull_requests: +13052

___
Python tracker 

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



[issue36582] collections.UserString encode method returns a string

2019-05-06 Thread Daniel Fortunov


Daniel Fortunov  added the comment:

PR submitted here:
https://github.com/python/cpython/pull/13138

Rather than adding three different tests for the different code paths I chose 
to collapse the three different code paths by surfacing the underlying 
str.encode() defaults in the method signature of UserString.encode(), taking it 
down to a one-line implementation.

@xtreak: Thanks for the super-helpful triage and failing test case!

--

___
Python tracker 

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



[issue36582] collections.UserString encode method returns a string

2019-05-06 Thread Daniel Fortunov


Change by Daniel Fortunov :


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



[issue36766] Typos in docs and code comments

2019-05-06 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

Dustin, thank you for both patches.  Some people are not annoyed by minor 
typos.  I am one who is.  I hope you are enjoying and learning from the sprint.

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



[issue27639] UserList.__getitem__ doesn't account for slices

2019-05-06 Thread Michael Blahay


Michael Blahay  added the comment:

Results from a quick unit test on the proposed changes were positive:

>>> from collections import UserList
>>> UserList([0,1,2,3,4,5])[0:2].__class__


If you compare this result with the one a couple comments above, you can see 
that the result is no longer a list, but rather of type UserList.

--

___
Python tracker 

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



[issue36766] Typos in docs and code comments

2019-05-06 Thread miss-islington


miss-islington  added the comment:


New changeset b2d29bfa5be5a0794c7c69078c43953967fcacf4 by Miss Islington (bot) 
(penguindustin) in branch '3.7':
[3.7] bpo-36766: Typos in docs and code comments (GH-13116). (GH-13136)
https://github.com/python/cpython/commit/b2d29bfa5be5a0794c7c69078c43953967fcacf4


--
nosy: +miss-islington

___
Python tracker 

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



[issue27639] UserList.__getitem__ doesn't account for slices

2019-05-06 Thread Michael Blahay


Michael Blahay  added the comment:

It is also worth noting that the definition of UserList moved from 
Lib/UserList.py in 2.7 to Lib/collections/__init__.py in 3.x

--

___
Python tracker 

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



[issue27639] UserList.__getitem__ doesn't account for slices

2019-05-06 Thread Michael Blahay


Michael Blahay  added the comment:

The root cause of this issue seems to be the failure to implement type usage in 
__getitem__ when the deprecated __getslice__ was removed. This is why slicing 
worked correctly in 2.7, but not the 3.x versions.

In 3.8, the __getitem__ method is used to create the slice, but here we can see 
that all it does is pass the task to data, which is of type list and then fails 
to convert the result to the correct type.

  def __getitem__(self, i): return self.data[i]

Using other methods as examples, the fix should look like this:

  def __getitem__(self, i): return self.__class__(self.data[i])

--

___
Python tracker 

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



[issue13582] IDLE and pythonw.exe stderr problem

2019-05-06 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

Good question.  There are two issues when starting IDLE with pythonw.exe, so 
that sys.__stderr__ and sys.stderr are initially None.

1. None.write is an attribute error that crashes Python.  Therefore, don't do 
that. Instead use print.  By default, and when 'file=None' is given directly or 
by reference, print writes to sys.stdout if it exists or gives up otherwise.

I checked for possible (None).write code and did not find any except where 
commented out.  These should be deleted or converted to prints.  Possible None 
files are passed to traceback.print_exception and traceback.print_stack and 
these both use print, not write.

All but two of the stderr crash issues Roger listed in msg149414 are closed, 
and the last two either should be or should have a different problem.

Still relevant is

2. Unprinted messages cannot be read by the user.  So display them in a text 
widget.

Open question 1: backup to print?, default display method?, or both (when 
possible)?  Ned implies that both would be good on Mac, and maybe
same would be true everywhere.

Open question 2: what patch?  I need to consider Roger's patch in relation to 
idlelib changes since, including new PseudoFiles, changes to text viewer, and 
new query module.

The above is about sys in the IDLE GUI process.  The user code process is 
started with sys.executable, and sys.stdout and sys.stderr are replaced with 
Pseudofiles that direct output to the idle process shell.  The value of 
sys.__stdout__ and __stderr__ depend on sys.executable.  If None, prints will 
go to sys.stdout and hence Shell, and writes raise AttributeError, which also 
appears in the Shell.  If normal, prints and writes go to the console.  I 
should check if enough of this is in the docs.

It might be a good idea to wrap both processes in a top-level try-except to 
attempt to display any unexpected internal error.


I will clean the nosy list as this issue does not involve Steve Dower and many 
others are long inactive.

--
nosy:  -Todd.Rovito, amaury.forgeotdarc, devplayer, roger.serwy, steve.dower
versions: +Python 3.8 -Python 3.6

___
Python tracker 

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



[issue24939] Remove unicode_format.h from stringlib

2019-05-06 Thread anthony shaw


anthony shaw  added the comment:

The code is mostly:

FieldNameIterator * related functions
FormatterIterator * related functions
MarkupIterator * related functions

There are a few other utility methods in there as well

--

___
Python tracker 

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



[issue25541] Wrong usage of sockaddr_un struct for abstract namespace unix sockets

2019-05-06 Thread Stefan Behnel


Change by Stefan Behnel :


--
nosy:  -scoder

___
Python tracker 

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



[issue25541] Wrong usage of sockaddr_un struct for abstract namespace unix sockets

2019-05-06 Thread Stefan Behnel


Stefan Behnel  added the comment:

Looks like the issue was originally reported against Python 3.4.

--

___
Python tracker 

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



[issue34368] ftplib __init__ function can't handle 120 or 4xy reply when connect to the server

2019-05-06 Thread anthony shaw


Change by anthony shaw :


--
nosy: +giampaolo.rodola

___
Python tracker 

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



[issue36784] __import__ with empty folder after importlib.invalidate_caches causes reference leak

2019-05-06 Thread Karthikeyan Singaravelan


Karthikeyan Singaravelan  added the comment:

Thanks for the details.

--

___
Python tracker 

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



[issue32971] Docs on unittest.TestCase.assertRaises() should clarify context manager details

2019-05-06 Thread anthony shaw


Change by anthony shaw :


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



[issue32971] Docs on unittest.TestCase.assertRaises() should clarify context manager details

2019-05-06 Thread anthony shaw


Change by anthony shaw :


--
pull_requests:  -9605

___
Python tracker 

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



[issue36784] __import__ with empty folder after importlib.invalidate_caches causes reference leak

2019-05-06 Thread Julien Palard


Julien Palard  added the comment:

Thanks Sebastian for looking at it \o/

--
nosy: +mdk
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



[issue36784] __import__ with empty folder after importlib.invalidate_caches causes reference leak

2019-05-06 Thread Sebastian Koslowski


Sebastian Koslowski  added the comment:

So, I dug into this here at the PyCon19 sprints and as far as I can see there 
is no actual leak.

What you are seeing in your code example is from the state, that is kept 
between successive run of your import. All the cases you reported as not 
leaking generate a fixed tempdir. However, if the tempdir is random (or at 
least differs between runs) two new modules are added to sys.modules and one 
entry is added to the path_importer_cache for each run. These are not cleared 
by invalidate_caches().

If you append the following lines to test_importlib_cache_tempdir() these 
objects (and the caches in them) get cleared and your test passes. 

sys.modules.pop(basename + ".test2")
sys.modules.pop(basename)
sys.path_importer_cache.pop(path)

This can also be confirmed using sys.gettotalrefcount().

--
nosy: +skoslowski

___
Python tracker 

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



[issue25541] Wrong usage of sockaddr_un struct for abstract namespace unix sockets

2019-05-06 Thread anthony shaw


anthony shaw  added the comment:

hi, which version of Python were you using to do this? Please could you provide 
the full code snippet to reproduce the issue.

The following example binds to the correct namespace

  from socket import *

  sock = socket(AF_UNIX, SOCK_STREAM)

  sock.bind("\0/var/tmp/sock.tmp")

--
nosy: +anthonypjshaw, scoder

___
Python tracker 

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



[issue36792] [Windows] time: crash on formatting time with de_DE locale

2019-05-06 Thread Eryk Sun


Eryk Sun  added the comment:

> libc = ctypes.cdll.msvcrt

That's the private CRT of Windows, not the Universal CRT for applications. In a 
release build (python.exe), use ctypes.CDLL('ucrtbase', use_errno=True). In a 
debug build (python_d.exe), use ctypes.CDLL('ucrtbased', use_errno=True).

I suppose we should use API sets [1] for the release build, such as 
"api-ms-win-crt-locale-l1-1-0" and 
"api-ms-win-crt-time-l1-1-0". But they resolve to "ucrtbase". 

[1]: https://docs.microsoft.com/en-us/uwp/win32-and-com/win32-extension-apis

--
nosy: +eryksun

___
Python tracker 

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



[issue24195] Add `Executor.filter` to concurrent.futures

2019-05-06 Thread Brian Quinlan


Brian Quinlan  added the comment:

Hey Ethan, I'm really sorry about dropping the ball on this. I've been burnt 
out on Python stuff for the last couple of years.

When we left this, it looked like the -1s were in the majority and no one new 
has jumped on to support `filter`.

If you wanted to add this, I wouldn't object. But I've been inactive so long 
that I don't think that I should make the decision.

--

___
Python tracker 

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



  1   2   3   4   >