[issue17960] Clarify the required behaviour of locals()

2017-06-29 Thread Nick Coghlan

Changes by Nick Coghlan :


--
assignee:  -> ncoghlan

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30755] locale.normalize() and getdefaultlocale() convert C.UTF-8 to en_US.UTF-8

2017-06-29 Thread Nick Coghlan

Nick Coghlan added the comment:

I'm honestly not sure how our Python level locale handling really works (I've 
mainly worked on the lower level C locale manipulation), so adding folks to the 
nosy list based on #20076 and #29571.

I agree we shouldn't be aliasing C.UTF-8 to en_US.UTF-8 though - we took 
en_US.UTF-8 out of the locale coercion fallback list in PEP 538 because it 
wasn't really right.

--
nosy: +benjamin.peterson, lemburg, serhiy.storchaka

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6691] Support for nested classes and function for pyclbr

2017-06-29 Thread Terry J. Reedy

Terry J. Reedy added the comment:

PR.  Also manually test classbrowser with the modified pyclbr and report what 
you see on your system.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30809] IDLE parenmatch - highlighting options

2017-06-29 Thread Terry J. Reedy

Terry J. Reedy added the comment:

I am not willing to add a new theme element to the 13 that already exist, let 
alone define it in config-extensions.def rather than in config-hightlight.def.  
It is too much additional complication for too little impact.  Also, any theme 
specified in config-extensions would likely not work if the user switches 
between dark and light text.  Theme sets work together.

I will consider letting users select which of the existing 13 to use.  This 
requires that users be able to know what the 13 choices are.  Hence  the 
dependence on #22705.

I might also look at the visual effect of underlining.

--
dependencies: +Idle extension configuration: add option-help option
priority: normal -> low
stage:  -> needs patch

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2017-06-29 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
assignee:  -> terry.reedy
stage: needs patch -> patch review
versions: +Python 3.6, Python 3.7 -Python 2.7, Python 3.3, Python 3.4

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue19150] IDLE shell fails: "ModifiedInterpreter instance has no attribute 'interp'"

2017-06-29 Thread Terry J. Reedy

Terry J. Reedy added the comment:

I managed to crash 2.7 -n by running the multi-thread tkinter program posted 
for #10909.  Since it modifies widgets created in the main thread from a 
thread, I don't consider the failure a fixable IDLE bug.

3.6 -n ran the same program, so this is only for 2.7.

--
stage: test needed -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue13262] IDLE opens partially hidden

2017-06-29 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
assignee:  -> terry.reedy
versions: +Python 3.6, Python 3.7 -Python 2.7, Python 3.3, Python 3.4

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15313] IDLE - remove all bare excepts

2017-06-29 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
assignee:  -> terry.reedy
stage:  -> needs patch
versions: +Python 3.6, Python 3.7 -Python 2.7, Python 3.3, Python 3.4

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue19808] IDLE applies syntax highlighting to user input in its shell

2017-06-29 Thread Terry J. Reedy

Terry J. Reedy added the comment:

Still a problem in 3.6.

--
assignee:  -> terry.reedy
stage:  -> test needed
versions: +Python 3.6, Python 3.7 -Python 2.7, Python 3.3, Python 3.4

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue13582] IDLE and pythonw.exe stderr problem

2017-06-29 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
assignee:  -> terry.reedy
stage: test needed -> patch review
versions: +Python 3.6, Python 3.7 -Python 2.7, Python 3.3, Python 3.4

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11838] IDLE: make interactive code savable as a runnable script

2017-06-29 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
assignee:  -> terry.reedy
versions: +Python 3.6, Python 3.7 -Python 2.7, Python 3.4, Python 3.5

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12387] IDLE save keyboard shortcut problem

2017-06-29 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
assignee:  -> terry.reedy
stage: needs patch -> patch review
versions: +Python 3.6, Python 3.7 -Python 2.7, Python 3.4, Python 3.5

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21756] IDLE - ParenMatch fails to find closing paren of multi-line statements

2017-06-29 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
assignee:  -> terry.reedy
stage: test needed -> patch review
versions: +Python 3.6, Python 3.7 -Python 2.7, Python 3.4, Python 3.5

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6092] IDLE: Changed Shortcuts don't show up in menu

2017-06-29 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
assignee:  -> terry.reedy
versions: +Python 3.6, Python 3.7 -Python 2.7, Python 3.4, Python 3.5

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21880] IDLE: Ability to run 3rd party code checkers

2017-06-29 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
assignee:  -> terry.reedy
stage:  -> patch review
type:  -> enhancement
versions: +Python 3.6, Python 3.7 -Python 2.7, Python 3.4, Python 3.5

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue13179] IDLE uses common tkinter variables across all editor windows

2017-06-29 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
assignee:  -> terry.reedy
stage:  -> patch review
versions: +Python 3.6, Python 3.7 -Python 2.7, Python 3.4, Python 3.5

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2017-06-29 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
assignee:  -> terry.reedy
nosy:  -BreamoreBoy
versions: +Python 3.6, Python 3.7 -Python 2.7, Python 3.4, Python 3.5

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue13657] IDLE doesn't support sys.ps1 and sys.ps2.

2017-06-29 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
assignee:  -> terry.reedy
versions: +Python 3.6, Python 3.7 -Python 2.7, Python 3.4, Python 3.5

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15808] Possibility of setting custom key bindings for "Additional help sources" menu items

2017-06-29 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
assignee:  -> terry.reedy
versions: +Python 3.6, Python 3.7 -Python 2.7, Python 3.4, Python 3.5

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue13220] print function unable while multiprocessing.Process is being run

2017-06-29 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
assignee:  -> terry.reedy
versions: +Python 3.6, Python 3.7 -Python 2.7, Python 3.4, Python 3.5

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6804] IDLE: Detect Python files even if name doesn't end in .py

2017-06-29 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
assignee:  -> terry.reedy
versions: +Python 3.6, Python 3.7 -Python 2.7, Python 3.4, Python 3.5

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18903] IDLE file-completion is case-sensitive in Windows

2017-06-29 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
assignee:  -> terry.reedy
versions: +Python 3.6, Python 3.7 -Python 2.7, Python 3.4, Python 3.5

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18903] IDLE file-completion is case-sensitive in Windows

2017-06-29 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
nosy:  -BreamoreBoy

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21603] IDLE: Document SaveAs extension display on Mac

2017-06-29 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
assignee:  -> terry.reedy
stage:  -> test needed
versions: +Python 3.6, Python 3.7 -Python 2.7, Python 3.4, Python 3.5

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue27621] Finish IDLE Query dialog appearance and behavior.

2017-06-29 Thread Terry J. Reedy

Terry J. Reedy added the comment:

#24812 specifically talks about Mac standards.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue24812] All standard keystrokes not recognized in IDLE dialogs on Mac

2017-06-29 Thread Terry J. Reedy

Terry J. Reedy added the comment:

query.Query has and will mostly replace tkinter.simpledialog #27115.
This is partially a duplicate with respect to Query #27621.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2053] IDLE - standardize dialogs

2017-06-29 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
assignee:  -> terry.reedy
versions: +Python 3.6, Python 3.7 -Python 2.7, Python 3.3, Python 3.4

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue24893] Tk occasionally mispositions Text() insert cursor on mouse click.

2017-06-29 Thread Terry J. Reedy

Terry J. Reedy added the comment:

I suspect that this is entirely a tkinter problem, not an IDLE problem.  For 
the editor, ButtonRelease is bound to set_line_and_column which updates the 
status bar.  The function return None so tk can handle the click to move the 
cursor.

--
versions: +Python 3.7 -Python 2.7, Python 3.5

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29926] IDLE: in shell, time.sleep ignores _thread.interrupt_main()

2017-06-29 Thread Nathaniel Smith

Nathaniel Smith added the comment:

Then maybe simplest solution is to scale back the claim :-).

The important semantic change would be that right now, interrupt_main() is 
documented to cause KeyboardInterrupt to be raised in the main thread. So if 
you register a custom SIGINT handler that *doesn't* raise KeyboardInterrupt, 
interrupt_main() doesn't care: it doesn't invoke your custom handler, it just 
raises KeyboardInterrupt. My proposal would make it so that interrupt_main() 
does cause custom SIGINT handlers to be called, as well as triggering all of 
the interpreters existing machinery for prompt signal delivery (waking up 
time.sleep etc.), so in that respect it would be much more similar to a "real" 
control-C than it is now. This is a non-trivial semantic change, so it would 
need to be documented, but I'm not attached to the "equivalent to control-C" 
phrasing.

Even on UNIX, a "real" control-C is delivered to all processes in the 
foreground process group (or something like that, ttys are weird), but we would 
want interrupt_main() to only be delivered to the current process, so the 
equivalence wouldn't be exact there either.

> That operation isn't buggy on its own to my knowledge

I spent quite some time trying to make this work in order to test control-C 
handling in trio, and eventually gave up because I just could not make it work 
reliably. One notable effect is that if you call 
GenerateConsoleCtrlEvent(CTRL_C_EVENT, 0) in an appveyor test run, then it 
breaks appveyor -- at the end of the run it freezes with "Terminate batch job 
(Y/N)?" and then sits until the test run times out. It's possible to work 
around this with some extremely obscure code (make sure you always spawn a 
subprocess with CREATE_NEW_CONSOLE or maybe CREATE_NEW_CONSOLE_GROUP etc.), but 
(a) we can't tell people that they need to do that before running code that 
uses interrupt_main(), and (b) even when I did that, then I still had bizarre 
issues I couldn't figure out, where sometimes the event just wouldn't be 
delivered unless I ran the interpreter with the -u option for unbuffered stdio 
(?!?!) (see [1]).

I just don't think this is something that CPython can use.

I eventually switched to simulating control-C events for testing by calling 
raise(SIGINT), and that's worked much much better.

> I mentioned the possibility of calling CancelSynchronousIo in order to cancel 
> a console read like Ctrl+C does (but clunkier) -- again, because of the 
> equivalence claim. ERROR_OPERATION_ABORTED would need to be handled like 
> EINTR on Unix. This would entail small changes to a lot of code, so it does 
> need a separate issue if there's any support for this idea.

It still wouldn't be equivalent because control-C only cancels console reads, 
but CancelSynchronousIo would cancel *any* blocking I/O operation that the main 
thread was doing, right? So e.g. if the main thread was blocked doing 
socket.recv, then control-C wouldn't interrupt that, but interrupt_main() / 
PyErr_SetInterrupt() would. I can certainly see an argument that Python's 
C-level signal handler *should* call CancelSynchronousIo in general, and then 
raise(SIGINT) and control-C would be equivalent because they both called 
CancelSynchronousIo, but yeah, that's way beyond the scope of this issue.

[1] 
https://github.com/python-trio/trio/commit/95843654173e3e826c34d70a90b369ba6edf2c23#diff-345cfb6c136028f9514b67ee7bb8e035R11

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue9262] IDLE: Use tabbed shell and edit windows

2017-06-29 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
assignee:  -> terry.reedy
versions: +Python 3.7 -Python 2.7, Python 3.5

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue24760] IDLE settings dialog shouldn't be modal

2017-06-29 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
assignee:  -> terry.reedy
versions: +Python 3.7 -Python 2.7, Python 3.5

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue13586] IDLE: Replace selected not working/consistent with find

2017-06-29 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
assignee:  -> terry.reedy
versions: +Python 3.6, Python 3.7 -Python 2.7, Python 3.4, Python 3.5

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20579] OS X IDLE keyboard accelerators fail or misbehave with Cocoa Tk

2017-06-29 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
assignee:  -> terry.reedy
nosy: +terry.reedy
versions: +Python 3.6, Python 3.7 -Python 2.7, Python 3.3, Python 3.4

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22354] Idle: highlite tabs

2017-06-29 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
assignee:  -> terry.reedy
versions: +Python 3.6, Python 3.7 -Python 2.7, Python 3.4, Python 3.5

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5594] IDLE startup configuration

2017-06-29 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
assignee:  -> terry.reedy
versions: +Python 3.7 -Python 2.7, Python 3.4, Python 3.5

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30772] Normalise non-ASCII variable names in __all__

2017-06-29 Thread Steven D'Aprano

Steven D'Aprano added the comment:

I think that the names in __all__ should have the same NFKC normalisation 
applied as the identifiers.

Re-opening for 3.7.

--
resolution: not a bug -> 
stage: resolved -> 
status: closed -> open
title: If I make an attribute " -> Normalise non-ASCII variable names in __all__
type:  -> behavior
versions: +Python 3.7 -Python 3.6

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue14576] IDLE: inconsistent use of HOMEDRIVE, HOMEPATH, and USERPROFILE on Windows

2017-06-29 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
assignee:  -> terry.reedy
versions: +Python 3.7 -Python 2.7, Python 3.5

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10909] IDLE: thread hang, possibly related to print

2017-06-29 Thread Terry J. Reedy

Terry J. Reedy added the comment:

In 3.6.2rc1, the counter has reached nearly 4 after 40 minutes.  So no  bug 
in current 3.x.  I ran a couple of times with 2.7 and got 3000-4000 both times. 
 I am no longer patching IDLE for 2.7, so closing.

--
assignee:  -> terry.reedy
resolution:  -> wont fix
stage: patch review -> resolved
status: open -> closed
versions:  -Python 3.4, Python 3.5

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2704] IDLE: Patch to make PyShell behave more like a Terminal interface

2017-06-29 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
assignee: kbk -> terry.reedy
stage: needs patch -> patch review
versions: +Python 3.6, Python 3.7 -Python 2.7, Python 3.4, Python 3.5

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue13504] Meta-issue for "Invent with Python" IDLE feedback

2017-06-29 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
assignee:  -> terry.reedy
versions: +Python 3.6, Python 3.7 -Python 2.7, Python 3.4, Python 3.5

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6691] Support for nested classes and function for pyclbr

2017-06-29 Thread Cheryl Sabella

Cheryl Sabella added the comment:

I have the change ready to push.  I didn't change the tests, except to fix what 
was failing earlier, so the tests would need to be reviewed (the test currently 
creates a real temporary file that it opened and read, but a Mock would be 
better?)

Anyway, do you want me to make the PR with what I have or would you rather a 
new diff file?

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29926] IDLE: in shell, time.sleep ignores _thread.interrupt_main()

2017-06-29 Thread Eryk Sun

Eryk Sun added the comment:

The strong claim that "interrupt_main is now equivalent to the user having hit 
control-C" is the reason I suggested broadcasting CTRL_C_EVENT via 
GenerateConsoleCtrlEvent. That operation isn't buggy on its own to my 
knowledge. There is a glitch due to the CRT. If a non-console process calls 
AllocConsole or AttachConsole, its list of registered handlers gets reset to 
the default handler that calls ExitProcess, and the CRT provides no way to set 
its handler again. 

I mentioned the possibility of calling CancelSynchronousIo in order to cancel a 
console read like Ctrl+C does (but clunkier) -- again, because of the 
equivalence claim. ERROR_OPERATION_ABORTED would need to be handled like EINTR 
on Unix. This would entail small changes to a lot of code, so it does need a 
separate issue if there's any support for this idea.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20580] IDLE should support platform-specific default config defaults

2017-06-29 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
assignee:  -> terry.reedy
versions: +Python 3.7 -Python 2.7, Python 3.5

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22554] Idle: optionally auto-pop-up completion window for names

2017-06-29 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
assignee:  -> terry.reedy
versions: +Python 3.6, Python 3.7 -Python 2.7, Python 3.4

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue24265] IDLE -s and (-, -c command, or -r file) produces error message

2017-06-29 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
assignee:  -> terry.reedy
versions: +Python 3.7 -Python 2.7, Python 3.5

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30779] IDLE: configdialog -- factor out Changes class

2017-06-29 Thread Cheryl Sabella

Cheryl Sabella added the comment:

Here's the beginning design.  Since it's a high priority, I didn't want to wait 
too long to show you something.  As you can see, I still had a lot of questions 
and things I wasn't sure about.

I have some tests, but wanted to have it more complete before submitting it.

When you said 'submit', I didn't know if you wanted a real PR at each step or 
just files here.  If you'd prefer a PR so you could modify it, let me know and 
I'll prepare that tomorrow.

Thanks!

--
Added file: http://bugs.python.org/file46980/changes_class.py

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6858] IDLE: allow syntax highlighting of files without .py extension

2017-06-29 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
versions: +Python 3.6, Python 3.7 -Python 2.7, Python 3.4, Python 3.5

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17960] Clarify the required behaviour of locals()

2017-06-29 Thread Guido van Rossum

Guido van Rossum added the comment:

Yeah, I think a short PEP would be helpful here.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue28711] IDLE doesn't open

2017-06-29 Thread Terry J. Reedy

Terry J. Reedy added the comment:

>From the information given, this duplicates #21973

--
resolution:  -> duplicate
stage:  -> resolved
status: open -> closed
superseder:  -> IDLE: catch user cfg file error, better error message, continue

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18318] Idle: stop depending on console output

2017-06-29 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
stage:  -> test needed
versions: +Python 3.6, Python 3.7 -Python 2.7, Python 3.3, Python 3.4

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue24039] Idle: some modal dialogs maximize, don't minimize

2017-06-29 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
assignee:  -> terry.reedy
versions: +Python 3.7 -Python 2.7, Python 3.4, Python 3.5

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30495] IDLE: modernize textview module

2017-06-29 Thread Terry J. Reedy

Terry J. Reedy added the comment:


New changeset 6f31717c47e325460e2a661bf44b45d342d65bcb by terryjreedy in branch 
'3.6':
[3.6] bpo-30495: IDLE: improve textview with docstrings, PEP8 names, more 
tests. (GH-2283) (#2496)
https://github.com/python/cpython/commit/6f31717c47e325460e2a661bf44b45d342d65bcb


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30495] IDLE: modernize textview module

2017-06-29 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
pull_requests: +2557

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30495] IDLE: modernize textview module

2017-06-29 Thread Terry J. Reedy

Terry J. Reedy added the comment:


New changeset 42bc8beadd49f60cc52fdc397897b3bd81640406 by terryjreedy 
(csabella) in branch 'master':
bpo-30495: IDLE: improve textview with docstrings, PEP8 names, more tests. 
(#2283)
https://github.com/python/cpython/commit/42bc8beadd49f60cc52fdc397897b3bd81640406


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30038] Race condition in how trip_signal writes to wakeup fd

2017-06-29 Thread Nathaniel Smith

Changes by Nathaniel Smith :


--
resolution:  -> fixed
stage:  -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30038] Race condition in how trip_signal writes to wakeup fd

2017-06-29 Thread Antoine Pitrou

Antoine Pitrou added the comment:

Why is this PR not closed?

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29926] IDLE: in shell, time.sleep ignores _thread.interrupt_main()

2017-06-29 Thread Antoine Pitrou

Antoine Pitrou added the comment:

+1 on having PyErr_SetInterrupt() call raise(SIGINT) or equivalent.

--
nosy: +pitrou

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue9566] Compilation warnings under x64 Windows

2017-06-29 Thread Segev Finer

Changes by Segev Finer :


--
pull_requests: +2556

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30807] setitimer() can disable timer by mistake

2017-06-29 Thread Antoine Pitrou

Antoine Pitrou added the comment:

Also using the PyTime APIs will make it annoying to backport to 2.7 (which 
isn't mandatory, of course).

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30807] setitimer() can disable timer by mistake

2017-06-29 Thread Antoine Pitrou

Antoine Pitrou added the comment:

If I use the PyTime APIs, it will change the signature from
  setitimer($module, which, seconds, interval=0.0, /)
to
  setitimer($module, which, seconds, interval=None, /).

I'm not sure that's ok in a bugfix release?

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30807] setitimer() can disable timer by mistake

2017-06-29 Thread Antoine Pitrou

Antoine Pitrou added the comment:

Ok, it's not select(), it's epoll_wait().  I see.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30807] setitimer() can disable timer by mistake

2017-06-29 Thread Antoine Pitrou

Antoine Pitrou added the comment:

I don't understand how 0.1 ms can be rounded down to 0 in a "struct timeval", 
which has microsecond precision.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30807] setitimer() can disable timer by mistake

2017-06-29 Thread STINNER Victor

STINNER Victor added the comment:

> Not sure why? If you pass 0 instead of a tiny value, select() shouldn't 
> behave significantly differently.

I used select() as an example of function where we also changed how the timeout 
was rounded, so we had to decide how to handle backward compatibility.

Rounding select() timeout has an big impact of power consumption in an event 
loop, especially when you use poll() which only has a resolution of 1 ms (and 
not 1 us). If you round 0.1 ms to 0, you enter a busy-loop which burns your CPU 
during 0.1 ms. If you do that many times, it can be much longer than 0.1 ms and 
so be very inefficient.

We had this performance issue in asyncio. We fixed it in asyncio *and* select 
modules. 

https://bugs.python.org/issue20311

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30809] IDLE parenmatch - highlighting options

2017-06-29 Thread Charles Wohlganger

Changes by Charles Wohlganger :


--
pull_requests: +2554

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30809] IDLE parenmatch - highlighting options

2017-06-29 Thread Charles Wohlganger

New submission from Charles Wohlganger:

Current IDLE parenmatch highlighting uses the 'hilite' style when highlighting 
the parens/expression.

Desired behavior is to use a user-setting based style that is independent from 
the hilite style (which is used for highlighting selected text). Desired 
selectable options are for foreground color, background color, underlining and 
font (which covers font type, size, bold, and italics)

Apart from running IDLE and checking that the selections match, I don't know 
how to test. Testing would need a human to check for correct colors, etc. if it 
was made, so it couldn't be automated...

--
assignee: terry.reedy
components: IDLE
messages: 297317
nosy: terry.reedy, wohlganger
priority: normal
severity: normal
status: open
title: IDLE parenmatch - highlighting options
type: enhancement
versions: Python 3.6, Python 3.7

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30807] setitimer() can disable timer by mistake

2017-06-29 Thread Antoine Pitrou

Changes by Antoine Pitrou :


--
stage: needs patch -> patch review

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30807] setitimer() can disable timer by mistake

2017-06-29 Thread Antoine Pitrou

Antoine Pitrou added the comment:

> Well, select.select() is a better example. I had nightmare with the
rounding of its timeout 

Not sure why? If you pass 0 instead of a tiny value, select() shouldn't behave 
significantly differently.

In any case, I don't want to have nightmares, I simply want to fix a bug that 
contributed to make one the buildbots fail :-)

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30808] Use _Py_atomic API for concurrency-sensitive signal state

2017-06-29 Thread Antoine Pitrou

Antoine Pitrou added the comment:

Look at the PR :-) That's what we used.  But, while sig_atomic_t guarantees 
that accesses are atomic, it doesn't enforce a memory order.  So the CPU 
(depending on the architecture) is free to reorder writes.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30807] setitimer() can disable timer by mistake

2017-06-29 Thread STINNER Victor

STINNER Victor added the comment:

> sigtimedwait() is different: zero doesn't mean anything special.  If you 
> mistake zero for 1e-6 or the reverse, it works fine.

Well, select.select() is a better example. I had nightmare with the
rounding of its timeout :-)

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30808] Use _Py_atomic API for concurrency-sensitive signal state

2017-06-29 Thread STINNER Victor

STINNER Victor added the comment:

There is a sig_atomic_t type. Should we use that one?
https://www.gnu.org/software/libc/manual/html_node/Atomic-Types.html

"To avoid uncertainty about interrupting access to a variable, you can use a 
particular data type for which access is always atomic: sig_atomic_t. Reading 
and writing this data type is guaranteed to happen in a single instruction, so 
there’s no way for a handler to run “in the middle” of an access."

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30803] Truth value of sets not properly documented

2017-06-29 Thread Raymond Hettinger

Raymond Hettinger added the comment:

This case was supposed to be covered by the last bullet point, "instances of 
user-defined classes, if the class defines a __bool__() or __len__() method, 
when that method returns the integer zero or bool value False.".  The word 
"user-defined" should be dropped.

Also, the whole section can be simplified to something like:

"""
By default, objects are considered true unless they define either a __bool__ 
method that returns False or __len__ method that returns zero.  

Practically, this means that empty containers are false (such as [], (), {}, 
'', etc) and that numbers equal to zero are false (such as 0, 0.0, 0.0j, False, 
Decimal(0), Fractions(0, 1), etc).  Also, *None* is a false value.


"""

--
assignee: docs@python -> rhettinger
nosy: +rhettinger
priority: normal -> low

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30807] setitimer() can disable timer by mistake

2017-06-29 Thread Antoine Pitrou

Antoine Pitrou added the comment:

sigtimedwait() is different: zero doesn't mean anything special.  If you 
mistake zero for 1e-6 or the reverse, it works fine.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30807] setitimer() can disable timer by mistake

2017-06-29 Thread Antoine Pitrou

Antoine Pitrou added the comment:

> I would prefer to reuse pytime.c conversion code which is well tested by 
> test_time. _PyTime_FromObject() already contains code to convert a double to 
> _PyTime_t, and _PyTime_AsTimeval() converts a _PyTime_t to timeval. Use 
> _PyTime_ROUND_CEILING as signal.sigtimedwait().

I don't understand how that works.  Can you post a snippet implementing what is 
needed here?

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30807] setitimer() can disable timer by mistake

2017-06-29 Thread Antoine Pitrou

Antoine Pitrou added the comment:

It's not about correctly rounding something, it's about fixing a bug.  I don't 
care about rounding if it means being a microsecond late.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30807] setitimer() can disable timer by mistake

2017-06-29 Thread STINNER Victor

STINNER Victor added the comment:

I'm not sure about modifying Python 2.7. For example, we didn't change the 
select module in Python 2.7 to round correctly the timeout.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29926] IDLE: in shell, time.sleep ignores _thread.interrupt_main()

2017-06-29 Thread Nathaniel Smith

Nathaniel Smith added the comment:

> A real Ctrl+C executes the registered control handlers for the process.

Right, but it's *extremely* unusual for a python 3 program to have a control 
handler registered directly via SetConsoleCtrlHandler. This isn't an API that 
the interpreter uses or exposes. The vast majority of programs receive 
control-C notification by letting the C runtime convert the low level console 
event into a SIGINT, and then receiving this via the signal module.

> To emulate this, PyErr_SetInterrupt could try calling 
> GenerateConsoleCtrlEvent(CTRL_C_EVENT, 0) to broadcast a Ctrl+C event. 

But as mentioned up thread, this is really flaky - and even when it works it 
tends to kill random other processes, which is *certainly* not what anyone 
expects from calling interrupt_main. You can't really call it experimentally – 
even trying to call it can do stuff like cause appveyor tests to lock up.

Given these two issues, I think that emulating control-C at the signal level 
makes the best tradeoffs. Something that works 100% reliably for 99.99% of 
python programs is way better than something that is 80% reliable for 100% of 
programs.

> One problem is that GenerateConsoleCtrlEvent(CTRL_C_EVENT, 0) doesn't cancel 
> a blocking console read like Ctrl+C does. Python's C handler could call 
> CancelSynchronousIo(hMainThread) to address this problem in general. 
> Unfortunately, when a console read is canceled in the client, it isn't 
> canceled in the console itself. The contents of the read will be discarded, 
> but it's a bit clunky that the user has to press enter.

This might be something to address as a separate issue? I'm guessing this 
doesn't affect idle, and it doesn't affect time.sleep, which seem to be the 
main topics of this thread, plus it sounds like any solution would be mostly 
orthogonal.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30807] setitimer() can disable timer by mistake

2017-06-29 Thread STINNER Victor

STINNER Victor added the comment:

I would prefer to reuse pytime.c conversion code which is well tested by 
test_time. _PyTime_FromObject() already contains code to convert a double to 
_PyTime_t, and _PyTime_AsTimeval() converts a _PyTime_t to timeval. Use 
_PyTime_ROUND_CEILING as signal.sigtimedwait().

For signal.sigtimedwait(): see commit 34dc0f46ae5c0c9ec91d9402fac6b802855f 
and http://bugs.python.org/issue22117.

Using ROUND_CEILING is now also used in the select module for a similar reason.

See my https://haypo.github.io/pytime.html article for the horror story of 
timestamp rounding :-)

--
nosy: +haypo

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30726] [Windows] Warnings in elementtree due to new expat

2017-06-29 Thread Steve Dower

Steve Dower added the comment:

It doesn't even fix a warning - only suppresses it. Since there is no behavior 
change at all, I'm not inclined to backport any further than is trivial.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30808] Use _Py_atomic API for concurrency-sensitive signal state

2017-06-29 Thread Antoine Pitrou

Changes by Antoine Pitrou :


--
pull_requests: +2553

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30808] Use _Py_atomic API for concurrency-sensitive signal state

2017-06-29 Thread Antoine Pitrou

New submission from Antoine Pitrou:

We already use the _Py_atomic APIs in ceval.c, for lockless boolean flags.  We 
should do the same in the signal module where there are similar concurrency 
issues (for example between the signal handler running in one thread and 
PyErr_CheckSignals running in another thread).

--
components: Interpreter Core
messages: 297304
nosy: haypo, jyasskin, neologix, pitrou
priority: normal
severity: normal
stage: patch review
status: open
title: Use _Py_atomic API for concurrency-sensitive signal state
type: enhancement
versions: Python 3.7

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30779] IDLE: configdialog -- factor out Changes class

2017-06-29 Thread Terry J. Reedy

Terry J. Reedy added the comment:

High, because other issues depend on this.

--
priority: normal -> high

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30796] Failures/crashes in test_signal on some buildbots

2017-06-29 Thread Antoine Pitrou

Antoine Pitrou added the comment:

Ok, the timeout on the "Ubuntu Shared" buildbot is due to 
https://bugs.python.org/issue30807

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30807] setitimer() can disable timer by mistake

2017-06-29 Thread Antoine Pitrou

Changes by Antoine Pitrou :


--
pull_requests: +2552

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6691] Support for nested classes and function for pyclbr

2017-06-29 Thread Terry J. Reedy

Terry J. Reedy added the comment:

I would like to get this in 3.7.0a1, scheduled for 2017 Sept 9, and 
subsequently in 3.6.3.

Cheryl, this is why I distracted you from the configdialog patch.  As a 
non-idlelib patch, more discussion by more people may be needed before a merge.

If this is not backported to 3.6 Lib/pyclbr, I will backport it to 3.6, maybe 
as Lib/idlelib/_pyclbr, or maybe as a direct addition to browser.py, replacing 
the import statement.

--
assignee:  -> terry.reedy
priority: normal -> high
stage: patch review -> test needed
versions: +Python 3.7 -Python 3.6

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30796] Failures/crashes in test_signal on some buildbots

2017-06-29 Thread Antoine Pitrou

Changes by Antoine Pitrou :


--
stage: needs patch -> commit review
versions:  -Python 2.7, Python 3.5, Python 3.6

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30796] Failures/crashes in test_signal on some buildbots

2017-06-29 Thread Antoine Pitrou

Changes by Antoine Pitrou :


--
dependencies: +setitimer() can disable timer by mistake
versions: +Python 2.7, Python 3.5, Python 3.6

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30807] setitimer() can disable timer by mistake

2017-06-29 Thread Antoine Pitrou

New submission from Antoine Pitrou:

The C setitimer() function supports intervals with microsecond resolution.  
However, Python's setitimer() takes a float and then converts it to a C `struct 
timeval`, which can round down to zero.  The consequence is that the timer is 
disabled (timeval == {0,0}) while the user asked for a one microsecond timeout.

--
components: Library (Lib)
messages: 297300
nosy: pitrou
priority: normal
severity: normal
stage: needs patch
status: open
title: setitimer() can disable timer by mistake
type: behavior
versions: Python 2.7, Python 3.5, Python 3.6, Python 3.7

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30726] [Windows] Warnings in elementtree due to new expat

2017-06-29 Thread STINNER Victor

STINNER Victor added the comment:

> How far back does it need to be ported? Just to 3.5?

Up to 2.7, expat 2.2.1 was updated to 2.7 as well. I even proposed a PR for 3.3 
and 3.4 (not merged yet). But since this issue only fixes a warning, I don't 
think that it's worth it to backport it to 3.3 and 3.4.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30726] [Windows] Warnings in elementtree due to new expat

2017-06-29 Thread STINNER Victor

Changes by STINNER Victor :


--
versions: +Python 2.7

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue9566] Compilation warnings under x64 Windows

2017-06-29 Thread Segev Finer

Segev Finer added the comment:

I submitted a PR which fixes some more warnings. The ones I haven't fixed are 
detailed in the PR description.

--
nosy: +Segev Finer
versions: +Python 3.7

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue9566] Compilation warnings under x64 Windows

2017-06-29 Thread Segev Finer

Changes by Segev Finer :


--
pull_requests: +2551

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1612262] Class Browser doesn't show internal classes

2017-06-29 Thread Terry J. Reedy

Terry J. Reedy added the comment:

I believe the patch for #6691 will also add detection of nested functions.  If  
so, the IDLE patch must also make use of that new information.

If the patch for #6691 is only applied to 3.7, I want to put a temporary copy 
of the revised pyclbr in 3.6 idlelib, perhaps as _pyclbr, and change the 3.6 
import accordingly.

--
assignee:  -> terry.reedy
nosy: +csabella
priority: normal -> high
versions: +Python 3.7 -Python 2.7, Python 3.5

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30806] netrc.__repr__() is broken for writing to file

2017-06-29 Thread James

New submission from James:

Have any valid .netrc file. For testing purposes you can use this:

machine abc.xyz login myusername password mypassword

The documentation for netrc.__repr__() states that it "dumps the class data as 
a string in the format of a netrc file". However, when you try to actually do 
this, you'll encounter a nasty bug. This can be seen by running the follow 
commands:

auth = netrc.netrc(os.path.expanduser(r"~\.netrc"))
print(auth.__repr__())

The expected output is:

machine abc.xyz
login myusername
password mypassword

The actual output is:

machine abc.xyz
login 'myusername'
password 'mypassword'

If you write this back out to the .netrc file, authentication will fail since 
incorrect username/password (with ' character at beginning at end) will be 
passed.

--
components: Library (Lib)
messages: 297296
nosy: Bezier89
priority: normal
pull_requests: 2550
severity: normal
status: open
title: netrc.__repr__() is broken for writing to file
type: behavior
versions: Python 3.6

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30787] Please add a comprehensive index of decorators to the documentation.

2017-06-29 Thread tom kronmiller

tom kronmiller added the comment:

I would not object if there was an index which contained the decorators among 
other things, but I have found it difficult in practice to discover things like 
@staticmethod and @contextmanager.  Just as I browse the index of library 
modules to for insight as to what it provides, I would like to browse the 
decorators for insight as to problems that have been solved using them.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30796] Failures/crashes in test_signal on some buildbots

2017-06-29 Thread David Bolen

David Bolen added the comment:

Antoine, yes.  Send me your public key (db3l.net at gmail) and I'll set it up.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30760] configparse module in python3 can not write '%' to config file

2017-06-29 Thread R. David Murray

Changes by R. David Murray :


--
nosy: +lukasz.langa

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30755] locale.normalize() and getdefaultlocale() convert C.UTF-8 to en_US.UTF-8

2017-06-29 Thread R. David Murray

Changes by R. David Murray :


--
nosy: +ncoghlan

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30302] Improve .__repr__ implementation for datetime.timedelta

2017-06-29 Thread Utkarsh Upadhyay

Utkarsh Upadhyay added the comment:

I went through the e-mail chain discussing the changes in repr again and I have 
come around to seeing that though Guido was somewhat opposed to the idea of 
factoring out the minus sign because it would have meant changing the 
attributes [1], what he really didn't want was perhaps adding attributes in 
repr which don't exist on the object [2]. Changing to keyword arguments was a 
'go', though [3].

Esp. after it has been pointed out how easy it would be do implement, my 
opposition to the idea of factoring out the negative sign has somewhat come 
down. Personally, I prefer the current version.

Further, this PR has also come to fix a couple of issues in the testing 
framework and it is becoming rather unwieldy to throw in doc-string changes 
into it as well. Hence, after some discussion with @haypo, I think I'll make a 
separate PR for fixing the docstrings after this PR is merged; there was 
general consensus that the docstrings should be fixed [4,5]. @haypo has, 
thankfully, showed me how and where to do that using Argument Clinic, which was 
the show-stopper the last time [6].

Thoughts and opinions?

~
ut

[1]: https://marc.info/?l=python-dev&m=145066335824146&w=2
[2]: https://marc.info/?l=python-dev&m=145066934224955&w=2
[3]: https://marc.info/?l=python-dev&m=145073617109654&w=2
[4]: https://marc.info/?l=python-dev&m=145073579109548&w=2
[5]: https://marc.info/?l=python-dev&m=145073612409626&w=2
[6]: https://marc.info/?l=python-dev&m=145075173412963&w=2

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6691] Support for nested classes and function for pyclbr

2017-06-29 Thread Cheryl Sabella

Cheryl Sabella added the comment:

I'm working on a PR for this.  It passed the existing test cases, but then I 
tried something that didn't pass, so I'm working on fixing that.

--
nosy: +csabella

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29926] IDLE: in shell, time.sleep ignores _thread.interrupt_main()

2017-06-29 Thread Terry J. Reedy

Terry J. Reedy added the comment:

It appears you are right about open('con'...).

However, this issue is about the fact that 
>>> import time; time.sleep(10)
^C
...
KeyboardInterrupt

works in the console but does not work in the IDLE Shell in default mode.  In 
default mode (-n not on the command line) entered code is executed in a 
separate process and and ^C causes a message to be sent to the separate process 
to simulate ^C keypress by calling 'something'.

The indirect process works for 'normal' code like
>>> s = input('Hi')
so input() is not part of this issue, except that it or its interruption should 
not be broken.  Ditto for
>>> while True: pass

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



  1   2   >