On Tuesday, Apr 19, 2005, Lee Cullens wrote:
I assume you mean PythonIDE for Python 2.3 (I usually use 2.4 and
WingIDE). Here it is (indents screwed up with var font):
HTH,
Lee C
import timeit
def y1():
print ’y1 executed’
def y2():
print ’y2 executed’
for f in [y1,y2]:
n
At 06:56 PM 4/20/2005, PFraterdeus wrote:
Here'a little py script for a
plone page template...
I just want to translate the 'key' (organicnews) to a 'value' (Organics
in the
News), for presentation purposes. (the key, of course, is in the URL
request)
db = request.db
if db=="organicnews":
pri
PFraterdeus wrote:
Here'a little py script for a plone page template...
I just want to translate the 'key' (organicnews) to a 'value' (Organics in the
News), for presentation purposes. (the key, of course, is in the URL request)
db = request.db
if db=="organicnews":
print "%s" % html_quote('Orga
Prasad Kotipalli wrote:
Hello
I am a newbie to python, I have been working with getopt for parsing
command line options, but i came to know that optparse module is more
effecient. Can anyone suggest some ideas why it is powerful than
getopt.
Another option I like is optionparse from this recipe:
h
Here'a little py script for a plone page template...
I just want to translate the 'key' (organicnews) to a 'value' (Organics in the
News), for presentation purposes. (the key, of course, is in the URL request)
db = request.db
if db=="organicnews":
print "%s" % html_quote('Organics in the News
John,
Thank you for the suggestion to try the game from the command line.
Unfortunately, when I scored high enough to make the high score list
and entered in my name (in the dos/command window, now), and clicked
back to the game screen, the game screen just closed/crashed, and the
command line re
Quoting "D. Hartley" <[EMAIL PROTECTED]>:
> The play file does end in ".py". I am running it on Windows. You can
> double-click the play file, and run it straight that way, which is
> when the crash occurs. If you right click the file, go to "edit in
> IDLE", and hit F5 to run it, the crash does N
> apt-get and yum are available for Redhat style releases. They will
> download and install packages and figure out the dependency issues.
> (yum is written in Python so this is slightly on topic.)
Gentoo's "emerge" system is also written in Python.
Alan
___
On Apr 21, 2005, at 00:19, D. Hartley wrote:
Max -
I thought it might be a version issue as well, thanks. Also, good
luck on your paper! 50 pages, whoo! Haven't done that since grad
school, my condolences man.
~Denise :)
Thanks... I'm almost done now, only a few more pages and all that will
be l
On Apr 20, 2005, at 23:57, Alberto Troiano wrote:
Hi
The thing is this
I get an error that says sort() has no arguments
Th error is in the sentence
high_score.sort(reverse=TRUE)
If you put just sort() it will work but the list will show from low to
high and we don't want that 'cause if you make a
Hi
The thing is this
I get an error that says sort() has no arguments
Th error is in the sentence
high_score.sort(reverse=TRUE)
If you put just sort() it will work but the list will show from low to high
and we don't want that 'cause if you make a high score it won't be able to
know so you have t
Learning to install packages from source tar balls is useful knowledge.
However, most of the current Linux distributions have package managers
that greatly simply installing software.
apt-get and yum are available for Redhat style releases. They will
download and install packages and figure out t
On Wed, 20 Apr 2005, Prasad Kotipalli wrote:
> I am a newbie to python, I have been working with getopt for parsing
> command line options, but i came to know that optparse module is more
> effecient. Can anyone suggest some ideas why it is powerful than
> getopt.
Hi Prasad,
According to:
Hello
I am a newbie to python, I have been working with getopt for parsing
command line options, but i came to know that optparse module is more
effecient. Can anyone suggest some ideas why it is powerful than
getopt.
Thanks
Prasad
___
Tutor maillist -
On Wed, Apr 20, 2005, Alberto Troiano wrote:
>You're so right and I apologize for my mistake
>
>Do you or anybody knows where the error.log for this kind o things is?
>
>or how can I capture the output in a file???Cause is so damn long
>that I barely see the 10% of all the things its p
On Wed, 20 Apr 2005, Alberto Troiano wrote:
> You're so right and I apologize for my mistake
>
> Do you or anybody knows where the error.log for this kind o things is?
>
> or how can I capture the output in a file???Cause is so damn
> long that I barely see the 10% of all the things
Thanks for the suggestion. The ".pyw" extension runs the game without
a text window at all, which actually is kind of nice. However, there
were two problems:
a). the program still crashed out when i scored a score that would
have put me on the high score list
b). i cant see the high score list
Hey Denise
That was fast
Try changing the extension to .pyw and tell me if this fix it
By the way you didn't say nothing about the game :D
Regards
Alberto
From: "D. Hartley" <[EMAIL PROTECTED]>
Reply-To: "D. Hartley" <[EMAIL PROTECTED]>
To: Python tutor
Subject: [Tutor] crash - switching between t
The play file does end in ".py". I am running it on Windows. You can
double-click the play file, and run it straight that way, which is
when the crash occurs. If you right click the file, go to "edit in
IDLE", and hit F5 to run it, the crash does NOT happen. I'm not sure
why (but this is also wh
You're so right and I apologize for my mistake
Do you or anybody knows where the error.log for this kind o things is?
or how can I capture the output in a file???Cause is so damn long
that I barely see the 10% of all the things its print out
I'll look up for the log and send it to you
Hey
I'm curious
What extension are you using on your game???
is it .py???
And what OS are you running the game???
Another thing. I made a space ship game to learn Python. Is there a
possibility that we exchange the games so we can know differents points of
view
> >>I couldn't print the exact error because it's a lot of pages that says
> >>mostly the same
Hi Alberto,
No, that's precisely the kind of wrong kind of attitude toward error
messages that's making this debugging much harder than it should be.
You may think that those error messages are most
Smith, Jeff wrote:
What's the quickest (and most Pythonic) way to do the following Perlism:
$str = s/d+/d/;
(i.e. collapsing multiple occurrences of the letter 'd' to just one)
import re
s = re.sub('d+', 'd', s, 1)
if I understand the perl...this replaces just one occurance of d+. If you wa
Could it be a problem wth gcc library
and if so, gcc library is the C compiler or am I wrong in that?
The exact error is the following:
error: compiled 'gcc' failed with exit status 1
I'm reinstalling Red Hat 9.0 with the EVERYTHING option so there can be no
problem
Thanks aga
What's the quickest (and most Pythonic) way to do the following Perlism:
$str = s/d+/d/;
(i.e. collapsing multiple occurrences of the letter 'd' to just one)
Thanks,
Jeff
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/lis
On Apr 20, 2005, at 16:52, Alberto Troiano wrote:
Hey
Didn't work
I try the python2.3 setup.py build
I couldn't print the exact error because it's a lot of pages that says
mostly the same
the final error says
error: mysql ended exit with status 1
I run the other command python2.3 setup.py install
Hey
Didn't work
I try the python2.3 setup.py build
I couldn't print the exact error because it's a lot of pages that says
mostly the same
the final error says
error: mysql ended exit with status 1
I run the other command python2.3 setup.py install and the same error
What can I do
I'm desperate
Ju
On Apr 20, 2005, at 00:04, Joseph Quigley wrote:
My point is for practice and knowledge. Sure, I have Setup 2 Go (the
paid version) and Install Creator (not paid)
Then again, how many free installers are there for linux?
emerge and apt-get come to mind. rpm is inferior (no dependency
resolution)
Its not hard, but its not easy either to do it right.
And given the profusion of installers already available
ranging from free to expensive there really is little
point in writing something that probably won't be as
good as the already available alternative.
Remember user expectation, if you writ
So I could do the folowing:
Create a DB logon for each user that has permissions to just about
everything.
Have them log on each time.
This would require an application that they could manage their passwords.
I already needed an application for managing permissions within
the applic
Seems a lot of wrappers are moving away from autocommit for performance reasons.
pysqlite has removed it as of the alphra 2.0On 4/20/05, Danny Yoo <[EMAIL PROTECTED]> wrote:
On Tue, 19 Apr 2005 [EMAIL PROTECTED]
wrote:> hi all, while recently trying to insert some data into the following> table:>
31 matches
Mail list logo