[issue34844] logging.Formatter enhancement - Checking on style and fmt fields

2018-10-05 Thread Vinay Sajip


Vinay Sajip  added the comment:

I see a PR has been added, I'll start to review it after the CLA has been 
signed.

--

___
Python tracker 

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



[issue34903] strptime %d handling of single digit day of month

2018-10-05 Thread Mike Gleen


New submission from Mike Gleen :

strptime correctly parses single digit day-of-month values (at least in the 
case of "%d %b %Y") which is the behavior I want. However, the documentation 
seems to say that the field must be two digits with a leading zero if 
necessary. So I hope that this is the intended behavior rather than just an 
accidental artifact. If so, then my suggestion is that the documentation be 
updated to reflect this.

--
assignee: docs@python
components: Documentation
messages: 327109
nosy: Mike Gleen, docs@python
priority: normal
severity: normal
status: open
title: strptime %d handling of single digit day of month
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



[issue34903] strptime %d handling of single digit day of month

2018-10-05 Thread Stéphane Wirtel

Stéphane Wirtel  added the comment:

Hi Mike,

Thank you for your issue, but could you add the link to the documentation, just 
because we have time.strptime and datetime.datetime.strptime.

Thank you,

--
nosy: +matrixise

___
Python tracker 

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



[issue34901] Missing isolated (-I) flag in sys.flags table

2018-10-05 Thread Karthikeyan Singaravelan


Karthikeyan Singaravelan  added the comment:

Every release has a PEP associated with it from 3.6 and above that says about 
the lifespan of the release with bug fix releases and the time where it enters 
security fixes only mode. Now 3.4 and 3.5 are in security fixes mode where only 
security updates for the most part are accepted and the changes are pulled in 
by the release manager to the respective branches. Also there will be no binary 
releases and only source releases for security only branches.

Python 3.5.6 security announcement : 
https://www.python.org/downloads/release/python-356/

> Python 3.5 has now entered "security fixes only" mode, and as such the only 
> changes since Python 3.5.4 are security fixes. Also, Python 3.5.6 has only 
> been released in source code form; no more official binary installers will be 
> produced.

Python 3.8 release lifespan : https://www.python.org/dev/peps/pep-0569/#lifespan

So I have removed 3.4 and 3.5 but it's up to the reviewer to decide if this 
needs to be backported or not to those branches. I hope I am correct on the 
above.

--

___
Python tracker 

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



[issue18291] codecs.open interprets FS, RS, GS as line ends

2018-10-05 Thread Marc-Andre Lemburg


Marc-Andre Lemburg  added the comment:

The Unicode .splitlines() splits strings on what Unicode defines as linebreak 
characters (all code points with character properties Zl or bidirectional 
property B).

This is different than what typical CSV file parsers or other parsers built for 
the ASCII text files treat as newline. They usually only break on CR, CRLF, LF, 
so the use of .splitlines() in this context is wrong, not the method itself.

It may make sense extending .splitlines() to pass in a list of linebreak 
characters to break on, but that would make it a lot slower and the same can 
already be had by using re.split() on Unicode strings.

Closing this as won't fix.

--
resolution:  -> wont fix
stage:  -> resolved
status: open -> closed

___
Python tracker 

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



[issue22232] str.splitlines splitting on non-\r\n characters

2018-10-05 Thread Marc-Andre Lemburg


Marc-Andre Lemburg  added the comment:

I am -1 on changing the default behavior. The Unicode standard defines what a 
linebreak code point is (all code points with character properties Zl or 
bidirectional property B) and we adhere to that. This may confuse parsers 
coming from the ASCII world, but that's really a problem with those parsers 
assuming that .splitlines() only splits on ASCII line breaks, i.e. they are not 
written in a Unicode compatible way.

As mentioned in https://bugs.python.org/issue18291 we could add a parameter to 
.splitlines(), but this would render the method not much faster than re.split().

Using re.split() is not a work-around in his case, it's an explicit form  of 
defining the character you want to split lines on, if the standards defining 
your file format as only accepting ASCII line break characters.

Since there are many such file formats, perhaps adding a parameter 
asciionly=True/False would make sense. .splitlines() could then be made to only 
split on ASCII linebreak characters. This new parameter would then have to 
default to False to maintain compatibility with Unicode and all previous 
releases.

--
nosy: +lemburg

___
Python tracker 

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



[issue34894] Unexpected error while unpickling lxml.etree.Element object

2018-10-05 Thread Marcin Raczyński

Marcin Raczyński  added the comment:

How are you sure that a bug is not in the CPython implementation of the pickle 
module but in the lxml?

--
resolution: third party -> 
status: closed -> open

___
Python tracker 

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



[issue34900] unittest subTests() fails when called from debug()

2018-10-05 Thread Berker Peksag


Berker Peksag  added the comment:

PR 9707 looks good to me. I will merge it once your CLA is processed by the PSF 
staff. Thanks!

--
nosy: +berker.peksag
type: crash -> behavior
versions: +Python 3.8 -Python 3.4, Python 3.5

___
Python tracker 

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



[issue34894] Unexpected error while unpickling lxml.etree.Element object

2018-10-05 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
nosy: +scoder

___
Python tracker 

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



[issue34894] Unexpected error while unpickling lxml.etree.Element object

2018-10-05 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

lxml.etree classes don't implement any methods related to pickling: __reduce__, 
__reduce_ex__, __getstate__, __setstate__, __getnewargs__, __getnewargs_ex__. 
But there are extension classes which contain the state invisible to Python. In 
this case they are pickled as empty classes that leads to unexpected error 
while unpickling. Python 3 detects such cases and raise exceptions while 
pickling. This change was not backported to 2.7 for compatibility reasons.

The only way to fix this issue in 2.7 is implementing pickle related methods 
(e.g. __getstate__ or __reduce__) in lxml.etree classes. They should either 
raise an exception, preventing pickling these objects, or implement support of 
pickling.

--

___
Python tracker 

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



[issue34900] unittest subTests() fails when called from debug()

2018-10-05 Thread Bruno Oliveira


Bruno Oliveira  added the comment:

Great, thanks again for the quick review.

--

___
Python tracker 

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



[issue34904] Crash in ZipFile.close() when writing zip file to /dev/null

2018-10-05 Thread Erik Bray


New submission from Erik Bray :

Not that there is any great reason to write a zip file to /dev/null, but I had 
some code that happened to do so which worked on Python 2.7, but at some point 
this broke:

Python 3.8.0a0 (heads/master:fc7d1b3, Oct  5 2018, 09:49:57)
[GCC 4.8.4] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import zipfile
>>> f = zipfile.ZipFile('/dev/null', 'w')
>>> f.writestr('foo.txt', 'testtesttesttesttest')
>>> f.close()
Traceback (most recent call last):
  File "", line 1, in 
  File "/home/embray/src/python/cpython/Lib/zipfile.py", line 1813, in close
self._write_end_record()
  File "/home/embray/src/python/cpython/Lib/zipfile.py", line 1914, in 
_write_end_record
endrec = struct.pack(structEndArchive, stringEndArchive,
struct.error: argument out of range

--
components: Library (Lib)
messages: 327118
nosy: erik.bray
priority: normal
severity: normal
status: open
title: Crash in ZipFile.close() when writing zip file to /dev/null
type: crash

___
Python tracker 

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



[issue34880] About the "assert" bytecode

2018-10-05 Thread Armin Rigo


Armin Rigo  added the comment:

A middle ground might be to copy the behavior of ``__import__``: it is loaded 
from the builtins module where specific hacks can change its definition, but it 
is not loaded from the globals.

--
nosy: +arigo

___
Python tracker 

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



[issue34894] Unexpected error while unpickling lxml.etree.Element object

2018-10-05 Thread Marcin Raczyński

Marcin Raczyński  added the comment:

Thanks Serhiy for explanation! 

I quote your comment in a lxml issue tracker:
https://bugs.launchpad.net/lxml/+bug/736708

--
resolution:  -> wont fix
status: open -> closed

___
Python tracker 

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



[issue34900] unittest subTests() fails when called from debug()

2018-10-05 Thread Berker Peksag


Berker Peksag  added the comment:

FYI, I just noticed that this is a duplicate of issue 29551, but decided to 
keep this one open.

--

___
Python tracker 

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



[issue29551] unittest: TestSuite.debug() does not like subTest()

2018-10-05 Thread Berker Peksag


Berker Peksag  added the comment:

Thanks for the report, Wolfgang. The main cause of the issue will be resolved 
when we merge PR 9707. I'm closing this as a duplicate of issue 34900 since the 
latter has already an open PR.

--
nosy: +berker.peksag
resolution:  -> duplicate
stage:  -> resolved
status: open -> closed
superseder:  -> unittest subTests() fails when called from debug()

___
Python tracker 

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



[issue34900] unittest subTests() fails when called from debug()

2018-10-05 Thread Bruno Oliveira


Bruno Oliveira  added the comment:

> FYI, I just noticed that this is a duplicate of issue 29551, but decided to 
> keep this one open.

OK thanks. I did try to search for open issues before filing this one by using 
the "subtest result_supports_subtests" terms, as I figured a bug report would 
include the traceback, that's why I didn't find 29551, heh.

--

___
Python tracker 

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



[issue18291] codecs.open interprets FS, RS, GS as line ends

2018-10-05 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
pull_requests: +9094

___
Python tracker 

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



[issue34904] Crash in ZipFile.close() when writing zip file to /dev/null

2018-10-05 Thread Karthikeyan Singaravelan


Karthikeyan Singaravelan  added the comment:

Is this specific to Linux? I can reproduce this on master branch on Ubuntu but 
there is no error on Mac OS with the master branch.

--
nosy: +xtreak

___
Python tracker 

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



[issue18291] codecs.open interprets FS, RS, GS as line ends

2018-10-05 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

PR 9711 splits lines using regular expressions. This fixes this issue without 
changing str.splitlines(). After adding a new option in str.splitlines() the 
code in master can be simplified.

--
resolution: wont fix -> 
stage: resolved -> patch review
status: closed -> open
versions: +Python 2.7, 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



[issue28441] Change sys.executable to include executable suffix

2018-10-05 Thread INADA Naoki


INADA Naoki  added the comment:


New changeset 7a7693e9cb12e5571c76331db56a28eef9acb6e0 by INADA Naoki (E. M. 
Bray) in branch 'master':
bpo-28441: Ensure `.exe` suffix in `sys.executable` on MinGW and Cygwin 
(GH-4348)
https://github.com/python/cpython/commit/7a7693e9cb12e5571c76331db56a28eef9acb6e0


--
nosy: +inada.naoki

___
Python tracker 

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



[issue18291] codecs.open interprets FS, RS, GS as line ends

2018-10-05 Thread Marc-Andre Lemburg


Marc-Andre Lemburg  added the comment:

Sorry, I probably wasn't clear: the codecs interface is a direct 
interface to the Unicode codecs and thus has to work according to 
what Unicode defines.

Your PR changes this to be non-compliant and does this for all codecs.
That's a major backwards and Unicode incompatible change and I'm -1
on such a change for the stated reasons.

If people want to have ASCII only line break handling, they should
use the io module, which only uses the codecs and can apply different
logic (as it does).

Please note that many file formats where not defined for Unicode,
and it's only natural that using Unicode codecs on them will
result in some differences compared to the ASCII world. Line breaks
are one of those differences, but there are plenty others as well,
e.g. potentially breaking combining characters or bidi sections,
different ideas about upper and lower case handling, different
interpretations of control characters, etc.

The approach to this has to be left with the applications dealing
with these formats. The stdlib has to stick to standards and
clear documentation.

--

___
Python tracker 

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



[issue28441] Change sys.executable to include executable suffix

2018-10-05 Thread INADA Naoki


Change by INADA Naoki :


--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed
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



[issue34904] Crash in ZipFile.close() when writing zip file to /dev/null

2018-10-05 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

This may be a Linux bug. The /dev/null file is seekable, but seek() doesn't 
work correctly for it. It is especially confusing for buffered files. seek() 
always returns 0 and reset the file position.

>>> f = open('/dev/null', 'wb')
>>> f.seekable()
True
>>> f.tell()
0
>>> f.write(b'abcdefgh')
8
>>> f.tell()
8
>>> f.seek(8)
0
>>> f.tell()
0

In contrary, files like /dev/stdout are not seekable, and writing a ZIP file to 
them works properly.

--
components: +IO
nosy: +serhiy.storchaka
type: crash -> behavior

___
Python tracker 

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



[issue18291] codecs.open interprets FS, RS, GS as line ends

2018-10-05 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

Then this particularity of codecs streams should be explicitly documented.

codecs.open() was advertised as a way of writing portable code for Python 2 and 
3, and it can still be used in many old programs.

--

___
Python tracker 

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



[issue34904] Crash in ZipFile.close() when writing zip file to /dev/null

2018-10-05 Thread Erik Bray


Erik Bray  added the comment:

The regression was introduced by issue26039.

It does seem to be Linux-specific with seek/tell on /dev/null.  For example, I 
cannot reproduce the issue on Cygwin.

--

___
Python tracker 

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



[issue34904] Crash in ZipFile.close() when writing zip file to /dev/null

2018-10-05 Thread Erik Bray


Erik Bray  added the comment:

On Cygwin the same tests give

>>> f = open('/dev/null', 'wb')
>>> f.seekable()
True
>>> f.write(b'abcdefgh')
8
>>> f.tell()
8
>>> f.seek(8)
8
>>> f.tell()
8


I would also try macOS if I could.  But yes, I wonder if it's a Linux bug.

--

___
Python tracker 

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



[issue34904] Crash in ZipFile.close() when writing zip file to /dev/null

2018-10-05 Thread Karthikeyan Singaravelan


Karthikeyan Singaravelan  added the comment:

Thanks Erik for the details. On Mac with master also it works like Cygwin.

./python.exe
Python 3.8.0a0 (heads/master:6f85b826b5, Oct  4 2018, 22:44:36)
[Clang 7.0.2 (clang-700.1.81)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> f = open('/dev/null', 'wb')
>>> f.seekable()
True
>>> f.write(b'abcdefgh')
8
>>> f.tell()
8
>>> f.seek(8)
8
>>> f.tell()
8

--

___
Python tracker 

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



[issue34905] Cannot assign memoryview values from array.array

2018-10-05 Thread Andrey Paramonov


New submission from Andrey Paramonov :

Currently, memoryview values can be assigned from all bytes-like objects 
(https://docs.python.org/3/glossary.html#term-bytes-like-object) except byte 
array.array:


import array

mview = memoryview(bytearray(b'hello'))

mview[:] = bytes(b'hello')  # success
mview[:] = bytearray(b'hello')  # success
mview[:] = memoryview(b'hello')  # success
mview[:] = array.array('b', b'hello')  # fail

mview[:] = array.array('b', b'hello')
ValueError: memoryview assignment: lvalue and rvalue have different structures


--
components: Library (Lib)
messages: 327133
nosy: aparamon
priority: normal
severity: normal
status: open
title: Cannot assign memoryview values from array.array
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



[issue18291] codecs.open interprets FS, RS, GS as line ends

2018-10-05 Thread Marc-Andre Lemburg


Marc-Andre Lemburg  added the comment:

On 05.10.2018 14:06, Serhiy Storchaka wrote:
> 
> Then this particularity of codecs streams should be explicitly documented.

Yes, probably. Such extensions of scope for different character
types in Unicode vs. ASCII are a common gotcha when moving from
Python 2 to 3. The same applies to eg. upper/lower
case conversion, conversion to numeric values, the various .is*()
methods, etc.

> codecs.open() was advertised as a way of writing portable code for Python 2 
> and 3, and it can still be used in many old programs.

AFAIR, we changed this to recommend io.open() instead,
after the io module was rewritten in C.

Before that we did indeed advertise codecs.open() as a way to
write code which produces Unicode in a similar way as io does
in Python 3 (they were never fully identical, though).

--

___
Python tracker 

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



[issue34898] add mtime argument to gzip.compress

2018-10-05 Thread Karthikeyan Singaravelan


Change by Karthikeyan Singaravelan :


--
nosy: +xtreak

___
Python tracker 

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



[issue34904] Crash in ZipFile.close() when writing zip file to /dev/null

2018-10-05 Thread Erik Bray


Erik Bray  added the comment:

For the sake of completeness, same deal in pure C:

$ cat devnul.c
#include 


int main(void) {
FILE *f = fopen("/dev/null", "w");
printf("tell() = %ld\n", ftell(f));
printf("write(\"abcdefgh\") = %zu\n", fwrite("abcdefgh", 1, 8, f));
printf("tell() = %ld\n", ftell(f));
printf("seek(8) = %d\n", fseek(f, 8, 0));
printf("tell() = %ld\n", ftell(f));
return 0;
}

$ gcc devnulc -o devnul
$ ./devnull
tell() = 0
write("abcdefgh") = 8
tell() = 8
seek(8) = 0
tell() = 0

--

___
Python tracker 

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



[issue34906] Fix typo in the documentation

2018-10-05 Thread Stéphane Wirtel

Change by Stéphane Wirtel :


--
assignee: matrixise
nosy: matrixise
priority: normal
severity: normal
status: open
title: Fix typo in the documentation
versions: Python 3.8

___
Python tracker 

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



[issue27321] Email parser creates a message object that can't be flattened

2018-10-05 Thread David Cannings


David Cannings  added the comment:

Ping on an ETA for this fix?

--
nosy: +edeca

___
Python tracker 

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



[issue34906] Fix typo in the documentation

2018-10-05 Thread Stéphane Wirtel

Change by Stéphane Wirtel :


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

___
Python tracker 

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



[issue22232] str.splitlines splitting on non-\r\n characters

2018-10-05 Thread Neil Schemenauer


Neil Schemenauer  added the comment:

I've created a topic on this inside the "Ideas" area of discuss.python.org.  
Sorry if that wasn't appropriate, not sure if I should have keep the discussion 
here.

Inada Naoki suggests creating a new method str.iterlines{[keepends]).  Given 
that people are -1 on changing str.splitlines, I think that's a good solution.  
A new method is better yet if it would only split on '\n', that way 
fp.read().iterlines() matches fp.readlines().  It is what people seem to expect 
and is the most handy behaviour.  So, str and bytes would both get the new 
method and they would both split on only '\n'.

If we do that, I think nearly every use of splitlines() should get changed to 
iterlines().

--

___
Python tracker 

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



[issue34547] Wsgiref server does not handle closed connections gracefully

2018-10-05 Thread Petter S


Change by Petter S :


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

___
Python tracker 

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



[issue34906] Fix typo in the documentation

2018-10-05 Thread Julien Palard

New submission from Julien Palard :


New changeset 07fbbfde1b300369b4f8d1cfb80045fbb23b7091 by Julien Palard 
(Stéphane Wirtel) in branch 'master':
bpo-34906: Doc: Fix typos (GH-9712)
https://github.com/python/cpython/commit/07fbbfde1b300369b4f8d1cfb80045fbb23b7091


--
nosy: +mdk

___
Python tracker 

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



[issue34906] Fix typo in the documentation

2018-10-05 Thread miss-islington


Change by miss-islington :


--
pull_requests: +9098

___
Python tracker 

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



[issue34906] Fix typo in the documentation

2018-10-05 Thread miss-islington


miss-islington  added the comment:


New changeset b3c4a050b7b9a07caeeb9ad74af1d3a75422 by Miss Islington (bot) 
in branch '3.7':
bpo-34906: Doc: Fix typos (GH-9712)
https://github.com/python/cpython/commit/b3c4a050b7b9a07caeeb9ad74af1d3a75422


--
nosy: +miss-islington

___
Python tracker 

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



[issue34769] _asyncgen_finalizer_hook running in wrong thread

2018-10-05 Thread twisteroid ambassador


twisteroid ambassador  added the comment:

I'll open a PR with your diff soon, but I don't have a reliable unit test yet. 
Also, it does not seem to fix the old problem with debug mode off. :-( I had 
hoped that the problem with debug mode off is nothing more than 
_asyncgen_finalizer_hook not running reliably each time, but that doesn't seem 
to be the case.

--

___
Python tracker 

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



[issue34769] _asyncgen_finalizer_hook running in wrong thread

2018-10-05 Thread twisteroid ambassador


Change by twisteroid ambassador :


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

___
Python tracker 

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



[issue22232] str.splitlines splitting on non-\r\n characters

2018-10-05 Thread Marc-Andre Lemburg


Marc-Andre Lemburg  added the comment:

Why not simply add a new parameter, to make people who want
ASCII linebreaks continue to use .splitlines() ?

It think it would be less than ideal to have one method break on
all Unicode line breaks and another only on ASCII ones.

--

___
Python tracker 

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



[issue34825] Add more entries to os module to pathlib reference table

2018-10-05 Thread miss-islington


miss-islington  added the comment:


New changeset 6f9c55d1c0bb399911ded00bb6b3e6f43a514ea2 by Miss Islington (bot) 
(Xtreak) in branch 'master':
bpo-34825: Add more entries to os to pathlib reference table (GH-9608)
https://github.com/python/cpython/commit/6f9c55d1c0bb399911ded00bb6b3e6f43a514ea2


--
nosy: +miss-islington

___
Python tracker 

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



[issue34825] Add more entries to os module to pathlib reference table

2018-10-05 Thread miss-islington


Change by miss-islington :


--
pull_requests: +9100

___
Python tracker 

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



[issue6686] xml.sax.xmlreader.XMLReader.getProperty (xml.sax.handler.property_xml_string) returns bytes

2018-10-05 Thread Jonathan Gossage


Change by Jonathan Gossage :


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



[issue34907] calculation not working properly

2018-10-05 Thread Cem


New submission from Cem :

as shown below for some reason 15.06 + 5 results in an addition of 0.002 
and i want to know why its an bug or something im doing wrong but below it i 
tried it with 15.07 it works

--
components: Windows
files: Capture.PNG
messages: 327143
nosy: hwk_un1te, paul.moore, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: calculation not working properly
versions: Python 3.7
Added file: https://bugs.python.org/file47853/Capture.PNG

___
Python tracker 

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



[issue26852] add the '--enable-sourceless-distribution' option to configure

2018-10-05 Thread Matej Cepl


Change by Matej Cepl :


--
nosy: +mcepl

___
Python tracker 

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



[issue34825] Add more entries to os module to pathlib reference table

2018-10-05 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



[issue34825] Add more entries to os module to pathlib reference table

2018-10-05 Thread Andrew Svetlov


Andrew Svetlov  added the comment:


New changeset 29c40c73143fee3612147959779b6927cd1be7e1 by Andrew Svetlov (Miss 
Islington (bot)) in branch '3.7':
bpo-34825: Add more entries to os to pathlib reference table (GH-9608) (#9717)
https://github.com/python/cpython/commit/29c40c73143fee3612147959779b6927cd1be7e1


--
nosy: +asvetlov

___
Python tracker 

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



[issue34907] calculation not working properly

2018-10-05 Thread Stéphane Wirtel

Stéphane Wirtel  added the comment:

because you have the round with the float type. 

you could use the decimal module with Decimal

In [1]: import decimal

In [2]: decimal.Decimal('15.06') + 5
Out[2]: Decimal('20.06')

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



[issue34907] calculation not working properly

2018-10-05 Thread Stéphane Wirtel

Stéphane Wirtel  added the comment:

and you can read this link where we explain the limits of the float type:
https://docs.python.org/3/tutorial/floatingpoint.html

--
status: closed -> open

___
Python tracker 

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



[issue34861] Improve cProfile standard output

2018-10-05 Thread Giampaolo Rodola'


Giampaolo Rodola'  added the comment:

Can you paste a sample output showing how it looks like pre and post patch?

--
nosy: +giampaolo.rodola

___
Python tracker 

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



[issue34861] Improve cProfile standard output

2018-10-05 Thread Giampaolo Rodola'


Change by Giampaolo Rodola' :


--
versions:  -Python 2.7, Python 3.4, Python 3.5, Python 3.6, Python 3.7

___
Python tracker 

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



[issue34907] calculation not working properly

2018-10-05 Thread Karthikeyan Singaravelan


Karthikeyan Singaravelan  added the comment:

Thanks for the report but I think is a known limitation with floating points 
and this page explains it well : 
https://docs.python.org/3.7/tutorial/floatingpoint.html . Using round will be 
helpful in your situation to round the output to 2 decimal places. I think the 
issue is also not predictable and a below example on Python 3 is similar to 
your case. I think this is not a bug in Python but a known behavior that is 
also present in a lot of other languages.

>>> 0.1+0.2
0.30004
>>> 0.2+0.2
0.4
>>> 0.2+0.3
0.5
>>> 0.2+0.4
0.6001
>>>

--
nosy: +xtreak

___
Python tracker 

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



[issue34861] Improve cProfile standard output

2018-10-05 Thread Anders Hovmöller

Anders Hovmöller  added the comment:

There is an example output on github. Should I paste it here too? I can do it 
once I get home if you want.

--

___
Python tracker 

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



[issue33194] Path-file objects does not have method to delete itself if its a file

2018-10-05 Thread Karthikeyan Singaravelan


Karthikeyan Singaravelan  added the comment:

I have added unlink along with other similar methods in Pathlib as part of 
issue34825 to the reference table which I hope helps. I propose closing this.

Thanks

--

___
Python tracker 

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



[issue34902] Azure pipelines PR build fails with "Unexpected vmImage 'vs2017-win2017'"

2018-10-05 Thread Karthikeyan Singaravelan


Karthikeyan Singaravelan  added the comment:

Similar error reported on Pandas and Numba repositories that was fixed a couple 
of days back : https://github.com/pandas-dev/pandas/pull/22948

--

___
Python tracker 

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



[issue34907] calculation not working properly

2018-10-05 Thread Zachary Ware


Change by Zachary Ware :


--
resolution:  -> not a bug
status: open -> closed

___
Python tracker 

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



[issue34628] urllib.request.urlopen fails when userinfo is present in URL

2018-10-05 Thread Niklas Sombert


Niklas Sombert  added the comment:

Hey, this is almost a month old. (Not a problem, really. But I thought, I 
should bump this.)

--

___
Python tracker 

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



[issue34725] Py_GetProgramFullPath() odd behaviour in Windows

2018-10-05 Thread Steve Dower


Change by Steve Dower :


--
nosy: +eric.snow, ncoghlan

___
Python tracker 

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



[issue34907] calculation not working properly

2018-10-05 Thread Steven D'Aprano


Steven D'Aprano  added the comment:

For future reference, please don't post unnecessary screen shots and images. 
Code is text, please copy and paste it as text, not as pixels.

Images make it difficult or impossible for the blind and visually impaired to 
contribute.

--
nosy: +steven.daprano

___
Python tracker 

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



[issue34902] Azure pipelines PR build fails with "Unexpected vmImage 'vs2017-win2017'"

2018-10-05 Thread Steve Dower


Steve Dower  added the comment:

I'll get it.

--
assignee:  -> steve.dower
versions: +Python 3.6, Python 3.7

___
Python tracker 

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



[issue34902] Azure pipelines PR build fails with "Unexpected vmImage 'vs2017-win2017'"

2018-10-05 Thread Steve Dower


Change by Steve Dower :


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

___
Python tracker 

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



[issue34908] netrc parding is overly strict

2018-10-05 Thread Ian Remmel


New submission from Ian Remmel :

This started as a bug report for httpie 
https://github.com/jakubroztocil/httpie/issues/717#issuecomment-426125261

And became a bug report for requests 
https://github.com/requests/requests/issues/4813

> But turned out to be an issue with Python's netrc parser:
> 
>
> it appears that auth via netrc is broken if ~/.netrc includes entries that 
> are not exactly login/password tuples. For example, I have the following 
> entries for circle ci and heroku:
>
> ```
>machine api.heroku.com
>  login 
>  password 
>  method interactive
>machine circleci.com
>  login 
> ```
>
> both of these entries prevent my entry for github.com from working with 
> httpie (but curl works just fine).


I've used the following script to test python 2.7 and 3.7:

```
import netrc
import os.path

netrc.netrc(os.path.expanduser('~/.netrc')).authenticators('api.github.com')
```

Python 2:
```
Traceback (most recent call last):
  File "test.py", line 4, in 
netrc.netrc(os.path.expanduser('~/.netrc')).authenticators('api.github.com')
  File 
"/usr/local/Cellar/python@2/2.7.15_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/netrc.py",
 line 35, in __init__
self._parse(file, fp, default_netrc)
  File 
"/usr/local/Cellar/python@2/2.7.15_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/netrc.py",
 line 117, in _parse
file, lexer.lineno)
netrc.NetrcParseError: bad follower token 'method' (/Users/ian/.netrc, line 7)


Python 3:
```
Traceback (most recent call last):
  File "test.py", line 4, in 
netrc.netrc(os.path.expanduser('~/.netrc')).authenticators('api.github.com')
  File 
"/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/netrc.py",
 line 30, in __init__
self._parse(file, fp, default_netrc)
  File 
"/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/netrc.py",
 line 111, in _parse
file, lexer.lineno)
netrc.NetrcParseError: bad follower token 'method' (/Users/ian/.netrc, line 7)
```

--
messages: 327155
nosy: ianwremmel
priority: normal
severity: normal
status: open
title: netrc parding is overly strict
versions: Python 2.7, Python 3.7

___
Python tracker 

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



[issue34903] strptime %d handling of single digit day of month

2018-10-05 Thread Mike Gleen


Mike Gleen  added the comment:

Sorry for the omission. This refers to datetime.datetime.strptime. The 
documentation I referenced is: https://docs.python.org/3/library/datetime.html; 
I did not test 2.7.

--

___
Python tracker 

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



[issue34576] [EASY doc] http.server, SimpleHTTPServer: warn users on security

2018-10-05 Thread Felipe Rodrigues


Change by Felipe Rodrigues :


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

___
Python tracker 

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



[issue26005] Denial of Service in SimpleHTTPServer and BaseHTTPServer

2018-10-05 Thread Felipe Rodrigues


Change by Felipe Rodrigues :


--
pull_requests: +9104

___
Python tracker 

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



[issue34908] netrc parding is overly strict

2018-10-05 Thread Karthikeyan Singaravelan


Change by Karthikeyan Singaravelan :


--
nosy: +xtreak

___
Python tracker 

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



[issue32117] Tuple unpacking in return and yield statements

2018-10-05 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


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



[issue34603] ctypes on Windows: error calling C function that returns a struct containing 3 bools

2018-10-05 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
pull_requests: +9106

___
Python tracker 

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



[issue34872] investigate task/future cancellation in asynciomodule.c

2018-10-05 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
pull_requests: +9107

___
Python tracker 

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



[issue34902] Azure pipelines PR build fails with "Unexpected vmImage 'vs2017-win2017'"

2018-10-05 Thread miss-islington


Change by miss-islington :


--
pull_requests: +9108

___
Python tracker 

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



[issue34902] Azure pipelines PR build fails with "Unexpected vmImage 'vs2017-win2017'"

2018-10-05 Thread Steve Dower


Steve Dower  added the comment:


New changeset 4313a293dae579f3406aa94508ff3803a79b0344 by Steve Dower in branch 
'master':
bpo-34902: Fixes VM image for Azure Pipelines build (GH-9719)
https://github.com/python/cpython/commit/4313a293dae579f3406aa94508ff3803a79b0344


--

___
Python tracker 

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



[issue34902] Azure pipelines PR build fails with "Unexpected vmImage 'vs2017-win2017'"

2018-10-05 Thread miss-islington


Change by miss-islington :


--
pull_requests: +9109

___
Python tracker 

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



[issue34902] Azure pipelines PR build fails with "Unexpected vmImage 'vs2017-win2017'"

2018-10-05 Thread Karthikeyan Singaravelan


Karthikeyan Singaravelan  added the comment:

Thanks for the fix Steve. I am just wondering if there is a public announcement 
regarding this image being removed since Google couldn't get me anything.

--

___
Python tracker 

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



[issue34603] ctypes on Windows: error calling C function that returns a struct containing 3 bools

2018-10-05 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

assertEquals() is deprecated, use assertEqual() instead.

--
nosy: +serhiy.storchaka

___
Python tracker 

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



[issue32117] Tuple unpacking in return and yield statements

2018-10-05 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:


New changeset 4642d5f59828e774585e9895b538b24d71b9df8e by Serhiy Storchaka in 
branch 'master':
Use assertEqual() instead of assertEquals(). (GH-9721)
https://github.com/python/cpython/commit/4642d5f59828e774585e9895b538b24d71b9df8e


--

___
Python tracker 

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



[issue34603] ctypes on Windows: error calling C function that returns a struct containing 3 bools

2018-10-05 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:


New changeset 4642d5f59828e774585e9895b538b24d71b9df8e by Serhiy Storchaka in 
branch 'master':
Use assertEqual() instead of assertEquals(). (GH-9721)
https://github.com/python/cpython/commit/4642d5f59828e774585e9895b538b24d71b9df8e


--

___
Python tracker 

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



[issue22232] str.splitlines splitting on non-\r\n characters

2018-10-05 Thread Neil Schemenauer


Neil Schemenauer  added the comment:

> Why not simply add a new parameter, to make people who want ASCII linebreaks 
> continue to use .splitlines() ?

That could work but I think in nearly every case you don't want to use 
splitlines() without supplying the parameter.  So, it seems like a bit of trap 
for new users.  Worse, because in Python 2, str.splitlines() does what they 
want, they will do the simple thing which is likely wrong.

If we do stick with just splitlines(), perhaps it should get a 'newline' 
parameter that mostly matches io.open (i.e. it controls universal newline 
behavior).  So if you don't want to change behavior, 
str.splitlines(newline=None) would split as it currently does.  To make it 
split like io files do, you would have to do newline='\n'.

To me, it seems attractive that:
fp.readlines() == fp.read().iterlines()

You suggestion would make it something like:
fp.readlines() == fp.read().splitlines(newline='\n')

I guess I could live with that but it seems unnecessarily ugly and verbose for 
what is the most common usage.

--

___
Python tracker 

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



[issue34603] ctypes on Windows: error calling C function that returns a struct containing 3 bools

2018-10-05 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
pull_requests: +9110

___
Python tracker 

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



[issue32117] Tuple unpacking in return and yield statements

2018-10-05 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


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

___
Python tracker 

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



[issue34872] investigate task/future cancellation in asynciomodule.c

2018-10-05 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:


New changeset addf8afb43af58b9bf56a0ecfd0f316dd60ac0c3 by Serhiy Storchaka in 
branch 'master':
Fix a compiler warning added in bpo-34872. (GH-9722)
https://github.com/python/cpython/commit/addf8afb43af58b9bf56a0ecfd0f316dd60ac0c3


--

___
Python tracker 

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



[issue34902] Azure pipelines PR build fails with "Unexpected vmImage 'vs2017-win2017'"

2018-10-05 Thread miss-islington


miss-islington  added the comment:


New changeset b57f800b351328a67b4a11a1864d39c6b9b8d39f by Miss Islington (bot) 
in branch '3.7':
bpo-34902: Fixes VM image for Azure Pipelines build (GH-9719)
https://github.com/python/cpython/commit/b57f800b351328a67b4a11a1864d39c6b9b8d39f


--
nosy: +miss-islington

___
Python tracker 

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



[issue34872] investigate task/future cancellation in asynciomodule.c

2018-10-05 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
pull_requests: +9111

___
Python tracker 

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



[issue21880] IDLE: Ability to run 3rd party code checkers

2018-10-05 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

This issue is specifically based on msg195711 of #18704.  Anyone working on 
this should read it.

Saimadhav's work was part of his Google Summer of Code (GSOC) project, which 
ended soon after V4 was submitted.  I recorded reviews of V1 and V2 above. I 
don't remember which tests and reviews, if any, I did with V3 and V4.

Some needed changes starting with v4:
 Checker.py should be checker.py.
 Implement it as a feature, not an extension.
 Access the in-memory config object for .idlrc/checker.cfg directly rather than 
through idleConf.  idleConf accesses the fixed defaults and mutable user 
overrides as if they are one config. I am a bit surprised that idleConf worked 
without an empty idlelib/config-checker.def.

The main blocker was and is keeping the GUI responsive while the 3rd party 
program is executing.  V1 & V2 used subprocess through a pipe.  V3 did not use 
subprocess.  V4 uses subprocess without a pipe.  It has this blocking polling 
loop:
while process.poll() is None:
continue

If a 3rd party program is expected to revise a file, the corresponding editor 
should be read-only for the duration.

I intended that any issue like this should start with a coherent specification 
separate from the code.  A doc patch is needed and that might be enough.

Since this issue was opened, it has been more firmly stated that the stdlib 
should not have any hard-coded dependencies on 3rd party code.  In April 2016, 
the proposal for a GSOC project to add a GUI front end for pip got no 
opposition and 2 overt approvals on pydev.  In August 2016, the result was 
rejected by the release manager and one of the additional approvers because it 
necessarily used the (public) pip (command-line) interface.

Not withstanding that, there could be a separate idle-checker repository 
containing a checker.cfg with entries for multiple checkers.  Such a file would 
be needed to do manual tests with multiple checkers.  This could include a 
typing annotation checker, like mypy, which is a new type of code checker added 
since this issue was created.

Tal, what do you think is the easiest way to turn a .diff on the tracker into a 
git master branch?

--

___
Python tracker 

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



[issue34902] Azure pipelines PR build fails with "Unexpected vmImage 'vs2017-win2017'"

2018-10-05 Thread miss-islington


miss-islington  added the comment:


New changeset 467360eeb24525e330d653826f21f30f47481d08 by Miss Islington (bot) 
in branch '3.6':
bpo-34902: Fixes VM image for Azure Pipelines build (GH-9719)
https://github.com/python/cpython/commit/467360eeb24525e330d653826f21f30f47481d08


--

___
Python tracker 

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



[issue34902] Azure pipelines PR build fails with "Unexpected vmImage 'vs2017-win2017'"

2018-10-05 Thread Steve Dower


Steve Dower  added the comment:

I didn't hear any public announcement, so perhaps not. I'll ask the team.

--

___
Python tracker 

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



[issue34902] Azure pipelines PR build fails with "Unexpected vmImage 'vs2017-win2017'"

2018-10-05 Thread Steve Dower


Change by Steve Dower :


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

___
Python tracker 

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



[issue34837] Multiprocessing.pool API Extension - Pass Data to Workers w/o Globals

2018-10-05 Thread Terry J. Reedy


New submission from Terry J. Reedy :

Quoting the PR:

Proposing a new kwarg in the __init__() method of multiprocessing.Pool named 
expect_initret.

This kwarg defaults to False. When set to True, the return value of the 
initializer function is passed to the function we are applying (i.e. func in 
Pool.map(func, ls)), as a kwarg named initret.

This PR includes thorough test coverage, and provides backwards compatibility 
(at least in Python3.x).

See blog post
https://thelaziestprogrammer.com/python/multiprocessing-pool-expect-initret-proposal
for example use cases, as well as an initial defense for why this makes the 
multiprocessing.Pool API more approachable, to more Python end-users, and 
augments the library.

--
nosy: +davin, pitrou, terry.reedy

___
Python tracker 

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



[issue34837] Multiprocessing.pool API Extension - Pass Data to Workers w/o Globals

2018-10-05 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

New features only go in next version.

--
versions:  -Python 3.6, Python 3.7

___
Python tracker 

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



[issue34603] ctypes on Windows: error calling C function that returns a struct containing 3 bools

2018-10-05 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:


New changeset 6bffe50f5fff8e8a40ae32c3e9c408622a15caf6 by Serhiy Storchaka in 
branch '3.7':
Use assertEqual() instead of assertEquals(). (GH-9721) (GH-9725)
https://github.com/python/cpython/commit/6bffe50f5fff8e8a40ae32c3e9c408622a15caf6


--

___
Python tracker 

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



[issue34603] ctypes on Windows: error calling C function that returns a struct containing 3 bools

2018-10-05 Thread miss-islington


Change by miss-islington :


--
pull_requests: +9112

___
Python tracker 

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



[issue34839] doctest: Change example under warnings section

2018-10-05 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

To me, the question is whether to delete the dict example, or qualify it with 
"Before 3.7 (or 3.6 for CPython)" but leave the illustration of workarounds. 
Raymond, what do you thing?

--
nosy: +rhettinger, terry.reedy

___
Python tracker 

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



[issue34872] investigate task/future cancellation in asynciomodule.c

2018-10-05 Thread miss-islington


Change by miss-islington :


--
pull_requests: +9113

___
Python tracker 

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



[issue34872] investigate task/future cancellation in asynciomodule.c

2018-10-05 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:


New changeset d9212200fe8ddb55d73b8231869cfbb32635ba92 by Serhiy Storchaka in 
branch '3.7':
[3.7] Fix a compiler warning added in bpo-34872. (GH-9722). (GH-9726)
https://github.com/python/cpython/commit/d9212200fe8ddb55d73b8231869cfbb32635ba92


--

___
Python tracker 

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



[issue34839] doctest: Change example under warnings section

2018-10-05 Thread Tim Peters


Tim Peters  added the comment:

Add a comment along the lines you (Terry) suggested.  Some people need to write 
doctests that run under many versions of Python, so the info is still supremely 
relevant to them.

--
nosy: +tim.peters

___
Python tracker 

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



[issue34840] dlopen() error with no error message from dlerror()

2018-10-05 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

FWIW, the method does not exist on Windows

>>> _ctypes.dlclose(3)
Traceback (most recent call last):
  File "", line 1, in 
AttributeError: module '_ctypes' has no attribute 'dlclose'

--
nosy: +terry.reedy

___
Python tracker 

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



[issue34603] ctypes on Windows: error calling C function that returns a struct containing 3 bools

2018-10-05 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:


New changeset d02490a9a9c238ed7ded1120877fdfdce16364a3 by Serhiy Storchaka 
(Miss Islington (bot)) in branch '3.6':
Use assertEqual() instead of assertEquals(). (GH-9721) (GH-9725) (GH-9727)
https://github.com/python/cpython/commit/d02490a9a9c238ed7ded1120877fdfdce16364a3


--

___
Python tracker 

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



[issue34846] Runtime failure with Failed to import site module

2018-10-05 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

Unless this is seen as a possible security issue, this will not be fixed in 
3.5.  If possible test in later versions.

By 'was running for a long time without issue', do you mean 'ran many times 
before this run'?  (As opposed to 'a long time in this run'?)

Did you try deleting Lib/__cache__/_collections_abc.cpython-35.pyc (or whatever 
the name is on ubuntu)?

If this fixes the issue, is corruption and failure in any sense deterministic?

--
nosy: +terry.reedy

___
Python tracker 

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



  1   2   >