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 IDLE and Python - no highlighting and no execution

2012-08-09 Thread soloflyr
On Sunday, August 5, 2012 7:46:54 PM UTC-4, PeterSo wrote: > I am just starting to learn Python, and I like to use the editor > > instead of the interactive shell. So I wrote the following little > > program in IDLE > > > > # calculating the mean > > > > data1=[49, 66, 24, 98, 37, 64, 98, 2

Re: Getting started with IDLE and Python - no highlighting and no execution

2012-08-05 Thread PeterSo
On Aug 5, 7:09 pm, Rotwang wrote: > On 06/08/2012 00:46, PeterSo wrote: > > > > > > > > > > > I am just starting to learn Python, and I like to use the editor > > instead of the interactive shell. So I wrote the following little > > program in IDLE > > > # calculating the mean > > > data1=[49, 66,

Re: Getting started with IDLE and Python - no highlighting and no execution

2012-08-05 Thread Terry Reedy
On 8/5/2012 7:46 PM, PeterSo wrote: I am just starting to learn Python, and I like to use the editor instead of the interactive shell. So I wrote the following little program in IDLE # calculating the mean data1=[49, 66, 24, 98, 37, 64, 98, 27, 56, 93, 68, 78, 22, 25, 11] def mean(data):

Re: Getting started with IDLE and Python - no highlighting and no execution

2012-08-05 Thread Rotwang
On 06/08/2012 02:01, Matthew Barnett wrote: On 06/08/2012 01:58, MRAB wrote: On 06/08/2012 01:09, Rotwang wrote: On 06/08/2012 00:46, PeterSo wrote: I am just starting to learn Python, and I like to use the editor instead of the interactive shell. So I wrote the following little program in IDL

Re: Getting started with IDLE and Python - no highlighting and no execution

2012-08-05 Thread Matthew Barnett
On 06/08/2012 01:58, MRAB wrote: On 06/08/2012 01:09, Rotwang wrote: On 06/08/2012 00:46, PeterSo wrote: I am just starting to learn Python, and I like to use the editor instead of the interactive shell. So I wrote the following little program in IDLE # calculating the mean data1=[49, 66, 24,

Re: Getting started with IDLE and Python - no highlighting and no execution

2012-08-05 Thread MRAB
On 06/08/2012 01:09, Rotwang wrote: On 06/08/2012 00:46, PeterSo wrote: I am just starting to learn Python, and I like to use the editor instead of the interactive shell. So I wrote the following little program in IDLE # calculating the mean data1=[49, 66, 24, 98, 37, 64, 98, 27, 56, 93, 68, 7

Re: Getting started with IDLE and Python - no highlighting and no execution

2012-08-05 Thread Mark Lawrence
On 06/08/2012 00:46, PeterSo wrote: I am just starting to learn Python, and I like to use the editor instead of the interactive shell. So I wrote the following little program in IDLE [snip] I can't comment on IDLE as I've never used it, but you're doing yourself a big disservice if you don't

Re: Getting started with IDLE and Python - no highlighting and no execution

2012-08-05 Thread Rotwang
On 06/08/2012 00:46, PeterSo wrote: I am just starting to learn Python, and I like to use the editor instead of the interactive shell. So I wrote the following little program in IDLE # calculating the mean data1=[49, 66, 24, 98, 37, 64, 98, 27, 56, 93, 68, 78, 22, 25, 11] def mean(data):

Re: getting started

2012-05-25 Thread Cameron Simpson
On 25May2012 09:37, Dave Angel wrote: | On 05/25/2012 09:12 AM, Harvey Greenberg wrote: | > elementary ques...I set | > s.name = ["a","b"] | > s.value = [3,5] | > | > I get error that s is not defined. How do I define s and proceed to | > give its attributes? [...] | Of course if you told why you

Re: getting started

2012-05-25 Thread Dave Angel
On 05/25/2012 09:12 AM, Harvey Greenberg wrote: > elementary ques...I set > s.name = ["a","b"] > s.value = [3,5] > > I get error that s is not defined. How do I define s and proceed to > give its attributes? You just have to initialize s as an object that's willing to take those attributes. The

Re: getting started

2012-05-25 Thread Miki Tebeka
> s.name = ["a","b"] > s.value = [3,5] > > I get error that s is not defined. How do I define s and proceed to > give its attributes? Either you create a class and use __init__: class S: def __init__(self, name, value): self.name = name self.value = value or create a generic

Re: Getting started with PyGTK [Receiving Error]

2012-04-28 Thread Vincent Vande Vyvre
Le 29/04/12 00:52, Santosh Kumar a écrit : > System Information > > Ubuntu 11.10 > Python 2.7.2 > > Problem > > > I think my Ubuntu has PyGTK and GTK both already installed. But > however when I am importing "gtk" in Python interactive mode then I am > gett

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 pyvtk

2008-05-03 Thread Peter Pearson
On Fri, 02 May 2008 17:40:02 +0200, Paul Melis wrote: > > I'm not sure you've been helped so far as you seem to already understand > about pyvtk not being the official VTK bindings :) > > So, what would you like to know? Thanks, I think I'm set. For the benefit of the next instance of me googlin

Re: Getting started with pyvtk

2008-05-02 Thread Paul Melis
Peter Pearson wrote: On Thu, 01 May 2008 16:45:51 -0500, Robert Kern <[EMAIL PROTECTED]> wrote: pyvtk is not the Python interface to VTK. It is for the creation of VTK files. The vtk(1) command is a Tcl shell with the VTK libraries loaded (I believe). Read the VTK documentation for information

Re: Getting started with pyvtk

2008-05-02 Thread Peter Pearson
On Thu, 01 May 2008 16:45:51 -0500, Robert Kern <[EMAIL PROTECTED]> wrote: > > pyvtk is not the Python interface to VTK. It is for the > creation of VTK files. The vtk(1) command is a Tcl shell > with the VTK libraries loaded (I believe). Read the VTK > documentation for information on the Tcl in

Re: Getting started with pyvtk

2008-05-01 Thread Robert Kern
Peter Pearson wrote: I'm trying to get started with pyvtk, the Python interface to the Visualization Toolkit, but there's obviously something important that I haven't figured out after an embarrassingly long morning of googling around. When I run sample pyvtk code (example1.py, from http://cens.

Re: Getting started with pyvtk

2008-05-01 Thread Paul Melis
On 1 mei, 22:54, Peter Pearson <[EMAIL PROTECTED]> wrote: > I'm trying to get started with pyvtk, the Python interface > to the Visualization Toolkit, It looks like you're using this package: http://cens.ioc.ee/projects/pyvtk/ These are not the official Python bindings to VTK, but seem to be an a

Re: Getting started with OS X Leopard

2008-03-15 Thread Mark Carter
[EMAIL PROTECTED] wrote: > if you are not satisfied with the native version, why not install the > official version directly from python site > http://www.python.org/download/ (macpython) instead of using that of > macports. It moreover is provided with many utilities > > There is a macpython list

Re: Getting started with OS X Leopard

2008-03-15 Thread martin . laloux
if you are not satisfied with the native version, why not install the official version directly from python site http://www.python.org/download/ (macpython) instead of using that of macports. It moreover is provided with many utilities There is a macpython list that you can consult at http://www.

Re: Getting started with OS X Leopard

2008-03-15 Thread Kevin Walzer
Mark Carter wrote: > Arnaud Delobelle wrote: > >> Is there a particular reason you want python from MacPorts? OSX >> Leopard comes with python 2.5, that's what I use on my mac. > > I heard from somewhere that Apple's version was a bit wonky, and that I > would be better off with a "proper" build

Re: Getting started with OS X Leopard

2008-03-15 Thread Mark Carter
Arnaud Delobelle wrote: > Is there a particular reason you want python from MacPorts? OSX > Leopard comes with python 2.5, that's what I use on my mac. I heard from somewhere that Apple's version was a bit wonky, and that I would be better off with a "proper" build. -- http://mail.python.org/ma

Re: Getting started with OS X Leopard

2008-03-15 Thread Arnaud Delobelle
On Mar 15, 7:31 pm, Mark Carter <[EMAIL PROTECTED]> wrote: > has wrote: > > On 15 Mar, 18:05, Mark Carter <[EMAIL PROTECTED]> wrote: > >> The sorts of things I want to do are: > >> * copy the directory of Finder to the clipboard > >> * add a new file to Finder's directory. > >> * find out the size

Re: Getting started with OS X Leopard

2008-03-15 Thread Mark Carter
has wrote: > On 15 Mar, 18:05, Mark Carter <[EMAIL PROTECTED]> wrote: >> The sorts of things I want to do are: >> * copy the directory of Finder to the clipboard >> * add a new file to Finder's directory. >> * find out the size of a directory >> * open a file with Aquamacs, regardless of file type,

Re: Getting started with OS X Leopard

2008-03-15 Thread has
On 15 Mar, 18:05, Mark Carter <[EMAIL PROTECTED]> wrote: > The sorts of things I want to do are: > * copy the directory of Finder to the clipboard > * add a new file to Finder's directory. > * find out the size of a directory > * open a file with Aquamacs, regardless of file type, If you want to c

Re: Getting started with JPype

2007-08-13 Thread Ian Clark
Disclaimer: I have never used (or even heard of) JPype before... porter wrote: (snip) > > "Package myclass.HelloWorld is not Callable" > (snip) > > from jpype import * > > startJVM(getDefaultJVMPath(), "-ea", "-Djava.class.path=D:/tmp/jpype- > reli/test/dist/test.jar'' ) > > package = JPackag

Re: Getting started with JPype

2007-08-13 Thread porter
Gah - I hate it when that happens: Just after posting I figured out my silly mistake: my package is called myclasses and I was referencing 'myclass' apologies for wasting your time > Hi, > > For nefarious javaesque reasons I've been trying to get started with > jpype (http://jpype.sourceforge.

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

Re: Getting started with Crystal Reports...little help in the far court.

2007-01-25 Thread Carl Trachte
Marc, I've been able to get some Business Objects COM functionality in Business Objects 6.5 (the logging in functionality I have to do through a call to an Excel VBA macro; otherwise things appear to work for what I'm doing). Unfortunately, I don't have experience with Python in Business

Re: Getting started with Crystal Reports...little help in the far court.

2007-01-08 Thread Brian
Mudcat wrote: > I am not that familiar with Crystal Reports, but having read some other > posts I know that the way to integrate the API with Python is through > the COM interface provide by win32all. > Any pointers in the right direction would be helpful. Like Armury, I worked on Crystal stu

Re: Getting started with Crystal Reports...little help in the far court.

2007-01-08 Thread Amaury Forgeot d'Arc
Good evening, Mudcat a écrit : > I am not that familiar with Crystal Reports, but having read some other > posts I know that the way to integrate the API with Python is through > the COM interface provide by win32all. > > However, I have been unable to find any other information on how to get > s

Re: Getting started with the Python source

2006-12-06 Thread Fredrik Lundh
renguy wrote: > Thank you for your response. I guess I was looking for a more specific > answer. I have the source and I have been looking around at the various > code. I think my question is, what is the name of the toplevel source > code file of C code for the Python interpreter, and what is the

Re: Getting started with the Python source

2006-12-06 Thread [EMAIL PROTECTED]
Right, I am pretty sure that the "toplevel" source of idle is in dir-to-pylibs/idlelib/idle.py (or maybe .pyw) that is were all the glue code is for idle, as for the python source, I haven't messed around with it too much so I couldn' tell you, well just have to wait for somone else to post that in

Re: Getting started with the Python source

2006-12-06 Thread renguy
Thank you for your response. I guess I was looking for a more specific answer. I have the source and I have been looking around at the various code. I think my question is, what is the name of the toplevel source code file of C code for the Python interpreter, and what is the name of the toplevel s

Re: Getting started with the Python source

2006-12-06 Thread [EMAIL PROTECTED]
Actually IDLE was written purley in python, you can find the sources to it in... UNIX: /usr/lib/python/idlelib Windows: C:\Python\Lib\idlelib If you are looking to modifly mostly just the IDE I would start there, however if you are more interesting in modifying python Itself just look around in t

Re: Getting started with Scipy/NumPy

2006-03-15 Thread Robert Kern
[EMAIL PROTECTED] wrote: > I installed SciPy and NumPy (0.9.5, because 0.9.6 does not work with > the current version of SciPy), and had some teething troubles. I looked > around for help and observed that the tutorial is dated October 2004, > and is not as thorough as Python's documentation. Is th

Re: getting started, .py file

2006-02-21 Thread Steven D'Aprano
Ingrid wrote: > Thanks everyone. That's exactly what I was looking for, but I still > can't seem to make it work. I've got the interpreter starting in > "C:\Program Files\Python2.4", and my code is in "C:\Documents and > Settings\Ingrid\My Documents". So, I did: > import os > os.chdir("C:\\Doc

Re: getting started, .py file

2006-02-20 Thread Ingrid
I found it! I needed to set sys.path ("sys.path.append("c:\\documents and settings\\my documents\\ingrid")") Ingrid -- http://mail.python.org/mailman/listinfo/python-list

Re: getting started, .py file

2006-02-20 Thread Ingrid
Thanks everyone. That's exactly what I was looking for, but I still can't seem to make it work. I've got the interpreter starting in "C:\Program Files\Python2.4", and my code is in "C:\Documents and Settings\Ingrid\My Documents". So, I did: import os os.chdir("C:\\Documents and Settings\\Ingrid

Re: getting started, .py file

2006-02-20 Thread Peter Hansen
[EMAIL PROTECTED] wrote: > I am just getting started with Python, and I think I may be thinking > about it wrong. I'd like to be able to work interactively with some > code that I've got in a file. The only interpreted language I have much > experience with is Tcl/Tk, and in that I would use "sourc

Re: getting started, .py file

2006-02-20 Thread Sam Pointon
python -i source_file.py will do what you want. -Sam -- http://mail.python.org/mailman/listinfo/python-list

Re: getting started, .py file

2006-02-20 Thread Steve Holden
[EMAIL PROTECTED] wrote: > I am just getting started with Python, and I think I may be thinking > about it wrong. I'd like to be able to work interactively with some > code that I've got in a file. The only interpreted language I have much > experience with is Tcl/Tk, and in that I would use "sourc