[issue33392] pathlib .glob('*/') returns files as well as directories

2018-05-01 Thread Emily Morehouse
Emily Morehouse added the comment: Good find -- I agree that when using Path.cwd().glob('*/'), it should only return directories. This follows the original glob library's functionality as well as the Unix expectation (I believe Windows as well, but I'll double check).

[issue33399] site.abs_paths should handle None __cached__ type

2018-05-01 Thread Demian Brecht
New submission from Demian Brecht : Echoing an email sent to python-list: I recently ran into an issue using the site package and I wanted to confirm that I'm not doing something wrong here before creating an issue: I have a need to `git subtree` modules into a Django

[issue33400] logging.Formatter does not default to ISO8601 date format

2018-05-01 Thread Ned Deily
Change by Ned Deily : -- nosy: +vinay.sajip ___ Python tracker ___ ___ Python-bugs-list

[issue33191] Refleak in posix_spawn

2018-05-01 Thread Ned Deily
Change by Ned Deily : -- resolution: -> duplicate stage: patch review -> resolved status: open -> closed superseder: -> expose posix_spawn(p) ___ Python tracker

[issue33399] site.abs_paths should handle None __cached__ type

2018-05-01 Thread Demian Brecht
Change by Demian Brecht : -- keywords: +patch pull_requests: +6369 stage: -> patch review ___ Python tracker ___

[issue33392] pathlib .glob('*/') returns files as well as directories

2018-05-01 Thread robbuckley
robbuckley added the comment: I checked this on Mac and Windows, pathlib and the old glob std lib behave the same on both in this respect On Tue, 1 May 2018, 18:35 Emily Morehouse, wrote: > > Emily Morehouse added the

[issue20104] expose posix_spawn(p)

2018-05-01 Thread Ned Deily
Ned Deily added the comment: Thanks for the latest fixes, Serhiy. Now is there anything more that needs to be done for this issue? -- priority: release blocker -> deferred blocker versions: +Python 3.8 ___ Python tracker

[issue33400] logging.Formatter does not default to ISO8601 date format

2018-05-01 Thread Paul Ganssle
Paul Ganssle added the comment: ISO 8601 does not require an offset (in fact, most portions of the ISO 8601 date and time are optional - ISO 8601 is more complicated than most people think). Without an offset a datetime is assumed to be local time. The T delimiter is

[issue33400] logging.Formatter does not default to ISO8601 date format

2018-05-01 Thread Paul Cyr
New submission from Paul Cyr : >From the docs: https://docs.python.org/3.6/library/logging.html#logging.Formatter "class logging.Formatter(fmt=None, datefmt=None, style='%') ... If no datefmt is specified, the ISO8601 date format is used." However, the output from the

[issue33401] `exec` attribute can't be set to objects in Python2 (SyntaxError)

2018-05-01 Thread luav
New submission from luav : The following code works fine on Python 3.5.2 but `exec` attribute fails to be set to the object on Python 2.7.12: ```python >>> o = type('O', (object,), {}) >>> o.e = 1 >>> o.eval = 1 >>> o.exec = 1 File "", line 1 o.exec = 1 ^

[issue32608] Incompatibilities with the socketserver and multiprocessing packages

2018-05-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: Posted a review now. -- ___ Python tracker ___ ___

[issue21822] KeyboardInterrupt during Thread.join hangs that Thread

2018-05-01 Thread Paul Goins
Paul Goins added the comment: Okay, I think I need to abandon my research into this. This does seem to have quite an amount of complexity to it and is probably more than I should be taking on at this point in time. Anyone else who wants to look at this, consider it

[issue33402] Change the fractions.Fraction class to convert to a unicode fraction string

2018-05-01 Thread Gabe Appleton
Gabe Appleton added the comment: Would it be workable if I instead just changed the __str__() method? I'm willing to go either way, but I feel like it's a bit nicer to have it output a nice fraction that way. -- ___ Python

[issue33401] `exec` attribute can't be set to objects in Python2 (SyntaxError)

2018-05-01 Thread Emanuel Barry
Emanuel Barry added the comment: This is because `exec` is a keyword in Python 2, whereas in Python 3 it's a function. -- nosy: +ebarry resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker

[issue33401] `exec` attribute can't be set to objects in Python2 (SyntaxError)

2018-05-01 Thread Emanuel Barry
Emanuel Barry added the comment: Any valid variable name can be used as a an attribute; for example, "spam" is valid while "spam-eggs" is not. This isn't unique to classes, but to all assignments everywhere. If we allowed `o.exec = blah` then we should also allow `exec =

[issue33311] cgitb: remove parentheses when the error is in module

2018-05-01 Thread Stéphane Blondon
Change by Stéphane Blondon : -- pull_requests: +6371 ___ Python tracker ___ ___

[issue21822] KeyboardInterrupt during Thread.join hangs that Thread

2018-05-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: multiprocessing semaphores support Ctrl-C under Windows, so it should be doable for regular locks as well (notice the `sigint_event`): https://github.com/python/cpython/blob/master/Modules/_multiprocessing/semaphore.c#L109-L146 --

[issue33401] `exec` attribute can't be set to objects in Python2 (SyntaxError)

2018-05-01 Thread luav
luav added the comment: I'm sorry for the previous question, now it's clear (the space is allowed after the '.' which complicates the parsing): ``` >>> o.e = 1 >>> o. e 1 >>> o.e 1 ``` Anyway, it would be nice to outline the eligible values for attributes in the

[issue33402] Change the fractions.Fraction class to convert to a unicode fraction string

2018-05-01 Thread Gabe Appleton
New submission from Gabe Appleton : Currently it has a __repr__() which returns `Fraction(x, y)`, and a __str__() which returns `x/y`. I have a ready pull request to change this to a scheme where both return unicode fractions. -- components: Library (Lib)

[issue33402] Change the fractions.Fraction class to convert to a unicode fraction string

2018-05-01 Thread Gabe Appleton
Change by Gabe Appleton : -- keywords: +patch pull_requests: +6372 stage: -> patch review ___ Python tracker ___

[issue33402] Change the fractions.Fraction class to convert to a unicode fraction string

2018-05-01 Thread Eric V. Smith
Eric V. Smith added the comment: Your patch would break the usual and useful behavior of x == eval(repr(x)) >>> f = Fraction(1,2) >>> repr(f) 'Fraction(1, 2)' >>> eval(repr(f)) Fraction(1, 2) >>> f == eval(repr(f)) True Plus, I'm sure there's working code that would break

[issue33402] Change the fractions.Fraction class to convert to a unicode fraction string

2018-05-01 Thread Eric V. Smith
Eric V. Smith added the comment: I'd bring it up on python-ideas, and point the discussion to this issue. I think the primary complain will be using non-ASCII characters in a function that normally doesn't return non-ASCII. But maybe people will be willing to accept it.

[issue33402] Change the fractions.Fraction class to convert to a unicode fraction string

2018-05-01 Thread R. David Murray
R. David Murray added the comment: I vote -1. It's cute, but I'd much rather have a consistently ascii representation of something that is easily represented in ascii. -- nosy: +r.david.murray ___ Python tracker

[issue31453] Debian Sid/Buster: Cannot enable TLS 1.0/1.1 with PROTOCOL_TLS

2018-05-01 Thread Ned Deily
Ned Deily added the comment: Christian, ping. Can we close this? -- ___ Python tracker ___

[issue33401] `exec` attribute can't be set to objects in Python2 (SyntaxError)

2018-05-01 Thread luav
luav added the comment: Why Python 2 documentation does not outline that keywords / statements can't be used as the object attributes? https://docs.python.org/2/reference/simple_stmts.html#exec And why does this restriction exist at all? The keywords always stand-alone and

[issue32797] Tracebacks from Cython modules no longer work

2018-05-01 Thread Stephan Hohe
Stephan Hohe added the comment: > Do you mean the "python" command-line program? Yes, that's what I used. > That uses a different algorithm: I see, it only works for top-level modules. You're right, that's not a real solution. --

[issue21822] KeyboardInterrupt during Thread.join hangs that Thread

2018-05-01 Thread Paul Goins
Paul Goins added the comment: Good point, I forgot about WaitForMultipleObjectsEx; something like that seems like it would be much simpler for the first 2 cases. -- ___ Python tracker

[issue32797] Tracebacks from Cython modules no longer work

2018-05-01 Thread Jeroen Demeyer
Jeroen Demeyer added the comment: > How does CPython display the source for tracebacks in Cython modules? Do you mean the "python" command-line program? That uses a different algorithm: to find a file FOO, it searches [os.path.join(p, os.path.basename(FOO)) for p in

[issue33038] GzipFile doesn't always ignore None as filename

2018-05-01 Thread Diego Argueta
Diego Argueta added the comment: Did this make it into 2.7.15? There aren't any release notes for it on the download page like usual. -- ___ Python tracker

[issue33038] GzipFile doesn't always ignore None as filename

2018-05-01 Thread Ned Deily
Ned Deily added the comment: It looks like PR 6095 for this issue has not been reviewed or merged yet. The commits for v2.7.15 are here: https://github.com/python/cpython/commits/v2.7.15 -- nosy: +benjamin.peterson, ned.deily ___

[issue33290] Python.org macOS pkg installs pip3 as pip

2018-05-01 Thread Ned Deily
Ned Deily added the comment: New changeset 1470e43076559d22518f2e8d704fa9426d2659dd by Ned Deily (Miss Islington (bot)) in branch '3.7': bpo-33290: Have macOS installer remove "pip" alias (GH-6683) (GH-6684)

[issue33290] Python.org macOS pkg installs pip3 as pip

2018-05-01 Thread miss-islington
Change by miss-islington : -- pull_requests: +6380 ___ Python tracker ___

[issue33404] Phone Number Generator

2018-05-01 Thread Steven D'Aprano
Steven D'Aprano added the comment: Hi Braiden, and welcome! I see that the ticket has already been closed, but another note for the future: please don't paste screenshots of your code, copy and paste the relevant source code. We don't edit code with Photoshop, and

[issue33290] Python.org macOS pkg installs pip3 as pip

2018-05-01 Thread Ned Deily
Ned Deily added the comment: New changeset 0dd80709b5dc03756e7f4510761ae60236bb9f6d by Ned Deily in branch 'master': bpo-33290: Have macOS installer remove "pip" alias (GH-6683) https://github.com/python/cpython/commit/0dd80709b5dc03756e7f4510761ae60236bb9f6d --

[issue33290] Python.org macOS pkg installs pip3 as pip

2018-05-01 Thread miss-islington
Change by miss-islington : -- pull_requests: +6381 ___ Python tracker ___

[issue33290] Python.org macOS pkg installs pip3 as pip

2018-05-01 Thread Ned Deily
Ned Deily added the comment: New changeset 8ac441876418a217c31fe429733d7fa4704f0e3c by Ned Deily (Miss Islington (bot)) in branch '3.6': bpo-33290: Have macOS installer remove "pip" alias (GH-6683) (GH-6685)

[issue33290] Python.org macOS pkg installs pip3 as pip

2018-05-01 Thread Ned Deily
Change by Ned Deily : -- pull_requests: +6379 ___ Python tracker ___ ___ Python-bugs-list

[issue33403] asyncio.tasks.wait does not allow to set custom exception when return_when=FIRST_EXCEPTION

2018-05-01 Thread pyneda
Change by pyneda : -- keywords: +patch pull_requests: +6374 stage: -> patch review ___ Python tracker ___

[issue33404] Phone Number Generator

2018-05-01 Thread Braiden Gole
New submission from Braiden Gole : I was creating a small program to generate numbers for fun and I realized that my output is different from my input. The random phone number that I used is: (519-662-6963) and what I get is: (519-662-6953), where the second last digit

[issue33281] ctypes.util.find_library not working on macOS

2018-05-01 Thread Ned Deily
Change by Ned Deily : -- pull_requests: +6377 ___ Python tracker ___ ___ Python-bugs-list

[issue33281] ctypes.util.find_library not working on macOS

2018-05-01 Thread Ned Deily
Ned Deily added the comment: Thanks for the PR, Ray. Merged for 3.7.0b4 (and 3.8.0). -- nosy: +Ray.Donnelly priority: release blocker -> resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.8

[issue33403] asyncio.tasks.wait does not allow to set custom exception when return_when=FIRST_EXCEPTION

2018-05-01 Thread pyneda
Change by pyneda : -- components: asyncio nosy: asvetlov, giampaolo.rodola, pyneda, yselivanov priority: normal severity: normal status: open title: asyncio.tasks.wait does not allow to set custom exception when return_when=FIRST_EXCEPTION type: enhancement

[issue33404] Phone Number Generator

2018-05-01 Thread Zachary Ware
Change by Zachary Ware : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___

[issue33404] Phone Number Generator

2018-05-01 Thread Zachary Ware
Change by Zachary Ware : -- components: -IDLE ___ Python tracker ___ ___

[issue33404] Phone Number Generator

2018-05-01 Thread Zachary Ware
Change by Zachary Ware : -- assignee: terry.reedy -> ___ Python tracker ___ ___

[issue33404] Phone Number Generator

2018-05-01 Thread Braiden Gole
Braiden Gole added the comment: Thanks for the detailed explenation and my apologies. I will contact Stack Overflow in the future when I have an issue. This is my first report in the bug section of Python and I now understand the content that needs to be put under a

[issue33281] ctypes.util.find_library not working on macOS

2018-05-01 Thread Ned Deily
Ned Deily added the comment: New changeset 69a013ec189f93a0dea97cfdbb3adc348648a666 by Ned Deily in branch 'master': bpo-33281: NEWS and ACK (GH-6681) https://github.com/python/cpython/commit/69a013ec189f93a0dea97cfdbb3adc348648a666 --

[issue33281] ctypes.util.find_library not working on macOS

2018-05-01 Thread Ned Deily
Ned Deily added the comment: New changeset c74ca5396aa7740d4fc90617e6b2315e849fa71f by Ned Deily (Miss Islington (bot)) in branch '3.7': bpo-33281: Fix ctypes.util.find_library regression on macOS (GH-6625) (GH-6680)

[issue33281] ctypes.util.find_library not working on macOS

2018-05-01 Thread Ned Deily
Ned Deily added the comment: New changeset d74f35331f176e0679f0614b6cccf0dc0422e31a by Ned Deily (Miss Islington (bot)) in branch '3.7': bpo-33281: NEWS and ACK (GH-6681) (GH-6682) https://github.com/python/cpython/commit/d74f35331f176e0679f0614b6cccf0dc0422e31a --

[issue33281] ctypes.util.find_library not working on macOS

2018-05-01 Thread miss-islington
Change by miss-islington : -- pull_requests: +6376 ___ Python tracker ___

[issue33404] Phone Number Generator

2018-05-01 Thread Josh Rosenberg
Change by Josh Rosenberg : -- versions: -Python 3.6 ___ Python tracker ___

[issue33404] Phone Number Generator

2018-05-01 Thread Josh Rosenberg
Josh Rosenberg added the comment: You named your loop variable i, overlapping the name of your second to last digit, so you end up replacing the original value of i in each (given the break, the only) loop. So before the loop begins, i has the expected value of

[issue33402] Change the fractions.Fraction class to convert to a unicode fraction string

2018-05-01 Thread Steven D'Aprano
Steven D'Aprano added the comment: Strings in Python 3 are already unicode. Looking at the patch, I see a lot of fractions which display as the missing glyph white square. For example, instead of seeing 1/9, which displays perfectly everywhere, I see a mysterious

[issue33380] Update module attribute on namedtuple methods for introspection.

2018-05-01 Thread pmpp
pmpp added the comment: Indeed thanks for the deep explanation. It seems that not finding im_self anymore (not even in the dunder clutter), i've mistaken '.__self__.__module__' with '.__module__'. How joyfull to learn anew to trace a caller id, and sorry for the noise

[issue33281] ctypes.util.find_library not working on macOS

2018-05-01 Thread Ned Deily
Ned Deily added the comment: New changeset d06d345f04b3f7e5b318df69b1d179328a64ca9c by Ned Deily (Ray Donnelly) in branch 'master': bpo-33281: Fix ctypes.util.find_library regression on macOS (GH-6625)

[issue33281] ctypes.util.find_library not working on macOS

2018-05-01 Thread miss-islington
Change by miss-islington : -- pull_requests: +6378 ___ Python tracker ___

[issue33377] add new triplets for mips r6 and riscv variants

2018-05-01 Thread Ned Deily
Change by Ned Deily : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue32797] Tracebacks from Cython modules no longer work

2018-05-01 Thread Stephan Hohe
Stephan Hohe added the comment: How does CPython display the source for tracebacks in Cython modules? It seems to work there as long as the Cython .pyx files are somewhere in the import path. -- nosy: +sth ___ Python tracker

[issue33391] leak in set_symmetric_difference?

2018-05-01 Thread lekma
Change by lekma : -- pull_requests: +6365 stage: -> patch review ___ Python tracker ___

[issue33391] leak in set_symmetric_difference?

2018-05-01 Thread lekma
lekma added the comment: > Good catch! Do you mind to create a pull request on GitHub? done -- ___ Python tracker ___

[issue33391] leak in set_symmetric_difference?

2018-05-01 Thread lekma
Change by lekma : -- pull_requests: +6367 ___ Python tracker ___ ___ Python-bugs-list

[issue33391] leak in set_symmetric_difference?

2018-05-01 Thread lekma
Change by lekma : -- pull_requests: +6366 ___ Python tracker ___ ___ Python-bugs-list

[issue32797] Tracebacks from Cython modules no longer work

2018-05-01 Thread Jeroen Demeyer
Jeroen Demeyer added the comment: Since you are asking various "meta" questions, let me explain the wider context first. This bug report is coming from SageMath. Currently, SageMath only supports Python 2.7 but we are slowly and steadily porting it to Python 3. This bug

[issue32797] Tracebacks from Cython modules no longer work

2018-05-01 Thread Jeroen Demeyer
Jeroen Demeyer added the comment: > But the standard library has no need to ever find source for extension modules > So there's no need for the stdlib to be involved The standard library is not a closed system. It's not meant to support only itself, it's supposed to be an

[issue33398] From, To, Cc lines break when calling send_message()

2018-05-01 Thread Jens Troeger
New submission from Jens Troeger : It looks like non-ascii characters in an Address()’s display_name parameter cause their lines in the header to get mangled when the message is being sent. For example, a case to reproduce: >>> msg = EmailMessage() >>>

[issue33378] Add Korean to the language switcher

2018-05-01 Thread Julien Palard
Julien Palard added the comment: Backported to 3.6. -- stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue33378] Add Korean to the language switcher

2018-05-01 Thread miss-islington
miss-islington added the comment: New changeset dc5c92fcb2aafd7f133f9f6986d8d05ac6e5160f by Miss Islington (bot) in branch '3.6': bpo-33378: Add Korean to the language switcher. (GH-6627)

[issue20709] os.utime(path_to_directory): wrong documentation for Windows.

2018-05-01 Thread Julien Palard
Julien Palard added the comment: New changeset 7508a54c77e85235e07e344cf9440e5b4695e9cc by Julien Palard (Stéphane Wirtel) in branch 'master': bpo-20709: os.utime(path_to_directory): wrong documentation for Windows. (GH-5469)

[issue20104] expose posix_spawn(p)

2018-05-01 Thread miss-islington
miss-islington added the comment: New changeset 77fa7835da0cb49d30ac5d4c32bf6eb71eae0742 by Miss Islington (bot) in branch '3.7': bpo-20104: Improve error handling and fix a reference leak in os.posix_spawn(). (GH-6332)

[issue20104] expose posix_spawn(p)

2018-05-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset ef347535f289baad22c0601e12a36b2dcd155c3a by Serhiy Storchaka in branch 'master': bpo-20104: Improve error handling and fix a reference leak in os.posix_spawn(). (#6332)

[issue20104] expose posix_spawn(p)

2018-05-01 Thread miss-islington
Change by miss-islington : -- pull_requests: +6368 ___ Python tracker ___

[issue33395] TypeError: unhashable type: 'instancemethod'

2018-05-01 Thread R. David Murray
R. David Murray added the comment: Ah, in the absence of a traceback I think I misunderstood the problem (I failed to actually look at the code :) Given what you say about the slotwrapper, I'm not sure, but I'm guessing that that means cython isn't using the

[issue28055] pyhash's siphash24 assumes alignment of the data pointer

2018-05-01 Thread Ned Deily
Ned Deily added the comment: What's the status of this? It looks like Serhiy has reviewed and approved Dakon's PR 6123. Is everyone OK with merging it? Anything more needed? -- versions: +Python 3.8 -Python 3.5 ___ Python

[issue33377] add new triplets for mips r6 and riscv variants

2018-05-01 Thread Ned Deily
Ned Deily added the comment: New changeset 0596f319020ad34010cbf98608021080ba2a1d4b by Ned Deily (Miss Islington (bot)) in branch '3.7': bpo-33377: add triplets for mips-r6 and riscv (GH-6655) (GH-6660)

[issue33395] TypeError: unhashable type: 'instancemethod'

2018-05-01 Thread Siming Yuan
Siming Yuan added the comment: i just discovered cython v0.28 no longer creates instancemethod, so this bug should technically no longer show up after upgrading cython. (related cython bug https://github.com/cython/cython/pull/2105) so the question remains - is it a good

[issue32797] Tracebacks from Cython modules no longer work

2018-05-01 Thread Paul Moore
Paul Moore added the comment: > How does CPython display the source for tracebacks in Cython modules? It > seems to work there as long as the Cython .pyx files are somewhere in the > import path. Is that in Python 3.x? The issue we're discussing is only in Python 3.3+

[issue32797] Tracebacks from Cython modules no longer work

2018-05-01 Thread Stephan Hohe
Stephan Hohe added the comment: Yes, I tried the Python 3.5 that comes with my system as well as the latest checkout from github. Both show source code lines in tracebacks for me. I used a rather simple test setup, just two directories with .so and .pyx which I added to

[issue33395] TypeError: unhashable type: 'instancemethod'

2018-05-01 Thread R. David Murray
R. David Murray added the comment: Functions/methods should be immutable, so yes, I think it is a safe assumption that they should be hashable, and a bug if they are not. I seem to vaguely recall that there is some other part of the cpython machinery that depend on

[issue32797] Tracebacks from Cython modules no longer work

2018-05-01 Thread Paul Moore
Paul Moore added the comment: That's interesting. It sounds like linecache might be working differently then. -- ___ Python tracker