[issue30981] IDLE: Add config dialog font page tests

2017-07-20 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- pull_requests: +2844 ___ Python tracker ___ ___

[issue28523] Idlelib.configdialog: use 'color' insteadof 'colour'

2017-07-20 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue28523] Idlelib.configdialog: use 'color' insteadof 'colour'

2017-07-20 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset ac5c1e2ea311d11714f89476c86936f9388d19a4 by Terry Jan Reedy in branch '3.6': [3.6] bpo-28523: IDLE: Use 'color' instead of 'colour'. (GH-2787) (#2791) https://github.com/python/cpython/commit/ac5c1e2ea311d11714f89476c86936f9388d19a4 --

[issue30964] Mention ensurepip in package installation docs

2017-07-20 Thread nicholas kobald
Changes by nicholas kobald : -- pull_requests: +2843 ___ Python tracker ___ ___

[issue30964] Mention ensurepip in package installation docs

2017-07-20 Thread nicholas kobald
Changes by nicholas kobald : -- pull_requests: +2842 ___ Python tracker ___ ___

[issue28523] Idlelib.configdialog: use 'color' insteadof 'colour'

2017-07-20 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- pull_requests: +2841 ___ Python tracker ___ ___

[issue28523] Idlelib.configdialog: use 'color' insteadof 'colour'

2017-07-20 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset a54a8f188a803cd41bdc8758c10d34ba3328c566 by Terry Jan Reedy in branch 'master': bpo-28523: IDLE: Use 'color' instead of 'colour'. (#2787) https://github.com/python/cpython/commit/a54a8f188a803cd41bdc8758c10d34ba3328c566 --

[issue30978] str.format_map() silences exceptions in __getitem__

2017-07-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Yet one consequence: this swallows KeyboardInterrupt and converts it to KeyError. -- components: +Interpreter Core, Unicode nosy: +ezio.melotti, haypo, serhiy.storchaka stage: -> patch review versions: +Python 3.6 -Python 3.3, Python 3.4

[issue30978] str.format_map() silences exceptions in __getitem__

2017-07-20 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +2840 ___ Python tracker ___ ___

[issue30964] Mention ensurepip in package installation docs

2017-07-20 Thread Nick Coghlan
Changes by Nick Coghlan : -- stage: needs patch -> backport needed ___ Python tracker ___

[issue30959] Constructor signature is duplicated in the help of namedtuples

2017-07-20 Thread Raymond Hettinger
Raymond Hettinger added the comment: Pydoc isn't the only tool for looking at docstrings. I'm worried that you're systematically killing-off useful docstrings because of a world view that all tools will use pydoc and signatures. As a result, IDLE's tooltips are now useless (this comes up

[issue30964] Mention ensurepip in package installation docs

2017-07-20 Thread Nick Coghlan
Nick Coghlan added the comment: New changeset b3527bfefd7a0188d43a2d7515ac6addd97a8202 by Nick Coghlan (Nicholas) in branch 'master': bpo-30964: Mention ensurepip in package installation docs (GH-2786) https://github.com/python/cpython/commit/b3527bfefd7a0188d43a2d7515ac6addd97a8202

Re: Grapheme clusters, a.k.a.real characters

2017-07-20 Thread Chris Angelico
On Fri, Jul 21, 2017 at 1:20 PM, Steve D'Aprano wrote: > On Fri, 21 Jul 2017 04:05 am, Marko Rauhamaa wrote: > >> If any string code point is 1114112 or greater > > By definition, no Unicode code point can ever have an ordinal value greater > than > 0x10 =

Re: Problem

2017-07-20 Thread Steve D'Aprano
On Fri, 21 Jul 2017 05:19 am, Hongze Liu wrote: > Hello Python, > > I encountered this problem: Can you tell us *how* you encountered this problem? How were you invoking Python. It makes a BIG difference if you are invoking it by just launching the Python interactive interpreter with no extra

Re: Grapheme clusters, a.k.a.real characters

2017-07-20 Thread Steve D'Aprano
On Fri, 21 Jul 2017 04:05 am, Marko Rauhamaa wrote: > If any string code point is 1114112 or greater By definition, no Unicode code point can ever have an ordinal value greater than 0x10 = 1114111. So I don't know what you're talking about, but it isn't Unicode. If you want to invent your

[issue30780] IDLE: configdialog - add tests for ConfigDialog GUI.

2017-07-20 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- dependencies: +IDLE: Add config dialog font page tests ___ Python tracker ___

[issue30466] Tutorial doesn't explain the use of classes

2017-07-20 Thread Mariatta Wijaya
Changes by Mariatta Wijaya : -- resolution: -> fixed stage: backport needed -> resolved status: open -> closed ___ Python tracker

Re: Your feedback on our free Advanced Python tutorial

2017-07-20 Thread Noah
On 20 Jul 2017 3:03 p.m., "Aude Barral, CodinGame" wrote: Hi everyone, I am co-founder of a startup called CodinGame. A few days ago we've launched a project: Tech.io . It's a free knowledge-sharing platform that allows tech professionals to learn new

[issue30466] Tutorial doesn't explain the use of classes

2017-07-20 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: New changeset ef4231adb7aa6b323c94e854ac3dc3bebc841115 by Mariatta (Trey Hunner) in branch '3.6': bpo-30466: Add brief explanation of classes to tutorial (GH-1804) (GH-2700) https://github.com/python/cpython/commit/ef4231adb7aa6b323c94e854ac3dc3bebc841115

[issue24776] IDLE: Improve config dialog font change user interface

2017-07-20 Thread Terry J. Reedy
Terry J. Reedy added the comment: I decided to rearrange page #24776 before changing sample #13802. -- dependencies: +IDLE: Add config dialog font page tests -IDLE Prefernces/Fonts: use multiple alphabets in examples ___ Python tracker

[issue13802] IDLE Prefernces/Fonts: use multiple alphabets in examples

2017-07-20 Thread Terry J. Reedy
Terry J. Reedy added the comment: I decided to rearrange page #24776 before changing sample #13802. -- dependencies: +IDLE: Improve config dialog font change user interface ___ Python tracker

[issue30981] IDLE: Add config dialog font page tests

2017-07-20 Thread Terry J. Reedy
New submission from Terry J. Reedy: I am working on this. * Change 'test_highlight_sample' to 'highlight_sample. * Change 'set_font_sample()' to 'set_samples()', since it also changes highlight_sample, and test. * Add gui event test for 'bold' checkbutton. * Perhaps add gui event test for size

[issue30870] IDLE: configdialog/fonts: change font when select by key up/down

2017-07-20 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- resolution: -> fixed stage: test needed -> resolved status: open -> closed ___ Python tracker ___

[issue30870] IDLE: configdialog/fonts: change font when select by key up/down

2017-07-20 Thread Terry J. Reedy
Terry J. Reedy added the comment: I am closing this as basically complete. I opened #30981 to add and perhaps complete font page tests. -- ___ Python tracker

[issue30981] IDLE: Add config dialog font page tests

2017-07-20 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- assignee: terry.reedy components: IDLE nosy: terry.reedy priority: normal severity: normal stage: needs patch status: open title: IDLE: Add config dialog font page tests type: enhancement versions: Python 3.6, Python 3.7

[issue30968] test_get_font (idlelib.idle_test.test_config.IdleConfTest) failure on x86 Windows7 3.x

2017-07-20 Thread Terry J. Reedy
Terry J. Reedy added the comment: Thanks. I will see what that does. -- ___ Python tracker ___ ___

[issue30968] test_get_font (idlelib.idle_test.test_config.IdleConfTest) failure on x86 Windows7 3.x

2017-07-20 Thread Louie Lu
Louie Lu added the comment: For the problem about the small name in git log Author, if you want to changed it, it will need to setup at https://github.com/settings/profile and update the first column "Name". I think this is because we merged on GitHub, and GitHub ignores the git author but

[issue30977] reduce uuid.UUID() memory footprint

2017-07-20 Thread Nir Soffer
Nir Soffer added the comment: This saves memory, but using str(uuid.uuid4()) requires even less memory. If you really want to save memory, you can keep the uuid.uuid4().int. Can you explain someone would like to have 100 uuid objects, instead of 100 strings? What is the advantage of

[issue30822] Python implementation of datetime module is not being tested correctly.

2017-07-20 Thread STINNER Victor
STINNER Victor added the comment: New changeset 287c5594edc1ca08db64d1f4739cc36bfe75ae75 by Victor Stinner (Utkarsh Upadhyay) in branch 'master': bpo-30822: Fix testing of datetime module. (#2530) (#2783) https://github.com/python/cpython/commit/287c5594edc1ca08db64d1f4739cc36bfe75ae75

[issue30822] Python implementation of datetime module is not being tested correctly.

2017-07-20 Thread STINNER Victor
STINNER Victor added the comment: New changeset 80ebc438ed377f8c6491e8887425526c6787c0e7 by Victor Stinner in branch '2.7': bpo-30822: regrtest: fix -u extralargefile (#2788) https://github.com/python/cpython/commit/80ebc438ed377f8c6491e8887425526c6787c0e7 --

[issue30931] Race condition in asyncore may access the wrong dispatcher

2017-07-20 Thread STINNER Victor
Changes by STINNER Victor : -- versions: -Python 3.3, Python 3.4 ___ Python tracker ___

Re: scandir slower than listdir

2017-07-20 Thread Tim Delaney
On 20 July 2017 at 21:43, Skip Montanaro wrote: > scandir returns an iterator of DirEntry objects which contain more > > information than the mere name. > > > > As I recall, the motivation for scandir was to avoid subsequent system > calls, so it will be slower than

[issue30980] Calling asyncore.file_wrapper.close twice may close unrelated file descriptor

2017-07-20 Thread STINNER Victor
Changes by STINNER Victor : -- versions: -Python 3.3, Python 3.4 ___ Python tracker ___

Re: Your feedback on our free Advanced Python tutorial

2017-07-20 Thread Guido van Rossum
Hi Aude, Unfortunately I don't have time to review or endorse your Python materials. Good luck, --Guido On Wed, Jul 19, 2017 at 9:44 AM, Aude Barral, CodinGame wrote: > Hi everyone, > > I am co-founder of a startup called CodinGame. > > A few days ago we've launched a

[issue30980] Calling asyncore.file_wrapper.close twice may close unrelated file descriptor

2017-07-20 Thread Nir Soffer
Changes by Nir Soffer : -- pull_requests: +2839 ___ Python tracker ___ ___ Python-bugs-list

[issue30979] the winapi fails to run shortcuts (because considers a shortcut not a valid Win32App)

2017-07-20 Thread Eryk Sun
Eryk Sun added the comment: subprocess.Popen calls WinAPI CreateProcess, which can execute PE/COFF executables and .BAT/.CMD batch scripts. It doesn't know anything about .LNK shell shortcuts. If CreateProcess fails, a Windows shell (e.g. CMD or PowerShell) tries ShellExecuteEx, which knows

[issue30980] Calling asyncore.file_wrapper.close twice may close unrelated file descriptor

2017-07-20 Thread Nir Soffer
New submission from Nir Soffer: Commit 4d4c69dc35154a9c21fed1b6b4088e741fbc6ae6 added protection for double close in file_wrapper.close, but the test did not consider that fact that file_wrapper is dupping the file descriptor, making the test ineffective. >>> fd1, fd2 = os.pipe() >>> f =

[issue30822] Python implementation of datetime module is not being tested correctly.

2017-07-20 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +2838 ___ Python tracker ___ ___

Re: Nesting concurrent.futures.ThreadPoolExecutor

2017-07-20 Thread Rob Gaddi
On 07/20/2017 12:44 PM, Andrew McLean wrote: I have a program where I am currently using a concurrent.futures.ThreadPoolExecutor to run multiple tasks concurrently. These tasks are typically I/O bound, involving access to local databases and remote REST APIs. However, these tasks could

[issue30979] the winapi fails to run shortcuts (because considers a shortcut not a valid Win32App)

2017-07-20 Thread Bernát Gábor
New submission from Bernát Gábor: Although python27.exe.lnk is callable from any command line tool, with any of its arguments the subprocess module thinks it's not a valid Win32 application. Proof, let there be python27.exe.lnk be a shortcut to python.exe: C:\Python27 λ ls python* python.exe*

Nesting concurrent.futures.ThreadPoolExecutor

2017-07-20 Thread Andrew McLean
I have a program where I am currently using a concurrent.futures.ThreadPoolExecutor to run multiple tasks concurrently. These tasks are typically I/O bound, involving access to local databases and remote REST APIs. However, these tasks could themselves be split into subtasks, which would also

[issue25988] collections.abc.Indexable

2017-07-20 Thread Guido van Rossum
Guido van Rossum added the comment: At least one use of Indexable (by whatever name, but this rolls off the tongue the easiest) would be the metaclass in typing.py that allows one to write List[int] -- there's no containter here! The "drowning out" seems purely subjective -- perhaps if you

[issue30978] str.format_map() silences exceptions in __getitem__

2017-07-20 Thread Eric V. Smith
Changes by Eric V. Smith : -- nosy: +eric.smith ___ Python tracker ___ ___

[issue28523] Idlelib.configdialog: use 'color' insteadof 'colour'

2017-07-20 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- pull_requests: +2837 ___ Python tracker ___ ___

[issue18875] Idle: Auto insertion of the closing parens, brackets, and braces

2017-07-20 Thread Charles Wohlganger
Charles Wohlganger added the comment: I've uploaded a test file and updated ParenClose. -- Added file: http://bugs.python.org/file47030/ParenClose.py ___ Python tracker

[issue18875] Idle: Auto insertion of the closing parens, brackets, and braces

2017-07-20 Thread Charles Wohlganger
Changes by Charles Wohlganger : Added file: http://bugs.python.org/file47029/test_parenclose.py ___ Python tracker ___

[issue30917] IDLE: Add idlelib.config.IdleConf unittest

2017-07-20 Thread Terry J. Reedy
Terry J. Reedy added the comment: PR2769 is the fix for master for test_get_font for #30968. The listing here is a cross-reference. The fix was incorporated into the 3.6 backport PR2753 before it was merged. This issue is closed, having increased coverage from 46% to 96%. Further work on

Re: Problem

2017-07-20 Thread Chris Angelico
On Fri, Jul 21, 2017 at 6:32 AM, Terry Reedy wrote: > Because the problem is with your code. Somewhere in one of the files in > your ok package passes a string or bytes containing \x00 to something that > results in an attempt to compile the string. Start with storage.py, >

Re: Problem

2017-07-20 Thread Terry Reedy
On 7/20/2017 3:19 PM, Hongze Liu wrote: Hello Python, I encountered this problem: File "C:\Users\Hongze\AppData\Local\Programs\python\Python36\lib\runpy.py", line 193, in _run_module_as_main "__main__", mod_spec) File

[issue29284] Include thread_name_prefix in the concurrent.futures.ThreadPoolExecutor example 17.4.2.1

2017-07-20 Thread Cheryl Sabella
Cheryl Sabella added the comment: Hi John, Would you be able to make a GitHub pull request for your change? Since CPython development has moved to GitHub, you may have a better chance of a review with a PR. -- nosy: +csabella ___ Python tracker

[issue30978] str.format_map() silences exceptions in __getitem__

2017-07-20 Thread Akuli
New submission from Akuli: Example: class BrokenMapping: def __getitem__(self, key): 1/0 # this silences the ZeroDivisionError and raises KeyError('world') 'hello {world}'.format_map(BrokenMapping()) I have tried this on several different CPython versions

Re: Problem

2017-07-20 Thread Igor Korot
Hi, Can you post some code? Thank you. On Thu, Jul 20, 2017 at 3:19 PM, Hongze Liu wrote: > Hello Python, > > I encountered this problem: > File "C:\Users\Hongze\AppData\Local\Programs\python\Python36\lib\runpy.py", > line 193, in _run_module_as_main > "__main__",

Problem

2017-07-20 Thread Hongze Liu
Hello Python, I encountered this problem: File "C:\Users\Hongze\AppData\Local\Programs\python\Python36\lib\runpy.py", line 193, in _run_module_as_main "__main__", mod_spec) File "C:\Users\Hongze\AppData\Local\Programs\python\Python36\lib\runpy.py", line 85, in _run_code exec(code,

[issue30973] Regular expression "hangs" interpreter

2017-07-20 Thread Matthew Barnett
Matthew Barnett added the comment: The regex module is much better in this respect, but it's not foolproof. With this particular example it completes quickly. -- ___ Python tracker

[issue30964] Mention ensurepip in package installation docs

2017-07-20 Thread nicholas kobald
Changes by nicholas kobald : -- pull_requests: +2836 ___ Python tracker ___ ___

[issue30976] multiprocessing.Process.is_alive can show True for dead processes

2017-07-20 Thread Mick Phillips
Mick Phillips added the comment: Yep - apologies, my mistake. -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker

[issue30576] http.server should support HTTP compression (gzip)

2017-07-20 Thread Terry J. Reedy
Terry J. Reedy added the comment: I saw the python-ideas post. I have no experience with http.server, but I just read the doc, and know something of our general enhancement policies. I hope these comments help. There are two questions: Should compression support be added to http.server?

Re: Grapheme clusters, a.k.a.real characters

2017-07-20 Thread Marko Rauhamaa
Chris Angelico : > Actually, the implementation I detailed was far SIMPLER than I thought > it would be; I started writing that post trying to prove that it was > impossible, but it turns out it isn't actually impossible. Just highly > impractical. The existing str

[issue30231] test_imaplib needs a TLS server accepting self-signed certificates

2017-07-20 Thread Ned Deily
Ned Deily added the comment: New changeset b5f20ea91ec4d9dc7e1c31629903888c651bd02c by Ned Deily (Victor Stinner) in branch '3.3': [3.3] Backport CI config from master and remove skipped imaplib tests (#2481) https://github.com/python/cpython/commit/b5f20ea91ec4d9dc7e1c31629903888c651bd02c

Re: Grapheme clusters, a.k.a.real characters

2017-07-20 Thread Chris Angelico
On Fri, Jul 21, 2017 at 2:10 AM, Random832 wrote: > On Thu, Jul 20, 2017, at 01:15, Steven D'Aprano wrote: >> I haven't really been paying attention to Marko's suggestion in detail, >> but if we're talking about a whole new data type, how about a list of >> nodes, where

Re: Grapheme clusters, a.k.a.real characters

2017-07-20 Thread Chris Angelico
On Fri, Jul 21, 2017 at 2:46 AM, Rhodri James wrote: > On 20/07/17 16:18, Rustom Mody wrote: >> >> So coming to the point: >> Its not whether Einstein or Mencken¹ is right but rather that Mencken >> applies to >> 1 whereas Einstein applies to 3 >> >> And (IMHO) text should

[issue30964] Mention ensurepip in package installation docs

2017-07-20 Thread Nicholas P Kobald
Nicholas P Kobald added the comment: Should this section refer to https://packaging.python.org/tutorials/installing-packages/#install-pip-setuptools-and-wheel as well? -- nosy: +Nickk ___ Python tracker

[issue30968] test_get_font (idlelib.idle_test.test_config.IdleConfTest) failure on x86 Windows7 3.x

2017-07-20 Thread STINNER Victor
STINNER Victor added the comment: Terry J. Reedy: I don't understand 'format your name' as there is no formatting that I did. GitHub picks your commits unchanged. Git picks your name from your .gitconfig configuration file, global $HOME/.gitconfig or local /.gitconfig. It's just that I saw

[issue27099] IDLE: turn builting extensions into regular modules

2017-07-20 Thread Terry J. Reedy
Terry J. Reedy added the comment: Same place is good for now as testing will be easier. Moving menu items will be a separate issue later. -- ___ Python tracker

[issue30977] reduce uuid.UUID() memory footprint

2017-07-20 Thread Wouter Bolsterlee
Wouter Bolsterlee added the comment: as a follow-up note, i also experimented with keeping the actual value as a bytes object instead of an integer, but that does not lead to less memory being used: a 128-bit integer uses less memory than a 16 byte bytes object (presumably because

[issue30977] reduce uuid.UUID() memory footprint

2017-07-20 Thread Wouter Bolsterlee
New submission from Wouter Bolsterlee: memory usage for uuid.UUID seems larger than it has to be. it seems that using __slots__ will save around ~100 bytes per instance, which is very significant, e.g. when dealing with large sets of uuids (which are often used as "primary keys" into external

[issue30977] reduce uuid.UUID() memory footprint

2017-07-20 Thread Wouter Bolsterlee
Changes by Wouter Bolsterlee : -- pull_requests: +2835 ___ Python tracker ___ ___

[issue30968] test_get_font (idlelib.idle_test.test_config.IdleConfTest) failure on x86 Windows7 3.x

2017-07-20 Thread Terry J. Reedy
Terry J. Reedy added the comment: I will try to look at the first line more carefully before hitting the 2nd green button. -- ___ Python tracker ___

[issue30976] multiprocessing.Process.is_alive can show True for dead processes

2017-07-20 Thread Gareth Rees
Gareth Rees added the comment: This is a race condition — when os.kill returns, that means that the signal has been delivered, but it does not mean that the subprocess has exited yet. You can see this by inserting a sleep after the kill and before the liveness check:

[issue30968] test_get_font (idlelib.idle_test.test_config.IdleConfTest) failure on x86 Windows7 3.x

2017-07-20 Thread Terry J. Reedy
Terry J. Reedy added the comment: I don't understand 'format your name' as there is no formatting that I did. Github copies account name and email as they are. I have no idea about commit message. The PR title has no extra spaces. But github does not always copy correctly. --

Re: Grapheme clusters, a.k.a.real characters

2017-07-20 Thread Rhodri James
On 20/07/17 16:18, Rustom Mody wrote: So coming to the point: Its not whether Einstein or Mencken¹ is right but rather that Mencken applies to 1 whereas Einstein applies to 3 And (IMHO) text should be squarely classed in 3 not 1 The gmas of this world have made shopping lists, written (and

[issue25988] collections.abc.Indexable

2017-07-20 Thread Ivan Levkivskyi
Ivan Levkivskyi added the comment: Raymond, > The existence of use ABCs like MutableMapping is being drowned-out by > one-trick-ponies. We're developing an unfavorable ratio of theoretical > building blocks versus the practical tools. Why do you think they are "theoretical"? FWIW, a simple

[issue29284] Include thread_name_prefix in the concurrent.futures.ThreadPoolExecutor example 17.4.2.1

2017-07-20 Thread John Taylor
John Taylor added the comment: Bump -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue30822] Python implementation of datetime module is not being tested correctly.

2017-07-20 Thread Utkarsh Upadhyay
Changes by Utkarsh Upadhyay : -- pull_requests: +2834 ___ Python tracker ___ ___

Re: Grapheme clusters, a.k.a.real characters

2017-07-20 Thread Random832
On Thu, Jul 20, 2017, at 01:15, Steven D'Aprano wrote: > I haven't really been paying attention to Marko's suggestion in detail, > but if we're talking about a whole new data type, how about a list of > nodes, where each node's data is a decomposed string object guaranteed to > be either: How

[issue30822] Python implementation of datetime module is not being tested correctly.

2017-07-20 Thread STINNER Victor
STINNER Victor added the comment: New changeset bf3a1e973b49236e6f267cca135d36290568e6a4 by Victor Stinner in branch '3.5': bpo-30822: regrtest: remove tzdata (#2782) https://github.com/python/cpython/commit/bf3a1e973b49236e6f267cca135d36290568e6a4 --

[issue30974] Update os.samefile docstring to match documentation

2017-07-20 Thread R. David Murray
R. David Murray added the comment: I would take "actual file" as meaning the file the symlink points to, so I'd say the documentation matches the implementation according to your description of the two. The current docs actually say "refer to the same file or directory", and mention os.stat

[issue28638] Optimize namedtuple creation

2017-07-20 Thread Raymond Hettinger
Raymond Hettinger added the comment: > it would be *nice* to not only optimization the creation > but also attribute access by name FWIW, once the property/itemgetter pair are instantiated in the NT class, the actual lookup runs through them at C speed (no pure python steps). There is not

[issue30822] Python implementation of datetime module is not being tested correctly.

2017-07-20 Thread STINNER Victor
STINNER Victor added the comment: (Oops, I gone too fast in my 3.5 backport. tzdata was only introduced in Python 3.6, for me it was something older. I wrote a new fix for 3.5, to only add extralargefile, but don't add tzdata.) -- ___ Python

[issue25988] collections.abc.Indexable

2017-07-20 Thread Raymond Hettinger
Raymond Hettinger added the comment: IIRC, the original motivation for ABCs was to differentiate distinct uses of __getitem__ (we forever struggled with differentiating sequences from mapping). It seems to me that this proposal is a step backwards. Other than a feeling of lightness, I don't

[issue30973] Regular expression "hangs" interpreter

2017-07-20 Thread R. David Murray
R. David Murray added the comment: Right. We don't try to fix handling these kinds of exponential expressions. This is a case of "don't do that" :) (I don't know if the regex module is better at "handling" this kind of regex bug.) -- nosy: +r.david.murray resolution: -> wont fix

Re: Grapheme clusters, a.k.a.real characters

2017-07-20 Thread Rustom Mody
On Thursday, July 20, 2017 at 3:21:52 AM UTC+5:30, Rick Johnson wrote: > On Tuesday, July 18, 2017 at 10:07:41 PM UTC-5, Steve D'Aprano wrote: > > On Wed, 19 Jul 2017 12:10 am, Rustom Mody wrote: > > [...] > > > > Einstein: If you can't explain something to a six-year- > > > old, you really

[issue30822] Python implementation of datetime module is not being tested correctly.

2017-07-20 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +2833 ___ Python tracker ___ ___

[issue30822] Python implementation of datetime module is not being tested correctly.

2017-07-20 Thread STINNER Victor
STINNER Victor added the comment: New changeset 645e503ba58086c7f51eda4d025743f2afc05a2a by Victor Stinner in branch '3.5': bpo-30822: Exclude tzdata from regrtest --all (#2775) (#2781) https://github.com/python/cpython/commit/645e503ba58086c7f51eda4d025743f2afc05a2a --

[issue30822] Python implementation of datetime module is not being tested correctly.

2017-07-20 Thread STINNER Victor
STINNER Victor added the comment: New changeset 96ef06f3979023fd69ed8796d0b1d5d3ae4d by Victor Stinner in branch '3.6': bpo-30822: Exclude tzdata from regrtest --all (#2775) (#2777) https://github.com/python/cpython/commit/96ef06f3979023fd69ed8796d0b1d5d3ae4d --

[issue30976] multiprocessing.Process.is_alive can show True for dead processes

2017-07-20 Thread Mick Phillips
New submission from Mick Phillips: multiprocessing.Process.is_alive() returns True for processes that have been killed. See attached for example. Workaround: also test against psutils.pid_exists. -- components: Windows files: alive.py messages: 298724 nosy: davin, mickp, paul.moore,

[issue30975] multiprocessing.Condition.notify_all() blocks indefinitely if a process waiting on it has died

2017-07-20 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +sbt ___ Python tracker ___ ___ Python-bugs-list mailing

[issue30822] Python implementation of datetime module is not being tested correctly.

2017-07-20 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +2832 ___ Python tracker ___ ___

[issue27099] IDLE: turn builting extensions into regular modules

2017-07-20 Thread Charles Wohlganger
Charles Wohlganger added the comment: Menus items were placed where they appeared as extensions. It would be no difficulty for me to move them around. -- ___ Python tracker

[issue30975] multiprocessing.Condition.notify_all() blocks indefinitely if a process waiting on it has died

2017-07-20 Thread Antoine Pitrou
Antoine Pitrou added the comment: As a matter of fact, the bug is in Condition (which is used by Event.wait() but not by Event.is_set(), hence your workaround). Here is a reproducer script. This looks like a hard issue to solve. There is no way to know whether a process that used to be

[issue30822] Python implementation of datetime module is not being tested correctly.

2017-07-20 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +2831 ___ Python tracker ___ ___

[issue30822] Python implementation of datetime module is not being tested correctly.

2017-07-20 Thread STINNER Victor
STINNER Victor added the comment: New changeset 5b392bbaeb9d9b1db961ecfc7315d8c8662c27f6 by Victor Stinner in branch 'master': bpo-30822: Exclude tzdata from regrtest --all (#2775) https://github.com/python/cpython/commit/5b392bbaeb9d9b1db961ecfc7315d8c8662c27f6 --

[issue30975] Multiprocessing: Event.set() blocks indefinitely if a process waiting on it has died.

2017-07-20 Thread Mick Phillips
Mick Phillips added the comment: Thanks for confirming. If anyone finds this and is looking for a workaround, here's what I'm using: while not event.is_set() try: time.sleep(timeout) except (KeyboardInterrupt, IOError): pass --

[issue30975] Multiprocessing: Event.set() blocks indefinitely if a process waiting on it has died.

2017-07-20 Thread Antoine Pitrou
Antoine Pitrou added the comment: Hi Mick, thanks for reporting this issue. You're right that the behaviour isn't expected. -- nosy: +pitrou stage: -> needs patch versions: +Python 3.6, Python 3.7 ___ Python tracker

[issue30966] multiprocessing.queues.SimpleQueue leaks 2 fds

2017-07-20 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +2830 ___ Python tracker ___ ___

[issue30945] loop.create_server does not detect if the interface is IPv6 enabled

2017-07-20 Thread Antoine Pitrou
Antoine Pitrou added the comment: Cécile, thank you. The reason the message is still displayed is that I turned the error into a warning (in other words, it is expected). -- ___ Python tracker

[issue30822] Python implementation of datetime module is not being tested correctly.

2017-07-20 Thread STINNER Victor
STINNER Victor added the comment: Serhiy Storchaka: "If testing with -u tzdata is such expensive, tzdata can be excluded from all resources." I agree, I wrote a PR for that: https://github.com/python/cpython/pull/2775 I like using "-u all" without having to remind that a specific resource

Re: SIGSEGV and SIGILL inside PyCFunction_Call

2017-07-20 Thread Anders Wegge Keller
På Thu, 20 Jul 2017 07:44:26 +0200 dieter skrev: > Anders Wegge Keller writes: ... >> Weird observation #1: Sometimes the reason is SIGSEGV, sometimes it's >> SIGILL. > Python tends to be sensitive to the stack size. In previous times, > there have

[issue30945] loop.create_server does not detect if the interface is IPv6 enabled

2017-07-20 Thread Cecile Tonglet
Cecile Tonglet added the comment: Sure! It seems to work, the process returns an exit code of 0 and I see no traceback but the message is still displayed in the terminal. (Also I did something weird because your patch applies on branch master and I ran it with Python 3.6... I suppose it

[issue30973] Regular expression "hangs" interpreter

2017-07-20 Thread Gareth Rees
Gareth Rees added the comment: This is the usual exponential backtracking behaviour of Python's regex engine. The problem is that the regex (?:[^*]+|\*[^/])* can match against a string in exponentially many ways, and Python's regex engine tries all of them before giving up. --

  1   2   >