Re: Getting started with python

2017-10-30 Thread Bill
subhendu.pand...@gmail.com wrote: Hi, Could you please help me with the below if possible: Possible and reasonable are two different things. Why don't you try some web searches and try to answer some of your own questions. I offer this advice as a Python newbe myself. Bill 1. Best si

Re: Getting started with python on macintosh snow leopard with mysql - need help

2010-07-14 Thread Ned Deily
In article , Benjamin Kaplan wrote: > On Sun, Jul 11, 2010 at 1:18 PM, dk wrote: [...] > > when i try to compile mysql-python-1.2.3 i get the following error > > returned from python setup.py build - > > > > building '_mysql' extension > > gcc-4.0 -isysroot /Developer/SDKs/MacOSX10.4u.sdk

Re: Getting started with python on macintosh snow leopard with mysql - need help

2010-07-11 Thread Benjamin Kaplan
On Sun, Jul 11, 2010 at 1:18 PM, dk wrote: > I have been going round and round trying to configure python 2.6 > running on osx 10.6.x to work with mySQL 5.1.44. > Python seems to work ... i have an installation of mysql 5.1.44 > running and have used it in conjunction for other php/apache projects

Re: Getting started with python

2007-04-18 Thread [EMAIL PROTECTED]
On Apr 17, 11:00 pm, Basilisk96 <[EMAIL PROTECTED]> wrote: > On Apr 14, 8:46 pm, "Eric" <[EMAIL PROTECTED]> wrote: > > > Hello, after reading some of the book Programming Python it seems that > > python is something I would like to delve deeper into. The only thing > > is, I have no idea what I sho

Re: Getting started with python

2007-04-17 Thread Basilisk96
On Apr 14, 8:46 pm, "Eric" <[EMAIL PROTECTED]> wrote: > Hello, after reading some of the book Programming Python it seems that > python is something I would like to delve deeper into. The only thing > is, I have no idea what I should try and write. So I was hoping that > someone here could help poi

Re: Getting started with python

2007-04-17 Thread Ross Ridge
James Stroud <[EMAIL PROTECTED]> wrote: >py> t = timeit.Timer(stmt=s) >py> print "%.2f usec/pass" % (100 * t.timeit(number=10)/10) >40.88 usec/pass 7stud <[EMAIL PROTECTED]> wrote: >What does this accomplish: > >100 * t.timeit(number=10)/10 > >that the following doesn't acc

Re: Getting started with python

2007-04-17 Thread James Stroud
Steve Holden wrote: > James Stroud wrote: >> Steve Holden wrote: >>> You'd be worth more if you'd used elif and omitted the continue >>> statements, but for a first solution it's acceptable. >> >> Depends on what you are after. >> >> py> s = """ >> ... for i in xrange(1,101): >> ... if not i % 1

Re: Getting started with python

2007-04-17 Thread James Stroud
7stud wrote: > On Apr 15, 9:49 pm, James Stroud <[EMAIL PROTECTED]> wrote: >> py> t = timeit.Timer(stmt=s) >> py> print "%.2f usec/pass" % (100 * t.timeit(number=10)/10) >> 40.88 usec/pass >> > > What does this accomplish: > > 100 * t.timeit(number=10)/10 > > that the fol

Re: Getting started with python

2007-04-16 Thread Steve Holden
James Stroud wrote: > Steve Holden wrote: >> You'd be worth more if you'd used elif and omitted the continue >> statements, but for a first solution it's acceptable. > > Depends on what you are after. > > py> s = """ > ... for i in xrange(1,101): > ... if not i % 15: > ... continue > ...

Re: Getting started with python

2007-04-16 Thread 7stud
On Apr 15, 9:49 pm, James Stroud <[EMAIL PROTECTED]> wrote: > py> t = timeit.Timer(stmt=s) > py> print "%.2f usec/pass" % (100 * t.timeit(number=10)/10) > 40.88 usec/pass > What does this accomplish: 100 * t.timeit(number=10)/10 that the following doesn't accomplish: 10

Re: Getting started with python

2007-04-15 Thread [EMAIL PROTECTED]
The Python Papers (http://pythonpapers.org) is another resource for Python developers, especially those interested in keeping tabs on the various projects and articles out there in the community. Cheers, -T (Editor-In-Chief, The Python Papers) -- http://mail.python.org/mailman/listinfo/python-li

Re: Getting started with python

2007-04-15 Thread [EMAIL PROTECTED]
On Apr 15, 8:05 pm, [EMAIL PROTECTED] wrote: > On Apr 15, 9:53 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > > > > > > > On Apr 14, 7:46 pm, "Eric" <[EMAIL PROTECTED]> wrote: > > > > Hello, after reading some of the book Programming Python it seems that > > > python is something I would like

Re: Getting started with python

2007-04-15 Thread James Stroud
Steve Holden wrote: > You'd be worth more if you'd used elif and omitted the continue > statements, but for a first solution it's acceptable. Depends on what you are after. py> s = """ ... for i in xrange(1,101): ... if not i % 15: ... continue ... if not i % 5: ... continue ... if

Re: Getting started with python

2007-04-15 Thread Paul Rubin
James Stroud <[EMAIL PROTECTED]> writes: > 1. This doesn't act according to the specification if you add, for > example, (2, 'Zonk'). Now 30 gives 'ZonkFizzBuzz' and not 'FizzBuzz' > according to the specification. Correct, the original specification only had 3 and 5. I gave a longer example to i

Re: Getting started with python

2007-04-15 Thread James Stroud
Paul Rubin wrote: > Steve Holden <[EMAIL PROTECTED]> writes: >> You'd be worth more if you'd used elif and omitted the continue >> statements, but for a first solution it's acceptable. >> >> For better readability I'd have used >> if i % 5 == 0 > > I think I'd be more concerned about getting

Re: Getting started with python

2007-04-15 Thread Paul Rubin
Steve Holden <[EMAIL PROTECTED]> writes: > You'd be worth more if you'd used elif and omitted the continue > statements, but for a first solution it's acceptable. > > For better readability I'd have used > if i % 5 == 0 I think I'd be more concerned about getting rid of the i%15 test. What i

Re: Getting started with python

2007-04-15 Thread chengzhiannahuang
On Apr 15, 9:53 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > On Apr 14, 7:46 pm, "Eric" <[EMAIL PROTECTED]> wrote: > > > Hello, after reading some of the book Programming Python it seems that > > python is something I would like to delve deeper into. The only thing > > is, I have no idea wh

Re: Getting started with python

2007-04-15 Thread Steve Holden
James Stroud wrote: > Gabriel Genellina wrote: >> En Sun, 15 Apr 2007 10:46:54 -0300, Army1987 <[EMAIL PROTECTED]> escribió: >> >>> "Paddy" <[EMAIL PROTECTED]> ha scritto nel messaggio >>> news:[EMAIL PROTECTED] >>> On a different tack, from: http://tickletux.wordpress.com/2007/01/24/usin

Re: Getting started with python

2007-04-15 Thread James Stroud
Gabriel Genellina wrote: > En Sun, 15 Apr 2007 10:46:54 -0300, Army1987 <[EMAIL PROTECTED]> escribió: > >> "Paddy" <[EMAIL PROTECTED]> ha scritto nel messaggio >> news:[EMAIL PROTECTED] >> >>> On a different tack, from: >>> http://tickletux.wordpress.com/2007/01/24/using-fizzbuzz-to-find-developer

Re: Getting started with python

2007-04-15 Thread Gabriel Genellina
En Sun, 15 Apr 2007 10:46:54 -0300, Army1987 <[EMAIL PROTECTED]> escribió: > "Paddy" <[EMAIL PROTECTED]> ha scritto nel messaggio > news:[EMAIL PROTECTED] > >> On a different tack, from: >> http://tickletux.wordpress.com/2007/01/24/using-fizzbuzz-to-find-developers-who-grok-coding/ >> It seems you

Re: Getting started with python

2007-04-15 Thread Dorai
On Apr 15, 3:35 am, James Stroud <[EMAIL PROTECTED]> wrote: > Eric wrote: > > Hello, after reading some of the book Programming Python it seems that > > python is something I would like to delve deeper into. The only thing > > is, I have no idea what I should try and write. So I was hoping that > >

Re: Getting started with python

2007-04-15 Thread [EMAIL PROTECTED]
On Apr 14, 7:46 pm, "Eric" <[EMAIL PROTECTED]> wrote: > Hello, after reading some of the book Programming Python it seems that > python is something I would like to delve deeper into. The only thing > is, I have no idea what I should try and write. So I was hoping that > someone here could help poi

Re: Getting started with python

2007-04-15 Thread [EMAIL PROTECTED]
On Apr 14, 7:46 pm, "Eric" <[EMAIL PROTECTED]> wrote: > Hello, after reading some of the book Programming Python it seems that > python is something I would like to delve deeper into. The only thing > is, I have no idea what I should try and write. So I was hoping that > someone here could help poi

Re: Getting started with python

2007-04-15 Thread Army1987
"Paddy" <[EMAIL PROTECTED]> ha scritto nel messaggio news:[EMAIL PROTECTED] > On a different tack, from: > http://tickletux.wordpress.com/2007/01/24/using-fizzbuzz-to-find-developers-who-grok-coding/ > It seems you need to learn how to write a Fizz-Buzz > program to get a job now-a-days :-) Some

Re: Getting started with python

2007-04-15 Thread James Stroud
Eric wrote: > Hello, after reading some of the book Programming Python it seems that > python is something I would like to delve deeper into. The only thing > is, I have no idea what I should try and write. So I was hoping that > someone here could help point me to a group/project that would be a >

Re: Getting started with python

2007-04-14 Thread Paddy
On Apr 15, 1:46 am, "Eric" <[EMAIL PROTECTED]> wrote: > Hello, after reading some of the book Programming Python it seems that > python is something I would like to delve deeper into. The only thing > is, I have no idea what I should try and write. So I was hoping that > someone here could help poi

Re: Getting started with python

2007-04-14 Thread [EMAIL PROTECTED]
I'd like to second this request or at least find out if there are any type of Python mentorship programs I could join. -- http://mail.python.org/mailman/listinfo/python-list