[issue27741] datetime.datetime.strptime functionality description incorrect

2018-10-18 Thread Tal Einat
Tal Einat added the comment: I agree with Gus, such new wording would be great. Gus, would you like to make a PR? I'd split the comparison into a second paragraph, and avoid the word "better", instead using something like "but datetime.strptime() also retains both microseconds and timezone

[issue35025] Compiling `timemodule.c` can fail on macOS due to availability warnings

2018-10-18 Thread Max Bélanger
Change by Max Bélanger : -- keywords: +patch pull_requests: +9308 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list

[issue35020] Add multisort recipe to sorting docs

2018-10-18 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +tim.peters ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue35020] Add multisort recipe to sorting docs

2018-10-18 Thread Raymond Hettinger
Change by Raymond Hettinger : -- assignee: docs@python -> rhettinger nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list m

[issue35025] Compiling `timemodule.c` can fail on macOS due to availability warnings

2018-10-18 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +benjamin.peterson, vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr

[issue35025] Compiling `timemodule.c` can fail on macOS due to availability warnings

2018-10-18 Thread Maxime Belanger
New submission from Maxime Belanger : We build Python on macOS with `-Werror=unguarded-availability` and `-mmacosx-version-min=` to ensure `libpython` is binary-compatible with earlier versions of macOS. This can create problems when building some modules, including `timemodule.c`, which wa

[issue35024] Incorrect logging in importlib when '.pyc' file creation fails

2018-10-18 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +brett.cannon, eric.snow, ncoghlan ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue35024] Incorrect logging in importlib when '.pyc' file creation fails

2018-10-18 Thread Quentin Agren
New submission from Quentin Agren : Hi, This is the first issue I submit so please correct me if I do anything wrong. Description of the issue: imporlib logs 'wrote ' even when file creation fails with OSError (for lack of write persmission for example) Reproducing the bug in Python 3.6 on

[issue35023] Missed a key when iterating over dictionary

2018-10-18 Thread Tim Peters
Tim Peters added the comment: Not without more expense. Which is why it hasn't been done. But this is a wrong place to talk about it. If you want Python to change, go to the python-ideas mailing list? https://mail.python.org/mailman/listinfo/python-ideas -- _

[issue35023] Missed a key when iterating over dictionary

2018-10-18 Thread Sapan
Sapan added the comment: Aha I did have that in mind while writing the code. I guess a warning could have helped. Can that be introduced ? -- ___ Python tracker ___ _

[issue35023] Missed a key when iterating over dictionary

2018-10-18 Thread Tim Peters
Tim Peters added the comment: Questions about Python should be asked, e.g., on the Python mailing list. The short course is that it's desired that iterating over dicts be as fast as possible, and nobody knows a way to make iteration robust in the face of mutations that wouldn't be significan

[issue35023] Missed a key when iterating over dictionary

2018-10-18 Thread Ammar Askar
Ammar Askar added the comment: Think about what it means to iterate over a hashmap. Let's say your pop() causes the dictionary to become smaller than the resizing threshold and now the indexes need to be rebuilt, how would this be handled gently by the iterator? This situation is not just so

[issue35023] Missed a key when iterating over dictionary

2018-10-18 Thread Sapan
Sapan added the comment: Thanks for the response btw -- status: pending -> closed ___ Python tracker ___ ___ Python-bugs-list maili

[issue35023] Missed a key when iterating over dictionary

2018-10-18 Thread Sapan
Sapan added the comment: Fair enough. Would like to know the reason though, why is this run time error acceptable ? -- status: closed -> pending ___ Python tracker ___ __

[issue35023] Missed a key when iterating over dictionary

2018-10-18 Thread Tim Peters
Tim Peters added the comment: This won't be changed. The effect on the iteration order of adding and/or removing keys from a dict while iterating over it has never been defined in Python, and never will be. The Python 3 docs for dict views say this clearly: """ Iterating views while adding

[issue35023] Missed a key when iterating over dictionary

2018-10-18 Thread Sapan
Sapan added the comment: As for creating a new list all together will require quite a lot of work as this particular json is huge and many keys contain periods. Plus there are multiple jsons. I still believe there should be a better way to handle this. -- status: closed -> pending _

[issue35005] argparse should accept json and yaml argument types

2018-10-18 Thread Braden Groom
Braden Groom added the comment: I agree with Paul. This is probably simple enough for applications to implement. It also doesn't make sense to add either of these if the precedent was set by rejecting DateTime previously. -- ___ Python tracker

[issue35023] Missed a key when iterating over dictionary

2018-10-18 Thread Sapan
Sapan added the comment: It makes sense that the it wont re-iterate, but this scenario is totally legit and should be handled in a better way. Iterating through items does not really help here because that will give me a tuple and they are immutable. -- _

[issue32174] nonASCII punctuation characters can not display in python363.chm.

2018-10-18 Thread Ma Lin
Ma Lin added the comment: > It seems to me that this adds escape4chm as unconditional dependency on all > platforms. `Doc/Makefile` also includes `htmlhelp` command, it generates .chm materials. BTW, the related navigation bar still has corrputed characters, see the attached file. This can'

[issue35023] Missed a key when iterating over dictionary

2018-10-18 Thread Ammar Askar
Ammar Askar added the comment: Modifying containers while iterating over them is generally not safe. In this case the iterator at the point you start the loop will contain all the items to iterate over, adding them mid-loop will not cause them to be iterated over. Take a look at the last sec

[issue35022] MagicMock should support `__fspath__`

2018-10-18 Thread Ned Deily
Change by Ned Deily : -- nosy: +michael.foord ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue35023] Missed a key when iterating over dictionary

2018-10-18 Thread Sapan
New submission from Sapan : The issue occurs in the second level of nested dictionary.Iterating over nested dictionary and editing the key by popping the old key and entering the new key. The next iteration, at the second level of nested dictionary, then skips the second key in dictionary and

[issue35022] MagicMock should support `__fspath__`

2018-10-18 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +xtreak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue35015] availability directive breaks po files

2018-10-18 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: @Cheryl I think it's about nested inline markup. The func is wrapped inside a * and the markup is normal is not nested here. I tried a sample directive as below : ..availability: :func:`len` PO file Availability: len() Expected Availability: :f

[issue35022] MagicMock should support `__fspath__`

2018-10-18 Thread Max Bélanger
Change by Max Bélanger : -- keywords: +patch pull_requests: +9307 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list

[issue35022] MagicMock should support `__fspath__`

2018-10-18 Thread Maxime Belanger
New submission from Maxime Belanger : We have plenty of tests calling into `os.path.*` functions, and as Python 3.6+ gets more stringent about checking for `os.PathLike` compliance, it would greatly simplify our lives for `MagicMock` to support `__fspath__`. -- components: Library (Li

[issue31522] _mboxMMDF.get_string() fails to pass param to get_bytes()

2018-10-18 Thread R. David Murray
R. David Murray added the comment: New changeset d16f012f842e5719ff9fb90e217efc0f795853f2 by R. David Murray (Cheryl Sabella) in branch 'master': bpo-31522: mailbox.get_string: pass `from_` parameter to `get_bytes` (#9857) https://github.com/python/cpython/commit/d16f012f842e5719ff9fb90e217ef

[issue26441] email.charset: to_splittable and from_splittable are not there anymore!

2018-10-18 Thread R. David Murray
R. David Murray added the comment: Thanks, Braden. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ _

[issue26441] email.charset: to_splittable and from_splittable are not there anymore!

2018-10-18 Thread R. David Murray
R. David Murray added the comment: New changeset 5be00247ae0de2e24dd14bbe4d9ca159434a1710 by R. David Murray (Braden Groom) in branch 'master': bpo-26441: Remove documentation for deleted to_splittable and from_splittable methods (#9865) https://github.com/python/cpython/commit/5be00247ae0de

[issue35016] \r to match add into address header with not-ascii character

2018-10-18 Thread R. David Murray
R. David Murray added the comment: Thanks for the report and patch, but this is a duplicate of #34424. Your report prompted me to finally review the PR in that issue, though, so thanks twice :) -- resolution: -> duplicate stage: patch review -> resolved status: open -> closed

[issue28053] parameterize what serialization is used in multiprocessing

2018-10-18 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- pull_requests: +9306 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue32174] nonASCII punctuation characters can not display in python363.chm.

2018-10-18 Thread Zachary Ware
Zachary Ware added the comment: What version of Python are you running Sphinx with? Your error is that `html.entities` does not exist, which makes it sound like Python 2; bump it to Python 3 and you'll be fine. -- ___ Python tracker

[issue34475] functools.partial objects have no __qualname__ attribute

2018-10-18 Thread Chris Jerdonek
Chris Jerdonek added the comment: Sorry, I'm out of practice. I thought I closed this when I marked it rejected. -- ___ Python tracker ___

[issue32174] nonASCII punctuation characters can not display in python363.chm.

2018-10-18 Thread Matej Cepl
Matej Cepl added the comment: It seems to me that this adds escape4chm as unconditional dependency on all platforms. Which seems like a bad idea to me, I don't think users on Linux or Mac OS X are that keen on *.chm files. I think this change broke my build of python3-doc package on openSUSE

[issue34475] functools.partial objects have no __qualname__ attribute

2018-10-18 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue34475] functools.partial objects have no __qualname__ attribute

2018-10-18 Thread STINNER Victor
STINNER Victor added the comment: functools.partial objects have no __qualname__ attribute, but they don't have a __name__ attribute neither. $ python3 Python 3.6.6 (default, Jul 19 2018, 14:25:17) >>> import functools >>> func=int >>> p=functools.partial(func) >>> p.__name__ AttributeError:

[issue35015] availability directive breaks po files

2018-10-18 Thread STINNER Victor
STINNER Victor added the comment: Hum, the english HTML rendering looks good to me: https://docs.python.org/dev/library/os.html#os.spawnvpe So only the PO files are broken, right? -- ___ Python tracker

[issue35021] Assertion failures in datetimemodule.c.

2018-10-18 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +9305 stage: needs patch -> patch review ___ Python tracker ___ ___

[issue34988] Rc2 candidates: "gcc" not found on AIX

2018-10-18 Thread Ned Deily
Ned Deily added the comment: Done, thanks! -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue34988] Rc2 candidates: "gcc" not found on AIX

2018-10-18 Thread Michael Felt
Michael Felt added the comment: On 16/10/2018 21:35, Ned Deily wrote: > Ned Deily added the comment: > > I'm glad it works. Any object to closing this issue then? I have no objection. Should I do that? > > -- > resolution: -> not a bug > stage: -> resolved > status: open -> pending

[issue34936] tkinter.Spinbox.selection_element() raises TclError

2018-10-18 Thread Juliette Monsel
Change by Juliette Monsel : -- pull_requests: +9304 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue34475] functools.partial objects have no __qualname__ attribute

2018-10-18 Thread Chris Jerdonek
Chris Jerdonek added the comment: > It shouldn't be the __qualname__ of the wrapped function Yes, I agree with you. I was thinking it should be similar to what it would be for a function defined at the same location. -- ___ Python tracker

[issue35015] availability directive breaks po files

2018-10-18 Thread Cheryl Sabella
Cheryl Sabella added the comment: I found this in the Sphinx doc. This works on the English-language build OK, so I'm not sure if it's the cause of the issue. http://www.sphinx-doc.org/en/master/usage/restructuredtext/basics.html#gotchas > No nested inline markup: Something like *see :func:

[issue35005] argparse should accept json and yaml argument types

2018-10-18 Thread paul j3
paul j3 added the comment: This kind of file read can be done just as easily after parsing. For example using the function in my previous post: In [127]: parser = argparse.ArgumentParser() In [128]: parser.add_argument('-d','--data'); In [129]: args = parser.parse_args(['-d','@foo.json']) In

[issue35019] Minor Bug found in asyncio - Python 3.5.3

2018-10-18 Thread Andrew Svetlov
Andrew Svetlov added the comment: I mean if we implement something like PathLike [1] but for IP addresses to socket module and teach all socket APIs to accept IPLike objects along with str -- no asyncio change is required. 1. https://docs.python.org/3/library/os.html#os.PathLike --

[issue34936] tkinter.Spinbox.selection_element() raises TclError

2018-10-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 1deea5e53991b46351f6bb395b22365c9455ed88 by Serhiy Storchaka (Juliette Monsel) in branch 'master': bpo-34936: Fix TclError in tkinter.Spinbox.selection_element(). (GH-9760) https://github.com/python/cpython/commit/1deea5e53991b46351f6bb395b223

[issue33457] python-config ldflags, PEP 513 and explicit linking to libpython in python extensions

2018-10-18 Thread Nathaniel Smith
Nathaniel Smith added the comment: Also, python-config is inconsistent with distutils. It should link to libpython only in the cases where distutils does. (IIRC it's supposed to depend on whether python was built with --enable-shared.) -- nosy: +njs _

[issue35019] Minor Bug found in asyncio - Python 3.5.3

2018-10-18 Thread Damla Altun
Change by Damla Altun : -- keywords: +patch pull_requests: +9303 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list

[issue35001] ImportFrom level cannot be optional

2018-10-18 Thread Brett Cannon
Brett Cannon added the comment: There aren't any type hints in the 'ast' module in Python itself, so this is an issue with typeshed. Closing as "third party". -- nosy: +brett.cannon resolution: -> third party stage: -> resolved status: open -> closed ___

[issue35018] Sax parser provides no user access to lexical handlers

2018-10-18 Thread Jonathan Gossage
Change by Jonathan Gossage : -- components: +XML ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue35005] argparse should accept json and yaml argument types

2018-10-18 Thread Bob Ippolito
Bob Ippolito added the comment: I don't think that this has anything in particular to do with the json module, at least it certainly shouldn't need any additional functionality from there. YAML parsing isn't available in the stdlib last I checked, so that is probably not really up for consid

[issue27869] test failures under Bash on Windows / WSL

2018-10-18 Thread Tal Einat
Tal Einat added the comment: As a side-effect, test_ssl hanging is causing builds configured with --enable-optimizations to hang. (Tested with both 3.6.6 and 3.7.0 on Ubuntu 18.04 in WSL on Win 10 Pro 64-bit) -- nosy: +taleinat ___ Python tracker

[issue35021] Assertion failures in datetimemodule.c.

2018-10-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Mia culpa! I missed that the type of the right operand takes precedence when it is a subclass of the type of the left operand. -- ___ Python tracker _

[issue28053] parameterize what serialization is used in multiprocessing

2018-10-18 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- nosy: +pablogsal ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue35019] Minor Bug found in asyncio - Python 3.5.3

2018-10-18 Thread Damla Altun
Damla Altun added the comment: Working on it. -- nosy: +Damla Altun ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

[issue35019] Minor Bug found in asyncio - Python 3.5.3

2018-10-18 Thread Andrew Svetlov
Andrew Svetlov added the comment: It could be a nice feature but I imagine about adding ipaddress objects support to all python APIs. It could be done in a similar way as pathlib integration (os.fspath() and family). -- ___ Python tracker

[issue31752] Assertion failure in timedelta() in case of bad __divmod__

2018-10-18 Thread Thomas Wouters
Thomas Wouters added the comment: This patch includes assertions that are easily triggered from user code: https://bugs.python.org/issue35021 -- nosy: +twouters ___ Python tracker __

[issue35021] Assertion failures in datetimemodule.c.

2018-10-18 Thread Thomas Wouters
New submission from Thomas Wouters : The fix for issue #31752 (changeset 5ef883b096895a84123760859f0f34ad37bf2277 for 2.7, as I ran into this while upgrading to 2.7.15) includes assertions that are easily triggered from user code: >>> import datetime, numpy >>> datetime.timedelta(seconds=nump

[issue35020] Add multisort recipe to sorting docs

2018-10-18 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- keywords: +patch pull_requests: +9302 stage: -> patch review ___ Python tracker ___ ___ Pyt

[issue35020] Add multisort recipe to sorting docs

2018-10-18 Thread Karthikeyan Singaravelan
New submission from Karthikeyan Singaravelan : This issue handles the below : 1. Adding a link to sorting HOWTO from list.sort docs as per msg327901 2. Adding multisort recipe to sorting HOWTO with an example as per msg327925. I have raised a PR (GH-9931) for #1 but the issue35010 was closed

[issue35015] availability directive breaks po files

2018-10-18 Thread Ned Deily
Change by Ned Deily : -- nosy: +vstinner priority: normal -> deferred blocker versions: +Python 3.7 ___ Python tracker ___ ___ Pytho

[issue35005] argparse should accept json and yaml argument types

2018-10-18 Thread paul j3
paul j3 added the comment: Adding a new 'type' function or factor is certainly possible, and probably will be free of backward compatibility issues. But so far no other custom type has been added to argparse. https://bugs.python.org/issue23884 - rejects adding a DateTime class https://bugs

[issue20039] Missing documentation for argparse.ArgumentTypeError

2018-10-18 Thread paul j3
paul j3 added the comment: A related closed request: https://bugs.python.org/issue30220 that wants to test ValueError for non-generic message, instead of using ArgumentTypeError. -- ___ Python tracker

[issue30220] Why are custom messages for ValueError, TypeError suppressed in argparse?

2018-10-18 Thread paul j3
paul j3 added the comment: I'm going to close this. Python makes it easy to test for Exception class. Testing exception messages is messy, especially if the test wants to compare the message against 'generic message'. I don't see anything generic about the messages produced by `int('1.23')

[issue35019] Minor Bug found in asyncio - Python 3.5.3

2018-10-18 Thread Ken Bassford
New submission from Ken Bassford : Found that when using the following function ... "asyncio.start_server(self.processCmd, serverhost, serverport, loop=self.loop)" If 'serverhost' is formatted as a ipaddress.IPv4Address() it will cause a very messy failure. Formatting 'serverhost' as a strin

[issue34973] Crash in bytes constructor with mutating list

2018-10-18 Thread Alexandre Vassalotti
Alexandre Vassalotti added the comment: PR 9841 looks good to me. I wouldn't worry about the performance hit. -- ___ Python tracker ___ ___

[issue35018] Sax parser provides no user access to lexical handlers

2018-10-18 Thread Jonathan Gossage
New submission from Jonathan Gossage : While working on issues bpo-6686 and bpo-9371 I realized that the solution to both involved the use of Sax lexical handlers. Unfortunately, the Python SAX parser does not expose these handlers to the end user, however, support is available in expatreader

[issue35005] argparse should accept json and yaml argument types

2018-10-18 Thread Braden Groom
Braden Groom added the comment: I could try adding JSON and YAML argument types if that's what we want to do. -- nosy: +bradengroom ___ Python tracker ___

[issue34623] _elementtree.c doesn't call XML_SetHashSalt()

2018-10-18 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- assignee: -> larry nosy: +larry priority: normal -> release blocker versions: -Python 2.7, Python 3.6, Python 3.7, Python 3.8 ___ Python tracker _

[issue34623] _elementtree.c doesn't call XML_SetHashSalt()

2018-10-18 Thread Charalampos Stratakis
Change by Charalampos Stratakis : -- pull_requests: +9301 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue35010] sort by partially reversed key tuple

2018-10-18 Thread Cyker Way
Cyker Way added the comment: Thank you very much for the great discussion here, especially Tim's great threads in *python-ideas* that give neat and insightful answers to this problem in different ways: - -

[issue34790] Deprecate passing coroutine objects to asyncio.wait()

2018-10-18 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- status: open -> pending ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https

[issue34814] makesetup: must link C extensions to libpython when compiled in shared mode

2018-10-18 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +petr.viktorin ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue35015] availability directive breaks po files

2018-10-18 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +xtreak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue22872] multiprocessing.Queue raises AssertionError

2018-10-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I don't think we need to document AssertionError in older Python versions. This is an implementation detail. We don't document all exceptions that can be raised with improper use of the API. Just don't do this. In addition, using the assert statement for v

[issue24294] DeprecationWarnings should be visible by default in the interactive REPL

2018-10-18 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: test needed -> resolved status: pending -> closed versions: +Python 3.7 -Python 3.6 ___ Python tracker ___

[issue35014] asyncio subprocess accepts string as parameter which lead to UnicodeEncodeError

2018-10-18 Thread STINNER Victor
STINNER Victor added the comment: This issue is not an asyncio bug: the bug occurs in subprocess. The bug is not a subprocess bug: subprocess works as expected, it encodes Unicode with sys.getfilesystemencoding() (see os.fsencode()). The bug is that you use non-ASCII strings whereas your fil

[issue35014] asyncio subprocess accepts string as parameter which lead to UnicodeEncodeError

2018-10-18 Thread Rémy Hubscher [:natim]
Rémy Hubscher [:natim] added the comment: > I modified Python 3.7.1 to enable the UTF-8 Mode when the LC_CTYPE is > "POSIX". In Python 3.7.0, the UTF-8 Mode is only enabled if the LC_CTYPE is > "C" Ok works for me thanks :) -- ___ Python tracker

[issue35014] asyncio subprocess accepts string as parameter which lead to UnicodeEncodeError

2018-10-18 Thread Rémy Hubscher [:natim]
Rémy Hubscher [:natim] added the comment: Unicode is complicated, the answer is somewhere here: https://unicodebook.readthedocs.io/ Sorry for the bothering, I thought it was a bug but apparently it's a feature. Thank you for your help, thank you for making Python better. -- resolutio

[issue35014] asyncio subprocess accepts string as parameter which lead to UnicodeEncodeError

2018-10-18 Thread Rémy Hubscher [:natim]
Rémy Hubscher [:natim] added the comment: Here are the locale set: ``` LANG= LANGUAGE= LC_CTYPE="POSIX" LC_NUMERIC="POSIX" LC_TIME="POSIX" LC_COLLATE="POSIX" LC_MONETARY="POSIX" LC_MESSAGES="POSIX" LC_PAPER="POSIX" LC_NAME="POSIX" LC_ADDRESS="POSIX" LC_TELEPHONE="POSIX" LC_MEASUREMENT="POSIX" L

[issue35014] asyncio subprocess accepts string as parameter which lead to UnicodeEncodeError

2018-10-18 Thread STINNER Victor
STINNER Victor added the comment: > LC_CTYPE="POSIX" I modified Python 3.7.1 to enable the UTF-8 Mode when the LC_CTYPE is "POSIX". In Python 3.7.0, the UTF-8 Mode is only enabled if the LC_CTYPE is "C". -- ___ Python tracker

[issue34996] Add name to process and thread pool

2018-10-18 Thread Antoine Pitrou
Change by Antoine Pitrou : -- versions: +Python 3.8 -Python 2.7, Python 3.7 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue35015] availability directive breaks po files

2018-10-18 Thread Julien Palard
Julien Palard added the comment: No, at first glance it looks like the implementation of the directive in pyspecific.py is "removing" the roles. It's however not removing the roles while building the html, only removing it from po files, so there's a subtility I can't catch here (just spotte

[issue35015] availability directive breaks po files

2018-10-18 Thread Cheryl Sabella
Cheryl Sabella added the comment: Sorry, I meant dummy.html in Docs\tools\templates. -- ___ Python tracker ___ ___ Python-bugs-list

[issue35015] availability directive breaks po files

2018-10-18 Thread Cheryl Sabella
Cheryl Sabella added the comment: Do you think it needs to be added to Doc\tools\templates? -- nosy: +cheryl.sabella ___ Python tracker ___ ___

[issue35017] socketserver accept a last request after shutdown

2018-10-18 Thread Denis Ledoux
Change by Denis Ledoux : -- keywords: +patch pull_requests: +9299 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-lis

[issue35014] asyncio subprocess accepts string as parameter which lead to UnicodeEncodeError

2018-10-18 Thread STINNER Victor
STINNER Victor added the comment: I added the UTF-8 Mode for you, for the Docker use case: python3.7 -X utf8. Using that, Python ignores your locale and speaks UTF-8. What is your locale? Try the "locale" command. -- ___ Python tracker

[issue35017] socketserver accept a last request after shutdown

2018-10-18 Thread Denis Ledoux
New submission from Denis Ledoux : After the shutdown of a `BaseServer`, the server may accept a last single request if it is sent between the server socket polling and the polling timeout. This can be problematic for instance for a server restart for which you do not want to interrupt the se

[issue34963] String representation for types created with typing.NewType(…) are opaque and unappealing

2018-10-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: PR 9951 is a simpler way. It just sets __qualname__ (and __module__ for completeness). >>> import typing >>> UserId = typing.NewType('UserId', int) >>> UserId -- ___ Python tracker

[issue34963] String representation for types created with typing.NewType(…) are opaque and unappealing

2018-10-18 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +9298 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue35014] asyncio subprocess accepts string as parameter which lead to UnicodeEncodeError

2018-10-18 Thread Rémy Hubscher [:natim]
Rémy Hubscher [:natim] added the comment: I believe Python 3.7 brings explicit unicode encoding/decoding. If depending on the environment the create_subprocess_exec method can fail, I believe we should not try to encode the command lines attribute but rather enforce it to be bytes. -

[issue35014] asyncio subprocess accepts string as parameter which lead to UnicodeEncodeError

2018-10-18 Thread Andrew Svetlov
Andrew Svetlov added the comment: I think you'll get the same error on `subprocess.run()` call if your current locale is not UTF-8. I don't recall the details but the Intenet has a lot info about setting locale per user and system-wide. -- ___ Py

[issue35014] asyncio subprocess accepts string as parameter which lead to UnicodeEncodeError

2018-10-18 Thread Rémy Hubscher [:natim]
Rémy Hubscher [:natim] added the comment: Here we go: ``` $ python3.7 demo.py utf-8 UTF-8 Traceback (most recent call last): File "demo.py", line 21, in asyncio.run(main()) File "/usr/lib/python3.7/asyncio/runners.py", line 43, in run return loop.run_until_complete(main) File "/

[issue35014] asyncio subprocess accepts string as parameter which lead to UnicodeEncodeError

2018-10-18 Thread Rémy Hubscher [:natim]
Rémy Hubscher [:natim] added the comment: I am adding the following info: If I run the following on the Docker image where I got the error I get: ``` import sys import locale print(sys.getdefaultencoding()) print(locale.getpreferredencoding()) ``` utf-8 ANSI_X3.4-1968 While if I run it on m

[issue32789] Note missing from logging.debug() docs

2018-10-18 Thread Vinay Sajip
Vinay Sajip added the comment: Documentation for 3.6/3.7/3.8 updated. 3.5 is out of scope for this. -- nosy: +vinay.sajip resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue35014] asyncio subprocess accepts string as parameter which lead to UnicodeEncodeError

2018-10-18 Thread Rémy Hubscher [:natim]
Rémy Hubscher [:natim] added the comment: I though this would be sufficient to actually reproduce the issue. However it seems that if the system encoding is UTF-8 it does work properly. Here is the traceback I had: ``` UnicodeEncodeError: 'ascii' codec can't encode character '\xe9' in position

[issue27741] datetime.datetime.strptime functionality description incorrect

2018-10-18 Thread Gus Goulart
Gus Goulart added the comment: As far as I can see, every time something changes on datetime.strptime(), it will invalidate that section of the documentation. On the other hand, I believe the comparison with datetime(*(time.strptime(date_string, format)[0:6])" is interesting and valuable to

[issue34987] A possible null pointer dereference in _pickle.c's save_reduce()

2018-10-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: You are right. Although, get_class() can return NULL without set an exception. We have to set an exception in such case (the same exception as for `obj_class != cls` looks appropriate). -- ___ Python tracker

[issue35016] \r to match add into address header with not-ascii character

2018-10-18 Thread Ivan Krivosheev
Change by Ivan Krivosheev : -- keywords: +patch pull_requests: +9297 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-

[issue35016] \r to match add into address header with not-ascii character

2018-10-18 Thread Ivan Krivosheev
Change by Ivan Krivosheev : -- versions: +Python 3.8 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

  1   2   >