Re: python logo

2005-09-05 Thread Joal Heagney
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

Re: Experience regarding Python tutorials?

2005-08-27 Thread Joal Heagney
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

Re: Dr. Dobb's Python-URL! - weekly Python news and links (Jun 7)

2005-06-09 Thread Joal Heagney
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

Re: Two questions

2005-06-02 Thread Joal Heagney
[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 >

Re: Is Python suitable for a huge, enterprise size app?

2005-05-22 Thread Joal Heagney
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

Re: Python Polymorphism

2005-05-22 Thread Joal Heagney
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

Re: Mandrake 10.1 and Python 2.3.4

2005-05-16 Thread Joal Heagney
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

Mandrake 10.1 and Python 2.3.4

2005-05-15 Thread Joal Heagney
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

Re: Reusing object methods?

2005-05-01 Thread Joal Heagney
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

Re: Name of IDLE on Linux

2005-04-02 Thread Joal Heagney
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

Re: New to programming question

2005-04-01 Thread Joal Heagney
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

Re: New to programming question

2005-04-01 Thread Joal Heagney
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

Re: New to programming question

2005-04-01 Thread Joal Heagney
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

Re: New to programming question

2005-03-31 Thread Joal Heagney
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 <

Re: New to programming question

2005-03-31 Thread Joal Heagney
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

Re: pySerial- need help.

2005-03-31 Thread Joal Heagney
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

Re: pySerial- need help.

2005-03-31 Thread Joal Heagney
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

Re: LD_LIBRARY_PATH - how to set?

2005-03-31 Thread Joal Heagney
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

Re: math - need divisors algorithm

2005-03-31 Thread Joal Heagney
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

Re: LD_LIBRARY_PATH - how to set?

2005-03-31 Thread Joal Heagney
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

Re: LD_LIBRARY_PATH - how to set?

2005-03-31 Thread Joal Heagney
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

Re: Python for a 10-14 years old?

2005-03-29 Thread Joal Heagney
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

Re: Python for a 10-14 years old?

2005-03-29 Thread Joal Heagney
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

Re: Python for a 10-14 years old?

2005-03-29 Thread Joal Heagney
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

Re: Python for a 10-14 years old?

2005-03-28 Thread Joal Heagney
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

Re: Python for a 10-14 years old?

2005-03-26 Thread Joal Heagney
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

Re: Why tuple with one item is no tuple

2005-03-26 Thread Joal Heagney
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"

Re: Python for a 10-14 years old?

2005-03-25 Thread Joal Heagney
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

Re: Constructor class problem

2005-03-22 Thread Joal Heagney
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.__

Re: newbie: dictionary - howto get key value

2005-03-13 Thread Joal Heagney
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