[issue30050] Please provide a way to disable the warning printed if the signal module's wakeup fd overflows

2017-12-10 Thread Nathaniel Smith
Change by Nathaniel Smith : -- keywords: +patch pull_requests: +4691 stage: -> patch review ___ Python tracker ___

[issue31506] Improve the error message logic for object_new & object_init

2017-12-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: 780acc89bccf332d334a27887684cc942eb6 reintroduced the part of the original bug fixed in a6c0c0695614177c8b6e1840465375eefcfee586. object.__new__() and object.__init__() require an argument (cls and self correspondingly).

[issue32257] Support Disabling Renegotiation for SSLContext

2017-12-10 Thread Christian Heimes
Christian Heimes added the comment: We don't work that way. Closed means closed forever. Please leave the bug open. -- priority: normal -> high resolution: later -> stage: resolved -> status: closed -> open type: enhancement -> security versions: +Python 3.6, Python

[issue32257] Support Disabling Renegotiation for SSLContext

2017-12-10 Thread Qichao Chu
Qichao Chu added the comment: Thanks Christian! Let's wait for OpenSSL then. I will close this bug for now and reopen when OpenSSL releases 1.1.1 with the new flag. -- resolution: -> later stage: patch review -> resolved status: open -> closed

[issue32257] Support Disabling Renegotiation for SSLContext

2017-12-10 Thread Christian Heimes
Christian Heimes added the comment: I took Guido's keys to the time machine: https://github.com/openssl/openssl/issues/4739 -- ___ Python tracker

[issue29302] add contextlib.AsyncExitStack

2017-12-10 Thread Ilya Kulakov
Ilya Kulakov added the comment: Charyl, I made the PR. Where is the AbstractAsyncContextManager? I see that typing.py references it, but there is no actual implementation. -- ___ Python tracker

[issue29302] add contextlib.AsyncExitStack

2017-12-10 Thread Ilya Kulakov
Change by Ilya Kulakov : -- keywords: +patch pull_requests: +4690 stage: needs patch -> patch review ___ Python tracker ___

[issue29137] Fix fpectl-induced ABI breakage

2017-12-10 Thread Nathaniel Smith
Change by Nathaniel Smith : -- keywords: +patch pull_requests: +4689 stage: -> patch review ___ Python tracker ___

[issue24991] Define instance mutability explicitly on type objects?

2017-12-10 Thread Raymond Hettinger
Change by Raymond Hettinger : -- assignee: rhettinger -> ___ Python tracker ___

[issue32263] Template string docs refer to "normal %-based substitutions"

2017-12-10 Thread Raymond Hettinger
Change by Raymond Hettinger : -- versions: -Python 3.4, Python 3.5, Python 3.7, Python 3.8 ___ Python tracker ___

[issue32263] Template string docs refer to "normal %-based substitutions"

2017-12-10 Thread Raymond Hettinger
Raymond Hettinger added the comment: FWIW, this was already fixed in the 3.7 docs. I don't feel any real need to backport it. -- assignee: rhettinger -> ___ Python tracker

[issue32245] OSError: raw write() returned invalid length on latest Win 10 Consoles

2017-12-10 Thread Simon Depiets
Simon Depiets added the comment: The issue doesn't seem to happen on either 3.6 (with the new stdio mode) or with win_unicode_console enabled. I was able to reproduce it on 3.6 with the PYTHONLEGACYWINDOWSSTDIO flag enabled, it's easier to trigger when using directional

[issue32145] Wrong ExitStack Callback recipe

2017-12-10 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: I wasn't even aware that pop_all() tries to create the concrete subtype. I wonder how common subclassing ExitStack is in practice. (Of course, the answer is that we'll never know.) For 3.7, we should probably delegate instance creation

[issue32262] Fix linting errors in asyncio code; use f-strings consistently

2017-12-10 Thread Yury Selivanov
Yury Selivanov added the comment: New changeset 19d0d5480931117d9e0bf396a0234707bbdaa494 by Yury Selivanov in branch 'master': bpo-32262: Fix f-string (#4787) https://github.com/python/cpython/commit/19d0d5480931117d9e0bf396a0234707bbdaa494 --

[issue32262] Fix linting errors in asyncio code; use f-strings consistently

2017-12-10 Thread Yury Selivanov
Change by Yury Selivanov : -- pull_requests: +4688 ___ Python tracker ___ ___

[issue32255] csv.writer converts None to '""\n' when it is first line, otherwise '\n'

2017-12-10 Thread Licht Takeuchi
Licht Takeuchi added the comment: Thanks for your investigation! Would you mind if I create a new patch? -- ___ Python tracker ___

[issue32273] Remove asyncio.test_utils

2017-12-10 Thread Yury Selivanov
Change by Yury Selivanov : -- keywords: +patch pull_requests: +4686 stage: -> patch review ___ Python tracker ___

[issue13553] Tkinter Tk args and Gnome Shell application name

2017-12-10 Thread Cheryl Sabella
Change by Cheryl Sabella : -- versions: +Python 3.7 -Python 2.7, Python 3.4, Python 3.5 ___ Python tracker ___

[issue13553] Tkinter Tk args and Gnome Shell application name

2017-12-10 Thread Cheryl Sabella
Change by Cheryl Sabella : -- keywords: +patch pull_requests: +4687 stage: needs patch -> patch review ___ Python tracker ___

[issue32273] Remove asyncio.test_utils

2017-12-10 Thread Yury Selivanov
New submission from Yury Selivanov : asyncio.test_utils was never part of asyncio API and was never even documented. It's purely due to historical reasons that test_utils.py is in the Lib/asyncio directory. -- components: asyncio messages: 308008 nosy: asvetlov,

[issue32272] Remove asyncio.async function

2017-12-10 Thread Yury Selivanov
Change by Yury Selivanov : -- keywords: +patch pull_requests: +4685 stage: -> patch review ___ Python tracker ___

[issue32272] Remove asyncio.async function

2017-12-10 Thread Yury Selivanov
New submission from Yury Selivanov : asyncio.async() is a deprecated alias for asyncio.ensure_future(). Since Python 3.7, async and await are proper keywords, and it is no longer possible to use the function. I.e. both 'from asyncio import async' and

[issue32272] Remove asyncio.async function

2017-12-10 Thread Yury Selivanov
Yury Selivanov added the comment: The function has been deprecated since Python 3.4.4. -- ___ Python tracker ___

[issue32272] Remove asyncio.async function

2017-12-10 Thread Yury Selivanov
Change by Yury Selivanov : -- nosy: +asvetlov ___ Python tracker ___ ___

[issue32262] Fix linting errors in asyncio code; use f-strings consistently

2017-12-10 Thread Yury Selivanov
Change by Yury Selivanov : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed type: -> enhancement ___ Python tracker

[issue32262] Fix linting errors in asyncio code; use f-strings consistently

2017-12-10 Thread Yury Selivanov
Yury Selivanov added the comment: New changeset 6370f345e1d5829e1fba59cd695c8b82c5a8c620 by Yury Selivanov in branch 'master': bpo-32262: Fix codestyle; use f-strings formatting where necessary. (#4775)

[issue32259] Misleading "not iterable" Error Message when generator return a "simple" type, and a tuple is expected

2017-12-10 Thread Camion
Camion added the comment: Woops, my mistake... I fumbled this one : the file was empty -- keywords: +patch Added file: https://bugs.python.org/file47330/issue-32259-iterable-unpackable.patch ___ Python tracker

[issue32259] Misleading "not iterable" Error Message when generator return a "simple" type, and a tuple is expected

2017-12-10 Thread Camion
Camion added the comment: Well I submitted a patch, but I don't see it anywhere on this page.. Is this normal ? -- ___ Python tracker

[issue32259] Misleading "not iterable" Error Message when generator return a "simple" type, and a tuple is expected

2017-12-10 Thread Camion
Camion added the comment: @Raymond: I know that you have no obligation to make changes just because I'm demanding them and that's why I'm just trying to convince people of the validity of my observations, here. I apologize if my tone may seem "insistent", but

[issue32234] Add context management to mailbox.Mailbox

2017-12-10 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: It's possible that the Mailman example can just assume that the mailbox will be flushed and unlocked on __exit__(), so it could just call .close(). Then the question is whether entering the CM should lock the mailbox. The two cases are:

[issue32236] open() shouldn't silently ignore buffering=1 in binary mode

2017-12-10 Thread Alexey Izbyshev
Alexey Izbyshev added the comment: I'm in favor of raising an exception because it'll expose existing code with incorrect assumptions. I'll check whether it breaks any tests and submit a PR. -- ___ Python tracker

[issue32259] Misleading "not iterable" Error Message when generator return a "simple" type, and a tuple is expected

2017-12-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Camion, the problem is not in the error message. The problem is in the complex expression that produces an error. If you have a complex expression you always have a change to misidentify the source of error. In your case the

[issue32217] freeze.py fails to work.

2017-12-10 Thread Decorater
Decorater added the comment: After thinking about this, maybe a better aproach is to somehow make freeze when used on windows somehow read pyconfig.h -- ___ Python tracker

[issue32255] csv.writer converts None to '""\n' when it is first line, otherwise '\n'

2017-12-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: For restoring the 3.4 behavior the single empty field must be quoted. This allows to distinguish a 1-element row with the single empty field from an empty row. -- ___ Python tracker

[issue32263] Template string docs refer to "normal %-based substitutions"

2017-12-10 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Dec 10, 2017, at 14:36, Raymond Hettinger wrote: > > Raymond Hettinger added the comment: > > We can remove the word "normal" but otherwise the docs read fairly well. +1 > FWIW,

[issue32270] subprocess closes redirected fds even if they are in pass_fds

2017-12-10 Thread Alexey Izbyshev
Alexey Izbyshev added the comment: Regarding fixing (1), I'm worrying about backward compatibility a bit. Some people who discovered that behavior might rely on such "move" semantics and expect that the redirected descriptor is not leaked into the child. OTOH, since

[issue32259] Misleading "not iterable" Error Message when generator return a "simple" type, and a tuple is expected

2017-12-10 Thread Raymond Hettinger
Raymond Hettinger added the comment: @Camion, please adopt a less insistent tone. We've devoting time and thought to your concerns but are under no obligation to make a change just because you are demanding it. Part of learning any programming language is

[issue32268] quopri.decode(): string argument expected, got 'bytes'

2017-12-10 Thread R. David Murray
R. David Murray added the comment: Right, this is not a bug, it is working as documented. You could submit an enhancement request, but I'm surprised to find that anyone is actually using that module :) We unfortunately have multiple implementations of quoted printable

[issue32270] subprocess closes redirected fds even if they are in pass_fds

2017-12-10 Thread Nitish
Change by Nitish : -- nosy: +nitishch ___ Python tracker ___ ___ Python-bugs-list

[issue32267] strptime misparses offsets with microsecond format

2017-12-10 Thread R. David Murray
Change by R. David Murray : -- nosy: +belopolsky ___ Python tracker ___ ___

[issue1410680] Add 'surgical editing' to ConfigParser

2017-12-10 Thread Fipaddict
Change by Fipaddict : -- nosy: +fipaddict ___ Python tracker ___ ___

[issue32259] Misleading "not iterable" Error Message when generator return a "simple" type, and a tuple is expected

2017-12-10 Thread R. David Murray
R. David Murray added the comment: I shouldn't have searched the docs for 'unpackable', I should have searched for 'unpack'. Doing that reveals that the term 'unpack' is used for other concepts, whereas the term 'iterable' is precise. So I think it would unacceptably

[issue32259] Misleading "not iterable" Error Message when generator return a "simple" type, and a tuple is expected

2017-12-10 Thread R. David Murray
R. David Murray added the comment: > How about "[TYPE] object is not iterable/unpackable" I just grepped the docs, and the term 'unpackable' does not appear anywhere in them. I don't think this would be an improvement. As for the earlier suggestion of adding "expected

[issue32271] test_ssl test failed on Fedora 27

2017-12-10 Thread Amit Ghadge
Amit Ghadge added the comment: Thanks, Christian for your help. -- ___ Python tracker ___

[issue32271] test_ssl test failed on Fedora 27

2017-12-10 Thread Christian Heimes
Christian Heimes added the comment: This is a bug tracker, not a support forum. If you are having trouble compiling and testing CPython, please use the Python users mailing list or IRC (#python on freenode). -- assignee: christian.heimes -> resolution: -> out of

[issue32257] Support Disabling Renegotiation for SSLContext

2017-12-10 Thread Christian Heimes
Christian Heimes added the comment: Thanks for checking! I had only checked 1.0.2 and 1.1.0 branch... I can easily expose the info cb in Python -- but there is no simple way to bubble up an exception from a callback to Python. The server name callback ignores exception and

[issue32259] Misleading "not iterable" Error Message when generator return a "simple" type, and a tuple is expected

2017-12-10 Thread Camion
Camion added the comment: @Serhiy : I asked you to explain by what mean you supported the affirmation that our feeling (that the current message can be misleading in the specific situation) is wrong, but you didn't give us any element to understand your

[issue32255] csv.writer converts None to '""\n' when it is first line, otherwise '\n'

2017-12-10 Thread R. David Murray
R. David Murray added the comment: The second case is indeed the bug, as can be seen by running the examples against python2.7. It looks like this was probably broken by 7901b48a1f89 from issue 23171. -- components: +Library (Lib) -IO nosy: +r.david.murray

[issue32255] csv.writer converts None to '""\n' when it is first line, otherwise '\n'

2017-12-10 Thread R. David Murray
R. David Murray added the comment: Serhiy, since it was your patch that probably introduced this bug, can you take a look? Obviously it isn't a very high priority bug, since no one has reported a problem (even this issue isn't reporting the change in behavior as a

[issue32271] test_ssl test failed on Fedora 27

2017-12-10 Thread Amit Ghadge
Amit Ghadge added the comment: I get the latest changes but now facing with different issue. -- resolution: out of date -> status: closed -> open type: behavior -> ___ Python tracker

[issue32257] Support Disabling Renegotiation for SSLContext

2017-12-10 Thread Nathaniel Smith
Nathaniel Smith added the comment: It looks like openssl master has SSL_OP_NO_RENEGOTIATION: https://www.openssl.org/docs/manmaster/man3/SSL_CTX_set_options.html Before that, I guess one could use SSL_CTX_sess_{connect,accept}_renegotiate to detect when a renegotiation has

[issue32271] test_ssl test failed on Fedora 27

2017-12-10 Thread Christian Heimes
Christian Heimes added the comment: Please update. The problem was fixed in 7b40cb7293cb14e5c7c8ed123efaf9acb33edae2. -- resolution: -> out of date stage: -> resolved status: open -> closed type: -> behavior ___ Python tracker

[issue32271] test_ssl test failed on Fedora 27

2017-12-10 Thread Amit Ghadge
Amit Ghadge added the comment: No, I'm not on latest commit, $ git log -1 commit 3b0f620c1a2a21272a9e2aeca6ca1d1ac10f8162 (HEAD -> master, origin/master, origin/HEAD) Author: Louie Lu Date: Thu Aug 10 08:58:13 2017 +0800 bpo-19903: IDLE: Calltips

[issue32271] test_ssl test failed on Fedora 27

2017-12-10 Thread Amit Ghadge
Amit Ghadge added the comment: Recompile source but this test failed again. -- ___ Python tracker ___

[issue32271] test_ssl test failed on Fedora 27

2017-12-10 Thread Christian Heimes
Christian Heimes added the comment: Same for me, are you on latest HEAD of master? The latest commit is: $ git log -1 commit c4d9df5fd719ad08e68e0950ce22a80f43e4f35d (HEAD -> master, upstream/master, upstream/HEAD) Author: Yury Selivanov Date: Sun Dec 10

[issue32271] test_ssl test failed on Fedora 27

2017-12-10 Thread Amit Ghadge
Amit Ghadge added the comment: $ rpm -qa openssl openssl-1.1.0g-1.fc27.x86_64 -- ___ Python tracker ___

[issue32271] test_ssl test failed on Fedora 27

2017-12-10 Thread Christian Heimes
Christian Heimes added the comment: What's your package version? Please post the output of 'rpm -qa openssl'. Please also try to build and compile from scratch: $ make clean $ ./configure --with-pydebug $ make $ ./python -m test -v test_ssl --

[issue32259] Misleading "not iterable" Error Message when generator return a "simple" type, and a tuple is expected

2017-12-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: My objections were about the original report. The title of this issue still implies there is a bug that is not true. You proposition Steve may make sense, but we need a concrete code for discussing the advantages and the

[issue31940] copystat on symlinks fails for alpine -- faulty lchmod implementation?

2017-12-10 Thread Anthony Sottile
Change by Anthony Sottile : -- pull_requests: +4684 ___ Python tracker ___ ___

[issue32263] Template string docs refer to "normal %-based substitutions"

2017-12-10 Thread Raymond Hettinger
Raymond Hettinger added the comment: We can remove the word "normal" but otherwise the docs read fairly well. FWIW, when there docs were written, the {} new-style string formatting didn't exist, so the wording was reasonable at the time. -- assignee:

[issue32271] test_ssl test failed on Fedora 27

2017-12-10 Thread Amit Ghadge
Amit Ghadge added the comment: My Openssl version is, OpenSSL 1.1.0g-fips 2 Nov 2017 So, that need to be upgrade Openssl?. -- ___ Python tracker

[issue32271] test_ssl test failed on Fedora 27

2017-12-10 Thread Christian Heimes
Christian Heimes added the comment: All ssl tests are passing for me on Fedora 27 with openssl-1.1.0g-1.fc27.x86_64 and latest HEAD of master. -- ___ Python tracker

[issue32271] test_ssl test failed on Fedora 27

2017-12-10 Thread Amit Ghadge
New submission from Amit Ghadge : I cloned Python repo on my machine, below command run successfully, $ ./configure --with-pydebug && make -j But When I was run $./python -m test test_ssl failed, 0:08:44 load avg: 4.65 [303/406/1] test_ssl failed Exception in thread

[issue24991] Define instance mutability explicitly on type objects?

2017-12-10 Thread Raymond Hettinger
Raymond Hettinger added the comment: I think this is a hazardous path that should be avoided. Mutability is an elusive concept that is hard to pin down. Files are immutable when opened in a read-only mode and mutable if opened in a write mode. Tuples are

[issue29302] add contextlib.AsyncExitStack

2017-12-10 Thread Cheryl Sabella
Change by Cheryl Sabella : -- stage: -> needs patch ___ Python tracker ___ ___

[issue29302] add contextlib.AsyncExitStack

2017-12-10 Thread Cheryl Sabella
Cheryl Sabella added the comment: Alexander, Did you want to submit a PR for this? -- nosy: +csabella ___ Python tracker ___

[issue32259] Misleading "not iterable" Error Message when generator return a "simple" type, and a tuple is expected

2017-12-10 Thread Raymond Hettinger
Raymond Hettinger added the comment: I think the current error message should stay as is. The interpreter is in no position to guess what kind of iterable may have been intended. -- nosy: +rhettinger ___ Python tracker

[issue32236] open() shouldn't silently ignore buffering=1 in binary mode

2017-12-10 Thread Antoine Pitrou
Antoine Pitrou added the comment: > I suggest to raise a ValueError if buffering=1 is used for binary mode. Either that, or we instead accept buffering=1 as a regular buffer size. But since buffering=1 means something else for text mode, maybe you're right that it's better

[issue32270] subprocess closes redirected fds even if they are in pass_fds

2017-12-10 Thread Antoine Pitrou
Antoine Pitrou added the comment: Thanks for the report and the investigation! > 1. The fact that file descriptors specified for redirection are closed (even > with close_fds=False) unless in range [0, 2] is not documented and not tested. That sounds like a bug to me, so we

[issue32257] Support Disabling Renegotiation for SSLContext

2017-12-10 Thread Qichao Chu
Qichao Chu added the comment: How about exposing the internal ssl object? This will allow applications to control the flag. -- ___ Python tracker

[issue32257] Support Disabling Renegotiation for SSLContext

2017-12-10 Thread Christian Heimes
Christian Heimes added the comment: There must be a better way than custom BIOs. An implemented based on Apache's approach is probably > 1,000 lines of C code and a massive compliciation of the module. -- ___ Python tracker

[issue32114] The get_event_loop change in bpo28613 did not update the documentation

2017-12-10 Thread Yury Selivanov
Change by Yury Selivanov : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue32114] The get_event_loop change in bpo28613 did not update the documentation

2017-12-10 Thread Yury Selivanov
Yury Selivanov added the comment: New changeset 77106b2c21e59d0466742cc3afa50f9e8345e186 by Yury Selivanov (Pablo Galindo) in branch 'master': bpo-32114: Updated the documentation for get_event_loop to reflect the policy change (#4510)

[issue32269] Add `asyncio.get_running_loop()` function

2017-12-10 Thread Yury Selivanov
Change by Yury Selivanov : -- keywords: +patch pull_requests: +4683 stage: -> patch review ___ Python tracker ___

[issue32257] Support Disabling Renegotiation for SSLContext

2017-12-10 Thread Qichao Chu
Qichao Chu added the comment: Thank you for the investigation. This does seem better than the flag. Shall we go ahead implement this? -- ___ Python tracker

[issue32270] subprocess closes redirected fds even if they are in pass_fds

2017-12-10 Thread Alexey Izbyshev
New submission from Alexey Izbyshev : Demonstration: $ cat test.py import os import subprocess import sys fd = os.dup(sys.stdout.fileno()) subprocess.call([sys.executable, '-c', 'import sys;' 'print("Hello stdout");'

[issue32269] Add `asyncio.get_running_loop()` function

2017-12-10 Thread Yury Selivanov
Change by Yury Selivanov : -- components: +asyncio type: -> enhancement versions: +Python 3.7 ___ Python tracker ___

[issue32269] Add `asyncio.get_running_loop()` function

2017-12-10 Thread Yury Selivanov
New submission from Yury Selivanov : In many contexts `asyncio._get_running_loop()` is more useful than `asyncio.get_event_loop()`. The former function is predictable and simple, the latter can change its behaviour depending on the current policy and can even create new

[issue26858] setting SO_REUSEPORT fails at API 21

2017-12-10 Thread Xavier de Gaye
Xavier de Gaye added the comment: This is issue 26855. -- ___ Python tracker ___ ___

[issue32268] quopri.decode(): string argument expected, got 'bytes'

2017-12-10 Thread Christoph Reiter
Christoph Reiter added the comment: The documentation [0] states: "input and output must be binary file objects" and you are not passing a binary file object. [0] https://docs.python.org/3.6/library/quopri.html#quopri.decode -- nosy: +lazka

[issue32257] Support Disabling Renegotiation for SSLContext

2017-12-10 Thread Christian Heimes
Christian Heimes added the comment: Apache mod_ssl implements CVE-2009-3555 by carefully tracking renegotiation state through-out the code base and a custom IO layer that refuses IO when the reneg_state becomes invalid. [1]

[issue32268] quopri.decode(): string argument expected, got 'bytes'

2017-12-10 Thread Alexey Luchko
New submission from Alexey Luchko : $ python3 -c 'import io, quopri; quopri.decode(io.StringIO("some initial text data"), io.StringIO())' Traceback (most recent call last): File "", line 1, in File

[issue32257] Support Disabling Renegotiation for SSLContext

2017-12-10 Thread Christian Heimes
Christian Heimes added the comment: Sounds about right, but I cannot find a good way to disable renegotiation. * SSL3_FLAGS_NO_RENEGOTIATE_CIPHERS doesn't look right. For one it's an internal, undocumented flag. But more important it is no longer supported in OpenSSL 1.1.0.

[issue32259] Misleading "not iterable" Error Message when generator return a "simple" type, and a tuple is expected

2017-12-10 Thread Steven D'Aprano
Steven D'Aprano added the comment: On Sun, Dec 10, 2017 at 10:00:27AM +, Camion wrote: > Understanding that, I suggest to simply add "(expected 'tuple')" at the end > of the message. > ex : TypeError: 'int' object is not iterable (expected 'tuple') That is

[issue19678] smtpd.py: channel should be passed to process_message

2017-12-10 Thread Sanyam Khurana
Sanyam Khurana added the comment: Leslie, would you like to work on a patch for this? -- nosy: +CuriousLearner ___ Python tracker

[issue32259] Misleading "not iterable" Error Message when generator return a "simple" type, and a tuple is expected

2017-12-10 Thread Steven D'Aprano
Steven D'Aprano added the comment: On Sun, Dec 10, 2017 at 09:15:16AM +, Serhiy Storchaka wrote: > My point is that the current error message is correct and is not misleading. With respect Serhiy, in this bug report you have TWO PEOPLE who have said that it is

[issue32267] strptime misparses offsets with microsecond format

2017-12-10 Thread Mario Corchero
Change by Mario Corchero : -- keywords: +patch pull_requests: +4682 stage: -> patch review ___ Python tracker ___

[issue32267] strptime misparses offsets with microsecond format

2017-12-10 Thread Mario Corchero
New submission from Mario Corchero : At the moment strptime misparses all microsecond specifications that do not have exactly 6 digits as it is just converted into an int and considered microsecond. This bug was introduced with the implementation in bpo-31800 Example:

[issue32259] Misleading "not iterable" Error Message when generator return a "simple" type, and a tuple is expected

2017-12-10 Thread Camion
Camion added the comment: Serhiy, I think I got a better understanding of what is happening. It is well described by the following example : >>> a, b = 1, Traceback (most recent call last): File "", line 1, in a, b = 1, ValueError: need more

[issue26858] setting SO_REUSEPORT fails at API 21

2017-12-10 Thread STINNER Victor
STINNER Victor added the comment: Do we have a function in Python to get the running Android version? -- ___ Python tracker

[issue32262] Fix linting errors in asyncio code; use f-strings consistently

2017-12-10 Thread Andrew Svetlov
Andrew Svetlov added the comment: Agree with Yury, at lease for asyncio library. -- ___ Python tracker ___

[issue26865] Meta-issue: support of the android platform

2017-12-10 Thread Xavier de Gaye
Change by Xavier de Gaye : -- versions: +Python 3.7 -Python 3.6 ___ Python tracker ___

[issue26865] Meta-issue: support of the android platform

2017-12-10 Thread Xavier de Gaye
Xavier de Gaye added the comment: Remove depencies that are not specific to Android. -- dependencies: -add the '--disable-test-suite' option to configure, add the '--enable-sourceless-distribution' option to configure, cross compilation of third-party extension

[issue26858] setting SO_REUSEPORT fails at API 21

2017-12-10 Thread Xavier de Gaye
Xavier de Gaye added the comment: This problem does not occur at API 24. -- title: setting SO_REUSEPORT fails -> setting SO_REUSEPORT fails at API 21 ___ Python tracker

[issue32259] Misleading "not iterable" Error Message when generator return a "simple" type, and a tuple is expected

2017-12-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: My point is that the current error message is correct and is not misleading. And this is a standard error message raised in many other cases. There is no a bug. *Maybe* it can be improved in some specific cases. Do you want to

[issue30928] Copy modified blurbs to idlelib/NEWS.txt

2017-12-10 Thread Roundup Robot
Change by Roundup Robot : -- pull_requests: +4681 ___ Python tracker ___

[issue32258] Rewrite asyncio docs to use async/await syntax

2017-12-10 Thread Andrew Svetlov
Change by Andrew Svetlov : -- keywords: +patch pull_requests: +4680 stage: -> patch review ___ Python tracker ___

[issue32266] test_pathlib fails if current path has junctions

2017-12-10 Thread Ivan Pozdeev
Change by Ivan Pozdeev : -- keywords: +patch pull_requests: +4679 stage: -> patch review ___ Python tracker ___

[issue32266] test_pathlib fails if current path has junctions

2017-12-10 Thread Ivan Pozdeev
New submission from Ivan Pozdeev : On this machine, C:\Users is a junction to D:\Users . Sample failure: Running Release|x64 interpreter...