Re: [Tutor] A more Pythonic way to do this

2005-07-01 Thread Alan G
>enemyship_sprites.add(Enemy((cols*60)+20, (rows*40)+30), level) Check your parens... The closing one after 30 closes the constructor list. level is outside so you effectively have sprites.add(Enemy(X,Y), level) HTH, Alan G. ___ Tutor mai

[Tutor] compiling python files

2005-07-01 Thread Johan Geldenhuys
Hi all, I have python .py files that I want to compile into .pyc files. Is there a easy way of doing this? Thanks, Johan ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] compiling python files

2005-07-01 Thread Bernard Lebel
That would be the compileall utility: http://www.python.org/doc/2.4.1/lib/module-compileall.html Cheers Bernard On 7/1/05, Johan Geldenhuys <[EMAIL PROTECTED]> wrote: > Hi all, > I have python .py files that I want to compile into .pyc files. > Is there a easy way of doing this? > > Thank

Re: [Tutor] A more Pythonic way to do this

2005-07-01 Thread Jacob S.
>Good, good. I probably wouldn't have been able to help you if it was something so simple but that >screws up your program and makes it hard to find out just what is going on. Anyway good look with >anymore tidying on that you might be doing. Any chance of a copy?>>Adam   Denise, Can

Re: [Tutor] Alternative File I/O for Tuples (fwd)

2005-07-01 Thread Jacob S.
- Original Message - From: "Don Parris" <[EMAIL PROTECTED]> To: Sent: Thursday, June 30, 2005 12:23 AM Subject: Re: [Tutor] Alternative File I/O for Tuples (fwd) > On Wed, 29 Jun 2005 14:09:41 -0400 > Kent Johnson <[EMAIL PROTECTED]> wrote: > >> Don Parris wrote: >> > ### playing with

[Tutor] xml, external entity and non-ascii paths

2005-07-01 Thread Panard
Hi, Here is my problem : My local encoding is iso-8859-15, I use utf8 encoded xml files, which use dtd, which use a common dtd : == sample.xml == == sample.dtd %COMMON_DTD; == == common.dtd == I put them in a non-ascii directory : /home/panard/tests/yéyé/ for exemple. And now, I want to

Re: [Tutor] A more Pythonic way to do this

2005-07-01 Thread D. Hartley
Just catching up on a few replies: Alan - yes, Adam pointed out my silly error, and it solved what I thought was a much bigger problem. Very funny how these things go sometimes. And to anyone who's interested: If you'd like a copy, just shoot me an email and I can zip it up and send it to you.

[Tutor] I sure do love cookies.

2005-07-01 Thread D. Hartley
Anyone have a good (*simple*) tutorial on making/sending cookies via python? (i.e., not receiving/messing with them). Thanks :) ~Denise ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

[Tutor] OT self-implementation?

2005-07-01 Thread Brian van den Broek
Hi all, a bit off topic for Python Tutor, but I am think there are decent odds that folks here both know good resources and have an idea of what level would be appropriate for me. So, I hope no one minds. A recent thread on comp.lang.python has touched on to what extent C was written in C. I k

Re: [Tutor] OT self-implementation?

2005-07-01 Thread Sean Perry
Brian van den Broek wrote: > Now's not the time in my life to start a comp. sci. degree. So, my > questions are: > > 1) What would be good terms to google for to find an explanation of > how the seeming magic doesn't violate all reason? > > 2) Much harder, so please pass unless you've a link yo

Re: [Tutor] I sure do love cookies.

2005-07-01 Thread Kent Johnson
D. Hartley wrote: > Anyone have a good (*simple*) tutorial on making/sending cookies via > python? (i.e., not receiving/messing with them). The problem is, what you have to do is not a usual use of cookies. From the client side you usually just get the cookies from the host and echo them back in

Re: [Tutor] OT self-implementation?

2005-07-01 Thread Max Noel
On Jul 2, 2005, at 01:43, Brian van den Broek wrote: This sounds, to the untutored, rather like magic. (It reminds me of a line from the German mathematician and philosopher, Gottlob Frege, who, in a book on the foundations of arithmetic, characterized an opposing position as akin to "trying to

Re: [Tutor] OT self-implementation?

2005-07-01 Thread Michael P. Reilly
On 7/1/05, Brian van den Broek <[EMAIL PROTECTED]> wrote: Hi all,a bit off topic for Python Tutor, but I am think there are decent oddsthat folks here both know good resources and have an idea of whatlevel would be appropriate for me. So, I hope no one minds. A recent thread on comp.lang.python has

[Tutor] Avoiding clear text passwords; advice for learning projects.

2005-07-01 Thread Bradford R. Bowman
I'm new to the list, new to python, and new to programming, so I'll try not to waste too much of everyone's time here. I just wrote a little script to detect changes in my dynamic IP address and, in case of a change, update the DNS records maintained my registrar, enom. The update process require

Re: [Tutor] OT self-implementation?

2005-07-01 Thread Brian van den Broek
Michael P. Reilly said unto the world upon 01/07/2005 22:18: > On 7/1/05, Brian van den Broek <[EMAIL PROTECTED]> wrote: >>A recent thread on comp.lang.python has touched on to what extent C >>was written in C. I know PyPy aims to implement Python in Python. I >>believe I've heard that many lisp

Re: [Tutor] Alternative File I/O for Tuples (fwd)

2005-07-01 Thread Don Parris
On Fri, 1 Jul 2005 12:09:03 -0500 "Jacob S." <[EMAIL PROTECTED]> wrote: > > - Original Message - > From: "Don Parris" <[EMAIL PROTECTED]> > To: > Sent: Thursday, June 30, 2005 12:23 AM > Subject: Re: [Tutor] Alternative File I/O for Tuples (fwd) > > > > On Wed, 29 Jun 2005 14:09:41 -0