Changes by Roger Serwy :
--
resolution: -> fixed
stage: commit review -> committed/rejected
status: open -> closed
___
Python tracker
<http://bugs.python.or
Roger Serwy added the comment:
Updated patch based on Ezio's comments. Thank you, Ezio!
Senthil, I wish I had a Mac to test against. I am able to trigger the bug on
Win7 with 3.3.
Without objection, I will commit the patch in the upcoming hours.
--
assignee: -> roger.ser
Roger Serwy added the comment:
On 04/02/2013 12:57 AM, Ned Deily wrote:
> 2. Roger, is this issue new to 2.7.4, 3.2.4, or 3.3.1?
No, this bug has been baked into IDLE since the beginning. See line 215
http://hg.python.org/cpython/file/30713d5288df/Lib/idlelib/ColorDelegator.py
> How lik
Roger Serwy added the comment:
I forgot to specify that the race condition gets triggered by pressing Alt-F4
the moment the IDLE editor window appears.
I am reliably reproducing the error using the Konsole terminal under Arch Linux.
--
___
Python
Roger Serwy added the comment:
Is there an automatic nosy-list adder routine in the bug-tracker that I should
know about? Georg and Larry were re-added to nosy even after I removed them.
(I'm sorry for the spam.)
--
___
Python tracker
Roger Serwy added the comment:
Removing Geoge and Larry from nosy. I'm not sure how they got added. I didn't
click on anything in the Nost List box.
Ned, did you mean to add Benjamin to the nosy list?
--
___
Python tracker
<http://bu
Roger Serwy added the comment:
Todd,
Tabify/Untabify are functions to deal with the great tabs vs. spaces debate
(though PEP8 says that spaces are the way to go).
The tabify function needs a minimum of 2 spaces before it replaces it with a
tab.
Its implementation in Lib/idlelib
Roger Serwy added the comment:
I received permission from UIUC to relicense IdleX code used for contributions
into Python.
--
___
Python tracker
<http://bugs.python.org/issue17
Roger Serwy added the comment:
Like #17613, the root cause is a call to .update() in Lib/idlelib/PyShell.py
.restore_file_breaks().
The attached patch fixes the issue.
--
keywords: +patch
stage: -> patch review
Added file: http://bugs.python.org/file29651/issue17614.pa
New submission from Roger Serwy:
Using the bigfile.py generation program from #17613 triggers the following
traceback:
Traceback (most recent call last):
File "/usr/bin/idle", line 5, in
main()
File "/usr/lib/python3.3/idlelib/PyShell.py", line 1431, in main
if
Roger Serwy added the comment:
I misworded the first sentence. It should have read: "Using bigfile.py as
generated by the program in #17613 can trigger the following traceback when
quickly closing the editor."
Other large files can be used to trigger the bug as well, like Lib/
Roger Serwy added the comment:
It's a "race condition" due to ColorDelegator calling .update() in its
recolorize method. The call to .update() flushes pending events, including
callbacks into Python code that can change out the ColorDelegator in the
Percolator chain.
Here
Roger Serwy added the comment:
Will do, Terry! :-)
--
___
Python tracker
<http://bugs.python.org/issue6698>
___
___
Python-bugs-list mailing list
Unsubscribe:
Roger Serwy added the comment:
I just re-applied the patch to a clean 2.7 and 3.4 branch and didn't see that
exception raised. Are you sure that the patch applied cleanly?
--
___
Python tracker
<http://bugs.python.org/is
Roger Serwy added the comment:
Terry, I read over the revision in r71126 and it looked like the behavior
change was an unintended consequence of applying an ephemeral ports patch. That
and Todd's reasoning of the correct behavior being inferrable from the
configuration dialog convinc
Roger Serwy added the comment:
Thanks Todd for the review! If you have time, could you open a new issue to
deal with the enhancements discussed here?
--
resolution: -> fixed
stage: patch review -> committed/rejected
status: open -&g
Roger Serwy added the comment:
I reworked the patch to fix the cursor problem. The new code, hopefully, is
simpler to understand and harder to break. Essentially, all code paths that
terminate the subprocess must also call stop_readline which exits that nested
event loop if needed
Roger Serwy added the comment:
Ned, I can confirm the behavior you are seeing. I am trying to trace down why
this spurious '\n' gets inserted.
--
___
Python tracker
<http://bugs.python.o
Roger Serwy added the comment:
I found the root cause of the original error.
Entering "exit()" at the shell raises SystemExit which gets written to the
shell's text widget. The call to actually write the text passes through
.write() in Lib/idlelib/OutputWindow.py, which ca
Roger Serwy added the comment:
Closing the shell window while in the nested event loop for readline fails to
exit the nested event loop. I updated the title to reflect the broader problem
with readline's handling of the nested event loop.
The rev1 patch causes the nested event loop to
Roger Serwy added the comment:
We can fix the "bug" as-is and then open a separate enhancement issue for Tal's
suggestions. I place bug in quotes because the correct behavior is not
documented.
--
assignee: -> roger.serwy
nosy: +Todd.Rovito
stage: -> patch revi
Roger Serwy added the comment:
I am closing this issue as being fixed.
--
resolution: -> fixed
stage: patch review -> committed/rejected
status: open -> closed
___
Python tracker
<http://bugs.python.o
Roger Serwy added the comment:
I use Arch Linux which has /usr/bin/python as 3.3.0. I can confirm that "touch
Include/Python-ast.h Python/Python-ast.c" fixes the problem.
But would it have been simpler just to convert the print statements to
functions so that asdl_c.py would work w
Roger Serwy added the comment:
I changed the title to better reflect the original bug report.
@Bruce: I did review Guilherme's patch a while ago in #10079. The editor window
bug can be found in #6698. These are on my todo-list, especially now that
PEP434 has been acc
Roger Serwy added the comment:
I agree with Antoine that fileno checking code should be removed. I dug deeper
into why that was introduced in the first place.
00b136b7da84 introduced the warning "Trying to close unclosable fd!"
86358b43c8bb intoduced the change to site.py about n
Roger Serwy added the comment:
I would also argue that the fileno_close.patch ought to be applied to the 3.2.4
and 3.3.1 release candidates. The changes in #9290 were applied only two months
ago.
--
versions: +Python 3.2
___
Python tracker
<h
Roger Serwy added the comment:
Antoine, it does affect 2.7 since sys.stdin.close() doesn't call PyShell's
close method. #9290 introduced this regression. I accept some responsibility
because my manual testing of those patches in #9290 didn't include trying the
exit() and quit(
Roger Serwy added the comment:
Terry, I agree that the original patch introduces a buggy fileno and it "knows"
too much about the internals of site.py which could change.
The attached patch modifies site.py, similar to how Nick Coghlan split the two
function calls in a single try/ex
Roger Serwy added the comment:
If there are no objections, I will apply this patch after 2013-04-05.
--
assignee: -> roger.serwy
versions: -Python 3.2
___
Python tracker
<http://bugs.python.org/issu
Roger Serwy added the comment:
I agree that site.py's Quitter exception logic has a flaw as described on the
email from python-dev. But I disagree that the problem of IDLE not exiting is
due to site.py. Even if you fix site.py (which I did), calling
sys.stdin.close() won't close
New submission from Roger Serwy:
This issue is a split from #5492, where Terry noticed a serious regression that
"quit()" and "exit()" no longer work in IDLE.
Before #9290, the PyShell object itself was stdin and it didn't have a "fileno"
method. The code
Roger Serwy added the comment:
Thanks for the patch, Guilherme!
--
resolution: -> fixed
stage: -> committed/rejected
status: open -> closed
versions: +Python 3.3, Python 3.4 -Python 2.6, Python 3.1
___
Python tracker
<http://bug
Roger Serwy added the comment:
This is related to #17221. I agree that news items need to be consolidated in
both Misc/NEWS and Lib/idlelib/NEWS.txt.
--
nosy: +roger.serwy
___
Python tracker
<http://bugs.python.org/issue17
Changes by Roger Serwy :
--
assignee: -> roger.serwy
type: -> behavior
___
Python tracker
<http://bugs.python.org/issue6649>
___
___
Python-bugs-list
Roger Serwy added the comment:
I agree that improving IDLE's docs would make it easier to learn and use. There
is a tangentially related issue: #16893.
--
assignee: -> docs@python
components: +Documentation
nosy: +docs@python, roger.serwy
versions: +Python 2.7, Py
Roger Serwy added the comment:
It's definitely a "bug" with Tk. Whenever the Text widget loses focus, the
selection highlighting goes away. The following example code brings up a
focused text box with selected text. Clicking the button switches focus to the
button itself and t
Roger Serwy added the comment:
The ClearWindow.py extension as included in the IdleX package contains a more
recent version that allows undo with full color tag restoration.
--
assignee: -> roger.serwy
versions: +Python 2.7, Python 3.3, Python
Roger Serwy added the comment:
@Raymond, see issue6143 for an (outdated) extension to clear the shell window
with a hotkey.
--
nosy: +roger.serwy
___
Python tracker
<http://bugs.python.org/issue1442
Changes by Roger Serwy :
--
nosy: +roger.serwy
___
Python tracker
<http://bugs.python.org/issue3938>
___
___
Python-bugs-list mailing list
Unsubscribe:
Roger Serwy added the comment:
(I didn't realize that the patch is identical to the one submitted on
issue13586).
The issue with the found text not being highlighted is Windows-specific.
Issue13630 discusses that particular problem and it has the same root cause as
issue14146.
Changin
Roger Serwy added the comment:
The file uploaded in 2010 falls under my PSF contributor agreement which
has the Apache V2.0 license. The updates to the code in the latest
version of IdleX fall under the NCSA license.
--
___
Python tracker
<h
Roger Serwy added the comment:
Todd, the LineNumbers.py extension from the IdleX project contains
work-arounds for interacting cleanly with the Code Context extension. It
also has a hack for dealing with the shortcomings of the
Percolator/Delegator ordering.
There are other shortcomings in
Roger Serwy added the comment:
I can confirm this behavior. The attached preliminary patch allows the Find
dialog to remain open, and is the same for 2.x and 3.x.
Until PEP434 gets resolved, I won't be able to apply the patch for earlier
versions of IDLE. For what it's worth, t
New submission from Roger Serwy:
Presently, the "Options" menu gets eliminated if IDLE runs as an OSX app. This
behavior was introduced in 2006 in revision 654c380cf8b9.
I guess that the original motivation for eliminating the Options menu since it
usually only contained the "
Roger Serwy added the comment:
Thanks, Todd, for reviewing and testing the extension!
The Terminal.py extension patch provided here is outdated. There have been some
minor tweaks and bug fixes that can be found in the IdleX project which works
under 2.x and 3.x with the same code. (For
Roger Serwy added the comment:
Serhiy, I applied your patch but I still get the same error.
>From what I have found so far, the FromObj function in Modules/_tkinter.c
>relies on cached values for different Tcl_ObjType, as given in the TkappObject
>struct. From the comment:
/*
Roger Serwy added the comment:
I think it's a problem on Tk on Windows. The painting of the selection
highlight goes away when a window loses focus.
--
___
Python tracker
<http://bugs.python.org/is
Roger Serwy added the comment:
@Raymond: What is so broken about IDLE that requires using "-n" to fix it?
Let's try to fix those problems rather than keeping up the maintenance burden
of supporting two execution modes.
--
___
Python
Roger Serwy added the comment:
Patrick, see Issue8900. It described your problem.
--
___
Python tracker
<http://bugs.python.org/issue10365>
___
___
Python-bug
Roger Serwy added the comment:
Updated the issue to reflect information from 16984. A screenshot was provided
in that report.
--
nosy: +sahin, serwy
title: idle does not handle dark gtk color schemes -> IDLE: problems with dark
GTK or KDE color schemes
versions: +Python 2.7, Pyt
Roger Serwy added the comment:
This is a duplicate of issue7949, but for KDE instead of GTK. I will close this
report in favor of the prior one.
--
nosy: +serwy
resolution: -> duplicate
status: open -> closed
superseder: -> idle does not handle dark gtk colo
Roger Serwy added the comment:
@Serhiy
IDLE places its default configuration files within the standard library. Any
upgrade of Python can modify the contents of the standard library. Even if we
do *nothing* to change Lib/idlelib/config-main.def, the next upgrade would
overwrite an end users
Roger Serwy added the comment:
See also issue12274.
--
___
Python tracker
<http://bugs.python.org/issue16829>
___
___
Python-bugs-list mailing list
Unsubscribe:
Roger Serwy added the comment:
The attached patch changes %%s to %%r. This should handle file names containing
quotes automatically.
Ramchandra's point of using a subprocess instead would fix the issue as well.
That would require changing "print_window" in Lib/idlelib/IOBindi
New submission from Roger Serwy:
Krystian RosiĆski notified me about an error with Tabify/Untabify. Clicking
cancel still performs the operation because the _asktabwidth function in
Lib/idlelib/EditorWindow.py always returns a number, regardless of cancel being
clicked.
This bug is visibly
Changes by Roger Serwy :
--
nosy: +serwy
___
Python tracker
<http://bugs.python.org/issue16819>
___
___
Python-bugs-list mailing list
Unsubscribe:
Roger Serwy added the comment:
In Objects/unicodeobject.c in PyUnicode_FromObject, the call to
PyUnicode_CheckExact fails when using 8.6.0 but works with 8.5.13.
--
___
Python tracker
<http://bugs.python.org/issue16
Roger Serwy added the comment:
I can confirm this bug for POSIX platforms. Changing the lpr command in
config-main.def to quote the filename seems to fix the problem.
print-command-posix=lpr "%%s"
It might also be a problem on Windows, but I haven't tried it.
--
Changes by Roger Serwy :
--
nosy: -serwy
___
Python tracker
<http://bugs.python.org/issue13657>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Roger Serwy:
I am running Arch Linux with the latest Tcl/Tk 8.6.0 build with Python 2.7.3
and 3.3.0, and the latest 3.4.0a0 build from the repository.
Running the attached script fails when calling pack_info(). Here's is the
script's output:
8.6
Traceback (m
Roger Serwy added the comment:
I haven't had any serious problems with calltips on the dev branches for 2.7
and 3.4, except for issue16630. I think this issue can be closed as being
completed in order to avoid further expanding its scope. Feel free to reopen if
anyone disa
Roger Serwy added the comment:
@Chris: Thanks for applying the patch. As for IDLE tests, there are no official
tests. Issue15392 calls for the creation of a unit test framework. There are a
few "tests" in some of IDLE, such as the ones in CallTips. Terry added much
needed impro
Roger Serwy added the comment:
So, is the original patch which fixes the original issue OK to apply?
--
___
Python tracker
<http://bugs.python.org/issue16
Roger Serwy added the comment:
The number of lines in the return value of get_argspec should be limited,
otherwise the calltip window can become too large. For example, many functions
in the numpy project have very long doc strings.
--
___
Python
New submission from Roger Serwy:
The calltip fails if __getattr__ raises an exception. Take as an example:
Python 3.4.0a0 (default:0238cc842805+, Dec 6 2012, 19:17:04)
[GCC 4.7.2] on linux
Type "copyright", "credits" or "license()" for more informatio
New submission from Roger Serwy:
Revision e4598364ea29 changed the docstring for "int", causing the CallTips
test to fail in IDLE.
The attached patch fixes the problem.
--
components: IDLE
files: calltips_test_update.patch
keywords: easy, patch
messages: 177063
n
Roger Serwy added the comment:
You only have an empty "recent-files.lst" file in your posted archive.
From what I can tell, there is nothing in common with the other posted
.idlerc that had these problems.
Please do report if the crashes with open parens reoccurs and what was
Roger Serwy added the comment:
Steve, could you post the contents of your .idlerc directory? I wonder
if "encoding = locale" is the culprit.
--
___
Python tracker
<http://bugs.python.o
Roger Serwy added the comment:
Added version 3.3 as reported in #16622.
--
nosy: +Steve.OBrien
versions: +Python 3.3
___
Python tracker
<http://bugs.python.org/issue16
Roger Serwy added the comment:
This looks like a duplicate of issue16177, but for version 3.3.0 instead of
2.7.3. I'm closing this in favor of the prior report.
Steve, can you try the suggestion from msg172501 in #16177 ?
--
resolution: -> duplicate
status: open -> closed
Roger Serwy added the comment:
Steve, please verify that you are using the correct version of Tkinter with
IDLE. See http://www.python.org/download/mac/tcltk/
--
nosy: +ned.deily, serwy
___
Python tracker
<http://bugs.python.org/issue16
Roger Serwy added the comment:
Campbell, your example runs IDLE *with* a subprocess. The "use_subprocess" flag
defaults to True.
--
___
Python tracker
<http://bugs.python.o
Roger Serwy added the comment:
I was able to trigger this problem on 2.7 as well. Changing type to behavior as
the core interpreter is not crashing.
Lukas, the only way I can trigger the traceback is by closing the editor while
the colorizer is still colorizing. Clicking randomly on the
Roger Serwy added the comment:
The original help.txt and the patched version still mixes tabs and spaces. This
is a minor point, but perhaps all the tabs should be expanded.
Also, the section on running IDLE without a subprocess should not be removed
until version 3.5. See #16123
Roger Serwy added the comment:
Lukas, thank you for your persistence in trying to resolve this issue.
The Windows traceback is interesting. I am wondering if a "race" condition may
be causing this bug. Callbacks from the Tcl interpreter eventloop back into
Python may be ordered
Roger Serwy added the comment:
On Mac, which version of Tk are you using? IDLE is known to have problems on
Mac with Tk. See http://www.python.org/download/mac/tcltk/
You can disable colorization with the undocumented Ctrl+/ key combination. Does
the crash still occur with the colorizer
Roger Serwy added the comment:
Serhiy, was msg176255 meant for issue16491?
--
___
Python tracker
<http://bugs.python.org/issue16504>
___
___
Python-bugs-list m
Roger Serwy added the comment:
Changed from Crash to Behavior, as the interpreter is not crashing. Also undid
my mistake of re-adding 2.6 and 3.1.
--
type: crash -> behavior
versions: -Python 2.6, Python 3.1
___
Python tracker
&l
Roger Serwy added the comment:
Serhiy, I applied your patch and it works. However, the initial window size in
IDLE Preferences->General are listed as "None" instead of a number.
Perhaps if the userCfg has an invalid value then the defaultCfg should be
returned?
--
vers
Roger Serwy added the comment:
This is still a bug with 2.7 and 3.4. I just tried leaving the width and height
fields in config-main.cfg and IDLE had raised the error:
_tkinter.TclError: expected integer but got ""
The width and height keys in the text_options dic
Changes by Roger Serwy :
--
dependencies: +Create a unittest framework for IDLE
___
Python tracker
<http://bugs.python.org/issue12274>
___
___
Python-bugs-list m
Roger Serwy added the comment:
That's a good point. Attached is a revision to omit IndentationError.
Thanks Serhiy.
--
Added file: http://bugs.python.org/file28032/editor_token_error_rev1.patch
___
Python tracker
<http://bugs.python.org/is
Roger Serwy added the comment:
I encountered this behavior while testing an extension that highlights tabs and
trailing whitespace. The very first test file I wrote caused this crash. See
the attached "sample_token_error.py".
--
Added file: http://bugs.python.org
New submission from Roger Serwy:
IDLE's IndentSearcher class in EditorWindow.py can raise an uncaught
IndentationError when opening a file. The attached patch fixes the problem by
catching everything that the tokenize module can raise explicitly, namely
IndentationError, TokenError
Roger Serwy added the comment:
On IDLE Extensions: The public ecosystem of IDLE extensions is small, and even
smaller are those that modify rmenu_specs. Changing it is trivial. However,
existing users of the Squeezer extension under 2.7 will experience bugs, like
triggering issue13582 on
Roger Serwy added the comment:
In a strict sense, the patch does break backward compatibility for third-party
IDLE extensions that modify the rmenu_specs contents. It is not a "private"
value since it lacks an initial underscore in its name. But given how
undocumented IDLE is, espe
Roger Serwy added the comment:
The attached patch ("issue13659.patch") adds a configuration option for
selecting the output of help() as being in the shell or in the pager. It is an
enhancement against 3.4.
Another possibility involves adding a checkable menu item under "Opt
Roger Serwy added the comment:
I wonder if there is a bug in the Python installer on the new Windows 8
platform, though it is unlikely.
I will leave this issue open for Windows 8 developers to comment. (I don't have
Win8 for testing just yet.) Feel free to close.
--
compo
Roger Serwy added the comment:
Can you launch Python from a command line and then launch IDLE from there?
cd c:\python33
python
After python starts, enter the following:
import idlelib.idle
--
nosy: +serwy
___
Python tracker
<h
Roger Serwy added the comment:
Issue7883 also has a test.
--
___
Python tracker
<http://bugs.python.org/issue15392>
___
___
Python-bugs-list mailing list
Unsub
Changes by Roger Serwy :
--
nosy: +serwy
___
Python tracker
<http://bugs.python.org/issue15808>
___
___
Python-bugs-list mailing list
Unsubscribe:
Roger Serwy added the comment:
I'm closing this issue as a duplicate of #11288.
--
resolution: -> duplicate
status: open -> closed
superseder: -> Python installed from MSI doesn't work
___
Python tracker
<http://bug
Roger Serwy added the comment:
Attached is a quick patch to change the error message.
--
keywords: +patch
Added file: http://bugs.python.org/file27666/message_fix.patch
___
Python tracker
<http://bugs.python.org/issue16
Roger Serwy added the comment:
Saving the shell to a file allows the class browser to function. However a
class browser for a syntax-incorrect file due to prompts and stdout contents
can also pose a conceptual problem.
I suggest that the error message be modified to include a corrective
Roger Serwy added the comment:
The patch works with 3.3.0 and 2.7.3 on Windows 7.
+1
--
___
Python tracker
<http://bugs.python.org/issue15853>
___
___
Python-bug
Roger Serwy added the comment:
Terry, your idlelib directory is in an inconsistent state. IDLE 2.7.3 works
well on Arch Linux. I rebuilt it from revision 70274d53c1dd. With and without a
subprocess, IDLE's sys.stdin.readline works.
Let's close this issue and focus on #9290. It'
Roger Serwy added the comment:
I am running 2.7.3 from Apr 10, 2012, freshly installed. I still can not
reproduce this problem when running IDLE with or without a subprocess.
Is your PyShell.py file the original or was it modified by accident? It may be
possible that run.py was modified as
Roger Serwy added the comment:
The shlex_posix_property.patch makes .posix a read/write property that changes
.eof appropriately.
--
Added file: http://bugs.python.org/file27580/shlex_posix_property.patch
___
Python tracker
<http://bugs.python.
Roger Serwy added the comment:
Running "python -m test.test_asynchat" succeeds on Windows 7 with version 2.7.3.
I'm closing this issue as it works for me. Feel free to re-open if you disagree.
--
resolution: -> works for me
stat
Roger Serwy added the comment:
> I think that maybe tabs within strings should always do the same as within
> comments. Perhaps one way is enough. (I am guessing that other editors use
> for this, so I can see the desire to use it.) There needs to be a way
> to get tabbing with
101 - 200 of 543 matches
Mail list logo