>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
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
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
>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
- 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
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
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.
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
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
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
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
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
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
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
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
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
16 matches
Mail list logo