gt;
> [1] The convention that quotes are ascribed to those who first used them
> is, of course, a foolish consistency.
>
> Tim C
+1 QOTW
:)
Joal Heagney
--
http://mail.python.org/mailman/listinfo/python-list
Steve wrote:
> Python is an excellent place to start. Avoid Perl at all costs.
>
> There is a new beginners book on Python that looks interesting. It is
> from WROX (the red cover folks) and called "Beginning Python".
>
> http://www.amazon.com/exec/obidos/tg/detail/-/0764596543/qid=1125072498/s
Ville Vainio wrote:
>>"Fred" == Fred Pacquier <[EMAIL PROTECTED]> writes:
>
>
> Fred> Same here : thanks for letting us get away with being
> Fred> lazy(er) ! :-)
>
> Ditto. As someone who's done a couple of p-url's, I can say it's quite
> a bit of work to find the interesting tidbit
[EMAIL PROTECTED] wrote:
> Hi,
>
> I've developed in several other languages and have recently found
> Python and I'm trying to use it in the shape of the PythonCard
> application development tool.
>
> My two questions:
>
> 1. What is the easiest way to create a for loop in the style I'm used
>
you distributed your python code as
byte-compiled module.pyc or module.pyo form, rather than ascii-text
module.py form, it would be harder for a reverse-engineer to say "But I
was JUST looking at it!". Especially when the lawyers are involved.
Joal Heagney
--
http://mail.python.org/mailman/listinfo/python-list
o in the interest of restoring the pleasantness and cooperation I
experienced when I first joined, I ask that people do the following:
"If you're sick of answering newbie questions, and don't think you can
do so politely, for the sake of the community, DON'T!"
You're not that necessary.
Joal Heagney
--
http://mail.python.org/mailman/listinfo/python-list
ith Python.
Strange that other Mandrake Users aren't getting this.
Joal Heagney
John Ridley wrote:
> "Joal Heagney" wrote:
>
>
>>Hi everyone. I've been getting this error message in python, and it's
>
>
>>really driving me up the wall.
&g
Hi everyone. I've been getting this error message in python, and it's
really driving me up the wall.
[EMAIL PROTECTED] joal]$ python
'import site' failed; use -v for traceback
Python 2.3.4 (#1, Apr 18 2005, 19:03:06)
[GCC 3.4.1] on linux2
Type "help", "copyright", "credits" or "license" for more
Axel Straschil wrote:
Hello!
Why not:
class A:
def a_lengthy_method(self, params):
# do some work depending only on data in self and params
class B(A): pass
?
Lg,
AXEL.
As a rough guess, I think the original poster was wondering how to
include *one* specific method from class A into
Edward Diener wrote:
Thomas Rast wrote:
Edward Diener <[EMAIL PROTECTED]> writes:
It is a pity the Python Linux binary installations do not
create folders on the desktop or in the Gnome menu system with links
to the Python to the documentation and a readme telling me what
executables were installe
Joal Heagney wrote:
Steve Holden wrote:
I suppose this would be far too easy to understand, then:
pr =['Guess my name', 'Wrong, try again', 'Last chance']
for p in pr:
name = raw_input(p+": ")
if name == "Ben":
print "You're r
Steve Holden wrote:
Joal Heagney wrote:
Bengt Richter wrote:
On Fri, 01 Apr 2005 07:46:41 GMT, Joal Heagney <[EMAIL PROTECTED]>
wrote:
Oh goddammmni. I seem to be doing this a lot today. Look below
for the extra addition to the code I posted.
Joal Heagney wrote:
Here's my c
Bengt Richter wrote:
On Fri, 01 Apr 2005 07:46:41 GMT, Joal Heagney <[EMAIL PROTECTED]> wrote:
Oh goddammmni. I seem to be doing this a lot today. Look below for
the extra addition to the code I posted.
Joal Heagney wrote:
Here's my contribution anycase:
count = 0
# Get first
Oh goddammmni. I seem to be doing this a lot today. Look below for
the extra addition to the code I posted.
Joal Heagney wrote:
Here's my contribution anycase:
count = 0
# Get first input
name = raw_input("Guess my name: ")
# Give the sucker two extra goes
while count <
Ben wrote:
This is an exercise from the Non-programmers tutorial for Python
by Josh Cogliati.
The exercise is:
Write a program that has a user guess your name, but they only get 3
chances to do so until the program quits.
Here is my script:
--
count = 0
name = raw_input("Gue
Joal Heagney wrote:
kamarudin samsudin wrote:
Hi all,
I try to invoke python serial script via my browser using PHP (exec
function). For the serial communication, i used pySerial module. It
fine when it run it as root but when i try to run it from browser, i
got this error in my httpd/error_log
kamarudin samsudin wrote:
Hi all,
I try to invoke python serial script via my browser using PHP (exec
function). For the serial communication, i used pySerial module. It
fine when it run it as root but when i try to run it from browser, i
got this error in my httpd/error_log
File "weather1.py", l
Antoon Pardon wrote:
Op 2005-03-31, Joal Heagney schreef <[EMAIL PROTECTED]>:
Joal Heagney wrote:
Roman Yakovenko wrote:
Thanks for help. But it is not exactly solution I am looking for. I
would like to do it from python script. For example
update_env() #<- this function wi
Ed Suominen wrote:
Philp Smith wrote:
Hi
Does anyone have suggested code for a compact, efficient, elegant, most of
all pythonic routine to produce a list of all the proper divisors of an
integer (given a list of prime factors/powers)
Is this compact enough? :-)
def properDivisors(N):
return
Joal Heagney wrote:
Roman Yakovenko wrote:
Thanks for help. But it is not exactly solution I am looking for. I
would like to do it from python script. For example
update_env() #<- this function will change LD_LIBRARY_PATH
import extension_that_depends_on_shared_library
Roman
On Mar 31, 2005 9
Roman Yakovenko wrote:
Thanks for help. But it is not exactly solution I am looking for. I
would like to do it from python script. For example
update_env() #<- this function will change LD_LIBRARY_PATH
import extension_that_depends_on_shared_library
Roman
On Mar 31, 2005 9:35 AM, John Abel <[EMAIL
Duncan Booth wrote:
Joal Heagney wrote:
Nice. I still have to download a version of pygame to try this out, but
the fact that you can't hide the turtle in python.turtle was bugging me
out with my version. (A fair bit of copy/paste in gimp, I can tell you!)
What was wrong with hiding the t
Joal Heagney wrote:
Joal Heagney wrote:
Duncan Booth wrote:
Joal Heagney wrote:
Nice. I still have to download a version of pygame to try this out,
but the fact that you can't hide the turtle in python.turtle was
bugging me out with my version. (A fair bit of copy/paste in gimp, I
can tel
Joal Heagney wrote:
Duncan Booth wrote:
Joal Heagney wrote:
Nice. I still have to download a version of pygame to try this out,
but the fact that you can't hide the turtle in python.turtle was
bugging me out with my version. (A fair bit of copy/paste in gimp, I
can tell you!)
What was
Lee Harr wrote:
On 2005-03-27, Joal Heagney <[EMAIL PROTECTED]> wrote:
Couldn't help myself. I had to write the Dragon Fractal in python.turtle
:)
That's nice. I ported it to use the pygsear Turtle class.
http://www.nongnu.org/pygsear/
Nice. I still have to download a version
Simon Brunning wrote:
On 23 Mar 2005 21:03:04 -0800, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
Is there something out there like "Python for kids" which would explain
*basic* programming concepts in a way which is accessible and
entertaining for kids aged 10-14 (that about where her brain is ri
Antoon Pardon wrote:
So python choose a non-deterministic direction. To me (2,3) + (4,5)
equals (6,8). I don't dispute that having an operator to combine
(2,3) and (4,5) in (2,3,4,5) is usefull, but they should never have
used the "+" for that.
("alph", "bravo") + ("delta", "max") --> ("alphdelta"
Simon Brunning wrote:
On 23 Mar 2005 21:03:04 -0800, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
Is there something out there like "Python for kids" which would explain
*basic* programming concepts in a way which is accessible and
entertaining for kids aged 10-14 (that about where her brain is rig
Diez B. Roggisch wrote:
Wolfgang wrote:
Hi,
I am a newbie and have to modify some python moduls.
I get the followin error:
TypeError: __init__() takes exactly 3 arguments (2 given)
Here the code snippet:
class gXconv:
def __init__(self, pathValue):
self.pathValue=pathValue
self.__
Tim Roberts wrote:
"G. Völkl" <[EMAIL PROTECTED]> wrote:
I use a dictionary:
phone = {'mike':10,'sue':8,'john':3}
phone['mike'] --> 10
I want to know who has number 3?
3 --> 'john'
How to get it in the python way ?
If you need to do this a lot, just keep two dictionaries, where the keys in
each
30 matches
Mail list logo