[issue31888] Creating a UUID with a list throws bad exception

2017-10-27 Thread Tilman Krummeck

New submission from Tilman Krummeck :

I found a problem by accident on Python 3.5.3 with the uuid library.

Running this:

from uuid import UUID
UUID(["string"])

This throws an AttributeError:
Traceback (most recent call last):
  File "", line 1, in 
  File "C:\Users\Tilman 
Krummeck\AppData\Local\Programs\Python\Python35-32\lib\uuid.py", line 137, in 
__init__
hex = hex.replace('urn:', '').replace('uuid:', '')
AttributeError: 'list' object has no attribute 'replace'

This is for sure not intended to work, but should throw a type error in my 
opinion even before trying to create that UUID object.

--
components: Library (Lib)
messages: 305148
nosy: TilmanKrummeck
priority: normal
severity: normal
status: open
title: Creating a UUID with a list throws bad exception
type: behavior
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



[issue31070] test_threaded_import: KeyError ignored in _get_module_lock..cb

2017-10-27 Thread Nick Coghlan

Nick Coghlan  added the comment:

A recent numpy threaded import bug report that appears in 3.6.1 but is absent 
in 3.6.3: https://github.com/numpy/numpy/issues/9931

So that's additional evidence that this really was a pre-existing race 
condition that the new tests for the SystemError cases revealed.

--

___
Python tracker 

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



[issue31836] test_code_module fails after test_idle

2017-10-27 Thread Roundup Robot

Change by Roundup Robot :


--
pull_requests: +4126
stage:  -> patch review

___
Python tracker 

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



[issue31836] test_code_module fails after test_idle

2017-10-27 Thread Terry J. Reedy

Terry J. Reedy  added the comment:


New changeset 5a4bbcd479ce86f68bbe12bc8c16e3447f32e13a by Terry Jan Reedy in 
branch 'master':
bpo-31836: Test_code_module now passes with sys.ps1, ps2 set (#4070)
https://github.com/python/cpython/commit/5a4bbcd479ce86f68bbe12bc8c16e3447f32e13a


--

___
Python tracker 

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



[issue31858] IDLE: cleanup use of sys.ps1 and never set it.

2017-10-27 Thread Terry J. Reedy

Change by Terry J. Reedy :


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

___
Python tracker 

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



[issue31858] IDLE: cleanup use of sys.ps1 and never set it.

2017-10-27 Thread Terry J. Reedy

Change by Terry J. Reedy :


--
pull_requests:  -4109

___
Python tracker 

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



[issue31858] IDLE: cleanup use of sys.ps1 and never set it.

2017-10-27 Thread Terry J. Reedy

Change by Terry J. Reedy :


--
pull_requests:  -4108

___
Python tracker 

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



[issue31860] IDLE: Make font sample editable

2017-10-27 Thread Roundup Robot

Change by Roundup Robot :


--
pull_requests: +4125

___
Python tracker 

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



[issue13657] IDLE doesn't recognize resetting sys.ps1.

2017-10-27 Thread Terry J. Reedy

Terry J. Reedy  added the comment:

The part about startup files in my last message is probably wrong.  If one 
starts IDLE by 'import idlelib.idle' after setting 'sys.ps1 = 'me ', then the 
setting is recognized.  However, a startup file that runs in the user process 
will not affect sys.ps1 in the IDLE process.  We could add a command line 
option -p "prompt", but I don't see this as sufficiently important.

At least some shells and consoles recognize special characters in a prompt 
string to create the prompt.  For instance, the default setting on Windows is 
"$P$G", which I presume stands for 'working directory path' and 'greater than 
symbol', with a result such as "F:/dev/3x>".  (I have no idea where this is 
documented.)  Python and IDLE will print the literal string instead.  Custom 
prompts therefore seem like an advanced feature, not one aimed at beginners.

--
title: IDLE doesn't support sys.ps1 and sys.ps2. -> IDLE doesn't recognize 
resetting sys.ps1.

___
Python tracker 

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



[issue31860] IDLE: Make font sample editable

2017-10-27 Thread Terry J. Reedy

Change by Terry J. Reedy :


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

___
Python tracker 

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



[issue31860] IDLE: Make font sample editable

2017-10-27 Thread Terry J. Reedy

Change by Terry J. Reedy :


--
pull_requests:  -4123

___
Python tracker 

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



[issue31858] IDLE: cleanup use of sys.ps1 and never set it.

2017-10-27 Thread Roundup Robot

Change by Roundup Robot :


--
pull_requests: +4124

___
Python tracker 

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



[issue31860] IDLE: Make font sample editable

2017-10-27 Thread Terry J. Reedy

Terry J. Reedy  added the comment:


New changeset 6a2957de08e0c2d73f3124d12874b408cda4633d by Terry Jan Reedy (Miss 
Islington (bot)) in branch '3.6':
bpo-31860: Make the font sample in the IDLE font configuration dialog editable. 
(GH-4106) (#4154)
https://github.com/python/cpython/commit/6a2957de08e0c2d73f3124d12874b408cda4633d


--

___
Python tracker 

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



[issue31860] IDLE: Make font sample editable

2017-10-27 Thread Roundup Robot

Change by Roundup Robot :


--
pull_requests: +4123

___
Python tracker 

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



[issue2771] Test issue

2017-10-27 Thread Ezio Melotti

Change by Ezio Melotti :


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

___
Python tracker 

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



[issue31860] IDLE: Make font sample editable

2017-10-27 Thread Roundup Robot

Change by Roundup Robot :


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



[issue31860] IDLE: Make font sample editable

2017-10-27 Thread Terry J. Reedy

Terry J. Reedy  added the comment:


New changeset ed6554c487fb2403bc88be6deee611c7a4171d33 by Terry Jan Reedy 
(Serhiy Storchaka) in branch 'master':
bpo-31860: Make the font sample in the IDLE font configuration dialog editable. 
(#4106)
https://github.com/python/cpython/commit/ed6554c487fb2403bc88be6deee611c7a4171d33


--

___
Python tracker 

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



[issue26618] _overlapped extension module of asyncio uses deprecated WSAStringToAddressA() function

2017-10-27 Thread Berker Peksag

Berker Peksag  added the comment:

Unfortunately, Python 3.5 is now in security-fix-only mode. Closing this 'out 
of date'.

--
nosy: +berker.peksag
resolution:  -> out of date
stage:  -> resolved
status: open -> closed
type:  -> behavior
versions:  -Python 3.6

___
Python tracker 

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



[issue31860] IDLE: Make font sample editable

2017-10-27 Thread Cheryl Sabella

Cheryl Sabella  added the comment:

Makes sense.  I guess I didn't think of it being frozen because I was thinking 
of it being more like the Recent Files list, but pre-populated if it were 
empty.  As you said, probably not worth the effort.  :-)

--

___
Python tracker 

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



[issue24291] Many servers (wsgiref, http.server, etc) can truncate large output blobs

2017-10-27 Thread Martin Panter

Martin Panter  added the comment:

Closing because I understand it is too late to do anything for 3.5 now.

--
resolution:  -> out of date
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



[issue18670] Using read_mime_types function from mimetypes module gives resource warning

2017-10-27 Thread Martin Panter

Martin Panter  added the comment:

The patches would mask an OSError raised by the “readfp” call, which would be a 
change in behaviour. But moving the call does not seem to be necessary; why not 
leave it outside the “try” statement?

--
nosy: +martin.panter

___
Python tracker 

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



[issue31863] Inconsistent returncode/exitcode for terminated child processes on Windows

2017-10-27 Thread Eryk Sun

Eryk Sun  added the comment:

If a multiprocessing Process gets terminated by any means other than its 
terminate() method, it won't get this special TERMINATE (0x1) exit code 
that allows the object to pretend the exit status is POSIX -SIGTERM. In 
general, the exit code will be 1. IMO, Process.terminate should be consistent 
with typical exit code of 1 and thus consistent with Popen.terminate. However, 
I'm adding Davin and Antoine to the nosy list in case they disagree -- before 
you go to the trouble of creating a PR.

--
nosy: +davin, pitrou
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



[issue31881] subprocess.returncode not set depending on arguments to subprocess.run

2017-10-27 Thread Nick

Change by Nick :


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



[issue31860] IDLE: Make font sample editable

2017-10-27 Thread Terry J. Reedy

Terry J. Reedy  added the comment:

Cheryl, thanks for explaining, in part, why I don't want to do this ;-).  Using 
the the current .def, .cfg system would mean that the default sample would be 
frozen.  I want to be able to change it.

--

___
Python tracker 

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



[issue18835] Add aligned memory variants to the suite of PyMem functions/macros

2017-10-27 Thread Nathaniel Smith

Nathaniel Smith  added the comment:

>  On the other hand, sane requests will have the exact multiple most of the 
> time anyway.

The ways we've discussed using aligned allocation in numpy wouldn't follow this 
requirement without special checking. Which isn't necessarily a big deal, and 
numpy won't necessarily use this API anyway. But I would suggest being very 
clear about exactly what you guarantee and what you don't :-).

--

___
Python tracker 

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



[issue31430] [Windows][2.7] Python 2.7 compilation fails on mt.exe crashing with error code C0000005

2017-10-27 Thread David Bolen

David Bolen  added the comment:

Sounds good.  I must admit I hadn't actually gone looking for a standalone 
installer yet, but just assumed it would exist.

The Win10 worker now has the .NET 3.5 feature installed (which also installed 
2.0 and 3.0).  Builds seem fine even after removing the temporary exe config 
file I had put in place.

So I think we should be good for this issue.

--

___
Python tracker 

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



[issue29890] Constructor of ipaddress.IPv*Interface does not follow documentation

2017-10-27 Thread Ilya Kulakov

Ilya Kulakov  added the comment:

Can this be included into the next bugfix release?

--

___
Python tracker 

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



[issue31883] Cygwin: heap corruption bug in wcsxfrm

2017-10-27 Thread Serhiy Storchaka

Serhiy Storchaka  added the comment:

According to your reference a problem is fixed in recent Cygwin versions, isn't?

Skipping the test on Cygwin means that wcsxfrm() will be untested on this 
platform. Future regressions will be unnoticed.

--

___
Python tracker 

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



[issue31884] subprocess set priority on windows

2017-10-27 Thread Eryk Sun

Change by Eryk Sun :


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

___
Python tracker 

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



[issue31884] subprocess set priority on windows

2017-10-27 Thread Eryk Sun

Change by Eryk Sun :


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



[issue31430] [Windows][2.7] Python 2.7 compilation fails on mt.exe crashing with error code C0000005

2017-10-27 Thread Steve Dower

Steve Dower  added the comment:

I don't remember exactly how VS 2008 handled the installation, but it likely 
wasn't designed with Windows 8 in mind :)

I believe since Windows 8, the Windows Features approach is the correct way to 
install it, and I'm not even sure you can download installers any more. 
Certainly the docs [1] do not link anywhere.

1: 
https://docs.microsoft.com/en-us/dotnet/framework/install/dotnet-35-windows-10

--

___
Python tracker 

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



[issue31883] Cygwin: heap corruption bug in wcsxfrm

2017-10-27 Thread Erik Bray

Erik Bray  added the comment:

To be clear, are you saying there shouldn't be a workaround to the underlying 
issue (I agree), or are you saying the test skip shouldn't even be added? I'm 
in favor of just skipping the test since it's still a problem on (currently) 
recent Cygwin versions. And it's not a very critical test so I'm happy to just 
skip it in this case.

--

___
Python tracker 

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



[issue31887] docs for email.generator are missing a comment on special multipart/signed handling

2017-10-27 Thread R. David Murray

R. David Murray  added the comment:

The patch looks good to me if someone wants to make a PR out of it.  If you 
wouldn't mind digitally signing the CLA, Peter, that would make PSF legal 
happy, though I doubt a one sentence doc patch is really an issue.

--

___
Python tracker 

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



[issue31871] Support for file descriptor params in os.path

2017-10-27 Thread Éric Araujo

Éric Araujo  added the comment:

> support passing file descriptor instead of a path. os.path functions

Are you sure about that?  The docs for os.stat show the dir_fd parameter, used 
to avoid directory renaming issues or attacks, but it doesn’t say that the 
*path* argument can be an int file descriptor instead of a str file path.

--
nosy: +eric.araujo

___
Python tracker 

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



[issue31860] IDLE: Make font sample editable

2017-10-27 Thread Cheryl Sabella

Cheryl Sabella  added the comment:

I don't know if saving the changes would be too difficult.

1.  Create a new config file for the text (I think it would clutter the 
existing config files, but could also add it there).
2.  Load font_sample_text from the config file.
3.  In apply(), write the text back to the config file.

Issues:
1.  Have a reset button so that the original sample text could be restored at 
some point?  If so, then need to store the original (current) text somewherem 
maybe a .def and .cfg version like for the other settings?  A reset button 
would also require some screen space from the text frame.

--
nosy: +csabella

___
Python tracker 

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



[issue31887] docs for email.generator are missing a comment on special multipart/signed handling

2017-10-27 Thread Peter Wullinger

New submission from Peter Wullinger :

The documentation for email.generator.{Bytes,}Generator do not mention that 
Generator._handle_multipart_signed() exists and disables header folding for 
subparts of multipart/signed.

This may cause some frustration, since, as implemented, rendering a message 
part enclosed in multipart/signed causes headers to fold differently than 
rendering the respective message part individually:

>>> text = MIMEText('', 'plain', 'utf-8')
>>> text['X-X'] = 'a b c d e f g h i j k l m n o p q r s t u v w x y z a b c d 
>>> e f g h i j k l m n o p'
>>> print(text.as_string())
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: base64
X-X: a b c d e f g h i j k l m n o p q r s t u v w x y z a b c d e f g h i j k
 l m n o p


>>> signed = MIMEMultipart('signed', filename='smime.p7s')
>>> signed.attach(text)
>>> print(signed.as_string())
Content-Type: multipart/signed; filename="smime.p7s";
 boundary="===8046244967080646804=="
MIME-Version: 1.0

--===8046244967080646804==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: base64
X-X: a b c d e f g h i j k l m n o p q r s t u v w x y z a b c d e f g h i j k 
l m n o p


--===8046244967080646804==--

This breaks SMIME signatures when using the partial render to generate the 
signature. 

A possible workaround is to set maxheaderlen=0 for the partial render, which is 
the same as what Generator._handle_multipart_signed() does, but to do that one 
needs to know about the special processing.

Attached is a suggestion at a documentation fix that remedies this problem at 
least for the online docs.

--
components: email
files: email-generator-multipart-signed-docs.patch
keywords: patch
messages: 305127
nosy: barry, dhke, r.david.murray
priority: normal
severity: normal
status: open
title: docs for email.generator are missing a comment on special 
multipart/signed handling
type: enhancement
versions: Python 2.7, Python 3.4, Python 3.5, Python 3.6, Python 3.7, Python 3.8
Added file: 
https://bugs.python.org/file47243/email-generator-multipart-signed-docs.patch

___
Python tracker 

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



[issue31883] Cygwin: heap corruption bug in wcsxfrm

2017-10-27 Thread Serhiy Storchaka

Serhiy Storchaka  added the comment:

Since this bug has been fixed in Cygwin, I don't think we should add a 
workaround for it. The expected date of Python 3.7 release is 2018-06-15, this 
is far from the date of releasing the fixed Cygwin.

--
nosy: +serhiy.storchaka

___
Python tracker 

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



[issue4032] distutils doesn't search ".dll.a" as library on cygwin

2017-10-27 Thread Masayuki Yamamoto

Masayuki Yamamoto  added the comment:

I opened PR 4153 that is an alternative for PR 4136 (issue2445).

--

___
Python tracker 

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



[issue4032] distutils doesn't search ".dll.a" as library on cygwin

2017-10-27 Thread Masayuki Yamamoto

Change by Masayuki Yamamoto :


--
pull_requests: +4121

___
Python tracker 

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



[issue4032] distutils doesn't search ".dll.a" as library on cygwin

2017-10-27 Thread Erik Bray

Change by Erik Bray :


--
pull_requests: +4120
stage:  -> patch review

___
Python tracker 

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



[issue31886] Multiprocessing.Pool hangs after re-spawning several worker process.

2017-10-27 Thread olarn

New submission from olarn :

Multiprocessing's pool apparently attempts to repopulate the pool in an event 
of sub-process worker crash. However the pool seems to hangs after about ~ 
4*(number of worker) process re-spawns.

I've tracked the issue down to queue.get() stalling at multiprocessing.pool, 
line 102

Is this a known issue? Are there any known workaround?

To reproduce this issue:

import multiprocessing
import multiprocessing.util
import logging

multiprocessing.util._logger = multiprocessing.util.log_to_stderr(logging.DEBUG)
import time
import ctypes


def crash_py_interpreter():
print("attempting to crash the interpreter in ", 
multiprocessing.current_process())
i = ctypes.c_char('a'.encode())
j = ctypes.pointer(i)
c = 0
while True:
j[c] = 'a'.encode()
c += 1
j


def test_fn(x):
print("test_fn in ", multiprocessing.current_process().name, x)
exit(0)

time.sleep(0.1)


if __name__ == '__main__':

# pool = multiprocessing.Pool(processes=multiprocessing.cpu_count())
pool = multiprocessing.Pool(processes=1)

args_queue = [n for n in range(20)]

# subprocess quits
pool.map(test_fn, args_queue)

# subprocess crashes
# pool.map(test_fn,queue)

--
components: Library (Lib)
messages: 305124
nosy: olarn
priority: normal
severity: normal
status: open
title: Multiprocessing.Pool hangs after re-spawning several worker process.
type: behavior
versions: Python 2.7, Python 3.6

___
Python tracker 

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



[issue31885] Cygwin: socket test suites hang indefinitely due to bug in Cygwin

2017-10-27 Thread Erik Bray

Change by Erik Bray :


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

___
Python tracker 

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



[issue31885] Cygwin: socket test suites hang indefinitely due to bug in Cygwin

2017-10-27 Thread Erik Bray

New submission from Erik Bray :

Like issue31882, this is to mention an upstream bug in Cygwin that causes one 
of the tests in the test_socket test suite to hang indefinitely.  That bug is 
fixed upstream [1], but for now it would still be better to skip the test on 
Cygwin.

The bug is that in some cases a blocking send() (particularly for a large 
amount data) cannot be interrupted by a signal even if SA_RESTART is not set.

Fixes to this issue, along with issue31882, issue31883, and issue31878 provide 
the bare minimum for Cygwin to at least compile (not necessarily all optional 
extension modules) and run the test suite from start to finish (though there 
may be other tests that cause the interpreter to lock up, but that are 
currently masked by other bugs).


[1] https://cygwin.com/ml/cygwin-patches/2017-q2/msg00037.html

--
messages: 305123
nosy: erik.bray
priority: normal
severity: normal
status: open
title: Cygwin: socket test suites hang indefinitely due to bug in Cygwin
type: crash

___
Python tracker 

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



[issue18835] Add aligned memory variants to the suite of PyMem functions/macros

2017-10-27 Thread STINNER Victor

STINNER Victor  added the comment:

PR 4089 becomes much more larger than what I expected, so I propose to defer 
enhancements to following PR, especially the idea of "emulating" 
PyMem_AlignedAlloc() on top of PyMem_Malloc() if the user calls 
PyMem_SetAllocators() without implemented aligned_alloc.

--

___
Python tracker 

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



[issue31545] Fixing documentation for timedelta.

2017-10-27 Thread Utkarsh Upadhyay

Utkarsh Upadhyay  added the comment:

:)

There's still a lot of room for improvement on documentation front, esp. the 
inline __doc__s. I'll be working on that next.

~
ut

--

___
Python tracker 

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



[issue31884] subprocess set priority on windows

2017-10-27 Thread Mr JG Kent

Change by Mr JG Kent :


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

___
Python tracker 

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



[issue31884] subprocess set priority on windows

2017-10-27 Thread Mr JG Kent

Change by Mr JG Kent :


--
components: Library (Lib)
nosy: JamesGKent
priority: normal
severity: normal
status: open
title: subprocess set priority on windows
type: enhancement

___
Python tracker 

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



[issue31883] Cygwin: heap corruption bug in wcsxfrm

2017-10-27 Thread Erik Bray

Change by Erik Bray :


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

___
Python tracker 

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



[issue31883] Cygwin: heap corruption bug in wcsxfrm

2017-10-27 Thread Erik Bray

New submission from Erik Bray :

There is an acknowledged bug in Cygwin's implementation of wcsxfrm() [1] that 
can cause heap corruption in certain cases.  This bug has since been fixed in 
Cygwin 2.8.1-1 [2] and all current and future releases.  However, that was 
relatively recent (July 2017) so it may still crop up.

I also have a workaround for this from the Python side, but rather than clutter 
the code with workarounds for platform-specific bugs I think it suffices just 
to skip the test in this case.

[1] https://cygwin.com/ml/cygwin/2017-05/msg00149.html
[2] https://cygwin.com/ml/cygwin-announce/2017-07/msg2.html

--
messages: 305120
nosy: erik.bray
priority: normal
severity: normal
status: open
title: Cygwin: heap corruption bug in wcsxfrm

___
Python tracker 

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



[issue31174] test_tools leaks randomly references on x86 Gentoo Refleaks 3.6 and 3.x

2017-10-27 Thread Serhiy Storchaka

Serhiy Storchaka  added the comment:


New changeset bb78898224c99cbf9c6beed8706869f9b66967c2 by Serhiy Storchaka 
(Miss Islington (bot)) in branch '3.6':
bpo-31174: Improve the code of test_tools.test_unparse. (GH-4146) (#4148)
https://github.com/python/cpython/commit/bb78898224c99cbf9c6beed8706869f9b66967c2


--

___
Python tracker 

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



[issue31882] Cygwin: asyncio and asyncore test suites hang indefinitely due to bug in Cygwin

2017-10-27 Thread Erik Bray

Change by Erik Bray :


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

___
Python tracker 

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



[issue31882] Cygwin: asyncio and asyncore test suites hang indefinitely due to bug in Cygwin

2017-10-27 Thread Erik Bray

New submission from Erik Bray :

Some of the tests for asyncio and asyncore block forever on Cygwin, due to a 
known (and seemingly difficult to fix) bug [1] in Cygwin involving SO_PEERCRED 
on UNIX sockets.

SO_PEERCRED is a socket option that can be used to exchange file ownership info 
of the socket at the time the connection was established (specifically on UNIX 
sockets).  This feature is technically supported on Cygwin, but the effect of 
the bug is that if two sockets are opened on the same process (even without 
using socketpair()), the credential exchange protocol can cause connect() on 
the "client" socket to block unless the "server" socket is already listen()-ing.

This situation is not all that common in practice (it is not a problem if the 
"client" and "server" are separate processes).  But it does show up in the test 
suite in a number of places, since both sockets belong to the same process.

I have a patch to work around this and will post a PR shortly.

[1] https://cygwin.com/ml/cygwin/2017-01/msg00054.html

--
messages: 305118
nosy: erik.bray
priority: normal
severity: normal
status: open
title: Cygwin: asyncio and asyncore test suites hang indefinitely due to bug in 
Cygwin
type: crash

___
Python tracker 

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



[issue31174] test_tools leaks randomly references on x86 Gentoo Refleaks 3.6 and 3.x

2017-10-27 Thread Roundup Robot

Change by Roundup Robot :


--
pull_requests: +4114

___
Python tracker 

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



[issue31174] test_tools leaks randomly references on x86 Gentoo Refleaks 3.6 and 3.x

2017-10-27 Thread Serhiy Storchaka

Serhiy Storchaka  added the comment:


New changeset 7351f9e5a91c403d15c6d556f9989b443f1296f9 by Serhiy Storchaka in 
branch 'master':
bpo-31174: Improve the code of test_tools.test_unparse. (#4146)
https://github.com/python/cpython/commit/7351f9e5a91c403d15c6d556f9989b443f1296f9


--

___
Python tracker 

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



[issue31545] Fixing documentation for timedelta.

2017-10-27 Thread STINNER Victor

STINNER Victor  added the comment:

Thank you Utkarsh Upadhyay for finishing the change up to the documentation ;-)

--
nosy: +haypo

___
Python tracker 

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



[issue16135] Removal of OS/2 support

2017-10-27 Thread STINNER Victor

STINNER Victor  added the comment:


New changeset 03eb11f0b354751248b427455b89e9340cfd2b47 by Victor Stinner (Erik 
Bray) in branch 'master':
bpo-16135: Cleanup: Code rot left over from OS/2 support (GH-4147)
https://github.com/python/cpython/commit/03eb11f0b354751248b427455b89e9340cfd2b47


--

___
Python tracker 

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



[issue16135] Removal of OS/2 support

2017-10-27 Thread Erik Bray

Change by Erik Bray :


--
pull_requests: +4113

___
Python tracker 

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



[issue18835] Add aligned memory variants to the suite of PyMem functions/macros

2017-10-27 Thread Stefan Krah

Stefan Krah  added the comment:

Should we care about the C11 restriction?

http://en.cppreference.com/w/c/memory/aligned_alloc

"size - number of bytes to allocate. An integral multiple of alignment"



posix_memalign and _aligned_malloc don't care about the multiple.

On the other hand, sane requests will have the exact multiple most
of the time anyway.

--

___
Python tracker 

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



[issue31872] SSL BIO is broken for internationalized domains

2017-10-27 Thread Andrew Svetlov

Change by Andrew Svetlov :


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



[issue30302] Improve .__repr__ implementation for datetime.timedelta

2017-10-27 Thread Berker Peksag

Berker Peksag  added the comment:

All PRs have been merged in both issues (this and bpo-31545) so I guess this 
issue can be closed now.

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



[issue31545] Fixing documentation for timedelta.

2017-10-27 Thread Berker Peksag

Berker Peksag  added the comment:

Thanks!

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

___
Python tracker 

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



[issue30302] Improve .__repr__ implementation for datetime.timedelta

2017-10-27 Thread Berker Peksag

Berker Peksag  added the comment:


New changeset 843ea47a034307c7b1ca642dd70f0269255b289a by Berker Peksag 
(Utkarsh Upadhyay) in branch 'master':
bpo-31545: Update documentation containing timedelta repr. (GH-3687)
https://github.com/python/cpython/commit/843ea47a034307c7b1ca642dd70f0269255b289a


--
nosy: +berker.peksag

___
Python tracker 

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



[issue31545] Fixing documentation for timedelta.

2017-10-27 Thread Berker Peksag

Berker Peksag  added the comment:


New changeset 843ea47a034307c7b1ca642dd70f0269255b289a by Berker Peksag 
(Utkarsh Upadhyay) in branch 'master':
bpo-31545: Update documentation containing timedelta repr. (GH-3687)
https://github.com/python/cpython/commit/843ea47a034307c7b1ca642dd70f0269255b289a


--
nosy: +berker.peksag

___
Python tracker 

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



[issue31415] Add -X option to show import time

2017-10-27 Thread INADA Naoki

INADA Naoki  added the comment:

Xoptions is not environment variable.

Some modules are imported before xoptions are parsed.
So negative cache for xoptions is little more complex than
negative cache for environment variable.

--

___
Python tracker 

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



[issue31174] test_tools leaks randomly references on x86 Gentoo Refleaks 3.6 and 3.x

2017-10-27 Thread Serhiy Storchaka

Change by Serhiy Storchaka :


--
pull_requests: +4112

___
Python tracker 

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



[issue31415] Add -X option to show import time

2017-10-27 Thread STINNER Victor

STINNER Victor  added the comment:

> I didn't think it's worth enough because import will be much slower than one 
> dict lookup.

I don't care much of performance. For the consistency with other environment 
variables, I like to only read the environment variable once ("at startup"), 
and not do it each time.

--

___
Python tracker 

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



[issue31878] Cygwin: _socket module does not compile due to missing ioctl declaration

2017-10-27 Thread Roundup Robot

Change by Roundup Robot :


--
pull_requests: +4111

___
Python tracker 

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



[issue31861] aiter() and anext() built-in functions

2017-10-27 Thread Davide Rizzo

Davide Rizzo  added the comment:

I attempted to make a Python implementation (attached) to use in my code. There 
are a few questions in the comments.

One of the complications is the async equivalent of next with two arguments 
like next(iterator, default). It cannot return the result of __anext__() 
because it needs to catch StopAsyncIteration. So it should return an awaitable 
wrapper instead (in my Python code this is rendered as a coroutine). A 
secondary question is whether the default value should be returned as it is 
passed, or awaited on.

--
Added file: https://bugs.python.org/file47242/aiter_comp.py

___
Python tracker 

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



[issue31877] Build fails on Cygwin since issue28180

2017-10-27 Thread Nick Coghlan

Nick Coghlan  added the comment:

Thanks for the patch!

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



[issue31877] Build fails on Cygwin since issue28180

2017-10-27 Thread Nick Coghlan

Nick Coghlan  added the comment:


New changeset 031c4bfadb69feeda82ce886d6b0cadc638d2e1e by Nick Coghlan (Erik 
Bray) in branch 'master':
bpo-31877: Add _Py_LegacyLocaleDetected and _PyCoerceLegacyLocale to 
pylifecycle.h (GH-4134)
https://github.com/python/cpython/commit/031c4bfadb69feeda82ce886d6b0cadc638d2e1e


--

___
Python tracker 

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



[issue30989] Sort only when needed in TimedRotatingFileHandler's getFilesToDelete

2017-10-27 Thread Vinay Sajip

Vinay Sajip  added the comment:


New changeset afad147b59fe84b12317f7340ddd2deeecb22321 by Vinay Sajip (Lovesh 
Harchandani) in branch 'master':
bpo-30989: Sort in TimedRotatingFileHandler only when needed. (GH-2812)
https://github.com/python/cpython/commit/afad147b59fe84b12317f7340ddd2deeecb22321


--

___
Python tracker 

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



[issue31877] Build fails on Cygwin since issue28180

2017-10-27 Thread Mark Dickinson

Change by Mark Dickinson :


--
title: Build fails on Cython since issue28180 -> Build fails on Cygwin since 
issue28180

___
Python tracker 

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