[issue37582] can you add this new feature about grammar?

2019-07-13 Thread Karthikeyan Singaravelan


Karthikeyan Singaravelan  added the comment:

Changes like this needs to be discussed in python-ideas first 
https://mail.python.org/mailman3/lists/python-ideas.python.org/ . The current 
behavior is as below : 

>>> a, b += 1, 2
  File "", line 1
SyntaxError: illegal expression for augmented assignment

See also for some reference to the initial PEP proposal : 
https://stackoverflow.com/a/18132749/2610955

There is also a comment related to this where this error is raised 
https://github.com/python/cpython/blob/b9a0376b0dedf16a2f82fa43d851119d1f7a2707/Python/ast.c#L3302

Augmented assignments can only have a name, a subscript, or an
attribute on the left, though, so we have to explicitly check for
those.

I would propose closing this now and reopening this if there is some consensus 
on moving forward with this in python-ideas.

--
nosy: +xtreak

___
Python tracker 

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



[issue37574] Mention spec_from_loader() in Finder.find_spec() docs.

2019-07-13 Thread Karthikeyan Singaravelan


Change by Karthikeyan Singaravelan :


--
nosy: +brett.cannon

___
Python tracker 

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



[issue37582] can you add this new feature about grammar?

2019-07-13 Thread Steven D'Aprano


Steven D'Aprano  added the comment:

A new language feature like this needs to be discussed on Python-Ideas first, 
to get community feedback, to decide whether the feature is desired by the 
community, to iron-out any bugs in the specification, and decide whether or not 
you will need to write a PEP first. (You probably will.)

https://mail.python.org/mailman3/lists/python-ideas.python.org/

https://www.python.org/dev/peps/

Until then, I'm closing this as Postponed.

--
components: +Interpreter Core
nosy: +steven.daprano -xtreak
resolution:  -> postponed
stage:  -> resolved
status: open -> closed
type:  -> enhancement
versions: +Python 3.9

___
Python tracker 

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



[issue37582] can you add this new feature about grammar?

2019-07-13 Thread Kyle Stanley


Kyle Stanley  added the comment:

Thanks for the suggestion.

Personally I wouldn't be in favor of this particular change. It doesn't add any 
additional functionality beyond saving a couple of characters. Also, this could 
quickly get rather convoluted. For separation and clarity, the assignment 
operators ("+=", "-=", "/=", "*=", etc) should affect one variable. If you 
wanted to fit multiple on the same line, you could simply use:

>>> a += 1; b += 2

--
nosy: +aeros167 -steven.daprano
type: enhancement -> 

___
Python tracker 

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



[issue37582] can you add this new feature about grammar?

2019-07-13 Thread Steven D'Aprano


Steven D'Aprano  added the comment:

Oops, I accidentally removed xtreak, and then aeros167 accidentally removed me.

--
nosy: +steven.daprano, xtreak
type:  -> enhancement

___
Python tracker 

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



[issue21992] New AST node Else() should be introduced

2019-07-13 Thread Milan Oberkirch


Milan Oberkirch  added the comment:

Is there a reason for this still being open? /me trying to find issues to work 
on using [random issue]

--
nosy: +zvyn

___
Python tracker 

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



[issue37583] Got a 113 error when running the test_socket

2019-07-13 Thread hai shi


New submission from hai shi :

When I run test_socket.py, I got a error. Looks it's a problem of security 
group.
My env: a vm of centos
May be I need add `EHOSTUNREACH` in support.get_socket_conn_refused_errs()?

==
FAIL: test_create_connection (test.test_socket.NetworkConnectionNoServer)
--
Traceback (most recent call last):
  File "/home/shihai/workspace/cpython/Lib/test/test_socket.py", line 4961, in 
test_create_connection
self.assertIn(cm.exception.errno, expected_errnos)
AssertionError: 113 not found in [111, 101, 99, 97]

--
Ran 814 tests in 25.929s

FAILED (failures=1, errors=117, skipped=197)

--
components: Tests
messages: 347786
nosy: shihai1991
priority: normal
severity: normal
status: open
title: Got a 113 error when running the test_socket

___
Python tracker 

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



[issue37583] Got a 113 error when running the test_socket

2019-07-13 Thread hai shi


Change by hai shi :


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

___
Python tracker 

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



[issue37563] Documentation - default for StreamHandler

2019-07-13 Thread Jonathan


Jonathan  added the comment:

> The devil is in the detail. If stream=sys.stderr is specified, that takes 
> effect at import time. If stream=None is specified and the implementation 
> chooses to treat that as sys.stderr, that takes effect at the time of the 
> call. The two are not equivalent.

But this isn't what the prose says at all. You're right, the prose clearly say 
that the default is sys.stderr, however the code doesn't show that, and many 
people won't read the prose (I don't a lot of the time), they'll only look at 
the code snippet because that's all they think they need. The code-snippet 
claims that the default is None, which from a user perspective isn't true.

Again I point out that the documentation is for users, not implementers. We 
users Do. Not. Care. about how wonderfully clever your implementation is, we 
care about how it actually works. Whatever Rube-Goldbergian implementation 
details there are behind the scenes are of no interest to us.

Yet again:
There's a standard for documenting defaults for keyword arguments, I would ask 
that it please be used consistently to help us users.

Fine, lets try this another way - does anyone else have opinions on this? 
What's the convention for documentation defaults?

--

___
Python tracker 

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



[issue37580] Markup typo in http.cookiejar doc

2019-07-13 Thread Milan Oberkirch


Change by Milan Oberkirch :


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

___
Python tracker 

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



[issue37352] Typo in documentation: "to making it easy"

2019-07-13 Thread Ilya Kamenshchikov


Change by Ilya Kamenshchikov :


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

___
Python tracker 

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



[issue37577] ModuleNotFoundError: No module named '_sysconfigdata__linux_x86_64-linux-gnu'

2019-07-13 Thread Christian Heimes


Christian Heimes  added the comment:

Yes, this is most likely a packaging bug on Debian.

By the way, Python comes with an ensurepip module. To install pip, just execute 
"python3.8 -m ensurepip".

--
nosy: +christian.heimes

___
Python tracker 

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



[issue37352] Typo in documentation: "to making it easy"

2019-07-13 Thread Ilya Kamenshchikov


Ilya Kamenshchikov  added the comment:

The wording from Carol Willing makes it read simpler. Also in the next 
sentence, 'test-directed development' goes under the name 'test-driven 
development' as of 2019 (search in google -> 
https://en.wikipedia.org/wiki/Test-driven_development). I have created a pull 
request with simpler wording and 'test-driven development'.

CLA is signed, will take time to propagate.

--
nosy: +Ilya Kamenshchikov

___
Python tracker 

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



[issue25998] doctest terminates when accessing __wrapped__ raises an error

2019-07-13 Thread Mickaël Schoentgen

Mickaël Schoentgen  added the comment:

Working on it at EuroPython 2019.

FTR I tested on Python 3.6.9, 3.7.4 and 3.9.0a0 without issue.
I think this was fixed with 
https://github.com/rtweeks/werkzeug/commit/c643980b93e9bde4431cd99ece30f07e00160f84.

But the doctest issue remains and this is on what I will focus.

--
nosy: +Tiger-222

___
Python tracker 

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



[issue37576] SSL Malloc Error w/OpenSSL 1.1.1c-fips & FIPS_mode_set(1)

2019-07-13 Thread Christian Heimes


Christian Heimes  added the comment:

You are welcome!

Could you please do me a favor and post the RHBZ# here after you have created a 
ticket? Thanks :)

--

___
Python tracker 

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



[issue37563] Documentation - default for StreamHandler

2019-07-13 Thread Vinay Sajip


Vinay Sajip  added the comment:

> the prose clearly say that the default is sys.stderr, however the code 
> doesn't show that

Which code are you looking at? Here is the entirety of StreamHandler.__init__:

def __init__(self, stream=None):
"""
Initialize the handler.
If stream is not specified, sys.stderr is used.
"""
Handler.__init__(self)
if stream is None:
stream = sys.stderr
self.stream = stream

> We users Do. Not. Care. about how wonderfully clever your implementation is, 
> we care about how it actually works. Whatever Rube-Goldbergian implementation 
> details there are behind the scenes are of no interest to us.

I'm not sure your tone is particularly constructive here. I don't regard the 
code you say you've read, reproduced above, is particularly Rube-Goldbergian, 
or even Heath-Robinsonish. And are you presuming to speak for all Python users 
here?

> Fine, lets try this another way - does anyone else have opinions on this?

As far as I can remember, you're the first person to bring this up since 
logging was added to Python in 2003. In all that time, no-one appears to have 
been confused by that prose, which has been there since pretty much the 
beginning, though there was a spelling change and a logging documentation 
reorganisation around 9 years ago.

--

___
Python tracker 

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



[issue37584] Multiple test failures with OSError: [Errno 84] Invalid or incomplete multibyte or wide character on ZFS with utf8only=on

2019-07-13 Thread Dimiter Naydenov


New submission from Dimiter Naydenov :

I'm running Ubuntu 19.04 on a ZFS mirrored pool, where my home partition is 
configured with 'utf8only=on' attribute. I've cloned cpython and after running 
the tests, as described in devguide.python.org, I have 11 test failures:

== Tests result: FAILURE ==

389 tests OK.

11 tests failed:
test_cmd_line_script test_httpservers test_imp test_import
test_ntpath test_os test_posixpath test_socket test_unicode_file
test_unicode_file_functions test_zipimport

I've been looking for similar or matching reported issues, but could not find 
one. I'm on the EuroPython 2019 CPython sprint and we'll be looking into this 
with the help of some of the core devs.

--
components: Tests, Unicode
files: cpython_test_output.log
messages: 347794
nosy: benjamin.peterson, dimitern, ezio.melotti, vstinner
priority: normal
severity: normal
status: open
title: Multiple test failures with OSError: [Errno 84] Invalid or incomplete 
multibyte or wide character on ZFS with utf8only=on
type: behavior
versions: Python 3.7, Python 3.8, Python 3.9
Added file: https://bugs.python.org/file48475/cpython_test_output.log

___
Python tracker 

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



[issue7951] Should str.format allow negative indexes when used for __getitem__ access?

2019-07-13 Thread Ilya Kamenshchikov


Ilya Kamenshchikov  added the comment:

Py3.6+ f-strings support any indexing as they actually evaluate python 
expressions. 

>>> a = ['Java', 'Python']
>>> var = f"Hello {a[-1]}"
Hello Python

--
nosy: +Ilya Kamenshchikov

___
Python tracker 

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



[issue37580] Markup typo in http.cookiejar doc

2019-07-13 Thread miss-islington


miss-islington  added the comment:


New changeset b5bbb8a740eaf46c78d122185de8b072e9deea2a by Miss Islington (bot) 
(Milan Oberkirch) in branch 'master':
bpo-37580: Fix typo in http.cookiejar documentation (GH-14731)
https://github.com/python/cpython/commit/b5bbb8a740eaf46c78d122185de8b072e9deea2a


--
nosy: +miss-islington

___
Python tracker 

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



[issue37580] Markup typo in http.cookiejar doc

2019-07-13 Thread miss-islington


Change by miss-islington :


--
pull_requests: +14528
pull_request: https://github.com/python/cpython/pull/14734

___
Python tracker 

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



[issue37580] Markup typo in http.cookiejar doc

2019-07-13 Thread miss-islington


Change by miss-islington :


--
pull_requests: +14527
pull_request: https://github.com/python/cpython/pull/14733

___
Python tracker 

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



[issue37580] Markup typo in http.cookiejar doc

2019-07-13 Thread miss-islington


miss-islington  added the comment:


New changeset 36494a94914c4d3f249ca10b6a2d6194f6093cc6 by Miss Islington (bot) 
in branch '3.7':
bpo-37580: Fix typo in http.cookiejar documentation (GH-14731)
https://github.com/python/cpython/commit/36494a94914c4d3f249ca10b6a2d6194f6093cc6


--

___
Python tracker 

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



[issue37580] Markup typo in http.cookiejar doc

2019-07-13 Thread miss-islington


miss-islington  added the comment:


New changeset 5da83b417e48aecd7698387d3f37c603162fd46e by Miss Islington (bot) 
in branch '3.8':
bpo-37580: Fix typo in http.cookiejar documentation (GH-14731)
https://github.com/python/cpython/commit/5da83b417e48aecd7698387d3f37c603162fd46e


--

___
Python tracker 

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



[issue37563] Documentation - default for StreamHandler

2019-07-13 Thread Jonathan


Jonathan  added the comment:

> I'm not sure your tone is particularly constructive here.
Apologies, my bad.

> Which code are you looking at?
The documentation code: `class logging.StreamHandler(stream=None)`. Sorry, I 
don't know what you'd call that. I'm not referring to the code proper.

> As far as I can remember, you're the first person to bring this up since 
> logging was added to Python in 2003.
This is a fallacy. Just because no-one else has reported it doesn't mean it 
hasn't caused a problem. 
I mean, I'm sure there are plenty of spelling errors/typos in the docs that 
no-one has reported for years, it doesn't mean they shouldn't be fixed when 
raised.
It's also assuming you have seen and remember every single bug report related 
to this from the past 16 years which, nothing personal, seems incredibly 
unlikely given how poor humans are at remembering things in the first place.

> And are you presuming to speak for all Python users here?
I'm presuming to speak for end-users yes, why not? I did ask for other input 
too you'll note. After a few decades of practice I'm fairly decent at getting 
into the headspace of users (of which I am one in this case), and I know it's 
something many developers don't really do well. A common mistake we developers 
make is to assume that everyone knows what we know and thinks like us.

--

___
Python tracker 

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



[issue37583] Got a 113 error when running the test_socket

2019-07-13 Thread Karthikeyan Singaravelan


Karthikeyan Singaravelan  added the comment:

Victor handled similar errors in issue36629 where this helper was introduced.

--
nosy: +vstinner, xtreak
type:  -> enhancement
versions: +Python 3.9

___
Python tracker 

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



[issue37562] PEP 590 implementation may have introduced a performance regression

2019-07-13 Thread Mark Shannon


Change by Mark Shannon :


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

___
Python tracker 

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



[issue37584] Multiple test failures with OSError: [Errno 84] Invalid or incomplete multibyte or wide character on ZFS with utf8only=on

2019-07-13 Thread Dimiter Naydenov


Dimiter Naydenov  added the comment:

Here's some additional information I found for that specific attribute:

>From the documentation at
http://dlc.sun.com/osol/docs/content/ZFSADMIN/gazss.html
(link is dead, but here's where I found the section below: 
https://zfs-discuss.opensolaris.narkive.com/3NqQVG0H/utf8only-and-normalization-properties#post1)

utf8only
Boolean
Off
This property indicates whether a file system should reject file names
that include characters that are not present in the UTF-8 character code
set. If this property is explicitly set to off, the normalization
property must either not be explicitly set or be set to none. The
default value for the utf8only property is off. This property cannot be
changed after the file system is created.

--

___
Python tracker 

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



[issue7202] "python setup.py cmd --verbose" does not set verbosity

2019-07-13 Thread Milan Oberkirch


Milan Oberkirch  added the comment:

The help states:

> usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]

so I would argue that setup.py ignoring global_opts after cmd1 is not a bug.

But I do think that the fact that "python setup.py build --dry-run" does not 
prevent the build from running is not ideal.

Maybe throwing an error for misplaced global options is the best solution?

--
nosy: +zvyn

___
Python tracker 

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



[issue18378] locale.getdefaultlocale() fails on Mac OS X with default language set to English

2019-07-13 Thread Ronald Oussoren


Ronald Oussoren  added the comment:

LC_CTYPE=UTF-8 is a valid configuration on macOS, and is in the default 
environment when you install a fresh system. This includes the beta's for macOS 
10.15 and is therefore unlikely to change anytime soon.

Interestingly enough I get this error even when I unset the relevant 
environment variables. For some reason LC_CTYPE is reset when I start the 
interpreter, even if it is set to something else. This means the usual way of 
working around this problem no longer works.

I'll create a pull request with an up-to-date version of my latest patch for 
further discussion.

BTW. I'm testing with the current tip of the tree, but 3.7.3 fails in the same 
way.

--

___
Python tracker 

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



[issue9938] Documentation for argparse interactive use

2019-07-13 Thread Milan Oberkirch


Milan Oberkirch  added the comment:

This issue is a duplicate of issue 9112 which was resolved by commit 9375492b

--
nosy: +zvyn

___
Python tracker 

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



[issue18378] locale.getdefaultlocale() fails on Mac OS X with default language set to English

2019-07-13 Thread Ronald Oussoren


Change by Ronald Oussoren :


--
pull_requests: +14530
pull_request: https://github.com/python/cpython/pull/14736

___
Python tracker 

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



[issue18378] locale.getdefaultlocale() fails on Mac OS X with default language set to English

2019-07-13 Thread Ronald Oussoren


Ronald Oussoren  added the comment:

As promised there is now a pull request. 

I'd love a review (and a change to approve the pull request when reviewers are 
happy, I'm trying to get back into actively contributing).

---

I now understand why locale.getdefaultlocale() fails even when LC_CTYPE is not 
set: pylifecycle sets LC_CTYPE to UTF-8 in the UTF-8 coercion code.

--

___
Python tracker 

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



[issue37585] Comparing PyDictValues does not give expected results

2019-07-13 Thread Kristian Klette


New submission from Kristian Klette :

As a user, I expect to be able to compare the different parts a `dict`
in the same manner.

Currently, `PyDictValues` does not implement the `dictview_richcompare`, 
causing the `__eq__` to always return false, even if the values are identical.


```
my_dict = {'foo': 'bar'}
dict_copy = my_dict.copy()
other_dict = {'foo': 'bar', 'bar': 1234}

assert my_dict.keys() == my_dict.keys()
assert my_dict.keys() == dict_copy.keys()
assert my_dict.keys() != other_dict.keys()

assert my_dict.items() == my_dict.items()
assert my_dict.items() == dict_copy.items()
assert my_dict.items() != other_dict.items()

assert my_dict.values() == my_dict.values()
assert my_dict.values() == dict_copy.values()
assert my_dict.values() != other_dict.values()

```

--
components: Library (Lib)
messages: 347806
nosy: Kristian Klette
priority: normal
severity: normal
status: open
title: Comparing PyDictValues does not give expected results
type: behavior

___
Python tracker 

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



[issue37585] Comparing PyDictValues does not give expected results

2019-07-13 Thread Roundup Robot


Change by Roundup Robot :


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

___
Python tracker 

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



[issue35476] _imp_create_dynamic_impl() does not clear error.

2019-07-13 Thread Batuhan


Change by Batuhan :


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

___
Python tracker 

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



[issue37585] Comparing PyDictValues does not give expected results

2019-07-13 Thread Karthikeyan Singaravelan


Karthikeyan Singaravelan  added the comment:

See also issue12445 which was a similar proposal rejected in the past.

--
nosy: +inada.naoki, xtreak

___
Python tracker 

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



[issue30088] mailbox.Maildir doesn't create subdir structure when create=True and base dir exists

2019-07-13 Thread Sviatoslav Sydorenko


Sviatoslav Sydorenko  added the comment:

Hi, I've tried clarifying this in docs as suggested @ 
https://github.com/python/cpython/pull/1163

--

___
Python tracker 

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



[issue35476] _imp_create_dynamic_impl() does not clear error.

2019-07-13 Thread Batuhan


Batuhan  added the comment:

Can you give me the case so i can reproduce this and test it.

--
nosy: +BTaskaya

___
Python tracker 

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



[issue37585] Comparing PyDictValues does not give expected results

2019-07-13 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
resolution:  -> duplicate
stage: patch review -> resolved
status: open -> closed
superseder:  -> dict view values objects are missing tp_richcmp and tp_as_number

___
Python tracker 

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



[issue37580] Markup typo in http.cookiejar doc

2019-07-13 Thread Petr Viktorin


Change by Petr Viktorin :


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



[issue37574] Mention spec_from_loader() in Finder.find_spec() docs.

2019-07-13 Thread Roundup Robot


Change by Roundup Robot :


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

___
Python tracker 

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



[issue28292] Make Calendar.itermonthdates() behave consistently in edge cases

2019-07-13 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

There are hundreds or thousands of private names in other modules. Do you 
propose to change them all? I afraid that this will cause more harm than 
benefit.

--

___
Python tracker 

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



[issue37578] Change Glob: Allow Recursion for Hidden Files

2019-07-13 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

This is an interesting question. What other implementations behave?

--

___
Python tracker 

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



[issue28269] [MinGW] Can't compile Python/dynload_win.c due to static strcasecmp

2019-07-13 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:


New changeset 05f2d84cae4ba1ff15b7a1d0347305393f4bdcc5 by Serhiy Storchaka 
(Minmin Gong) in branch 'master':
bpo-28269: Replace strcasecmp with system function _stricmp. (GH-13095)
https://github.com/python/cpython/commit/05f2d84cae4ba1ff15b7a1d0347305393f4bdcc5


--
nosy: +serhiy.storchaka

___
Python tracker 

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



[issue28269] [MinGW] Can't compile Python/dynload_win.c due to static strcasecmp

2019-07-13 Thread miss-islington


Change by miss-islington :


--
pull_requests: +14537
pull_request: https://github.com/python/cpython/pull/14741

___
Python tracker 

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



[issue28269] [MinGW] Can't compile Python/dynload_win.c due to static strcasecmp

2019-07-13 Thread miss-islington


Change by miss-islington :


--
pull_requests: +14536
pull_request: https://github.com/python/cpython/pull/14740

___
Python tracker 

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



[issue33326] Convert collections (cmp_op, hasconst, hasname and others) in opcode module to more optimal type

2019-07-13 Thread Batuhan


Change by Batuhan :


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

___
Python tracker 

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



[issue37579] Difference in equality check between C and Python implementation for datetime module's timedelta and time

2019-07-13 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

Do you mind to fix also other similar cases if they are? __lt__ and others 
should have the same property.

--

___
Python tracker 

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



[issue34697] ctypes: Crash if manually-created CField instance is used

2019-07-13 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

> Is this issue worth fixing?

Definitely yes.

> If so, is the correct way to set tp_new slot to NULL and fix the internal 
> callers so that users wouldn't be able to create CField instances?

I think yes.

Do you mind to create a PR?

--

___
Python tracker 

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



[issue37579] Difference in equality check between C and Python implementation for datetime module's timedelta and time

2019-07-13 Thread Paul Ganssle


Paul Ganssle  added the comment:


New changeset e6b46aafad3427463d6264a68824df4797e682f1 by Paul Ganssle (Xtreak) 
in branch 'master':
bpo-37579: Improve equality behavior for pure Python datetime and time 
(GH-14726)
https://github.com/python/cpython/commit/e6b46aafad3427463d6264a68824df4797e682f1


--

___
Python tracker 

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



[issue37586] macOS: posix_spawn(..., setsid=True)

2019-07-13 Thread Ronald Oussoren


New submission from Ronald Oussoren :

The Xcode 11 beta introduced a definition for POSIX_SPAWN_SETSID, but that flag 
is only supported on macOS 10.15 (also beta), not on earlier versions.

Because of this the testsuite will have failures when you build using Xcode 11 
on macOS 10.14. 

I'm not sure what the best way to patch this is, but lean toward a fix that 
detects the use of setsid=True on macOS 10.14 or earlier and then fails. 
Possibly as part of a larger effort to start supporting building on macOS 
"latest" and running on older versions.

Marked as low priority for now, Xcode 11 is in beta and not used to build 
release binaries.

--
assignee: ronaldoussoren
components: macOS
messages: 347816
nosy: ned.deily, ronaldoussoren
priority: low
severity: normal
stage: needs patch
status: open
title: macOS: posix_spawn(..., setsid=True)
type: behavior
versions: Python 3.8, Python 3.9

___
Python tracker 

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



[issue37586] macOS: posix_spawn(..., setsid=True)

2019-07-13 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

File a bug in Xcode 11?

If it will not be fixed we will need to add a workaround (like checking the 
macOS version explicitly).

--
nosy: +serhiy.storchaka

___
Python tracker 

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



[issue37575] Python Documentation on strings (tutorial section 3.1.2.)

2019-07-13 Thread Mark Dickinson


Change by Mark Dickinson :


--
resolution:  -> not a bug
status: open -> pending
type: resource usage -> 

___
Python tracker 

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



[issue37555] _CallList.__contains__ doesn't always respect ANY.

2019-07-13 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

Would be nice to report a bug in Django.

--

___
Python tracker 

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



[issue37579] Difference in equality check between C and Python implementation for datetime module's timedelta and time

2019-07-13 Thread miss-islington


Change by miss-islington :


--
pull_requests: +14539
pull_request: https://github.com/python/cpython/pull/14743

___
Python tracker 

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



[issue7940] re.finditer and re.findall should support negative end positions

2019-07-13 Thread Roundup Robot


Change by Roundup Robot :


--
pull_requests: +14540
pull_request: https://github.com/python/cpython/pull/14744

___
Python tracker 

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



[issue37579] Difference in equality check between C and Python implementation for datetime module's timedelta and time

2019-07-13 Thread Karthikeyan Singaravelan


Change by Karthikeyan Singaravelan :


--
pull_requests: +14541
pull_request: https://github.com/python/cpython/pull/14745

___
Python tracker 

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



[issue37586] macOS: posix_spawn(..., setsid=True)

2019-07-13 Thread Ronald Oussoren


Ronald Oussoren  added the comment:

This is not a bug in Xcode 11. Xcode 11 includes definitions for new flags that 
get picked up by Python's build, but only work on a new version of macOS. 

I guess this could be seen as a bug in macOS 10.14 (and earlier) because it 
ignores an unknown flag instead of returning an error.  Knowing Apple that's 
unlikely to get fixed, if it even is a bug 
(
 says that returning EINVAL is optional for an invalid value of "flags").

--

___
Python tracker 

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



[issue34722] Non-deterministic bytecode generation

2019-07-13 Thread Chih-Hsuan Yen


Chih-Hsuan Yen  added the comment:

I encounter another case that leads to non-deterministic bytecode. For example, 
with commit e6b46aafad3427463d6264a68824df4797e682f1 + PR 9472, I got:

$ cat foobar.py
_m = None
$ PYTHONHASHSEED=0 ./python -m compileall --invalidation-mode=unchecked-hash 
foobar.py
Compiling 'foobar.py'...
$ sha256sum __pycache__/foobar.cpython-39.pyc
7f84b08d5536390d6ce4ccb2d65e259449c56549ee9cc67560f61771824f20ea  
__pycache__/foobar.cpython-39.pyc
$ rm __pycache__/foobar.cpython-39.pyc
$ PYTHONHASHSEED=1 ./python -m compileall --invalidation-mode=unchecked-hash 
foobar.py
Compiling 'foobar.py'...
$ sha256sum __pycache__/foobar.cpython-39.pyc
46dadbb92ad6e1e5b5f8abe9f107086cd231b2b80c15fe84f86e2081a6b8c428  
__pycache__/foobar.cpython-39.pyc

In this case there are no sets. I guess the cause is different. Should I open a 
new issue?

--

___
Python tracker 

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



[issue37579] Difference in equality check between C and Python implementation for datetime module's timedelta and time

2019-07-13 Thread miss-islington


miss-islington  added the comment:


New changeset 143672cf028740fc549e532c049559c522930c95 by Miss Islington (bot) 
in branch '3.8':
bpo-37579: Improve equality behavior for pure Python datetime and time 
(GH-14726)
https://github.com/python/cpython/commit/143672cf028740fc549e532c049559c522930c95


--
nosy: +miss-islington

___
Python tracker 

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



[issue37548] Document range of atan, acos and asin

2019-07-13 Thread Mark Dickinson


Mark Dickinson  added the comment:


New changeset dc3f99fa77f415077c20a9c2b3e953e5cd894076 by Mark Dickinson 
(Giovanni Cappellotto) in branch 'master':
bpo-37548: Document range of atan, acos and asin (GH-14717)
https://github.com/python/cpython/commit/dc3f99fa77f415077c20a9c2b3e953e5cd894076


--

___
Python tracker 

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



[issue37548] Document range of atan, acos and asin

2019-07-13 Thread Mark Dickinson


Mark Dickinson  added the comment:

Done for 3.9; closing. Thank you for the contribution!

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



[issue33326] Convert collections (cmp_op, hasconst, hasname and others) in opcode module to more optimal type

2019-07-13 Thread Larry Hastings


Larry Hastings  added the comment:

Maynard is unsupported; it only understands the old bytecode format, pre-3.6 
16-bit "wordcode".

https://docs.python.org/3.6/whatsnew/3.6.html#optimizations

--

___
Python tracker 

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



[issue34264] Inconsistency between stack size in main thread and secondary threads on macOS

2019-07-13 Thread Ronald Oussoren


Change by Ronald Oussoren :


--
status: open -> closed

___
Python tracker 

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



[issue34264] Inconsistency between stack size in main thread and secondary threads on macOS

2019-07-13 Thread Ronald Oussoren


Ronald Oussoren  added the comment:

This is a duplicate of 18049, which has a more complete patch.

--
resolution:  -> duplicate
stage: patch review -> resolved
superseder:  -> Re-enable threading test on OSX

___
Python tracker 

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



[issue30588] Missing documentation for codecs.escape_decode

2019-07-13 Thread Carl Bordum Hansen


Change by Carl Bordum Hansen :


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

___
Python tracker 

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



[issue37572] email lib bug

2019-07-13 Thread famu xu

famu xu  added the comment:

import smtplib
from email.message import EmailMessage
from email.utils import formataddr

server = smtplib.SMTP('smtp.xxx.com',port=25)
server.login('y...@xxx.com', 'password')
msg = EmailMessage()

#if address username include Chinese or other multibytes language, it will be 
encode to utf8 and base64, like '?utf-8?B?6YKu5Lu25rWL6K+V?= ', 
but the raw smtp request data error, "From: xxx" and "To: xxx" fields has the 
error end char:"\r\r\r\r\n".
#From: ?utf-8?B?6YKu5Lu25rWL6K+V?= \r\r\r\r\n

msg['From'] =formataddr(('中文','y...@xxx.com'))
msg['To'] = formataddr(('中文姓名','t...@yyy.com'))

msg['Subject'] =subject
msg.set_content('something')

server.send_message(msg)
server.quit()

--

___
Python tracker 

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



[issue30588] Missing documentation for codecs.escape_decode

2019-07-13 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

I disagree. We can change, rename or remove it because it is not public 
function and never was. But we can not just remove it while it is used in the 
pickle module, and there is no reason to change it as it works pretty good for 
its purpose.

If you want to make it public and maintain it, I suggest first discuss this on 
the Python-Ideas mailing list. You should prove that the benefit of adding it 
is larger than the cost of the maintance.

--

___
Python tracker 

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



[issue18049] Re-enable threading test on OSX

2019-07-13 Thread Ronald Oussoren


Change by Ronald Oussoren :


--
pull_requests: +14543
pull_request: https://github.com/python/cpython/pull/14748

___
Python tracker 

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



[issue16520] subprocess.Popen() TypeError message incorrect without args argument

2019-07-13 Thread Carl Bordum Hansen


Carl Bordum Hansen  added the comment:

I think changing the message will break a lot of tests.

Here are some examples just from CPython:
https://github.com/python/cpython/blob/master/Lib/test/test_dataclasses.py#L2655
https://github.com/python/cpython/blob/master/Lib/test/test_extcall.py

It would also outdate some documentation examples.

--
nosy: +carlbordum

___
Python tracker 

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



[issue37572] email lib bug

2019-07-13 Thread SilentGhost


SilentGhost  added the comment:

This seems to be a duplicate of #34424. You'd have to upgrade to the latest 3.7 
to get the fix.

--
nosy: +SilentGhost
resolution:  -> duplicate
stage:  -> resolved
status: open -> closed
superseder:  -> Unicode names break email header
type:  -> behavior

___
Python tracker 

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



[issue18049] Re-enable threading test on macOS

2019-07-13 Thread Ronald Oussoren


Ronald Oussoren  added the comment:

I've converted the patch to a pull request (and closed to other issue because 
that has a patch that is less complete).

I'm not sure if it is acceptable to backport this patch to 3.8 at this time.

--
title: Re-enable threading test on OSX -> Re-enable threading test on macOS
versions: +Python 3.8, Python 3.9 -Python 3.4

___
Python tracker 

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



[issue37358] Use vectorcall for functools.partial

2019-07-13 Thread miss-islington


miss-islington  added the comment:


New changeset ed184c06e2e610e12050c5d5c9b0c1c2ecabb930 by Miss Islington (bot) 
(Jeroen Demeyer) in branch 'master':
bpo-37358: Use vectorcall for functools.partial (GH-14284)
https://github.com/python/cpython/commit/ed184c06e2e610e12050c5d5c9b0c1c2ecabb930


--
nosy: +miss-islington

___
Python tracker 

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



[issue37587] JSON loads performance improvement for long strings

2019-07-13 Thread Marco Paolini


New submission from Marco Paolini :

I analysed the performance of json.loads in one production workload we have.

Spy-py tells me the majority of time is spent into C json module (see 
events.svg)

Digging deeper, linux perf tells me hottest loop (where 20%+ of the time is 
spent) in _json.scanstring_unicode, in this loop:

189:   movzx  eax,BYTE PTR [rbp+rbx*1+0x0]
   movDWORD PTR [rsp+0x44],eax
   cmpeax,0x22
   je 22f
   cmpeax,0x5c
   je 22f
   test   r13d,r13d
   je 180
   cmpeax,0x1f

which is related to this code in Modules/_json.c


/* Find the end of the string or the next escape */
Py_UCS4 c = 0;
for (next = end; next < len; next++) {
c = PyUnicode_READ(kind, buf, next);
if (c == '"' || c == '\\') {
break;
}
else if (strict && c <= 0x1f) {
raise_errmsg("Invalid control character at", pystr, next);
goto bail;
}
}

Two optimisations can be done:

1. remove the mov entirely. It is not needed inside the loop and it is only 
needed later, outside the loop to access the variable
2. switch around the strict check (in the second if) because strict defaults to 
1 so it will likely pass the test, while the likelyness of finding an invalid 
character is lower

Running the pyperformance json_loads benchmark I get:

++--+-+
| Benchmark  | vanilla-pyperf-pgo38 | patched-pyperf-pgo38|
++==+=+
| json_loads | 54.9 us  | 53.9 us: 1.02x faster (-2%) |
++--+-+


A micro benchmark on a 1MB long json string gives better results:

python -m pyperf timeit -s "import json; x = json.dumps({'k': '1' * 2 ** 20})" 
"json.loads(x)"

+---++-+
| Benchmark | vanilla-1m | patched-1m  |
+===++=+
| timeit| 2.62 ms| 2.39 ms: 1.10x faster (-9%) |
+---++-+

--
components: Library (Lib)
files: events.svg
messages: 347832
nosy: christian.heimes, mpaolini, pablogsal
priority: normal
severity: normal
status: open
title: JSON loads performance improvement for long strings
type: performance
versions: Python 3.6, Python 3.7, Python 3.8, Python 3.9
Added file: https://bugs.python.org/file48476/events.svg

___
Python tracker 

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



[issue28440] ensurepip and pip install failures on macOS Sierra with non-system Python 2.7.x

2019-07-13 Thread Ronald Oussoren


Ronald Oussoren  added the comment:

In response to msg282272: That day has come, the beta for 10.15 contains Python 
3.7.3.

--

___
Python tracker 

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



[issue30088] mailbox.Maildir doesn't create subdir structure when create=True and base dir exists

2019-07-13 Thread miss-islington


Change by miss-islington :


--
pull_requests: +14545
pull_request: https://github.com/python/cpython/pull/14750

___
Python tracker 

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



[issue30088] mailbox.Maildir doesn't create subdir structure when create=True and base dir exists

2019-07-13 Thread miss-islington


Change by miss-islington :


--
keywords: +patch
pull_requests: +14544
pull_request: https://github.com/python/cpython/pull/14749

___
Python tracker 

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



[issue30088] mailbox.Maildir doesn't create subdir structure when create=True and base dir exists

2019-07-13 Thread miss-islington


miss-islington  added the comment:


New changeset e44184749c2fd0921867ea5cd20b8e226c2146c2 by Miss Islington (bot) 
(Sviatoslav Sydorenko) in branch 'master':
bpo-30088: Document that existing dir structure isn't verified by 
mailbox.Maildir (GH-1163)
https://github.com/python/cpython/commit/e44184749c2fd0921867ea5cd20b8e226c2146c2


--
nosy: +miss-islington

___
Python tracker 

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



[issue30088] mailbox.Maildir doesn't create subdir structure when create=True and base dir exists

2019-07-13 Thread Andrew Svetlov


Change by Andrew Svetlov :


--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed
versions: +Python 3.8, Python 3.9

___
Python tracker 

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



[issue37587] JSON loads performance improvement for long strings

2019-07-13 Thread Karthikeyan Singaravelan


Change by Karthikeyan Singaravelan :


--
nosy: +serhiy.storchaka

___
Python tracker 

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



[issue36261] email examples should not gratuitously mess with preamble

2019-07-13 Thread Carl Bordum Hansen


Carl Bordum Hansen  added the comment:

I also only found the one case. Submitted a patch.

--
nosy: +carlbordum

___
Python tracker 

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



[issue36261] email examples should not gratuitously mess with preamble

2019-07-13 Thread Carl Bordum Hansen


Change by Carl Bordum Hansen :


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

___
Python tracker 

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



[issue36608] Replace bundled pip and setuptools with a downloader in the ensurepip module

2019-07-13 Thread Sviatoslav Sydorenko


Sviatoslav Sydorenko  added the comment:

Thanks for the feedback!

I've changed it a bit to have a separate command for downloading bundles to the 
source tree. It'd work as in `python -m ensurepip.bundle` (needs a better 
name/CLI args probably).

Does it sound better now?

--

___
Python tracker 

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



[issue30088] mailbox.Maildir doesn't create subdir structure when create=True and base dir exists

2019-07-13 Thread miss-islington


miss-islington  added the comment:


New changeset d1524148cd08f00c0b7c1dfdf698bf96c246350d by Miss Islington (bot) 
in branch '3.7':
bpo-30088: Document that existing dir structure isn't verified by 
mailbox.Maildir (GH-1163)
https://github.com/python/cpython/commit/d1524148cd08f00c0b7c1dfdf698bf96c246350d


--

___
Python tracker 

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



[issue30088] mailbox.Maildir doesn't create subdir structure when create=True and base dir exists

2019-07-13 Thread miss-islington


miss-islington  added the comment:


New changeset b815669c833c543b0f6696c3121a179f6b2383a6 by Miss Islington (bot) 
in branch '3.8':
bpo-30088: Document that existing dir structure isn't verified by 
mailbox.Maildir (GH-1163)
https://github.com/python/cpython/commit/b815669c833c543b0f6696c3121a179f6b2383a6


--

___
Python tracker 

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



[issue37587] JSON loads performance improvement for long strings

2019-07-13 Thread Marco Paolini


Change by Marco Paolini :


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

___
Python tracker 

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



[issue37587] JSON loads performance improvement for long strings

2019-07-13 Thread Marco Paolini


Change by Marco Paolini :


--
nosy: +ezio.melotti, rhettinger

___
Python tracker 

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



[issue37358] Use vectorcall for functools.partial

2019-07-13 Thread Petr Viktorin


Change by Petr Viktorin :


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



[issue37587] JSON loads performance improvement for long strings

2019-07-13 Thread Marco Paolini


Marco Paolini  added the comment:

Also on my real workload (loading 60GB jsonl file containing mostly strings) I 
measured a 10% improvement

--

___
Python tracker 

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



[issue28440] ensurepip and pip install failures on macOS Sierra with non-system Python 2.7.x

2019-07-13 Thread Ned Deily


Ned Deily  added the comment:

> That day has come, the beta for 10.15 contains Python 3.7.3.

Yay!  FTR, 763f094b1f0ce2a07768828e78afe9687e9ad3bb was released in 3.7.0.

The only reason I have left this issues open was that I also wanted to make 
sure that ensurepip failures in the post-install script do not fail silently.

--

___
Python tracker 

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



[issue36816] self-signed.pythontest.net TLS certificate key is too weak

2019-07-13 Thread Larry Hastings


Larry Hastings  added the comment:


New changeset 221178aea686abf13ff92b7e2b5ed3e739a53b3f by larryhastings 
(Gregory P. Smith) in branch '3.5':
[3.5] bpo-36816: Update the self-signed.pythontest.net cert (GH-13192) (#13200)
https://github.com/python/cpython/commit/221178aea686abf13ff92b7e2b5ed3e739a53b3f


--
nosy: +larry

___
Python tracker 

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



[issue22121] IDLE should start with HOME as the initial working directory

2019-07-13 Thread Andy Harrington


Andy Harrington  added the comment:

This is really important for newbies.  They have no business being in the 
system Python folder.  And Idle is for newbies!

I was teaching an intro Python class, and tried to help a student who had been 
writing programs in Idle, but now could not get Python going.  It took many 
minutes for me to discover that he had created a new file while the shell 
window had focus, and innocently saved the file as math.py, without looking for 
a new directory to put it in.

What a pain tracking that down!

--
nosy: +andyharrington

___
Python tracker 

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



[issue25433] whitespace in strip()/lstrip()/rstrip()

2019-07-13 Thread Roundup Robot


Change by Roundup Robot :


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

___
Python tracker 

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



[issue12217] Cross-link docs for faulthandler, traceback and pdb

2019-07-13 Thread Roundup Robot


Change by Roundup Robot :


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

___
Python tracker 

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



[issue35409] Async generator might re-throw GeneratorExit on aclose()

2019-07-13 Thread Vincent Michel


Change by Vincent Michel :


--
pull_requests: +14550
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/14755

___
Python tracker 

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



[issue37573] asyncio: freeze when using MultiLoopChildWatcher on Solaris

2019-07-13 Thread Andrew Svetlov


Andrew Svetlov  added the comment:

Thanks for the report.

--
assignee:  -> asvetlov

___
Python tracker 

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



[issue37521] importlib examples have their exec_module()/sys.modules assignment lines reversed

2019-07-13 Thread Benjamin Mintz


Benjamin Mintz  added the comment:

Hmm, why is the assignment to sys.modules necessary at all, if 
module_from_spec() always does so?

--

___
Python tracker 

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



[issue25998] doctest terminates when accessing __wrapped__ raises an error

2019-07-13 Thread Mickaël Schoentgen

Change by Mickaël Schoentgen :


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

___
Python tracker 

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



[issue25998] doctest terminates when accessing __wrapped__ raises an error

2019-07-13 Thread Mickaël Schoentgen

Mickaël Schoentgen  added the comment:

Attached a simple reproduction script.

--
Added file: https://bugs.python.org/file48477/unwrapable_ob.py

___
Python tracker 

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



[issue37563] Documentation - default for StreamHandler

2019-07-13 Thread Vinay Sajip


Vinay Sajip  added the comment:

> This is a fallacy.

What fallacy? I was responding to "does anyone else have opinions on this?" I 
can't read minds of people all over the world, so I have to go by my best 
guess, which is based on how many times this issue has been reported before - 
which I believe is zero.

> It's also assuming you have seen and remember every single bug report related 
> to this from the past 16 years which, nothing personal, seems incredibly 
> unlikely given how poor humans are at remembering things in the first place.

Feel free to do a search on here to see if you can find an earlier issue about 
this.

> I'm presuming to speak for end-users yes, why not? 

Because they're a very diverse bunch who don't all speak with one voice. I, 
too, am a user (of other people's code) as much as a developer. I don't see 
things the same way as you do, here, and it's not because it's my code. I'd 
probably feel the same way if you'd pointed to some other instance of Python 
code which does the same kind of thing.

There are numerous examples in the stdlib where None is passed in and some 
other value (e.g. 'utf-8' for an encoding) are used as a default, without that 
value appearing in any documented argument list.

--

___
Python tracker 

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



  1   2   >