Re: Should nested classes in an Enum be Enum members?

2018-06-28 Thread Steven D'Aprano
On Thu, 28 Jun 2018 18:33:31 -0700, Ethan Furman wrote: > On 06/28/2018 05:58 PM, Ben Finney wrote: > >> So I remain dumbfounded as to why anyone would want a class to *both* >> be an enumerated type, *and* have callable attributes in its API. > > Perhaps I am using Enum incorrectly, but here

Re: EXTERNAL: OSError: [Errno 48] Address already in use

2018-06-28 Thread Marko Rauhamaa
Dan Stromberg : > [on how SO_REUSEADDR is a security risk] > Start an echo server process P that listens on tcp/. > > Initiate a connection from a client machine to process P at tcp/. It > works as expected. > > Kill P. > > Initiate a connection from a client machine to process P at

[issue14117] Turtledemo: exception and minor glitches.

2018-06-28 Thread Terry J. Reedy
Change by Terry J. Reedy : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue33995] test_min_max_version in test_ssl.py fails when Python is built against LibreSSL; {min,max}imum_version behavior differs from OpenSSL

2018-06-28 Thread Alan Huang
New submission from Alan Huang : LibreSSL's implementation of the function used to get the minimum and maximum SSL versions supported differs from OpenSSL's. In short, the issue is in the implementations of `SSL_CTX_new` - OpenSSL initializes variables `ret->{min,max}_proto_version` to 0,

[issue14117] Turtledemo: exception and minor glitches.

2018-06-28 Thread miss-islington
miss-islington added the comment: New changeset 00e05242ae650bc29e8052a5fb79cbb83224a657 by Miss Islington (bot) in branch '3.6': bpo-14117: Make minor tweaks to turtledemo (GH-8002) https://github.com/python/cpython/commit/00e05242ae650bc29e8052a5fb79cbb83224a657 --

[issue14117] Turtledemo: exception and minor glitches.

2018-06-28 Thread miss-islington
miss-islington added the comment: New changeset e2c5a753fa3eabe176c34048e3b68674f99386b0 by Miss Islington (bot) in branch '3.7': bpo-14117: Make minor tweaks to turtledemo (GH-8002) https://github.com/python/cpython/commit/e2c5a753fa3eabe176c34048e3b68674f99386b0 -- nosy:

[issue33994] python build egg fails with error while compiling test cases

2018-06-28 Thread Saba Kauser
New submission from Saba Kauser : Hello, Everything was working perfectly until recently, may be a week back, when I first started to see the error while generating egg for python ibm_db package. Every time I execute the command : python setup.py bdsit_egg, my flow stops with below error:

[issue14117] Turtledemo: exception and minor glitches.

2018-06-28 Thread miss-islington
Change by miss-islington : -- pull_requests: +7611 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue14117] Turtledemo: exception and minor glitches.

2018-06-28 Thread miss-islington
Change by miss-islington : -- pull_requests: +7610 stage: commit review -> patch review ___ Python tracker ___ ___ Python-bugs-list

[issue14117] Turtledemo: exception and minor glitches.

2018-06-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 891a1f86d415779cf67ca23e626a868e586feb05 by Terry Jan Reedy in branch 'master': bpo-14117: Make minor tweaks to turtledemo (GH-8002) https://github.com/python/cpython/commit/891a1f86d415779cf67ca23e626a868e586feb05 --

[issue32545] Unable to install Python 3.7.0a4 on Windows 10 - Error 0x80070643: Failed to install MSI package.

2018-06-28 Thread Steve Dower
Steve Dower added the comment: We'll need you to attach the logs and try rebooting, as described earlier in this thread. -- ___ Python tracker ___

Re: [OT] Why are BBSes? [was Where's the junk coming from?]

2018-06-28 Thread Terry Reedy
On 6/28/2018 9:05 PM, Avon wrote: On 06/28/18, Grant Edwards pondered and said... GE> OK, I've got to ask... GE> Why are there still BBSes? GE> GE> Who even has a modem these days? [OK, I'll admit my 11 year old GE> Thinkpad T500 has a built-in POTS modem, but it's never been

[issue14117] Turtledemo: exception and minor glitches.

2018-06-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: PR 8002 fixes the remaining minor problems. -- stage: patch review -> commit review versions: +Python 3.6, Python 3.7, Python 3.8 -Python 2.7, Python 3.4, Python 3.5 ___ Python tracker

[issue14117] Turtledemo: exception and minor glitches.

2018-06-28 Thread Terry J. Reedy
Change by Terry J. Reedy : -- pull_requests: +7609 stage: needs patch -> patch review ___ Python tracker ___ ___ Python-bugs-list

Re: Should nested classes in an Enum be Enum members?

2018-06-28 Thread Ben Finney
Ethan Furman writes: > On 06/28/2018 05:58 PM, Ben Finney wrote: > > > So I remain dumbfounded as to why anyone would want a class to *both* be > > an enumerated type, *and* have callable attributes in its API. > > Perhaps I am using Enum incorrectly, but here is my FederalHoliday > Enum. […]

[issue14117] Turtledemo: exception and minor glitches.

2018-06-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: #21884 was closed as a duplicate of #21882 and hence not a separate dependency. -- ___ Python tracker ___

[issue22051] Turtledemo: stop reloading demos

2018-06-28 Thread Terry J. Reedy
Change by Terry J. Reedy : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue27500] ProactorEventLoop cannot open connection to ::1

2018-06-28 Thread miss-islington
miss-islington added the comment: New changeset c00144cd7741a5060662e85717f6559ad46d02aa by Miss Islington (bot) in branch '3.6': bpo-27500: Fix static version of getaddrinfo to resolve IPv6 (GH-7993) https://github.com/python/cpython/commit/c00144cd7741a5060662e85717f6559ad46d02aa

[issue27500] ProactorEventLoop cannot open connection to ::1

2018-06-28 Thread miss-islington
miss-islington added the comment: New changeset 3ed44141216aa1d2d8dd7d170c2dc216a6e718b6 by Miss Islington (bot) in branch '3.7': bpo-27500: Fix static version of getaddrinfo to resolve IPv6 (GH-7993) https://github.com/python/cpython/commit/3ed44141216aa1d2d8dd7d170c2dc216a6e718b6

[issue27500] ProactorEventLoop cannot open connection to ::1

2018-06-28 Thread miss-islington
Change by miss-islington : -- pull_requests: +7608 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue27500] ProactorEventLoop cannot open connection to ::1

2018-06-28 Thread miss-islington
Change by miss-islington : -- pull_requests: +7607 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue27500] ProactorEventLoop cannot open connection to ::1

2018-06-28 Thread Yury Selivanov
Yury Selivanov added the comment: New changeset d904c238ca3551750cb97d15d827c3e525970867 by Yury Selivanov in branch 'master': bpo-27500: Fix static version of getaddrinfo to resolve IPv6 (GH-7993) https://github.com/python/cpython/commit/d904c238ca3551750cb97d15d827c3e525970867 --

Re: Should nested classes in an Enum be Enum members?

2018-06-28 Thread Ethan Furman
On 06/28/2018 05:58 PM, Ben Finney wrote: So I remain dumbfounded as to why anyone would want a class to *both* be an enumerated type, *and* have callable attributes in its API. Perhaps I am using Enum incorrectly, but here is my FederalHoliday Enum. Note that date(), next_business_day, and

Re: [OT] Why are BBSes? [was Where's the junk coming from?]

2018-06-28 Thread Avon
On 06/28/18, Grant Edwards pondered and said... GE> OK, I've got to ask... GE> Why are there still BBSes? GE> GE> Who even has a modem these days? [OK, I'll admit my 11 year old GE> Thinkpad T500 has a built-in POTS modem, but it's never been used.] Hi Grant. How long do you have? :)

Re: Where's the junk coming from?

2018-06-28 Thread Avon
On 06/28/18, Tim Golden pondered and said... TG> (Wearing my List Moderator hat) TG> TG> Thanks very much for addressing this for us, and to Cameron and others TG> who did the detective work. I admit I assumed at first it was some kind TG> of odd attack perhaps related to a dissatisfied

Re: Should nested classes in an Enum be Enum members?

2018-06-28 Thread Steven D'Aprano
On Thu, 28 Jun 2018 20:34:58 +1000, Ben Finney wrote: > Ethan Furman writes: > >> Consider the following Enum definition: >> >> class Color(Enum): >> RED = 1 >> GREEN = 2 >> BLUE = 3 >> @property >> def lower(self): >> return self.name.lower() >>

Re: EXTERNAL: OSError: [Errno 48] Address already in use

2018-06-28 Thread Dan Stromberg
On Thu, Jun 28, 2018 at 1:27 PM, Marko Rauhamaa wrote: > Dan Stromberg : > > On Wed, Jun 27, 2018 at 10:31 PM, Marko Rauhamaa > wrote: > >> Dan Stromberg : > >> >> > The problem can be solved by turning on the SO_REUSEADDR flag of > >> >> > the socket. > >> > BTW, it's a security feature you're

[issue33993] zipfile module weird behavior when used with zipinfo

2018-06-28 Thread Micheal Gardner
New submission from Micheal Gardner : when i want to zip a empty folder, i use following code ``` import zipfile zfile = zipfile.ZipFile("tmp.zip",'w') zif = zipfile.ZipInfo("tmp/") zfile.writestr(zif,"") zfile.close() ``` but in this case, things become weird. ``` # 先造一个测试文件夹 mkdir

Re: Should nested classes in an Enum be Enum members?

2018-06-28 Thread Steven D'Aprano
On Thu, 28 Jun 2018 08:36:47 -0700, Ethan Furman wrote: >>> Answer: >>> >>> - RED, GREEN, and BLUE are members >>> - lower and spam() are not >>> - SomeClass /is/ a member (but not its instances) >> >> Is that by accident or by design? > > By design. It is entirely possible to want

Re: Should nested classes in an Enum be Enum members?

2018-06-28 Thread Ben Finney
Ian Kelly writes: > On Thu, Jun 28, 2018 at 4:38 AM Ben Finney wrote: > > > > Ethan Furman writes: > > > > Specifically, I can't make sense of why someone would want to have a > > class that is simultaneously behaving as an enumerated type, *and* > > has an API of custom callable attributes. >

[issue33993] zipfile module weird behavior when used with zipinfo

2018-06-28 Thread Micheal Gardner
Change by Micheal Gardner : -- components: Library (Lib) nosy: Micheal Gardner priority: normal severity: normal status: open title: zipfile module weird behavior when used with zipinfo type: behavior versions: Python 2.7, Python 3.6 ___ Python

Re: I lost nearly all my modules installing 3.7

2018-06-28 Thread Terry Reedy
On 6/28/2018 6:45 PM, Elliott Roper wrote: On 28 Jun 2018, Terry Reedy wrote There is a pip command for making an editable file of installed packages. Run that in 3.6, perhaps after updating everything. There is another pip command for using that file to install everything listed. Run that

Re: EXTERNAL: OSError: [Errno 48] Address already in use

2018-06-28 Thread Steven D'Aprano
On Thu, 28 Jun 2018 23:27:38 +0300, Marko Rauhamaa wrote: > Dan Stromberg : >> On Wed, Jun 27, 2018 at 10:31 PM, Marko Rauhamaa >> wrote: >>> Dan Stromberg : >>> >> > The problem can be solved by turning on the SO_REUSEADDR flag of >>> >> > the socket. >>> > BTW, it's a security feature you're

Re: configparser v/s file variables

2018-06-28 Thread Jim Lee
On 06/28/18 16:44, Steven D'Aprano wrote: I agree with you that it's a bad idea. Aside from the little fact that you described concerns about using Python code for settings as "silly". Umm, no.  I said that worrying about arbitrary code execution in an interpreted language seemed silly. 

[issue33991] lib2to3 should parse f-strings

2018-06-28 Thread Steven D'Aprano
Steven D'Aprano added the comment: I'm curious how you are getting f-strings (introduced in Python 3.6) in Python 2 code that you are passing to 2to3. -- nosy: +steven.daprano ___ Python tracker

Re: configparser v/s file variables

2018-06-28 Thread Steven D'Aprano
On Thu, 28 Jun 2018 10:58:36 -0700, Jim Lee wrote: > On 06/28/18 07:30, Grant Edwards wrote: >> I still maintain it's a bad idea to run arbitrary code found in >> user-edited config files. >> >> There may be cases where somebody has figured out how to muck with a >> config file that's shared

[issue33992] Compilation fails on AMD64 Windows8.1 Non-Debug 3.6: The Windows SDK version 10.0.15063.0 was not found

2018-06-28 Thread Zachary Ware
Zachary Ware added the comment: Sorry, this seems to have been due to updates on the machine. It's now fixed. -- keywords: +buildbot resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker

[issue33992] Compilation fails on AMD64 Windows8.1 Non-Debug 3.6: The Windows SDK version 10.0.15063.0 was not found

2018-06-28 Thread STINNER Victor
New submission from STINNER Victor : Build FAILED. "D:\buildarea\3.6.ware-win81-release\build\PCbuild\pcbuild.proj" (Build target) (1) -> "D:\buildarea\3.6.ware-win81-release\build\PCbuild\pythoncore.vcxproj" (Build target) (2) -> (Desktop_PlatformPrepareForBuild target)

Re: I lost nearly all my modules installing 3.7

2018-06-28 Thread Elliott Roper
On 28 Jun 2018, Terry Reedy wrote (in article): > On 6/28/2018 1:08 PM, Elliott Roper wrote: > > I have done something stupid. Don't know what. > > It appears that you ran 3.7 expecting that modules installed for 3.6 > would magically be available for 3.7. Yes indeed. It worked for 3.4, 3.5, and

[issue29097] [Windows] datetime.fromtimestamp(t) when 0 <= t <= 86399 fails on Python 3.6

2018-06-28 Thread STINNER Victor
Change by STINNER Victor : -- title: datetime.fromtimestamp(t) when 0 <= t <= 86399 fails on Python 3.6 -> [Windows] datetime.fromtimestamp(t) when 0 <= t <= 86399 fails on Python 3.6 ___ Python tracker

Re: [OT] Why are BBSes? [was Where's the junk coming from?]

2018-06-28 Thread Jim Lee
On 06/28/18 11:45, Grant Edwards wrote: On 2018-06-28, Jim Lee wrote: On 06/28/18 07:34, Grant Edwards wrote: OK, I've got to ask... Why are there still BBSes? Who even has a modem these days? [OK, I'll admit my 11 year old Thinkpad T500 has a built-in POTS modem, but it's never been

[issue33945] concurrent.futures ProcessPoolExecutor submit() blocks on results being written

2018-06-28 Thread Daniel Barcay
Daniel Barcay added the comment: Just got the drop of the python3.7 release. I can confirm that this is fixed in python3.7 in my workload. Nice job! Thanks for changing the mechanism of thread-sync. I'm grateful. -- resolution: -> fixed stage: -> resolved status: open -> closed

[issue33963] IDLE macosx: add tests.

2018-06-28 Thread Mark Roseman
Change by Mark Roseman : -- assignee: -> terry.reedy components: +IDLE nosy: +markroseman ___ Python tracker ___ ___

[issue33991] lib2to3 should parse f-strings

2018-06-28 Thread skreft
New submission from skreft : Currently f-strings are parsed just as regular strings by lib2to3. However, this has the problem that the invariant of a string node being a literal is now broken. This poses two problems. On one hand, if I want to compare that two string nodes are equivalent I

[ANN] PyYAML-4.1: ***RETRACTED***

2018-06-28 Thread Ingy dot Net
I am sorry to report that the PyYAML-4.1 release from 48 hours ago has been removed from PyPI There were too many problems to make this a viable release. The biggest known issue with this retraction is that PyYAML will not work with the new Python 3.7 until PyYAML-4.2 is released.

[issue23544] IDLE hangs when selecting Stack View with debug active

2018-06-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: This crashes or hangs the user execution process, but not the IDLE process. So Shell => 'Restart Shell cntl-F6' still works. -- versions: +Python 3.6, Python 3.7, Python 3.8 -Python 3.4, Python 3.5 ___ Python

[issue33990] CPPFLAGS during ./configure are not passed-through in sysconfig.customize_compiler

2018-06-28 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- nosy: +pablogsal ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

Re: EXTERNAL: OSError: [Errno 48] Address already in use

2018-06-28 Thread Marko Rauhamaa
Dan Stromberg : > On Wed, Jun 27, 2018 at 10:31 PM, Marko Rauhamaa wrote: >> Dan Stromberg : >> >> > The problem can be solved by turning on the SO_REUSEADDR flag of >> >> > the socket. >> > BTW, it's a security feature you're turning off. If you're on a >> > multiuser box, it prevents a second

[issue33983] unify types for lib2to3.pytree.Base.children

2018-06-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Concatenating list and tuple (or tuple and list) you can write as: grandchildren = [*node.children[0].children, *node.children[1].children] The only list methods not available for tuples are mutating methods (using them with a shared empty list would be a

Re: EXTERNAL: OSError: [Errno 48] Address already in use

2018-06-28 Thread Dan Stromberg
On Wed, Jun 27, 2018 at 10:31 PM, Marko Rauhamaa wrote: > Dan Stromberg : > >> > The problem can be solved by turning on the SO_REUSEADDR flag of > >> > the socket. > > BTW, it's a security feature you're turning off. If you're on a > > multiuser box, it prevents a second user from stealing

[issue33990] CPPFLAGS during ./configure are not passed-through in sysconfig.customize_compiler

2018-06-28 Thread Eric N. Vander Weele
Change by Eric N. Vander Weele : -- keywords: +patch pull_requests: +7606 stage: -> patch review ___ Python tracker ___ ___

[issue24575] timemodule build fail - missing definitions for _Py_BEGIN_SUPPRESS_IPH and _Py_END_SUPPRESS_IPH

2018-06-28 Thread Neil Schemenauer
Neil Schemenauer added the comment: I ran into an error like this and perhaps I have a clue was why some people run into it. Dynamic modules built from Modules/Setup will need to have -DPy_BUILD_CORE defined within the Setup file in the case they need to use the _Py_BEGIN_SUPPRESS_IPH

[issue33990] CPPFLAGS during ./configure are not passed-through in sysconfig.customize_compiler

2018-06-28 Thread Eric N. Vander Weele
New submission from Eric N. Vander Weele : When specifying CPPFLAGS during `./configure`, `sysconfig.get_config_var('CPPFLAGS')` does capture the originally specified flags. However, when building a C/C++ extension, any flags specified via CPPFLAGS are not present during compilation of

Re: OSError: [Errno 48] Address already in use

2018-06-28 Thread Dan Stromberg
On Wed, Jun 27, 2018 at 8:49 AM, T Berger wrote: > Why am I getting this error? I'm not sure what additional information I > need to supply, so please let me know. AIUI, there are 2 possible causes. You either have some other process listening on the requested port, or a process that Was

Re: [OT] Why are BBSes? [was Where's the junk coming from?]

2018-06-28 Thread Grant Edwards
On 2018-06-28, Jim Lee wrote: > > > On 06/28/18 07:34, Grant Edwards wrote: >> OK, I've got to ask... >> >> Why are there still BBSes? >> >> Who even has a modem these days? [OK, I'll admit my 11 year old >> Thinkpad T500 has a built-in POTS modem, but it's never been used.] >> > BBS's are most

[issue33983] unify types for lib2to3.pytree.Base.children

2018-06-28 Thread John Reese
John Reese added the comment: The problem I'm trying to solve is around functions that operate on a Union[Leaf, Node], and want to be able to do things like `grandchildren = node.children[0].children + node.children[1].children` (contrived example, but point being tuple+list=TypeError while

Re: configparser v/s file variables

2018-06-28 Thread Jim Lee
On 06/28/18 07:30, Grant Edwards wrote: I still maintain it's a bad idea to run arbitrary code found in user-edited config files. There may be cases where somebody has figured out how to muck with a config file that's shared among multiple users, or has tricked somebody into including

Re: [OT] Why are BBSes? [was Where's the junk coming from?]

2018-06-28 Thread Jim Lee
On 06/28/18 07:34, Grant Edwards wrote: OK, I've got to ask... Why are there still BBSes? Who even has a modem these days? [OK, I'll admit my 11 year old Thinkpad T500 has a built-in POTS modem, but it's never been used.] BBS's are most often connected to via telnet these days.  There are

[issue33985] ContextVar does not have a "name" attribute

2018-06-28 Thread Yury Selivanov
Change by Yury Selivanov : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

Re: configparser v/s file variables

2018-06-28 Thread Jim Lee
On 06/28/18 00:46, Steven D'Aprano wrote: Yes, attacks by trusted insiders are the hardest to defend against. Betrayal of trust sucks. Trusted users with sufficient privileges could just modify the source code of your application or of Python itself. They could also attack your system in a

[issue31546] PyOS_InputHook is not called when waiting for input() in Windows

2018-06-28 Thread Steve Dower
Steve Dower added the comment: New changeset 9d92524c11def666a78ff57a9603a9ad6142418a by Steve Dower (Miss Islington (bot)) in branch '3.7': bpo-31546: Fix input hook integration (GH-7978) https://github.com/python/cpython/commit/9d92524c11def666a78ff57a9603a9ad6142418a --

Re: I lost nearly all my modules installing 3.7

2018-06-28 Thread Terry Reedy
On 6/28/2018 1:08 PM, Elliott Roper wrote: I have done something stupid. Don't know what. It appears that you ran 3.7 expecting that modules installed for 3.6 would magically be available for 3.7. There is a pip command for making an editable file of installed packages. Run that in 3.6,

[issue31546] PyOS_InputHook is not called when waiting for input() in Windows

2018-06-28 Thread miss-islington
miss-islington added the comment: New changeset 0ebd1bc94a941a5044e26de946c1100d652dfe46 by Miss Islington (bot) in branch '3.6': bpo-31546: Fix input hook integration (GH-7978) https://github.com/python/cpython/commit/0ebd1bc94a941a5044e26de946c1100d652dfe46 -- nosy:

[issue33989] ms.key_compare is not initialized in all pathes of list_sort_impl

2018-06-28 Thread Pochang Chen
New submission from Pochang Chen : Relevant code (Objects/listobject.c lines 2268 -- 2286 as of commit e76ac9d): /* Choose the best compare, given what we now know about the keys. */ if (keys_are_all_same_type) { if (key_type == _Type && strings_are_latin) {

[issue33985] ContextVar does not have a "name" attribute

2018-06-28 Thread miss-islington
miss-islington added the comment: New changeset 4c20d2bf5d174260558c71052b73d73b6c34 by Miss Islington (bot) in branch '3.7': bpo-33985: Implement ContextVar.name attribute. (GH-7980) https://github.com/python/cpython/commit/4c20d2bf5d174260558c71052b73d73b6c34 -- nosy:

[issue29097] datetime.fromtimestamp(t) when 0 <= t <= 86399 fails on Python 3.6

2018-06-28 Thread Eryk Sun
Change by Eryk Sun : -- stage: needs patch -> patch review versions: +Python 3.7, Python 3.8 ___ Python tracker ___ ___

Re: overlooked patch?

2018-06-28 Thread Terry Reedy
Yep. We do not have enough people reviewing patches. Perhaps you could do so with this one. On 6/28/2018 12:02 PM, Marco Prosperi wrote: hello, just to give evidence that there is a bug in python 3.6/3.7 for which there is a patch prepared a long time ago but probably it has never been

[issue33985] ContextVar does not have a "name" attribute

2018-06-28 Thread miss-islington
Change by miss-islington : -- pull_requests: +7605 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33985] ContextVar does not have a "name" attribute

2018-06-28 Thread Yury Selivanov
Change by Yury Selivanov : -- priority: release blocker -> high ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue33985] ContextVar does not have a "name" attribute

2018-06-28 Thread Yury Selivanov
Yury Selivanov added the comment: New changeset 41cb0baea96a80360971908a0bd79d9d40dd5e44 by Yury Selivanov in branch 'master': bpo-33985: Implement ContextVar.name attribute. (GH-7980) https://github.com/python/cpython/commit/41cb0baea96a80360971908a0bd79d9d40dd5e44 --

I lost nearly all my modules installing 3.7

2018-06-28 Thread Elliott Roper
I have done something stupid. Don't know what. My $PATH looks like this XXXMac:~ elliott$ echo $PATH /Library/Frameworks/Python.framework/Versions/3.7/bin:/Library/Frameworks/Pyth on.framework/Versions/3.6/bin:/Library/Frameworks/Python.framework/Versions/3.

[issue27500] ProactorEventLoop cannot open connection to ::1

2018-06-28 Thread Yury Selivanov
Yury Selivanov added the comment: > Somebody please submit a PR so this can be fixed in 3.7.1 and the fix can > be backported to 3.6.7. Somehow I overlooked this one when I was sifting the issues we needed to fix in 3.7. I've opened a PR. -- priority: normal -> high

[issue27500] ProactorEventLoop cannot open connection to ::1

2018-06-28 Thread Yury Selivanov
Change by Yury Selivanov : -- keywords: +patch pull_requests: +7604 stage: -> patch review ___ Python tracker ___ ___

[issue28411] Eliminate PyInterpreterState.modules.

2018-06-28 Thread Roundup Robot
Change by Roundup Robot : -- pull_requests: +7603 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue27500] ProactorEventLoop cannot open connection to ::1

2018-06-28 Thread Guido van Rossum
Guido van Rossum added the comment: Somebody please submit a PR so this can be fixed in 3.7.1 and the fix can be backported to 3.6.7. -- ___ Python tracker ___

Re: Should nested classes in an Enum be Enum members?

2018-06-28 Thread Ian Kelly
On Thu, Jun 28, 2018 at 4:38 AM Ben Finney wrote: > > Ethan Furman writes: > > > Consider the following Enum definition: > > > > class Color(Enum): > > RED = 1 > > GREEN = 2 > > BLUE = 3 > > @property > > def lower(self): > > return self.name.lower() > >

[issue31546] PyOS_InputHook is not called when waiting for input() in Windows

2018-06-28 Thread miss-islington
Change by miss-islington : -- pull_requests: +7602 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue31546] PyOS_InputHook is not called when waiting for input() in Windows

2018-06-28 Thread miss-islington
Change by miss-islington : -- pull_requests: +7601 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue31546] PyOS_InputHook is not called when waiting for input() in Windows

2018-06-28 Thread Steve Dower
Steve Dower added the comment: New changeset 9b9d58f0d88b338eb8d2ae0da5cd91d60d1b0e39 by Steve Dower (Thomas A Caswell) in branch 'master': bpo-31546: Fix input hook integration (GH-7978) https://github.com/python/cpython/commit/9b9d58f0d88b338eb8d2ae0da5cd91d60d1b0e39 --

overlooked patch?

2018-06-28 Thread Marco Prosperi
hello, just to give evidence that there is a bug in python 3.6/3.7 for which there is a patch prepared a long time ago but probably it has never been applied because the status/stage of the bug is 'needs patch'. https://bugs.python.org/issue29097 Marco --

[issue32996] Improve What's New in 3.7

2018-06-28 Thread miss-islington
miss-islington added the comment: New changeset 48dc7527e32512a27a58107477926719ea4c589b by Miss Islington (bot) in branch '3.7': bpo-32996: Enhancements to What's New based on feedback (GH-7988) https://github.com/python/cpython/commit/48dc7527e32512a27a58107477926719ea4c589b --

[issue32996] Improve What's New in 3.7

2018-06-28 Thread miss-islington
Change by miss-islington : -- pull_requests: +7600 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue32996] Improve What's New in 3.7

2018-06-28 Thread Yury Selivanov
Yury Selivanov added the comment: New changeset 4d26c8a177d8ada440b3cfdfb1d0423ab5ca81a7 by Yury Selivanov (Elvis Pranskevichus) in branch 'master': bpo-32996: Enhancements to What's New based on feedback (GH-7988)

[issue32996] Improve What's New in 3.7

2018-06-28 Thread Elvis Pranskevichus
Change by Elvis Pranskevichus : -- pull_requests: +7599 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33963] IDLE macosx: add tests.

2018-06-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: Mark Roseman emailed me that moving the 3 imports within overrideRootMenu to the top of the module does not appear to cause a problem. -- ___ Python tracker

Re: Should nested classes in an Enum be Enum members?

2018-06-28 Thread Ethan Furman
On 06/28/2018 01:11 AM, Steven D'Aprano wrote: On Wed, 27 Jun 2018 07:48:53 -0700, Ethan Furman wrote: [Note: there is a similar thread on Python-Ideas, if you would like to respond there.] Consider the following Enum definition: class Color(Enum): RED = 1 GREEN = 2

[issue6761] Class calling

2018-06-28 Thread Andrés Delfino
Andrés Delfino added the comment: The PR uses a slight rewording of David's phrasing. -- nosy: +adelfino versions: +Python 3.6, Python 3.7, Python 3.8 ___ Python tracker ___

[issue6761] Class calling

2018-06-28 Thread Andrés Delfino
Change by Andrés Delfino : -- keywords: +patch pull_requests: +7598 stage: needs patch -> patch review ___ Python tracker ___ ___

[issue33954] float.__format__('n') fails with _PyUnicode_CheckConsistency assertion error

2018-06-28 Thread STINNER Victor
STINNER Victor added the comment: > The bug is in _PyUnicode_InsertThousandsGrouping() This function should take a _PyUnicodeWriter as input, not a PyUnicodeObject. -- ___ Python tracker

[OT] Why are BBSes? [was Where's the junk coming from?]

2018-06-28 Thread Grant Edwards
On 2018-06-28, Kerr Avon wrote: > Yep confirming I found the issue lay with the sysop of a BBS that connects > to the gateway linked to news.bbs.nz OK, I've got to ask... Why are there still BBSes? Who even has a modem these days? [OK, I'll admit my 11 year old Thinkpad T500 has a built-in

Re: configparser v/s file variables

2018-06-28 Thread Grant Edwards
On 2018-06-28, Steven D'Aprano wrote: > So why give them the ability to escalate their privilege to that of > your application (which probably can do lots of things they can't > do) by directly executing Python code they supply? To be fair, that situation isn't common. The vast majority of

[issue33954] float.__format__('n') fails with _PyUnicode_CheckConsistency assertion error

2018-06-28 Thread Mark Dickinson
Change by Mark Dickinson : -- nosy: +eric.smith, mark.dickinson ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue32545] Unable to install Python 3.7.0a4 on Windows 10 - Error 0x80070643: Failed to install MSI package.

2018-06-28 Thread Amin Radjabov
Amin Radjabov added the comment: I have same issue on Win 7 x64 -- nosy: +Amin Radjabov ___ Python tracker ___ ___

[issue33932] Calling Py_Initialize() twice now triggers a fatal error (Python 3.7)

2018-06-28 Thread Miro Hrončok
Change by Miro Hrončok : -- nosy: +hroncok ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

Re: Something new which all programmers world wide will appreciate

2018-06-28 Thread Gene Heskett
On Thursday 28 June 2018 06:35:13 Alister via Python-list wrote: > On Wed, 27 Jun 2018 14:30:15 -0700, Rob Gaddi wrote: > > On 06/27/2018 02:14 PM, skybuck2...@hotmail.com wrote: > >> Now I don't like the French much ! LOL. > >> > >> But this time they have invented something which will fill > >>

[issue33932] Calling Py_Initialize() twice now triggers a fatal error (Python 3.7)

2018-06-28 Thread STINNER Victor
STINNER Victor added the comment: Ok, now with my regression hat. In Python 3.6, Py_Main() calls Py_Initialize(). If Py_Initialize() is called twice, the second call does nothing. So it's fine to call Py_Main() after Py_Initialize() in Python 3.6. --

[issue33932] Calling Py_Initialize() twice now triggers a fatal error (Python 3.7)

2018-06-28 Thread STINNER Victor
STINNER Victor added the comment: I looked quickly at _Py_InitializeCore() and I'm not sure that it's designed to replace an existing configuration. Example: int Py_HashRandomizationFlag = 0; /* for -R and PYTHONHASHSEED */ (...) if (!core_config->use_hash_seed ||

[issue33932] Calling Py_Initialize() twice now triggers a fatal error (Python 3.7)

2018-06-28 Thread STINNER Victor
STINNER Victor added the comment: I reopen the issue because fontforge still fails on Python 3.7.0 final. fontforge calls Py_Initialize() and then calls Py_Main() which fails with an assertion: https://bugzilla.redhat.com/show_bug.cgi?id=1595421 The same code works well on Python 3.6, so

[issue33983] unify types for lib2to3.pytree.Base.children

2018-06-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Empty list takes more memory and more time for creating than an empty tuple (the latter is just a singleton). Since all Node and Leaf instances share the same children by default, making it a list is errorprone. What is the problem of having an empty

Re: Error Launching python 3.7.0

2018-06-28 Thread Mark Lawrence
On 28/06/18 10:14, ojas gupta wrote: I just downloaded and installed python 3.7.0 on my PC and whenever I tried to launch the application it showed "error" saying python runtime dll missing... and that too is happening despite i downloaded the official licenced product from python.org I

  1   2   >