Re: pyglet, i don't understand why this code isn't working

2018-11-02 Thread songbird
Peter Otten wrote: > songbird wrote: >> MRAB wrote: >>> On 2018-11-02 19:58, songbird wrote: hello, :) > >>> [snip] >>> In __init__ you initialise self.animation_initial_turn_it_off to True. >>> >>> Nowhere in your code do you change it, so it remains True. >> >> i wish it

Re: pyglet, i don't understand why this code isn't working

2018-11-02 Thread Peter Otten
songbird wrote: > MRAB wrote: >> On 2018-11-02 19:58, songbird wrote: >>> >>>hello, :) >>> >> [snip] >> In __init__ you initialise self.animation_initial_turn_it_off to True. >> >> Nowhere in your code do you change it, so it remains True. > > i wish it were that easy... > > see

Re: pyglet, i don't understand why this code isn't working

2018-11-02 Thread songbird
MRAB wrote: > On 2018-11-02 19:58, songbird wrote: >> >>hello, :) >> >>my question is below, a bit of background first. >> i'm very new to python and picking it up by working >> on a project for fun. >> >>please don't critique my style or lack of >> classes/objects in the code yet

Re: pyglet, i don't understand why this code isn't working

2018-11-02 Thread MRAB
On 2018-11-02 19:58, songbird wrote: hello, :) my question is below, a bit of background first. i'm very new to python and picking it up by working on a project for fun. please don't critique my style or lack of classes/objects in the code yet - i'm way too new. :) my current

pyglet, i don't understand why this code isn't working

2018-11-02 Thread songbird
hello, :) my question is below, a bit of background first. i'm very new to python and picking it up by working on a project for fun. please don't critique my style or lack of classes/objects in the code yet - i'm way too new. :) my current project is at:

Re: Why this code is working?

2009-01-25 Thread r
On Jan 23, 10:02 pm, alex23 wuwe...@gmail.com wrote: [snip] How's that Python bridge to SketchUp coming along? It's been months already, surely you've invested as much effort into learning Python as you have in talking about it? Thanks for asking Alex23, The ball is rolling on the Python

Re: Why this code is working?

2009-01-25 Thread r
Actually Alex, i have not stopped working on getting Python into SU in one form or another since that crazy post of mine almost 3 moths ago. I have many people in the SU community asking me almost daily when i will get finished. I have a lot of work to do at this point but i will keep fighting

Re: Why this code is working?

2009-01-23 Thread r
Yes promoting freedom, claiming that freedom is a good thing, and not being afraid to open my mouth about it, fight for it, free others from their bonds, makes me free. No presumption was made about the OP, the only meaning in my message was to free the OP from his self imposed bonds while using

Re: Why this code is working?

2009-01-23 Thread alex23
On Jan 24, 10:56 am, r rt8...@gmail.com wrote: [...] *not being afraid to open my mouth about it, fight for it, free others from their bonds* [...] Come down from your tower of *righteousness* Deiz, loosen up that stiff- upper-lip and bring your brown-nosing minions with you! (emphasis mine

Re: Why this code is working?

2009-01-15 Thread Aaron Brady
On Jan 14, 7:21 am, Diez B. Roggisch de...@nospam.web.de wrote: r wrote: Listen Hussien, Granted, with a name of r, spelling it wrong is hard, and thus you might not be trained in the art of spelling names proper. Or spelling proper names! Bah ha. --

Why this code is working?

2009-01-14 Thread Hussein B
Hey, Why this code is working? def f1( ): ... x = 88 ... f2(x) ... def f2(x): ... print x ... f1( ) 88 Thanks. -- http://mail.python.org/mailman/listinfo/python-list

Re: Why this code is working?

2009-01-14 Thread Bruno Desthuilliers
Hussein B a écrit : Hey, Why this code is working? def f1( ): ... x = 88 ... f2(x) ... def f2(x): ... print x ... f1( ) 88 Well... Because it is correct ? What make you think it _shouldn't_ work ? -- http://mail.python.org/mailman/listinfo/python-list

Re: Why this code is working?

2009-01-14 Thread Hussein B
On Jan 14, 11:55 am, Bruno Desthuilliers bruno. 42.desthuilli...@websiteburo.invalid wrote: Hussein B a écrit : Hey, Why this code is working? def f1( ): ...      x = 88 ...      f2(x) ... def f2(x): ...      print x ... f1( ) 88 Well... Because it is correct ? What

Re: Why this code is working?

2009-01-14 Thread Peter Otten
Hussein B wrote: Why this code is working? def f1( ): ... x = 88 ... f2(x) ... def f2(x): ... print x ... f1( ) 88 The name 'f2' is not resolved once when the f1 function is created. Instead Python looks for a global name 'f2' each time f1 is executed. Peter -- http

Re: Why this code is working?

2009-01-14 Thread Steven D'Aprano
On Wed, 14 Jan 2009 01:57:48 -0800, Hussein B wrote: Well... Because it is correct ? What make you think it _shouldn't_ work ? Because def2 is defined after def1 in an interpreted language, not compiled. Python is compiled. What do you think the c in .pyc stands for? And what do you

Re: Why this code is working?

2009-01-14 Thread Hussein B
On Jan 14, 2:21 pm, Steven D'Aprano st...@remove-this- cybersource.com.au wrote: On Wed, 14 Jan 2009 01:57:48 -0800, Hussein B wrote: Well... Because it is correct ? What make you think it _shouldn't_ work ? Because def2 is defined after def1 in an interpreted language, not compiled.

Re: Why this code is working?

2009-01-14 Thread Benjamin Kaplan
On Wed, Jan 14, 2009 at 7:59 AM, Hussein B hubaghd...@gmail.com wrote: On Jan 14, 2:21 pm, Steven D'Aprano st...@remove-this- cybersource.com.au wrote:a On Wed, 14 Jan 2009 01:57:48 -0800, Hussein B wrote: Well... Because it is correct ? What make you think it _shouldn't_ work ?

Re: Why this code is working?

2009-01-14 Thread Diez B. Roggisch
r wrote: Listen Hussien, Granted, with a name of r, spelling it wrong is hard, and thus you might not be trained in the art of spelling names proper. But I suggest you try your best. After all, you posts lack so much in content, you could at least excel in form... In python you do not have to

Re: Why this code is working?

2009-01-14 Thread Bruno Desthuilliers
Hussein B a écrit : On Jan 14, 11:55 am, Bruno Desthuilliers bruno. 42.desthuilli...@websiteburo.invalid wrote: Hussein B a écrit : Hey, Why this code is working? def f1( ): ... x = 88 ... f2(x) ... def f2(x): ... print x ... f1( ) 88 Well... Because it is correct

Re: Why this code is working?

2009-01-14 Thread Bruno Desthuilliers
Hussein B a écrit : On Jan 14, 2:21 pm, Steven D'Aprano st...@remove-this- cybersource.com.au wrote: On Wed, 14 Jan 2009 01:57:48 -0800, Hussein B wrote: Well... Because it is correct ? What make you think it _shouldn't_ work ? Because def2 is defined after def1 in an interpreted language,

Re: Why this code is working?

2009-01-14 Thread Mel
Hussein B wrote: On Jan 14, 11:55 am, Bruno Desthuilliers bruno. 42.desthuilli...@websiteburo.invalid wrote: Hussein B a écrit : Hey, Why this code is working? def f1( ): ...      x = 88 ...      f2(x) ... def f2(x): ...      print x ... f1( ) 88 Well... Because

Re: Why this code is working?

2009-01-14 Thread Steve Holden
Diez B. Roggisch wrote: r wrote: Listen Hussien, Granted, with a name of r, spelling it wrong is hard, and thus you might not be trained in the art of spelling names proper. But I suggest you try your best. After all, you posts lack so much in content, you could at least excel in form...

Re: Why this code is working?

2009-01-14 Thread Roger
On Jan 14, 8:08 am, r rt8...@gmail.com wrote: I guess where i come from freedom is second nature so i took to python pretty quick. Wow, that's presumptive, assuming, and harsh. Not at all helpful and unnecessary. Geez... -- http://mail.python.org/mailman/listinfo/python-list