From al at inventwithpython.com Wed Feb 3 16:35:23 2016 From: al at inventwithpython.com (Al Sweigart) Date: Wed, 3 Feb 2016 13:35:23 -0800 Subject: [Idle-dev] Underscore visibility qurey In-Reply-To: <0B6C1894-055E-4287-8877-158C99A86942@gmail.com> References: <0B6C1894-055E-4287-8877-158C99A86942@gmail.com> Message-ID: This might just be a font issue. Can you take a screenshot to show us what it looks like? Have you changed the font settings? -Al On Thu, Jan 7, 2016 at 2:45 AM, Project wrote: > Good day > > I am a new user to Python and have downloaded Idle (Python version: 3.4.3; > Tk Version: 8.5.9; IDLE version: 3.4.3). I am using the book "Python for > kids" as a starter and have noticed that when I try to use the underscore > (_) in the Python shell the underscore is not visible. Is there any way to > rectify this? > > I have copied the two lines of code from the Python shell window below and > the underscore is definitely there - just not visible! > > >>> number_of_coins=200 > >>> print(number_of_coins) > > Regards > > Project > _______________________________________________ > IDLE-dev mailing list > IDLE-dev at python.org > https://mail.python.org/mailman/listinfo/idle-dev > -------------- next part -------------- An HTML attachment was scrubbed... URL: From tjreedy at udel.edu Sat Feb 6 14:12:49 2016 From: tjreedy at udel.edu (Terry Reedy) Date: Sat, 6 Feb 2016 14:12:49 -0500 Subject: [Idle-dev] Running beginner Pythons In-Reply-To: References: <5644728F.3000400@ut.ee> Message-ID: On 11/12/2015 6:55 AM, Beni Cherniavsky-Paskin wrote: > If IDLE is special for education simply because it comes installed out > of the box[1], > perhaps what educators would really want is that IDLE included an easy > way to fetch any package from PyPI? This is basically https://bugs.python.org/issue23551 > (Ideally, installing into a virtualenv that doesn't affect the machine, > to keep admins less anxious, and to allow easy resetting to clean slate.) I added a note to the issue. -- Terry Jan Reedy From tjreedy at udel.edu Sat Feb 6 14:28:09 2016 From: tjreedy at udel.edu (Terry Reedy) Date: Sat, 6 Feb 2016 14:28:09 -0500 Subject: [Idle-dev] Backslash on IDLE results to Yen symbol In-Reply-To: References: Message-ID: <56B64949.1020908@udel.edu> On 11/20/2015 10:12 PM, komodo dragon wrote: > I was wondering if you were able to look into this? Several posts from the last three months just showed up on my machine today. So I think this is the first I saw this. > I tried the backslash again and now this is what happens (please see > attached file). (not to answer) / becomes YEN symbol in IDLE editor, not in terminal or Notepad++ IDLE is based on tkinter is based on tcl/tk. tk handles keystrokes, so this is almost certainly a tk and not an IDLE problem. Tk must somehow think you have a non-US keyboard. Save the following to a file and run the file both in IDLE and from Command Prompt or Powershell. from tkinter import * root = Tk() text = Text(root) text.pack() text.focus_set() # required to work on Windows root.mainloop() Type backslashes into tk Text box. > I'm using a custom theme on this but I tried using the default themes > (classic and new) but the same thing happens. Themes only affect color marking. > I'm on the following: > OS - Win 10 > Unit - Compaq Presario CQ56Capture1112.JPG -- Terry Jan Reedy From tjreedy at udel.edu Sat Feb 6 14:50:53 2016 From: tjreedy at udel.edu (Terry Reedy) Date: Sat, 6 Feb 2016 14:50:53 -0500 Subject: [Idle-dev] Bug Report on float number calculation in IDLE In-Reply-To: <4745da2a.5009.151b9c0eb62.Coremail.grey@cqu.edu.cn> References: <4745da2a.5009.151b9c0eb62.Coremail.grey@cqu.edu.cn> Message-ID: <56B64E9D.408@udel.edu> On 12/19/2015 5:20 AM, Grey wrote: > I have found a strange issue on float number calculation in IDEL > of Python 2.7X? IDLE does not run you code. As far as running code goes, IDLE is an input-output front-end run by Python. It displays what Python outputs. If you had run the same code in Python directly, you would have seen the same result. >>> num = .1 + .1 + .1 + .1 +.1 +.1 + .1 + .1 + .1 >>> num 0.8999999999999999 >>> print(num) 0.9 Interactive echo (>>> num) prints repr(num), which is as accurate as possible. Print prints str(num), which in 2.7 is rounded to a 'nice' form. Because this was confusing, it was changed in 3.0. >>> repr(num) '0.8999999999999999' >>> str(num) '0.9' > 1?When I tried to calculate the sum of a bunch of float numbers > in IDLE of Python 2.7.6 I found that the result was not > accurate(well, I have knew that it is up to the storage format of > data by searching the information on Internet). Issues of round-off error with floats are well documented. I believe there is an entry in the Python FAQ for this. Summary: no bug, and nothing to do with IDLE -- Terry Jan Reedy From tjreedy at udel.edu Sat Feb 6 15:15:00 2016 From: tjreedy at udel.edu (Terry Reedy) Date: Sat, 6 Feb 2016 15:15:00 -0500 Subject: [Idle-dev] Autocomplete Problems (was Re: IDLE Bugs_ In-Reply-To: References: Message-ID: <56B65444.2050604@udel.edu> This just showed up on the gmane mirror today. On 1/14/2016 8:09 PM, Andrew Wells wrote: > I'd like to preface this email with the statement that I absolutely love > IDLE. I started learning python a few days ago and IDLE is a great tool > for that great language. Thanks for the positive feedback. > I've got three bugs to report, and each of them pertains to the > autocomplete function. For reference, I'm using a new MacBook Pro and > the new OS X El Capitan. Upon opening, IDLE prints: > Python 3.5.1 (v3.5.1:37a07cee5969 ...) > [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin Thanks for mentioning the OS. 1. and 3. are probably OSX-specific problems with tcl/tk. Did you upgrade from the Apple supplied tcl/tk, as recommended on https://www.python.org/download/mac/tcltk/ ? If you have already done that, or if you still have any of these problems after doing so, please open an issue at bugs.python.org. 1. > The first bug is not too important. When two IDLE windows are open, the > autocomplete reference box appears on the shell window, whether or not I > am currently typing in the shell or the text editing window. As I said, > trivial. I do not see this with Windows. Such a gross error, must be OS and maybe even version specific. 2. > The second is trivial and quite irritating. I'm used to being able to > click on the autocomplete in order to accept it (i.e. I'm typing > random.rand and click on the highlighted "randint" which appears below). > I've come to realize that IDLE does not support this, which is perfectly > acceptable. However, when I click on it (which I do accidentally out of > habit) the cursor disappears entirely and I cannot regain focus ... https://bugs.python.org/issue15786 is about problems with clicking on completion box. No need to report this, but you can add a comment to the issue if you want. For me, the box disappears, the cursor remains. 3. > The last is more serious but easy to avoid. I have a secondary monitor > which I connect to my laptop via HDMI. With a little experimentation, > I've discovered that IDLE crashes when it tries to display the > autocorrect reference box in the second monitor. This is likely a tcl/tk problem with the OS. Run Python 3.5 from the console/terminal with 'python3 -m idlelib' and you may see an error message there after the crash. -- Terry Jan Reedy From tjreedy at udel.edu Sat Feb 6 15:20:50 2016 From: tjreedy at udel.edu (Terry Reedy) Date: Sat, 6 Feb 2016 15:20:50 -0500 Subject: [Idle-dev] IDLE 3.5.0 Run Module , Question In-Reply-To: References: Message-ID: <56B655A2.7030407@udel.edu> On 1/30/2016 8:16 AM, andres obregon lopez wrote: > Dear Idle Developers Python > > I have been just starting learning Python > and I am following this lecture > https://class.coursera.org/programming1-002/lecture/24 > > But I do not find in my IDLE 3.5.0 how to Run Module In you first image (for 3.2.3) you have the editor window active and Run appears on the menu bar and Run Module F5 shows on the dropdows. In the second image (for 3.5.0) you have Shell active and Run is not on the menu bar. You have to make an editor window active for Run to appear. > Do I have to install something else to be able to do it? > or How do I Run a Module? > > Thanks you very much in advance for any help... > Kind regards! > > Andres Obregon Lopez > andresobregon.com > > > > _______________________________________________ > IDLE-dev mailing list > IDLE-dev at python.org > https://mail.python.org/mailman/listinfo/idle-dev > -- Terry Jan Reedy From tjreedy at udel.edu Sat Feb 6 15:29:43 2016 From: tjreedy at udel.edu (Terry Reedy) Date: Sat, 6 Feb 2016 15:29:43 -0500 Subject: [Idle-dev] Underscore visibility qurey In-Reply-To: <0B6C1894-055E-4287-8877-158C99A86942@gmail.com> References: <0B6C1894-055E-4287-8877-158C99A86942@gmail.com> Message-ID: On 1/7/2016 5:45 AM, Project wrote: > Good day > > I am a new user to Python and have downloaded Idle (Python version: > 3.4.3; Tk Version: 8.5.9; IDLE version: 3.4.3). If on Mac OSX, I recommend upgrading tk https://www.python.org/download/mac/tcltk/ > I am using the book > "Python for kids" as a starter and have noticed that when I try to > use the underscore (_) in the Python shell the underscore is not > visible. Is there any way to rectify this? > > I have copied the two lines of code from the Python shell window > below and the underscore is definitely there - just not visible! > >>>> number_of_coins=200 print(number_of_coins) Quite visible to me. What happens when you run the interactive interpreter directly? What happens is you click Options / Configure IDLE / Font tab, and change the font? -- Terry Jan Reedy From tjreedy at udel.edu Sat Feb 6 15:25:32 2016 From: tjreedy at udel.edu (Terry Reedy) Date: Sat, 6 Feb 2016 15:25:32 -0500 Subject: [Idle-dev] Getting Numpy working in IDLE In-Reply-To: <56AE3F5C.1040806@tiscali.co.uk> References: <56AE3F5C.1040806@tiscali.co.uk> Message-ID: <56B656BC.4050602@udel.edu> On 1/31/2016 12:07 PM, S Lawson wrote: > I have numpy installed on the computer i.e. in a python shell '>>> > import numpy' works but not from within the working IDLE (Python-3.4). When this has come up on Stackoverflow, the answer has been that the person is using a *nix system, such as Mac OSX, has 2.7 installed with the system, and separately has installed 3.4. They download and install xyz for 3.4, run 3.4, type 'import xyz', and it works. Then they run 'IDLE', but it turns out that they are running IDLE with 2.7, not 3.4, and xyz is not installed for 2.7. I suspect something like this applies to your case. -- Terry Jan Reedy From tjreedy at udel.edu Sat Feb 6 15:35:10 2016 From: tjreedy at udel.edu (Terry Reedy) Date: Sat, 6 Feb 2016 15:35:10 -0500 Subject: [Idle-dev] python 3.5.1 In-Reply-To: References: Message-ID: <56B658FE.1030106@udel.edu> On 1/24/2016 6:46 AM, L Lindisfarne wrote: > I was trying to install a copy of Python, do I need to email you for a > licence agreement? No. The license comes with Python. In the interactive shell, or IDLE Shell, type 'license()', as the splash message says. But the license is about redistributing Python or derivatives. If you are not doing that (and programs written in Python are not derivatives of Python), just run Python/IDLE and enjoy. -- Terry Jan Reedy From jeffsilverm at gmail.com Mon Feb 8 18:52:12 2016 From: jeffsilverm at gmail.com (Jeff Silverman) Date: Mon, 8 Feb 2016 15:52:12 -0800 Subject: [Idle-dev] I have a suggestion for a feature in idle Message-ID: I would like idle to save automatically. I know I am supposed to save my work from time to time, but when I am thinking very hard about a program, it is hard to remember to do that. Jeff -- Jeff Silverman, linux sysadmin nine two four twentieth avenue east Seattle, WA, nine eight one one two -3507 (253) 459-2318 jeffsilverm at gmail.c0m (note the zero!) http://www.commercialventvac.com See my portfolio of writings and talks -------------- next part -------------- An HTML attachment was scrubbed... URL: From tjreedy at udel.edu Tue Feb 9 15:20:48 2016 From: tjreedy at udel.edu (Terry Reedy) Date: Tue, 9 Feb 2016 15:20:48 -0500 Subject: [Idle-dev] I have a suggestion for a feature in idle In-Reply-To: References: Message-ID: On 2/8/2016 6:52 PM, Jeff Silverman wrote: > I would like idle to save automatically. I know I am supposed to save > my work from time to time, but when I am thinking very hard about a > program, it is hard to remember to do that. https://bugs.python.org/issue21152 -- Terry Jan Reedy