Well I use the getopt module.
so in my foo.py it would be something like.
import getopt
try:
opts, args = getopt.getopt(sys.argv[1:], "U:u:P:p:H:h:?",
["Username=", "username=", "Password=", "password=", "Help=","help="])
except getopt.GetoptError:
print :nothing specila just an error"
Ben Markwell writes:
This is an exercise from "How to think like a Computer Scientist."
The following example shows how to use concatenation and a for loop to
generate an abecedarian series. "Abecedarian" refers to a series or list in
which the elements appear in alphabetical order. For examp
Brian van den Broek writes:
Joseph Quigley said unto the world upon 2005-04-11 20:23:
Well, now I've learned what def is good for. But what could I put in the
parenthesis of def foo():?
Of course self is always available, but what would maybe def
foo(number1): do? An error right? So I now repe
Alberto Troiano writes:
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
I would personally use a blob. That is why they are there. To store that
binary data. I am sure you could use a longtext but this way space
Jeffrey Maitland writes:
joe_schmoe writes:
Dear Pythonites
I am looking for a more elegant solution to a piece of code that is too
unwieldy and reptitive. The purpose of the code is for a new addition to
a list to check whether it is a duplicate of a list element already a
member of
joe_schmoe writes:
Dear Pythonites
I am looking for a more elegant solution to a piece of code that is too
unwieldy and reptitive. The purpose of the code is for a new addition to a
list to check whether it is a duplicate of a list element already a member
of that list, and if so to regenera
ten before me (mind you it's C++) and the
authors seemed to follow what ever style they wished to that day. Oh well
that's the nature of the beast.
Thanks again for clearing that up for me.
Jeff
Bill Mill writes:
Jeff,
On Fri, 11 Feb 2005 10:03:30 -0500, Jeffrey Maitland <[
Hello all,
I am drawing a blank right now and can't seem to find anything on it and I
am sure this issue has been addressed before, so here is the question.
Can and if you can how do you set a variable as a constant?
Example of what I mean: (this is loose and not python since variable type