Re: I lost nearly all my modules installing 3.7

2018-06-29 Thread Jim Lee
On 06/29/18 21:48, dieter wrote: I do not know "pkg-config". The name seems to indicate an operating system package; but, it might also be a Python extension package (less likely). I would start with the "matplotlib" installation instructions to look for information about it.

Re: Python27.dll module error from Python 2.7.15/PCbuild/get_externals.bat

2018-06-29 Thread Terry Reedy
On 6/29/2018 3:42 AM, amit.singh2...@gmail.com wrote: I am trying to compile the freshly downloaded Python 2.7.15. When the PCBuild/build.bat goes to pull-in the external modules along with their dependencies it encounters this error for each of the external modules.

Re: Python 3.7 Windows Help Behaviour

2018-06-29 Thread Terry Reedy
On 6/29/2018 6:14 AM, BlindAnagram wrote: In Python 3.7.0 on Windows the help file (python370.chm) displays with a fixed line length and does not adjust its line length when the user expands the help window horizontally. This behaviour is different to that of the Python 3.6 help file

Re: Where's the junk coming from?

2018-06-29 Thread Mark Lawrence
On 29/06/18 01:53, Avon wrote: 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

[issue25862] TextIOWrapper assertion failure after read() and SEEK_CUR

2018-06-29 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 0464de0f9a226cfa32b803e0326c12b2432aba26 by Serhiy Storchaka (Zackery Spytz) in branch '2.7': [2.7] bpo-25862: Fix assertion failures in io.TextIOWrapper.tell(). (GH-3918). (GH-8013)

[issue33700] [doc] Old version picker don't understand language tags in URL

2018-06-29 Thread Larry Hastings
Larry Hastings added the comment: Doc fixes are generally okay in security-fixes-only branches. Obviously I'd want to review it before it went in; it sounds like a simple change (one line change to an RE?), so you can send me a PR or just post it here if you want a pre-review. --

[issue28657] cmd.Cmd.get_help() implementation can't see do_*() methods added dynamically by setattr()

2018-06-29 Thread Rémi Lapeyre
Change by Rémi Lapeyre : -- keywords: +patch pull_requests: +7623 stage: -> patch review ___ Python tracker ___ ___

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

2018-06-29 Thread Eric Snow
Eric Snow added the comment: > I looked quickly at _Py_InitializeCore() and I'm not sure > that it's designed to replace an existing configuration. > ... > So maybe for this specific case, _Py_InitializeCore() should > always set Py_HashRandomizationFlag. +1 At the same time, the use of

[issue34002] minor efficiency and clarity improvements in email package

2018-06-29 Thread Michael Selik
Change by Michael Selik : -- keywords: +patch pull_requests: +7620 stage: -> patch review ___ Python tracker ___ ___

[issue34002] minor efficiency and clarity improvements in email package

2018-06-29 Thread Michael Selik
New submission from Michael Selik : The primary motivation for these improvements was avoiding a while/pop pattern for looping. A for-loop is a big improvement over copying a list, then repeatedly popping the 0th element. A lesser improvement is the use of ``a.intersection(b)`` instead of

[issue34003] csv.DictReader can return basic dict instead of OrderedDict

2018-06-29 Thread Michael Selik
Change by Michael Selik : -- components: +Library (Lib) ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34003] csv.DictReader can return basic dict instead of OrderedDict

2018-06-29 Thread Michael Selik
Change by Michael Selik : -- type: -> performance ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33949] tests: allow to select tests using loadTestsFromName

2018-06-29 Thread Terry J. Reedy
Terry J. Reedy added the comment: I have used test -m, but a point in favor of this proposal, for other people, is consistency with running unittest f:\dev\3x>python -m unittest idlelib.idle_test.test_autocomplete.AutoCompleteTest.test_init Running Debug|Win32 interpreter... .

[issue25862] TextIOWrapper assertion failure after read() and SEEK_CUR

2018-06-29 Thread Zackery Spytz
Change by Zackery Spytz : -- pull_requests: +7619 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34003] csv.DictReader can return basic dict instead of OrderedDict

2018-06-29 Thread Michael Selik
New submission from Michael Selik : Since dicts are now keeping insertion order as of 3.7, we can switch to the more efficient construction of dict rather than OrderedDict for each row in the CSV file. -- messages: 320734 nosy: selik priority: normal severity: normal status: open

[issue34003] csv.DictReader can return basic dict instead of OrderedDict

2018-06-29 Thread Michael Selik
Michael Selik added the comment: Pull request. https://github.com/python/cpython/pull/8014 -- ___ Python tracker ___ ___

[issue34003] csv.DictReader can return basic dict instead of OrderedDict

2018-06-29 Thread Michael Selik
Change by Michael Selik : -- keywords: +patch pull_requests: +7622 stage: -> patch review ___ Python tracker ___ ___

[issue28657] cmd.Cmd.get_help() implementation can't see do_*() methods added dynamically by setattr()

2018-06-29 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: Hi Błażej Michalik, can you confirm the attached patch fixed the issue for you? -- nosy: +remi.lapeyre ___ Python tracker ___

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

2018-06-29 Thread Ethan Furman
On 06/28/2018 10:52 PM, Steven D'Aprano wrote: On Thu, 28 Jun 2018 18:33:31 -0700, Ethan Furman wrote: Perhaps I am using Enum incorrectly, but here is my FederalHoliday Enum. Note that date(), next_business_day, and year() are all callables. The AutoEnum parent assigns values from 1 to n

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

2018-06-29 Thread Jim Lee
On 06/29/18 07:15, Dennis Lee Bieber wrote: On 6/28/2018 9:05 PM, Avon wrote: Being able to send messages by ham radio is useful in disasters as well as nostalgic. I just don't know what people are doing these days. Though I haven't heard much of the AX.25 Packet BBS systems in

[issue33927] Allow json.tool to have identical infile and outfile

2018-06-29 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: Hi Pablo, I added two tests to confirm that file descriptors do not link anymore. The tests are rather ugly but I'm not sure if it's possible to do better. Is this patch ok for you? -- ___ Python tracker

[issue33977] [Windows] test_compileall fails randomly with PermissionError: [WinError 5] Access is denied: (...).pyc

2018-06-29 Thread STINNER Victor
STINNER Victor added the comment: While the issue is rare, I am sure that there is a race condition. The bug maybe happens when other tests run in parallel. The test should work in its own temporary directory to no be bothered by other tests. --

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

2018-06-29 Thread Jim Lee
On 06/29/18 08:05, T Berger wrote: On Friday, June 29, 2018 at 10:45:10 AM UTC-4, T Berger wrote: On Thursday, June 28, 2018 at 1:21:32 AM UTC-4, T Berger wrote: Hi Guys, Thanks for all the suggestions. I found the problem. I had saved my program in IDLE and quit out of the shell, and then

[issue34002] minor efficiency and clarity improvements in email package

2018-06-29 Thread Michael Selik
Change by Michael Selik : -- components: +email nosy: +barry, r.david.murray versions: +Python 3.8 ___ Python tracker ___ ___

[issue34003] csv.DictReader can return basic dict instead of OrderedDict

2018-06-29 Thread Michael Selik
Michael Selik added the comment: I searched for previously submitted issues, but somehow didn't spot #32339. I'll do some searching for whether anyone uses ``move_to_end`` on DictReader rows and respond to the mailing list with a report. -- ___

[issue33998] random.randrange completely ignores the step argument when stop is None

2018-06-29 Thread Raymond Hettinger
Raymond Hettinger added the comment: My vote is for "that's just the way it is, it works fine for just about everyone most of the time". In pure Python code, it is expensive to try to handle or defend against all possible input variations. -- assignee: -> tim.peters nosy:

[issue25457] json dump fails for mixed-type keys when sort_keys is specified

2018-06-29 Thread James Edwards
Change by James Edwards : -- keywords: +patch pull_requests: +7617 stage: -> patch review ___ Python tracker ___ ___

[issue33997] multiprocessing Pool hangs in terminate()

2018-06-29 Thread Erik Wolf
Erik Wolf added the comment: To help get an idea of the racing condition I created a trace with several additional debug outputs in pool.py and connection.py "=== Creating new pool ===" marks a new start of a pool using the Pool.imap() function. The iteration is terminated at some

[issue33977] [Windows] test_compileall fails randomly with PermissionError: [WinError 5] Access is denied: (...).pyc

2018-06-29 Thread Terry J. Reedy
Terry J. Reedy added the comment: #20760 reported failures on Linux. I think one of these two issues should be closed. FWIW, I ran f:\dev\3x>python -m test -R 3:10 -m CommandLineTests test_compileall twice with no failures. -- nosy: +terry.reedy

[issue34003] csv.DictReader can return basic dict instead of OrderedDict

2018-06-29 Thread Eric V. Smith
Eric V. Smith added the comment: The dict and OrderedDict APIs are slightly different, although I'm not sure anyone cares. See #32339. In that PR https://github.com/python/cpython/pull/4904, Guido said to not make this change. See also the python-dev discussion at

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

2018-06-29 Thread Jim Lee
On 06/29/18 16:02, Cameron Simpson wrote: On 29Jun2018 10:36, Ethan Furman wrote: On 06/28/2018 10:52 PM, Steven D'Aprano wrote: On Thu, 28 Jun 2018 18:33:31 -0700, Ethan Furman wrote: Perhaps I am using Enum incorrectly, but here is my FederalHoliday Enum.  Note that date(),

Re: I lost nearly all my modules installing 3.7

2018-06-29 Thread Elliott Roper
On 29 Jun 2018, Terry Reedy wrote (in article): > 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

Baroque [was Re: Should nested classes in an Enum be Enum members?]

2018-06-29 Thread Steven D'Aprano
On Sat, 30 Jun 2018 09:02:37 +1000, Cameron Simpson wrote: > On 29Jun2018 10:36, Ethan Furman wrote: >>On 06/28/2018 10:52 PM, Steven D'Aprano wrote: >>>It isn't clear to me why FederalHoliday is an Enum, especially as the >>>API seems extremely baraque. >> >>Huh. I had to look that word up,

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

2018-06-29 Thread Dan Stromberg
On Thu, Jun 28, 2018 at 10:30 PM, Marko Rauhamaa wrote: > Well, the same security issue can be demonstrated without SO_REUSEADDR: > > The security issue can be real but is not directly related with > SO_REUSEADDR. > Yes, it can. It just takes longer. --

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

2018-06-29 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +elliot.gorokhovsky ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34005] Replace inspect.formatargspec by inspect.signature in xmlrpc module

2018-06-29 Thread Rémi Lapeyre
Change by Rémi Lapeyre : -- keywords: +patch pull_requests: +7624 stage: -> patch review ___ Python tracker ___ ___

[issue34005] Replace inspect.formatargspec by inspect.signature in xmlrpc module

2018-06-29 Thread Rémi Lapeyre
Change by Rémi Lapeyre : -- components: +Library (Lib), XML versions: +Python 3.8 ___ Python tracker ___ ___ Python-bugs-list

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

2018-06-29 Thread Cameron Simpson
On 29Jun2018 09:50, Jim Lee wrote: On 06/29/18 08:05, T Berger wrote: On Friday, June 29, 2018 at 10:45:10 AM UTC-4, T Berger wrote: On Thursday, June 28, 2018 at 1:21:32 AM UTC-4, T Berger wrote: I have to backtrack on my optimistic pronouncement. I know why I'm getting "address already in

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

2018-06-29 Thread Gregory Ewing
Cameron Simpson wrote: It tends to mean "weird", but perhaps a more nuanced phrasing might be unusual and strange, and usually connotes some degree of over complication. When used in a derogatory way it means "excessively elaborate". The Baroque period was characterised by extremely ornate

[issue28411] Eliminate PyInterpreterState.modules.

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

[issue34005] Replace inspect.formatargspec by inspect.signature in xmlrpc module

2018-06-29 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: Indeed, it is the exact same patch. Sorry about the duplicate. -- resolution: -> duplicate stage: patch review -> resolved status: open -> closed ___ Python tracker

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

2018-06-29 Thread Gregory Ewing
Ethan Furman wrote: They are the list of dates in which US banks are closed for electronic business (funds transfers and things). That sems like something that would be better specified in a configuration file than hard-wired into the code, in case the rules change. -- Greg --

[issue34007] test_gdb fails in s390x SLES buildbots

2018-06-29 Thread Pablo Galindo Salgado
New submission from Pablo Galindo Salgado : test_gdb is currently failing on the following buildbots: http://buildbot.python.org/all/#/builders/54/builds/465 http://buildbot.python.org/all/#/builders/66/builds/178 http://buildbot.python.org/all/#/builders/16/builds/1279

[issue33959] doc Remove time complexity mention from list Glossary entry

2018-06-29 Thread Raymond Hettinger
Raymond Hettinger added the comment: Let's leave this as-is. -- resolution: -> rejected stage: patch review -> resolved status: open -> closed ___ Python tracker ___

Re: Baroque [was Re: Should nested classes in an Enum be Enum members?]

2018-06-29 Thread Ethan Furman
On 06/29/2018 05:51 PM, Steven D'Aprano wrote: So not especially complimentary (sorry Ethan, but that was my first impression) but not *necessarily* a bad thing either. No worries! :) The Jargon File adjective that comes closest is probably gnarly: Wow, I haven't heard that word in a

[issue34004] Acquiring locks not interrupted by signals on musl libc

2018-06-29 Thread Joseph Sible
New submission from Joseph Sible : When Python is built on Alpine Linux or in any other configuration that uses musl libc, calls to Lock.acquire() can't be interrupted by signals. This bug is caught by test_lock_acquire_interruption and test_rlock_acquire_interruption in

[issue34005] Replace inspect.formatargspec by inspect.signature in xmlrpc module

2018-06-29 Thread Rémi Lapeyre
New submission from Rémi Lapeyre : xmlrpc still makes use of formatargspec which is deprecated since Python 3.5 and raises a deprecation warning: DeprecationWarning: `formatargspec` is deprecated since Python 3.5. Use `signature` and the `Signature` object directly The proposed patch replace

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

2018-06-29 Thread Cameron Simpson
On 29Jun2018 10:36, Ethan Furman wrote: On 06/28/2018 10:52 PM, Steven D'Aprano wrote: On Thu, 28 Jun 2018 18:33:31 -0700, Ethan Furman wrote: Perhaps I am using Enum incorrectly, but here is my FederalHoliday Enum. Note that date(), next_business_day, and year() are all callables. The

[issue34006] Windows HTML Help (chm) has fixed line length

2018-06-29 Thread Roel Schroeven
New submission from Roel Schroeven : Since 3.7 (and possibly 3.6.6) the .chm Windows help file uses fixed line lenghts, instead of properly adapting to the window width. Please revert to the old behavior. See screenshot: the empty space on the right is just silly. -- components:

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

2018-06-29 Thread Raymond Hettinger
Raymond Hettinger added the comment: Do you want to submit a patch? -- nosy: +rhettinger ___ Python tracker ___ ___

[issue34003] csv.DictReader can return basic dict instead of OrderedDict

2018-06-29 Thread Raymond Hettinger
Raymond Hettinger added the comment: This might need a deprecation before switching but it would be useful. The DictReader can produced huge numbers of instances that would benefit from the smaller size. -- nosy: +rhettinger ___ Python tracker

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

2018-06-29 Thread Steven D'Aprano
On Fri, 29 Jun 2018 10:36:45 -0700, Ethan Furman wrote: >> What makes them enums? Under what circumstances would you be comparing >> something to MartinLutherKingJr (Day) without caring about a *specific* >> Martin Luther King Jr Day? > > Enums are also useful when the underlying value is

[issue34005] Replace inspect.formatargspec by inspect.signature in xmlrpc module

2018-06-29 Thread Zackery Spytz
Zackery Spytz added the comment: This is a duplicate of #33911 (which already has a PR). -- nosy: +ZackerySpytz ___ Python tracker ___

Re: Baroque [was Re: Should nested classes in an Enum be Enum members?]

2018-06-29 Thread Chris Angelico
On Sat, Jun 30, 2018 at 10:51 AM, Steven D'Aprano wrote: > ["Baroque"] should not mean "weird or bizarre", although I've seen a couple of > lesser-quality dictionaries give that as a meaning. Which is itself weird > and bizarre :-) > I guess those dictionaries are baroque. Or maybe just broke.

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

2018-06-29 Thread Raymond Hettinger
Raymond Hettinger added the comment: Serhiy, do you want to take this one? -- assignee: -> serhiy.storchaka nosy: +serhiy.storchaka ___ Python tracker ___

Re: Where's the junk coming from?

2018-06-29 Thread Avon
On 06/29/18, Mark Lawrence pondered and said... ML> As the person who started this thread I'll add my thanks for trying to ML> sort things. Nothing last night is a good start :-) Thanks Mark... you're welcome :) Best, Paul -- https://mail.python.org/mailman/listinfo/python-list

Re: I lost nearly all my modules installing 3.7

2018-06-29 Thread dieter
Elliott Roper writes: > ... > install scipy wrote an error message longer than War and Peace that finished > with:- > > error: library dfftpack has Fortran sources but no Fortran compiler found An error message of the

[issue33944] Deprecate and remove pth files

2018-06-29 Thread Ivan Pozdeev
Ivan Pozdeev added the comment: I *think* we need to ask maintainers of packages who use .pth -- at least, Mark Hammond (pywin32) -- to find out the impact and if everything can be done with other means. AFAICS it at least allows pywin32 to have many top-level modules without cluttering

[issue33980] SSL Error when uploading package to your own pypi

2018-06-29 Thread Éric Araujo
Éric Araujo added the comment: I don’t think there is an option (see the --help command), but on localhost you could use http instead of https. Otherwise it’s strongly recommended to use twine to upload. -- ___ Python tracker

[issue25862] TextIOWrapper assertion failure after read() and SEEK_CUR

2018-06-29 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset d6a283b37b66ecd2d0ff43602ddc8e91b54a51c5 by Serhiy Storchaka (Zackery Spytz) in branch '3.6': [3.6] bpo-25862: Fix assertion failures in io.TextIOWrapper.tell(). (GH-3918). (GH-8012)

[issue25862] TextIOWrapper assertion failure after read() and SEEK_CUR

2018-06-29 Thread Zackery Spytz
Change by Zackery Spytz : -- pull_requests: +7621 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2018-06-29 Thread Elliot Gorokhovsky
Elliot Gorokhovsky added the comment: You can always fall back on safe_object_compare. So unless there's an obvious reason why your edge case can't be triggered, it would be worth putting that in as a failsafe. The additional branch should be 100% predictable, so there shouldn't be any

[issue33993] zipfile module weird behavior when used with zipinfo

2018-06-29 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Use: rel_name = "tmp/test.md" -- nosy: +serhiy.storchaka resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker

[issue33991] lib2to3 should parse f-strings

2018-06-29 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- components: +2to3 (2.x to 3.x conversion tool) nosy: +benjamin.peterson, eric.smith ___ Python tracker ___

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

2018-06-29 Thread Ian Kelly
On Thu, Jun 28, 2018 at 7:01 PM Ben Finney wrote: > > 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

[issue33914] test_gdb fails for Python 2.7.15

2018-06-29 Thread Vibhuti
Vibhuti added the comment: Thanks STINNER for your help.The issue has been resolved.It was related to gdb itself and not Python. -- ___ Python tracker ___

[issue25457] json dump fails for mixed-type keys when sort_keys is specified

2018-06-29 Thread James Edwards
James Edwards added the comment: This came up in a StackOverflow question[1] today, so I took a stab at addressing the error. The changes don't restore the 2.x behavior, but just do as R. David Murray suggested and coerce the keys to strings prior to sorting to prevent the error. The

Python27.dll module error from Python 2.7.15/PCbuild/get_externals.bat

2018-06-29 Thread amit . singh2241
I am trying to compile the freshly downloaded Python 2.7.15. When the PCBuild/build.bat goes to pull-in the external modules along with their dependencies it encounters this error for each of the external modules. F:\Dev\depot\tools\source\python\Python-2.7.15>.\PCbuild\get_externals.bat Using

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

2018-06-29 Thread Ian Kelly
On Thu, Jun 28, 2018 at 10:06 PM Ben Finney wrote: > > 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

[issue33991] lib2to3 should parse f-strings

2018-06-29 Thread skreft
skreft added the comment: @Steven lib2to3 is no longer specifically for python 2 code, it also parses python 3 code and is the building block of tools like YAPF. See Eli's comment on this https://bugs.python.org/issue23894: "AFAIK lib2to3 has been repurposed to parse Python 3 as well - it

[issue32732] LoggingAdapter ignores extra kwargs of Logger#log()

2018-06-29 Thread Steffen Schuldenzucker
Steffen Schuldenzucker added the comment: To give you a data point, I just hit this problem. Based on the docs and common sense, I didn't expect LoggerAdapter to throw away the other extra arguments. I strongly feel that this is a bug. I cannot see how it could be desired behavior over the

[issue33999] `pip3 install past` does not work

2018-06-29 Thread Peter
New submission from Peter : When trying to install the `past` module using pip 10.0.1 using python 3.6.5 I get: $ pip3 install past --no-compile Collecting past Could not find a version that satisfies the requirement past

[issue33999] `pip3 install past` does not work

2018-06-29 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This is a tracker for bugs in the Python interpreter. Use appropriate tracker for reporting bugs in a third-party project. -- nosy: +serhiy.storchaka resolution: -> third party stage: -> resolved status: open -> closed

[issue34000] Document when compile returns a code object v. AST

2018-06-29 Thread Geoffrey Sneddon
New submission from Geoffrey Sneddon : The compile built-in documentation says: > Compile the source into a code or AST object. It doesn't however go on to say when it returns each! It does however note: > If you want to parse Python code into its AST representation, see ast.parse(). So

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

2018-06-29 Thread Bart
On 29/06/2018 09:01, Ian Kelly wrote: On Thu, Jun 28, 2018 at 10:06 PM Ben Finney wrote: @total_ordering class ChessPiece(Enum): PAWN = 1, 'P' KNIGHT = 2, 'N' BISHOP = 3, 'B' ROOK = 4, 'R' # ... @property def label(self): return self.value[1]

[issue34001] LibreSSL does not tolerate setting minimum_version greater than maximum_version

2018-06-29 Thread Alan Huang
New submission from Alan Huang : LibreSSL has a function called `ssl_clamp_version_range` that is called before attempting to set the minimum and maximum protocol versions in `ssl_version_set_{min,max}`. The function disallows setting ranges that are invalid (i.e., where minimum_version >

[issue33998] random.randrange completely ignores the step argument when stop is None

2018-06-29 Thread Steven D'Aprano
Steven D'Aprano added the comment: "I have a really hard time believing that [...] others haven't noticed this rather glaring flaw in the code." *shrug* Easy or hard for you to believe, nevertheless this same quote-unquote "flaw" goes back to Python 1.5 or older. Whether that makes it a

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

2018-06-29 Thread T Berger
On Thursday, June 28, 2018 at 1:21:32 AM UTC-4, T Berger wrote: > Hi Guys, > > Thanks for all the suggestions. I found the problem. I had saved my program > in IDLE and quit out of the shell, and then tried to run the program in > Terminal. Previously, restarting the shell was enough to break

[issue33998] random.randrange completely ignores the step argument when stop is None

2018-06-29 Thread Dan Snider
Change by Dan Snider : -- keywords: +patch pull_requests: +7616 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list

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

2018-06-29 Thread T Berger
On Friday, June 29, 2018 at 10:45:10 AM UTC-4, T Berger wrote: > On Thursday, June 28, 2018 at 1:21:32 AM UTC-4, T Berger wrote: > > Hi Guys, > > > > Thanks for all the suggestions. I found the problem. I had saved my program > > in IDLE and quit out of the shell, and then tried to run the

[issue25862] TextIOWrapper assertion failure after read() and SEEK_CUR

2018-06-29 Thread miss-islington
miss-islington added the comment: New changeset eabebbb54c2604fd8d08e8019ea1be634aed8c2f by Miss Islington (bot) in branch '3.7': bpo-25862: Fix assertion failures in io.TextIOWrapper.tell(). (GH-3918) https://github.com/python/cpython/commit/eabebbb54c2604fd8d08e8019ea1be634aed8c2f

[issue25862] TextIOWrapper assertion failure after read() and SEEK_CUR

2018-06-29 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 23db935bcf258657682e66464bf8512def8af830 by Serhiy Storchaka (Zackery Spytz) in branch 'master': bpo-25862: Fix assertion failures in io.TextIOWrapper.tell(). (GH-3918)

[issue33959] doc Remove time complexity mention from list Glossary entry

2018-06-29 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- assignee: docs@python -> rhettinger nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list

[issue33991] lib2to3 should parse f-strings

2018-06-29 Thread Steven D'Aprano
Steven D'Aprano added the comment: > @Steven lib2to3 is no longer specifically for python 2 code, it also > parses python 3 code Ah, all good then. Thanks. -- ___ Python tracker

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

2018-06-29 Thread László Kiss Kollár
Change by László Kiss Kollár : -- nosy: +lkollar ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue25862] TextIOWrapper assertion failure after read() and SEEK_CUR

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

Python 3.7 Windows Help Behaviour

2018-06-29 Thread BlindAnagram
In Python 3.7.0 on Windows the help file (python370.chm) displays with a fixed line length and does not adjust its line length when the user expands the help window horizontally. This behaviour is different to that of the Python 3.6 help file (python360.chm) which adjusts its text to fit the

[issue33997] multiprocessing Pool hangs in terminate()

2018-06-29 Thread Erik Wolf
New submission from Erik Wolf : The terminate() method of multiprocessing.Pool hangs sporadically. I could track this issue down to the fact that _handle_results() hangs in the outqueue-cleanup. poll() returned True but get() actually hangs endlessly never returning any data. --

[issue33914] test_gdb fails for Python 2.7.15

2018-06-29 Thread STINNER Victor
STINNER Victor added the comment: > Thanks STINNER for your help.The issue has been resolved.It was related to > gdb itself and not Python. Oh good! Happy to see that you solved your issue! -- resolution: -> fixed stage: -> resolved status: open -> closed

[issue33914] test_gdb fails for Python 2.7.15

2018-06-29 Thread STINNER Victor
Change by STINNER Victor : -- resolution: fixed -> not a bug ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33996] Crash in gen_send_ex(): _PyErr_GetTopmostException() returns freed memory

2018-06-29 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

EuroPython 2018: Invoices available

2018-06-29 Thread M.-A. Lemburg
We have great news ! After many months of sorting the UK VAT registration issue, we have finally been registered for VAT in the UK. This is the number, we’ve all been waiting for: GB 297620469 We’ve now generated all the missing invoices for existing purchases and

[issue33978] logging.config.dictConfig with file handler leaks resources

2018-06-29 Thread Xiang Zhang
Change by Xiang Zhang : -- nosy: +vinay.sajip ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33997] multiprocessing Pool hangs in terminate()

2018-06-29 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

EuroPython 2018: Beginners’ Day Workshop

2018-06-29 Thread M.-A. Lemburg
Maybe you’ve come to EuroPython as a programmer from another language. Or perhaps you have other tech skills or you really want to understand what it’s like to program in Python. Then come to our Beginners’ Day at EuroPython.

[issue33996] Crash in gen_send_ex(): _PyErr_GetTopmostException() returns freed memory

2018-06-29 Thread STINNER Victor
STINNER Victor added the comment: > I suspected that the bug is caused by the new exc_info attribute of > PyThreadState: commit ae3087c6382011c47db82fea4d05f8bbf514265d. The change comes from bpo-25612. -- ___ Python tracker

[issue33978] logging.config.dictConfig with file handler leaks resources

2018-06-29 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- pull_requests: +7613 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list

[issue33997] multiprocessing Pool hangs in terminate()

2018-06-29 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch pull_requests: +7614 stage: -> patch review ___ Python tracker ___ ___

[issue25612] nested try..excepts don't work correctly for generators

2018-06-29 Thread STINNER Victor
STINNER Victor added the comment: It seems like this issue introduced a regression in Python 3.7.0: bpo-33996 "Crash in gen_send_ex(): _PyErr_GetTopmostException() returns freed memory". -- ___ Python tracker

[issue33996] Crash in gen_send_ex(): _PyErr_GetTopmostException() returns freed memory

2018-06-29 Thread STINNER Victor
New submission from STINNER Victor : Attached dagpool_test.py script triggers a crash on Python 3.7, but works well on Python 3.6. The script is a highly simplified code of tests/dagpool_tests.py of eventlet. To reproduce the crash, you only need a single dependency: greenlet. Example using

  1   2   >