Re: [Tutor] py in a nut

2005-10-25 Thread Damien Gouteux
In french, 'Python précis & concis', from O'Reilly is now out : from Mark Lutz, it covers python 2.4 (and decorators). I assume there is a english edition of this book. Frank Moore wrote: Kent Johnson wrote: Have you looked at Python Cookbook 2E? Chapter 19 is "Iterators and Gene

Re: [Tutor] IDLE will not appear under Win95 (Python 2.4.2)

2005-10-15 Thread Damien Gouteux
Try to right-click on a python file and click 'Edit with IDLE'. IDLE doesn't work without a file in argument. I hope it will help you. Damien G. Dave Shea wrote: >Hi, > >I'm very new to Python. Today I downloaded the python-2.4.2.msi file from >www.python.org &

Re: [Tutor] Calling Modules in ActiveState 2.4

2005-09-21 Thread Damien Gouteux
For exit: You need to put an argument (more input) : import sys sys.exit(0) The argument of exit is the return value of your script (0 = okay, other = problem). sys.path is an attribute (of type list) of sys not a function. So don't put () after path. I hope it will help. Damien. Bob Nie

[Tutor] Venom / Python23.dll missing

2005-09-11 Thread Damien Gouteux
Hi all. I try to run Venom, a Python binding for the Irrlicht engine. But I need python23.dll. This dll is generated by py2exe, but I have only Python 2.4 installed on my PC, so I can have only python24.dll. If somebody could give a link to grap it, I will be pleased. Thank you. Damien G

Re: [Tutor] Directory or File ?

2005-08-02 Thread Damien
Ok, sorry. In the future, I will look more closely the module before sending my question. Thanks. Kent Johnson a écrit : Damien wrote: Hi all, I want to know if a file is a directory or a simple file. Look at os.path.isdir() Kent I have done a little ugly

[Tutor] Directory or File ?

2005-08-02 Thread Damien
better way, please tell me. Thanks, Damien G. ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] mailman

2005-08-02 Thread Damien
Mohammad Moghimi a écrit : [...] checking that Python has a working distutils... configure: error: * Distutils is not available or is incomplete for /usr/bin/python * If you installed Python from RPM (or other package manager) * be sure to install the -devel package, or install P

Re: [Tutor] Class variable & object variable

2005-07-19 Thread Damien
thx for your quick (and complete) answers. to Alan G : I will try to see what setattr() and getattr() can do for me. I'm not used to this stuff. to Alex Nedelcu : If I understand correctly : There are two different references (A.d in the dict of the class A and z.d in the dict of the object z)

[Tutor] Class variable & object variable

2005-07-19 Thread Damien
t least, for me): z.d(new object var) = z.d(old class var) + 1 Is it possible to have 'd' only for the class and not for instances of this class ? and to have at (°) (z.d) an exception raised ? (like "d is not defined for object z"). Thank you, Damien. ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor