[issue31362] "async" and "await" are not keyword

2017-09-06 Thread Conor Cal
New submission from Conor Cal: "async" and "await" became kaywords in CPython 3.6. but in the keyword library, they are not in kwlist, and will return False by iskeyword method. -- components: asyncio messages: 301443 nosy: Conor Cal, yselivanov priority: normal severity: normal

[issue31178] [EASY] subprocess: TypeError: can't concat str to bytes, in _execute_child()

2017-09-06 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset 3fc499bca18454b9f432b9b0106cab662bfeb549 by Gregory P. Smith (Ammar Askar) in branch 'master': bpo-31178: Avoid concatenating bytes with str in subprocess error (#3066)

[issue31178] [EASY] subprocess: TypeError: can't concat str to bytes, in _execute_child()

2017-09-06 Thread Gregory P. Smith
Gregory P. Smith added the comment: awaiting our new carrot nosed bot the create the backport PR to take care of 3.6 :) -- assignee: -> gregory.p.smith versions: +Python 3.6 -Python 3.7 ___ Python tracker

[issue31361] Update feedparser.py to prevent theano compiling fail in python3

2017-09-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Why not fix theano instead? Implicit stringification of an argument can hide other bugs. The resolution field should be changed only when close an issue. -- nosy: +serhiy.storchaka resolution: fixed -> ___

[issue31362] "async" and "await" are not keyword

2017-09-06 Thread Conor Cal
Changes by Conor Cal : -- type: -> behavior ___ Python tracker ___ ___

[issue31362] "async" and "await" are not keyword

2017-09-06 Thread Conor Cal
Changes by Conor Cal : -- resolution: -> duplicate ___ Python tracker ___ ___

[issue31361] Update feedparser.py to prevent theano compiling fail in python3

2017-09-06 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- components: +email nosy: +barry, r.david.murray ___ Python tracker ___

[issue31362] "async" and "await" are not keyword

2017-09-06 Thread Conor Cal
Conor Cal added the comment: "async" and "await" became kaywords in CPython 3.6. But they are not in kwlist of the keyword library, and will return False by iskeyword method. -- ___ Python tracker

[issue31178] [EASY] subprocess: TypeError: can't concat str to bytes, in _execute_child()

2017-09-06 Thread Ammar Askar
Ammar Askar added the comment: If it doesn't manage to make it by tomorrow afternoon, I can backport it manually. It doesn't look like its been able to do it yet. -- nosy: +ammar2 ___ Python tracker

Re: A question on modification of a list via a function invocation

2017-09-06 Thread Steven D'Aprano
On Tue, 05 Sep 2017 21:17:30 -0700, Rustom Mody wrote: > Sure you can say with Steven that this can be 'explained' by saying an > object can be in two places at one time. > Others would then say 'Humpty-dumpty!' since you have removed the most > basic intuition of objects and you are in effect

[issue31336] Speed up _PyType_Lookup() for class creation

2017-09-06 Thread Stefan Behnel
Stefan Behnel added the comment: BTW, it seems that Yury's dict copy optimisation would also help here. When I use a benchmark scenario with a simple non-empty method/attribute dict (from Cython this time), almost 10% of the creation time is spent copying that dict, which should essentially

[issue31362] "async" and "await" are not keyword

2017-09-06 Thread Ammar Askar
Ammar Askar added the comment: For what its worth, "async" and "await" are special keywords. They only act as keywords under certain situations by the tokenizer. You can read more about this here: https://www.python.org/dev/peps/pep-0492/#transition-plan As far as I am aware, this special

execfile and import not working

2017-09-06 Thread Friedrich Rentsch
Hi, I am setting up Python 2.7 after an upgrade to Ubuntu 16.04, a thorough one, leaving no survivors. Everything is fine, IDLE opens, ready to go. Alas, execfile and import commands don't do my bidding, but hang IDLE. All I can do is kill the process named "python" from a bash terminal. IDLE

[issue27240] 'UnstructuredTokenList' object has no attribute '_fold_as_ew'

2017-09-06 Thread Raphael Slinckx
Raphael Slinckx added the comment: It happens regularly for emails with long header lines for me too, which makes the python3 email module quite unusable. A workaround which seems to help a bit is to set refold_source='none' on the email policy, although it seems to keep happening, less

[issue31363] __PYVENV_LAUNCHER__ breaks calling another venv's interpreter

2017-09-06 Thread Ilya Kulakov
New submission from Ilya Kulakov: There are 2 venvs. One has the pkg_resources (pkgr_venv) package installed, another (venv) doesn't. Venv without pkg_resources is currently active. Works: $ /python -c "import pkg_resources" Doesn't work: $ python -c "import subprocess;

[issue31364] Possible problem with PR #3377

2017-09-06 Thread Denis Osipov
New submission from Denis Osipov: It looks like last PR #3377 changing pytime.c (adding #include ) causing problem with compilation. Now on my Win10 i have multiple warnings and errors about ws2def.h, winsock.h and winsock2.h (see attached file). -- components: Windows files:

Re: A question on modification of a list via a function invocation

2017-09-06 Thread Chris Angelico
On Wed, Sep 6, 2017 at 7:13 PM, Rustom Mody wrote: > On Wednesday, September 6, 2017 at 12:51:25 PM UTC+5:30, Gregory Ewing wrote: >> Rustom Mody wrote: >> > 2. is — machine representation, too fine to be useful >> >> Disagree - "is" in Python has an abstract definition

[issue31359] `configure` script incorrectly detects symbols as available on Mac w/ Xcode 8+

2017-09-06 Thread Ronald Oussoren
Ronald Oussoren added the comment: An alternative solution, which is more invasive is to explicitly use weak linking, as is already used for some ancient APIs in posixmodule.c (look for "lchown" in Modules/posixmodule.c). This is more invasive, but would be helpful for upstream as well

Re: Please improve these comprehensions (was meaning of [ ])

2017-09-06 Thread Marko Rauhamaa
Ben Finney : > r...@zedat.fu-berlin.de (Stefan Ram) writes: > >> In mathematics, every author is free to give his own definitions to >> concepts and create his own notation. > > [...] > > For established terms in the field, an author has freedom to redefine > those

[issue31362] "async" and "await" are not keyword

2017-09-06 Thread Conor Cal
Conor Cal added the comment: thanks Ammar Askar, I also find this Issue is duplidcate, Issue 26264 has the same question. So I'll just close this oen. -- stage: -> resolved status: open -> closed ___ Python tracker

[issue31353] Implement PEP 553 - built-in debug()

2017-09-06 Thread Ethan Smith
Changes by Ethan Smith : -- nosy: +Ethan Smith ___ Python tracker ___ ___ Python-bugs-list

[issue31364] Possible problem with PR #3377

2017-09-06 Thread Denis Osipov
Changes by Denis Osipov : -- pull_requests: +3391 ___ Python tracker ___ ___

Re: cant't use package internals

2017-09-06 Thread Peter Otten
Andrej Viktorovich wrote: > Hello, > > I have Python package tst in my workspace. > > tst has files: > __init__.py > tst.py > > > content of __init__.py: > print("importing Tst") > > > content of tst.py: > class Tst: > def __init__(self): > print("init Tst") > > > I run python

Re: A question on modification of a list via a function invocation

2017-09-06 Thread Chris Angelico
On Wed, Sep 6, 2017 at 7:01 PM, Gregory Ewing wrote: > Chris Angelico wrote: >> >> You can't do this with Python, since pointer arithmetic fundamentally >> doesn't exist. > > > Pointer arithmetic doesn't exist in Pascal either, yet > Pascal most definitely has

Using __init__.py

2017-09-06 Thread Kryptxy via Python-list
I am working on a (cross-platform) project. On linux system, the imprts work fine, but in windows I get imort error (I have no idea why. I tried searching everywhere, but couldn't get it to work). Anyways, the issue seem to be resolved by adding project directory to sys.path(). I wanted to

[issue30403] PEP 547: Running extension modules using -m switch

2017-09-06 Thread Stefan Behnel
Stefan Behnel added the comment: OTOH, if the created "module" is not a module object, then we could argue that the extension implementation is on its own with that case, and has to do its own re-execution safety checks. -- ___ Python tracker

[issue31336] Speed up _PyType_Lookup() for class creation

2017-09-06 Thread INADA Naoki
INADA Naoki added the comment: Confirmed: $ ./python-patched -m perf timeit --compare-to `pwd`/python -- 'class C: pass' python: . 11.9 us +- 0.1 us python-patched: . 10.3 us +- 0.1 us Mean +- std dev: [python] 11.9 us +- 0.1 us -> [python-patched] 10.3

[issue31365] Multiplication issue with 16.1

2017-09-06 Thread Julie
New submission from Julie: Multipy 16.1 by 100 or 1000 returns a result to 13 decimal places. See example - >>> 16.2*1000 16200.0 >>> 16.1*1000 16100.0002 >>> 16.1*100 1610.2 >>> 16.1*10 161.0 >>> 16.2*1000 16200.0 -- assignee: terry.reedy components: IDLE

Re: A question on modification of a list via a function invocation

2017-09-06 Thread Steve D'Aprano
On Wed, 6 Sep 2017 07:13 pm, Rustom Mody wrote: > Can you explain what "id" and "is" without talking of memory? Yes. id() returns an abstract ID number which is guaranteed to be an integer, and guaranteed to be distinct for all objects which exist at the same time. When an object ceases to

Re: Using __init__.py

2017-09-06 Thread Steve D'Aprano
On Wed, 6 Sep 2017 07:30 pm, Kryptxy wrote: > I am working on a (cross-platform) project. On linux system, the imprts work > fine, but in windows I get imort error (I have no idea why. I tried searching > everywhere, but couldn't get it to work). Anyways, the issue seem to be > resolved by adding

[issue31330] argparse.RawTextHelpFormatter does not maintain lines separated by more than one newline

2017-09-06 Thread Elena Oat
Elena Oat added the comment: I've created a pull request. Could someone review it please? -- ___ Python tracker ___

Re: A question on modification of a list via a function invocation

2017-09-06 Thread Rustom Mody
On Wednesday, September 6, 2017 at 4:03:40 PM UTC+5:30, ROGER GRAYDON CHRISTMAN wrote: > On 5 Sep 2017 14:28:44, (Dennis Lee Bier) wrote: > > On 5 Sep 2017 17:57:18 GMT, > >> But what does "a C++ reference" refer to? > >> > > > Per Stroustrup (The C++ Programming Language 4th Ed, page 189)

[issue31355] Remove Travis CI macOS job: rely on buildbots

2017-09-06 Thread Antoine Pitrou
Antoine Pitrou added the comment: > I'm not aware of many (any?) instances yet where the Travis macOS instance > has caught a problem. It did help me on some delicate signals/threading issues. -- nosy: +pitrou ___ Python tracker

[issue31364] Possible problem with PR #3377

2017-09-06 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +benjamin.peterson ___ Python tracker ___ ___

Re: A question on modification of a list via a function invocation

2017-09-06 Thread Gregory Ewing
Steven D'Aprano wrote: But many (perhaps even most) people have no problem dealing with location as a metaphor, where being in two places (metaphorically) is no problem at all: - I am in love, in trouble and in denial all at once. Sometimes the word "in" implies physical location,

[issue31365] Multiplication issue with 16.1

2017-09-06 Thread Martin Panter
Martin Panter added the comment: The floating-point numbers are only accurate to about 16 digits. You probably just found a value that cannot be exactly represented. https://docs.python.org/3.3/faq/design.html#why-are-floating-point-calculations-so-inaccurate -- nosy: +martin.panter

[issue31365] Multiplication issue with 16.1

2017-09-06 Thread Julie
Julie added the comment: Thank you Martin, makes sense now that I have read the documentation. Julie -- ___ Python tracker ___

Re: Please improve these comprehensions (was meaning of [ ])

2017-09-06 Thread Gregory Ewing
Seems to me you're making life difficult for yourself (and very inefficient) by insisting on doing the whole computation with sets. If you want a set as a result, it's easy enough to construct one from the list at the end. -- Greg -- https://mail.python.org/mailman/listinfo/python-list

[issue31360] argparse mutually_exclusive_group under add_argument_group fails if part of parent_processor

2017-09-06 Thread Martin Panter
Martin Panter added the comment: Seems the same as two other open bugs: Issue 25882 and Issue 16807. -- nosy: +martin.panter resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> argparse help error: arguments created by add_mutually_exclusive_group() are

[issue31364] Possible problem with PR #3377

2017-09-06 Thread Antoine Pitrou
Antoine Pitrou added the comment: AppVeyor breaks as well: https://ci.appveyor.com/project/python/cpython/build/3.7.0a0.5986#L200 -- nosy: +pitrou ___ Python tracker

[issue30403] PEP 547: Running extension modules using -m switch

2017-09-06 Thread Petr Viktorin
Petr Viktorin added the comment: Do we have a use case for this? I'd rather avoid making it easy to do the wrong thing, unless it's needed. -- ___ Python tracker

[issue30316] test_default_timeout() of test_threading.BarrierTests: random failures on AMD64 FreeBSD CURRENT Debug 3.x

2017-09-06 Thread Antoine Pitrou
Antoine Pitrou added the comment: Similar failure on AppVeyor: https://ci.appveyor.com/project/python/cpython/build/3.7.0a0.5987#L1146 -- nosy: +kristjan.jonsson, pitrou, tim.peters ___ Python tracker

Re: A question on modification of a list via a function invocation

2017-09-06 Thread Rustom Mody
On Wednesday, September 6, 2017 at 5:08:20 PM UTC+5:30, Steve D'Aprano wrote: > On Wed, 6 Sep 2017 07:13 pm, Rustom Mody wrote: > > > > Can you explain what "id" and "is" without talking of memory? > > Yes. > > id() returns an abstract ID number which is guaranteed to be an integer, and >

Re: A question on modification of a list via a function invocation

2017-09-06 Thread Rustom Mody
On Wednesday, September 6, 2017 at 5:48:48 PM UTC+5:30, Chris Angelico wrote: > On Wed, Sep 6, 2017 at 10:11 PM, Rustom Mody wrote: > > On Wednesday, September 6, 2017 at 5:08:20 PM UTC+5:30, Steve D'Aprano > > wrote: > >> On Wed, 6 Sep 2017 07:13 pm, Rustom Mody wrote: > >> > >> > >> > Can you

No importlib in Python 3 64 bit ?

2017-09-06 Thread Andrej Viktorovich
Hello, I have 32Bit and 64Bit installations on my Windows 10 machine. I do import importlib in both of them. 32bit works fine while 64bit prints error: >>> import importlib Traceback (most recent call last): File "", line 1, in File

[issue30403] PEP 547: Running extension modules using -m switch

2017-09-06 Thread Stefan Behnel
Stefan Behnel added the comment: Marcel proposed to disallow main-execution if the extension *might* return anything but a real object (not only if it actually does), but that seems excessive to me. The actual problem is that we consider it unsafe if the module is executed more than once,

Re: No importlib in Python 3 64 bit ?

2017-09-06 Thread Andrej Viktorovich
Found that pythons have different paths. It might be related? 64 bit C:\Users\me\AppData\Local\Programs\Python\Python36-32 C:\Users\me\AppData\Local\Programs\Python\Python36-32\DLLs C:\Users\me\AppData\Local\Programs\Python\Python36-32\Lib C:\Program Files\Python36\python36.zip C:\Program

[issue22559] [2.7] Backport ssl.MemoryBIO to Python 2.7 - PEP 546

2017-09-06 Thread Christian Heimes
Christian Heimes added the comment: #29781 must be backported to 2.7 to fix SSLSocket.version() -- dependencies: +SSLObject.version returns incorrect value before handshake. ___ Python tracker

Re: Using __init__.py

2017-09-06 Thread nopsidy
https://www.youtube.com/watch?v=pNe1wWeaHOU=PLYI8318YYdkCsZ7dsYV01n6TZhXA6Wf9i=1 Thank you, -Alex Goretoy http://launchpad.net/~a1g On Wed, Sep 6, 2017 at 6:42 PM, Steve D'Aprano wrote: > On Wed, 6 Sep 2017 07:30 pm, Kryptxy wrote: > >> I am working on a

[issue29781] SSLObject.version returns incorrect value before handshake.

2017-09-06 Thread Christian Heimes
Christian Heimes added the comment: New changeset 6da379bde345926e1f7318ead973767f4d791d3e by Christian Heimes in branch '3.6': [3.6] bpo-29781: Fix SSLObject.version before handshake (GH-3364) (#3381) https://github.com/python/cpython/commit/6da379bde345926e1f7318ead973767f4d791d3e

[issue27340] bytes-like objects with socket.sendall(), SSL, and http.client

2017-09-06 Thread Christian Heimes
Changes by Christian Heimes : -- pull_requests: +3392 ___ Python tracker ___ ___

[issue31364] Possible problem with PR #3377

2017-09-06 Thread Denis Osipov
Changes by Denis Osipov : -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___

[issue19084] No way to use TLS-PSK from python ssl

2017-09-06 Thread Christian Heimes
Christian Heimes added the comment: This feature request has been idle for almost four years. Although TLS-PSK is nice to have, it is not a priority for protocols such as HTTPS. I neither have time nor motivation to create a patch myself. Therefore I'm closing this issue of lack of activity.

[issue19084] No way to use TLS-PSK from python ssl

2017-09-06 Thread Christian Heimes
Changes by Christian Heimes : -- resolution: -> out of date stage: needs patch -> resolved status: open -> closed ___ Python tracker

[issue30867] Add macro `HAVE_OPENSSL_VERIFY_PARAM` to avoid invalid function declaration

2017-09-06 Thread Christian Heimes
Christian Heimes added the comment: OpenSSL 0.9.7 and earlier are no longer supported. In fact OpenSSL < 1.0.2 is no longer maintained by upstream OpenSSL developers. 2.7 is known to work with recent releases such as 0.9.8zh. 0.9.7 is definitely out of scope. -- resolution: -> wont

Re: A question on modification of a list via a function invocation

2017-09-06 Thread Rhodri James
On 06/09/17 14:02, Stefan Ram wrote: Chris Angelico writes: The 'is' operator tests if two things are the same thing. »Roughly speaking, to say of two things that they are identical is nonsense, and to say of one thing that it is identical with itself

[issue30331] TestPOP3_TLSClass: socket.timeout: timed out on AMD64 FreeBSD 10.x Shared 3.x

2017-09-06 Thread Christian Heimes
Christian Heimes added the comment: I'm removing the SSL component because it looks like an issue with either tests or buildbot. Please re-add the component if it is a bug in the ssl module. -- components: -SSL ___ Python tracker

[issue30437] SSL_shutdown can return meaningless SSL_ERROR_SYSCALL

2017-09-06 Thread Christian Heimes
Christian Heimes added the comment: If I understand the man page of SSL_shutdown correctly, than SSL_shutdown() must be called a second time when the first time returned 0. But it does not say how an application shall behave if the second call to SSL_shutdown() also returns 0. OpenSSL does

[issue11943] Add TLS-SRP (RFC 5054) support to ssl, _ssl, http, and urllib

2017-09-06 Thread Christian Heimes
Christian Heimes added the comment: This feature request has been idle for five years. Although TLS-SRP is nice to have, it is not a priority for protocols such as HTTPS. I neither have time nor motivation to create a patch myself. Therefore I'm closing this issue of lack of activity. Please

[issue30525] Expose SCTs on TLS connections

2017-09-06 Thread Christian Heimes
Christian Heimes added the comment: +1 -- stage: -> needs patch type: -> enhancement ___ Python tracker ___

[issue13403] Option for XMLPRC Server to support HTTPS

2017-09-06 Thread Christian Heimes
Christian Heimes added the comment: This issue hasn't seen any serious activity in five years. The patch is outdated, too. Is anybody interested to take it? -- assignee: christian.heimes -> components: -SSL ___ Python tracker

[issue25115] SSL_set_verify_depth not exposed by the ssl module

2017-09-06 Thread Christian Heimes
Christian Heimes added the comment: The patch looks fairly simple, but what is your use case? I don't like to clobber the SSLContext with additional features. I have never been in a situation that required me to change the verify depths for chain building. Why do you want to restrict or

[issue24538] os.setxattr PermissionError on panfs propagates up causing `copystat`, `copytree`, and `pip install .` to fail unhepfully

2017-09-06 Thread Maxime Boissonneault
Changes by Maxime Boissonneault : -- nosy: +Maxime Boissonneault ___ Python tracker ___

[issue29505] Submit the re, json, & csv modules to oss-fuzz testing

2017-09-06 Thread Gregory P. Smith
Gregory P. Smith added the comment: alright, with that in, feel free to figure out the oss-fuzz configuration side and fire things up Devin. :) -- assignee: -> gregory.p.smith ___ Python tracker

[issue28196] ssl.match_hostname() should check for SRV-ID and URI-ID

2017-09-06 Thread Christian Heimes
Christian Heimes added the comment: Let OpenSSL handle this in the future. -- resolution: -> wont fix stage: test needed -> resolved status: open -> closed ___ Python tracker

[issue28671] SSL server requesting client certificates should send CA list

2017-09-06 Thread Christian Heimes
Changes by Christian Heimes : -- assignee: christian.heimes -> stage: -> needs patch versions: +Python 3.7 ___ Python tracker ___

[issue29470] ssl: SNI callbacks should not modify context objects

2017-09-06 Thread Christian Heimes
Christian Heimes added the comment: OK, let's update the documentation with a better example. Are you still interested to contribute a simple example? -- assignee: christian.heimes -> docs@python components: +Documentation -SSL nosy: +docs@python resolution: not a bug -> type: crash

[issue30912] python 3 git master fails to find libffi and build _ctypes on Mageia v6 x86-64

2017-09-06 Thread Zachary Ware
Zachary Ware added the comment: Thanks for the patch! -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___

[issue30912] python 3 git master fails to find libffi and build _ctypes on Mageia v6 x86-64

2017-09-06 Thread Zachary Ware
Zachary Ware added the comment: New changeset 6d51b876121e472d4372496d609a26d7e3081c51 by Zachary Ware (Shlomi Fish) in branch 'master': bpo-30912: Don't check the content of ffi.h (GH-2687) https://github.com/python/cpython/commit/6d51b876121e472d4372496d609a26d7e3081c51 --

[issue31370] Remove support for threads-less builds

2017-09-06 Thread Antoine Pitrou
New submission from Antoine Pitrou: The --without-threads option has a lot of repercussions on the code base, forcing us to maintain specific paths for builds with threads disabled, for no useful purpose. -- components: Build, Interpreter Core messages: 301518 nosy: gregory.p.smith,

[issue31370] Remove support for threads-less builds

2017-09-06 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- pull_requests: +3398 ___ Python tracker ___ ___

[issue28671] SSL server requesting client certificates should send CA list

2017-09-06 Thread Christian Heimes
Christian Heimes added the comment: It sounds like a sensible request. Documentation links: https://wiki.openssl.org/index.php/Manual:SSL_CTX_set_client_CA_list(3) https://wiki.openssl.org/index.php/Manual:SSL_load_client_CA_file(3) -- nosy: +alex, dstufft, janssen

[issue29413] ssl.SSLSocket.unwrap() is not flexible enough

2017-09-06 Thread Christian Heimes
Christian Heimes added the comment: Patches welcome! I don't have resources to work on a patch -- assignee: christian.heimes -> nosy: +alex, dstufft, janssen versions: +Python 3.7 -Python 3.5 ___ Python tracker

[issue30381] test_smtpnet.test_connect_using_sslcontext_verified() randomly failed with "smtplib.SMTPServerDisconnected: Connection unexpectedly closed" on AMD64 FreeBSD CURRENT Debug 3.x

2017-09-06 Thread Christian Heimes
Christian Heimes added the comment: Probably not a bug in the SSL module -- assignee: christian.heimes -> components: -SSL type: -> behavior ___ Python tracker

[issue30737] Update devguide link to the new URL

2017-09-06 Thread Roundup Robot
Changes by Roundup Robot : -- pull_requests: +3397 ___ Python tracker ___

[issue22365] SSLContext.load_verify_locations(cadata) does not accept CRLs

2017-09-06 Thread Christian Heimes
Christian Heimes added the comment: I'd rather not overload cadata with cert and CRL loading. It makes both code and usage messy. How about crldata argument? This would be a new feature, though. -- versions: -Python 3.6 ___ Python tracker

[issue31178] [EASY] subprocess: TypeError: can't concat str to bytes, in _execute_child()

2017-09-06 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___

[issue22536] subprocess should include filename in FileNotFoundError exception

2017-09-06 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.6, Python 3.7 -Python 3.4, Python 3.5 ___ Python tracker

[issue23863] Fix EINTR Socket Module issues in 2.7

2017-09-06 Thread Gregory P. Smith
Gregory P. Smith added the comment: Unassigning because i'm unlikely to get to this in 2.7, it is better to concentrate on ensuring that 3.x stays signal safe. -- assignee: gregory.p.smith -> ___ Python tracker

[issue31369] re.RegexFlag is not included in __all__

2017-09-06 Thread Pieter-Jan Briers
New submission from Pieter-Jan Briers: It exists and its flags are exported, but not the direct classes itself. This seems inconsistent to me and fixing it would make things like using static typing on it just a little bit easier. -- components: Regular Expressions messages: 301516

[issue31370] Remove support for threads-less builds

2017-09-06 Thread Antoine Pitrou
Antoine Pitrou added the comment: See discussion in https://mail.python.org/pipermail/python-dev/2017-September/149156.html -- ___ Python tracker ___

[issue28453] SSLObject.selected_alpn_protocol() not documented

2017-09-06 Thread Christian Heimes
Christian Heimes added the comment: Yes, please. I'd appreciate a PR with a documentation update. -- versions: +Python 2.7 -Python 3.5 ___ Python tracker

[issue1025395] email.Utils.parseaddr fails to parse valid addresses

2017-09-06 Thread Alexander Mohr
Alexander Mohr added the comment: looks like these were meant to be internal methods, retracting new issues -- ___ Python tracker ___

[issue29824] Hostname validation in SSL match_hostname()

2017-09-06 Thread Christian Heimes
Christian Heimes added the comment: Thanks Alex! Let's get not in the business to verify TLDs. -- resolution: -> wont fix stage: -> resolved status: open -> closed ___ Python tracker

[issue29824] Hostname validation in SSL match_hostname()

2017-09-06 Thread Alex Gaynor
Alex Gaynor added the comment: An additional problem in (2) is that a cert for *.google _is_ legal if the CA can prove that a single organization controls the entire TLD: https://crt.sh/?id=7668286 -- nosy: +Alex Gaynor ___ Python tracker

[issue29396] Re-opening /dev/tty breaks readline

2017-09-06 Thread Martin Panter
Martin Panter added the comment: I think the difference between Python 2 and 3 here is that Python 2’s file objects, including sys.stdin, wrap C library FILE objects, which is supported by the Readline library. However Python 3 has its own kind of file objects, independent of standard C and

[issue28191] Support RFC4985 SRVName in SAN name

2017-09-06 Thread Christian Heimes
Christian Heimes added the comment: FYI, I opened an upstream PR in OpenSSL to add SRVName: https://github.com/openssl/openssl/pull/4342 -- ___ Python tracker

[issue29236] 'an ASCII string of one or more PEM-encoded certificates' needs to be unicode

2017-09-06 Thread Christian Heimes
Changes by Christian Heimes : -- components: -SSL ___ Python tracker ___ ___

[issue29588] importing ssl can fail with NameError: name 'PROTOCOL_TLS' is not defined

2017-09-06 Thread Christian Heimes
Changes by Christian Heimes : -- resolution: -> works for me stage: -> resolved status: open -> closed type: -> behavior ___ Python tracker

[issue29394] Cannot tunnel TLS connection through TLS connection

2017-09-06 Thread Christian Heimes
Christian Heimes added the comment: A documentation update wouldn't hurt, though. -- assignee: christian.heimes -> docs@python components: +Documentation -SSL nosy: +docs@python versions: -Python 3.5 ___ Python tracker

[issue31368] RWF_NONBLOCK

2017-09-06 Thread YoSTEALTH
New submission from YoSTEALTH: Asynchronous, Non-blocking Buffered File Read "RWF_NONBLOCK" flag for os.open() Link: https://lwn.net/Articles/612483/ https://lwn.net/Articles/613068/ https://lwn.net/Articles/636967/ -- messages: 301508 nosy: YoSTEALTH priority: normal severity: normal

[issue31120] [2.7] Python 64 bit _ssl compile fails due missing buildinf_amd64.h

2017-09-06 Thread Christian Heimes
Changes by Christian Heimes : -- components: -SSL stage: -> needs patch ___ Python tracker ___

[issue31178] [EASY] subprocess: TypeError: can't concat str to bytes, in _execute_child()

2017-09-06 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset 3bad1650a03fdc8cfdd4cce154e1b2c07e3e4fa0 by Gregory P. Smith in branch '3.6': [3.6] bpo-31178: Avoid concatenating bytes with str in subprocess error (GH-3066) (#3388)

[issue29212] Python 3.6 logging thread name regression with concurrent.future threads

2017-09-06 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___

[issue31370] Remove support for threads-less builds

2017-09-06 Thread Antoine Pitrou
Antoine Pitrou added the comment: Question: should we keep Modules/Setup.config.in? It's going to become empty: https://github.com/python/cpython/blob/master/Modules/Setup.config.in -- ___ Python tracker

[issue29505] Submit the re, json, & csv modules to oss-fuzz testing

2017-09-06 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset c5bace2bf7874cf47ef56e1d8d19f79ad892eef5 by Gregory P. Smith (Devin Jeanpierre) in branch 'master': bpo-29505: Add fuzz tests for float(str), int(str), unicode(str) (#2878)

[issue26612] test_ssl: use context manager (with) to fix ResourceWarning

2017-09-06 Thread Christian Heimes
Christian Heimes added the comment: Victor, are you still interested to fix this issue? -- assignee: christian.heimes -> haypo versions: +Python 3.7 ___ Python tracker

[issue15464] ssl: add set_msg_callback function

2017-09-06 Thread Christian Heimes
Christian Heimes added the comment: I talked with other ssl module maintainers. We agreed that the debug callback is out of scope for Python stdlib. The ssl does not try to be an all-encompassing wrapper of OpenSSL. -- resolution: -> rejected stage: patch review -> resolved status:

[issue30437] SSL_shutdown can return meaningless SSL_ERROR_SYSCALL

2017-09-06 Thread Nathaniel Smith
Nathaniel Smith added the comment: My reading of the man page is that if SSL_shutdown returns 0, this means that it succeeded at doing the first phase of shutdown. If there are errors then they should be ignored, because it actually succeeded. If you want to then complete the second phase of

[issue29781] SSLObject.version returns incorrect value before handshake.

2017-09-06 Thread Christian Heimes
Changes by Christian Heimes : -- resolution: -> fixed stage: -> resolved status: open -> closed type: -> behavior ___ Python tracker

  1   2   3   >