Re: [Tutor] When are strings interned?

2009-07-02 Thread Jeremiah Dodds
On Wed, Jul 1, 2009 at 4:44 PM, Angus Rodgers wrote: > Hello, world! > > This is my first post to the Tutor list (although I've already > posted to comp.lang.python a couple of times). > > I'm currently reading Chapter 4 of Wesley Chun's book, "Core > Python Programming" (2nd ed.). > > I find thi

Re: [Tutor] When are strings interned?

2009-07-02 Thread Lie Ryan
Angus Rodgers wrote: > Hello, world! > > This is my first post to the Tutor list (although I've already > posted to comp.lang.python a couple of times). > > I'm currently reading Chapter 4 of Wesley Chun's book, "Core > Python Programming" (2nd ed.). > > I find this, in Python 2.5.4, on my Win9

[Tutor] window graphics

2009-07-02 Thread David H. Burns
I am new to Python and I'm looking for help on graphics in Python3.0. All the graphics libraries I've seen are far to complex (and don't seem compatible with 3. What I really need to know is two things (1) how to set up a graphic window and (2)how to plot a pixel. Basically that's all a "graphi

Re: [Tutor] When are strings interned?

2009-07-02 Thread Andrew Fithian
My guess is that Python sees the space and decides it isn't a short string so it doesn't get interned. I got the expected results when I used 'green_ideas' instead of 'green ideas'. -Drew On Wed, Jul 1, 2009 at 6:43 PM, Marc Tompkins wrote: > On Wed, Jul 1, 2009 at 5:29 PM, Robert Berman wrote:

Re: [Tutor] Need help with python game program

2009-07-02 Thread Lie Ryan
Luke Paireepinart wrote: > Please don't reply to messages like this. If you are starting a new > thread, send a new e-mail to tutor@python.org . > DO NOT start a thread by replying to another message. If you do, it > will bork on people's machines who use threaded e-mail

Re: [Tutor] window graphics

2009-07-02 Thread Gregor Lingl
Hi David, Python 3 (preferably 3.1) has a very easy to use graphics module in the standard library: the turtle module. It has a lot of capabilities, but alas, its working with geometrical objects and doesn't allow to adress single pixels . Get started by writing: >>> from turtle import *

Re: [Tutor] window graphics

2009-07-02 Thread A.T.Hofkamp
David H. Burns wrote: I am new to Python and I'm looking for help on graphics in Python3.0. All the graphics libraries I've seen are far to complex (and don't seem compatible with 3. What I really need to know is two things (1) how to set up a graphic window and (2)how to plot a pixel. Basicall

Re: [Tutor] window graphics

2009-07-02 Thread Alan Gauld
"David H. Burns" wrote All the graphics libraries I've seen are far to complex (and don't seem compatible with 3. See the other posts re the wisdom of using Python 3 at this stage, however What I really need to know is two things (1) how to set up a graphic window from tkinter i

[Tutor] IDLE 3.0 menu weirdness

2009-07-02 Thread Alan Gauld
I tried posting this on the IDLE list but got no replies so I've been updating my online tutorial to Python v3. I've come across a weird "feature" of IDLE 3: The menus show as a pair of up/down arrows! Clicking the arrows does nothing obvious. If you select a menu and then hit the letter o

Re: [Tutor] window graphics

2009-07-02 Thread Kent Johnson
On Wed, Jul 1, 2009 at 3:49 PM, David H. Burns wrote: > I am new to Python and I'm looking for help on graphics in Python3.0. All > the graphics libraries I've seen are far to complex (and don't seem > compatible with 3. What I really need to know is two things (1) how to set > up a graphic window

Re: [Tutor] window graphics

2009-07-02 Thread Kent Johnson
Forwarding to the list with my reply... On Thu, Jul 2, 2009 at 8:16 PM, David H. Burns wrote: > I don't necessarily want to plot single pixels. I'm not at all sure what > "directly" means in this context. "Plotting" to the screen involves sending > data to a software algorithm which invokes the ap