Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > IDLE bug

Reply
Thread Tools

IDLE bug

 
 
harrismh777
Guest
Posts: n/a
 
      04-19-2011
Are bug reports wanted here, or just in issue tracker?

thanks

 
Reply With Quote
 
 
 
 
James Mills
Guest
Posts: n/a
 
      04-19-2011
On Tue, Apr 19, 2011 at 2:05 PM, harrismh777 <> wrote:
> Are bug reports wanted here, or just in issue tracker?


Pretty sure they're wanted in the Issue Tracker.

cheers
James

--
-- James Mills
--
-- "Problems are solved by method"
 
Reply With Quote
 
 
 
 
Westley Martínez
Guest
Posts: n/a
 
      04-19-2011
On Mon, 2011-04-18 at 23:05 -0500, harrismh777 wrote:
> Are bug reports wanted here, or just in issue tracker?
>
> thanks
>


If it's a super-critical bug that can destroy data, yes, else just the
issue tracker.

 
Reply With Quote
 
Terry Reedy
Guest
Posts: n/a
 
      04-19-2011
On 4/19/2011 12:05 AM, harrismh777 wrote:
> Are bug reports wanted here, or just in issue tracker?


If one is somewhat experienced with Python and is sure about having
identified a bug, and is willing to search the tracker for existing
reports and respond to questions, then report on the tracker. If one is
new to Python and perhaps not sure, or should not be sure, then I prefer
that one ask here for a second opinion.

--
Terry Jan Reedy

 
Reply With Quote
 
harrismh777
Guest
Posts: n/a
 
      04-20-2011
Terry Reedy wrote:
> If one is new to Python and perhaps not sure, or should not be sure,
> then I prefer that one ask here for a second opinion.


Thanks Terry. I am not new to Python, but I am new to Python3, and I'm
also relatively new to IDLE. Typically I edit with vi, test on the
terminal, and run on the server. I have been using IDLE more these days,
and also working more with Tk, so I've run into a couple little minor
snags. Anyway, sorry, I'm digressing a bit...as usual.

Here is the bug, for a second opinion:

Under some circumstances, which I will detail later down the note, if I
click File --> Close without explicitly saving, and without running the
module with Run --> Run Module , then the last changes I made to the
file do not get saved. The save dialogue pop-up does appear, and I do
select YES--- I want to save before closing--- but when I re-open the
file (IDLE or vi) the changes are not there... as though the save
binding did not work, or like there was some timing glitch that
prevented the save somehow before the edit window closed down. The error
is not solid, in that, if the file is larger (significantly) then the
File --> Close (select Yes on the dialogue) does work... ??

The work around is to do either 1) run the module, or 2) explicitly
click File --> Save.

The alleged bug can be reproduced on both of my primary desk machines,
Linux systems, using IDLE on 2.6, 2.7, and 3.2/ These are the
instructions for reproducing this little snag:

1) Open a new edit window with File --> New Window

2) Enter the following code on the first two lines:
def testfunc():
return None

3) Click File --> Save ( testit.py )

4) Click File --> Close

5) Open the file with File --> Recent Files ( select testit.py )

6) Use the edit window to place these three lines above testfunc:
############################
# comment block
##############################

7) Click File --> Close

When the Save on Close dialogue appears select "Yes"

9) Re-open the file with File --> Recent Files ( select testit.py )

10) The comment block will not be there... didn't save.


Well, there it is. Of course I must admit, I've used IDLE for months
without ever noticing this, so its really a nit... if I'm doing
something incorrect, let me know. If it is something I can fix myself
let me know that too... I've compiled 2.7 and 3.2 from sources, 2.6 came
installed on my distro... which is another point to bring up actually,
because all three of them are using the same Tk libraries (8.5.x)

Thanks Terry.

kind regards,
m harris



 
Reply With Quote
 
Terry Reedy
Guest
Posts: n/a
 
      04-20-2011
On 4/19/2011 11:39 PM, harrismh777 wrote:
> Terry Reedy wrote:
>> If one is new to Python and perhaps not sure, or should not be sure,
>> then I prefer that one ask here for a second opinion.

>
> Thanks Terry. I am not new to Python, but I am new to Python3, and I'm
> also relatively new to IDLE. Typically I edit with vi, test on the
> terminal, and run on the server. I have been using IDLE more these days,
> and also working more with Tk, so I've run into a couple little minor
> snags. Anyway, sorry, I'm digressing a bit...as usual.
>
> Here is the bug, for a second opinion:
>
> Under some circumstances, which I will detail later down the note, if I
> click File --> Close without explicitly saving, and without running the
> module with Run --> Run Module , then the last changes I made to the
> file do not get saved. The save dialogue pop-up does appear, and I do
> select YES--- I want to save before closing--- but when I re-open the
> file (IDLE or vi) the changes are not there... as though the save
> binding did not work, or like there was some timing glitch that
> prevented the save somehow before the edit window closed down. The error
> is not solid, in that, if the file is larger (significantly) then the
> File --> Close (select Yes on the dialogue) does work... ??
>
> The work around is to do either 1) run the module, or 2) explicitly
> click File --> Save.
>
> The alleged bug can be reproduced on both of my primary desk machines,
> Linux systems, using IDLE on 2.6, 2.7, and 3.2/ These are the
> instructions for reproducing this little snag:
>
> 1) Open a new edit window with File --> New Window
>
> 2) Enter the following code on the first two lines:
> def testfunc():
> return None
>
> 3) Click File --> Save ( testit.py )
>
> 4) Click File --> Close
>
> 5) Open the file with File --> Recent Files ( select testit.py )
>
> 6) Use the edit window to place these three lines above testfunc:
> ############################
> # comment block
> ##############################
>
> 7) Click File --> Close
>
> When the Save on Close dialogue appears select "Yes"
>
> 9) Re-open the file with File --> Recent Files ( select testit.py )
>
> 10) The comment block will not be there... didn't save.


On my winxp, following the above *exactly*, the comment block is there.
But I can believe there might be a system specific glitch around save
and close. See
http://bugs.python.org/issue9803
http://bugs.python.org/issue10365

Go ahead and report, noting which Linux distribution, and include my
negative report. Add me as nosy.

--
Terry Jan Reedy

 
Reply With Quote
 
rantingrick
Guest
Posts: n/a
 
      04-20-2011
On Apr 18, 11:16*pm, James Mills <prolo...@shortcircuit.net.au> wrote:
> On Tue, Apr 19, 2011 at 2:05 PM, harrismh777 <harrismh...@charter.net> wrote:
> > Are bug reports wanted here, or just in issue tracker?

>
> Pretty sure they're wanted in the Issue Tracker.


My opinion is to report bugs on the tracker AND here since this list
is viewed by more people than the bug tracker is. And the wider
community needs to know where the shortcomings of this language exist.

 
Reply With Quote
 
harrismh777
Guest
Posts: n/a
 
      04-21-2011
Terry Reedy wrote:
>
> Go ahead and report, noting which Linux distribution, and include my
> negative report. Add me as nosy.


Done. 11896 created.
msg(s) 134194
134195


thanks
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Bug / Feature Request] IDLE Shell rantingrick Python 1 04-13-2011 02:04 AM
*bug* *bug* *bug* David Raleigh Arnold Firefox 12 04-02-2007 03:13 AM
ASP.NET Login control bug or SQL 2005 bug? RedEye ASP .Net 2 12-13-2005 10:57 AM
Re: BUG? OR NOT A BUG? John ASP .Net 2 09-21-2005 10:31 AM
Windows Python 2.3b2 bug? Edit with IDLE Bartolomé Sintes Marco Python 0 07-10-2003 09:38 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57