Re: Fwd: Problems Installing and getting started.

2023-05-31 Thread Thomas Passin
On 5/31/2023 3:52 PM, Dennis Lee Bieber wrote: Python does not provide, normally, a "click me" icon to run Python. Python is a command line language INTERPRETER/COMPILER. If file associations are set up, clicking on a script (.py) file/will/ run it -- but the window it opens goes away as soon as

Re: Fwd: Problems Installing and getting started.

2023-05-31 Thread Dennis Lee Bieber
On Wed, 31 May 2023 08:34:48 +0100, Mark Bass declaimed the following: >-- Forwarded message - >From: Mark Bass >Date: Wed, 31 May 2023 at 08:09 >Subject: Problems Installing and getting started. >To: > > >Good morning, > >I installed python seve

Re: Fwd: Problems Installing and getting started.

2023-05-31 Thread MRAB
On 2023-05-31 08:34, Mark Bass wrote: -- Forwarded message - From: Mark Bass Date: Wed, 31 May 2023 at 08:09 Subject: Problems Installing and getting started. To: Good morning, I installed python several hours ago (from python.org), I then installed the IDE PyCharm. I&#

Re: Problems Installing and getting started.

2023-05-31 Thread Richard Damon
you have loaded into the project. > On May 31, 2023, at 11:55 AM, Mark Bass wrote: > > -- Forwarded message - > From: Mark Bass > Date: Wed, 31 May 2023 at 08:09 > Subject: Problems Installing and getting started. > To: > > > Good morning, &

Fwd: Problems Installing and getting started.

2023-05-31 Thread Mark Bass
-- Forwarded message - From: Mark Bass Date: Wed, 31 May 2023 at 08:09 Subject: Problems Installing and getting started. To: Good morning, I installed python several hours ago (from python.org), I then installed the IDE PyCharm. I'm using AI to help with a project

Re: jython getting started question

2021-06-11 Thread Steve Pruitt via Python-list
f of Steve Pruitt via Python-list Sent: Friday, June 11, 2021 9:24 AM To: python-list@python.org Subject: [EXTERNAL] - jython getting started question CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you recognize the sender and know t

jython getting started question

2021-06-11 Thread Steve Pruitt via Python-list
Not sure if this is the right list for jython questions. I am getting started with both python and jython. My use case need is invoking python from java. org.python:jython:2.7.2 loaded ok. To check, I executed the following. ScriptEngineManager manager = new ScriptEngineManager(); List

Difficulty getting started with Pipeclient.py

2020-09-10 Thread Steve
I downloaded the software and have been given a few test commands to use. When I run it as it is, I get the request to enter the commands manually and they work. I do not see how to get the commands to work automatically. Somehow, I have to bypass the "Enter command or 'Q' to quit" How do I do thi

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

Getting started with python

2017-10-30 Thread subhendu . panda93
Hi, Could you please help me with the below if possible: 1. Best site to go ahead for python. 2. How python is different from other languages and future scope of it. 3. Tasks that are getting done using python in present. 4. Link where I can be able to get python videos, ebooks from basics to exp

Getting started with type-checking

2016-08-03 Thread Steven D'Aprano
Is there a good guide to getting started with type-checking Python code? Specifically as an aid to porting from Python 2 to 3. There are the PEPs, of course. Anything else? Apart from mypy, what type checkers are available? -- Steve “Cheer up,” they said, “things could be worse.” So I

Getting started Image processing python

2015-11-16 Thread Vindhyachal Takniki
1. I want to learn basic image processing in python. (working on raspberry pi 2 board) 2. I have a image with different color dots like red,white, etc.After taking image, need to identify how many are red,white etc. I am looking for free image processing libs for that. Which one is better for

Re: Some Help getting started

2015-10-13 Thread jogaserbia
Forgot to mention. you might want to take a look at numpy and pandas for their structures. https://github.com/numpy/numpy https://github.com/pydata/pandas I always find it easier to look at something concrete. Ivan -- https://mail.python.org/mailman/listinfo/python-list

Re: Some Help getting started

2015-10-13 Thread jogaserbia
Hi Glenn, Welcome to the community and thank you for creating this module. It's great you want to get this going in Python (3?). A couple of things: 1) I looked at the github repo. You do not have anything to be deployed there. Actually, that repo has nothing to do with python as of yet, as

Re: Some Help getting started

2015-10-13 Thread Laura Creighton
In a message of Mon, 12 Oct 2015 16:58:40 -0600, Ian Kelly writes: >Just saying that it doesn't work doesn't help us help you. What >precisely have you tried, and what was the error that you got when you >tried it? What Ian said. Also what python version are you using and what OS? Laura -- htt

Re: Some Help getting started

2015-10-12 Thread Ian Kelly
On Mon, Oct 12, 2015 at 4:42 PM, Glenn Schultz wrote: > Hello All, > > I have an application written in R for the analysis of mortgage-backed and > asset-backed securities. I am in the process of writing it in Python. I > need some help getting started.Here is the repos

Some Help getting started

2015-10-12 Thread Glenn Schultz
Hello All, I have an application written in R for the analysis of mortgage-backed and asset-backed securities. I am in the process of writing it in Python. I need some help getting started.Here is the repository https://github.com/glennmschultz/Bond_Lab I think I have the deployment

Re: Why doesn't input code return 'plants' as in 'Getting Started with Beautiful Soup' text (on page 30) ?

2015-07-12 Thread Mark Lawrence
On 12/07/2015 21:29, Laura Creighton wrote: In a message of Sun, 12 Jul 2015 21:09:22 +0100, Mark Lawrence writes: On 12/07/2015 20:47, Laura Creighton wrote: Simon Evans -- what editor are you using to write your Python code with? Laura Creighton Editor? His earlier posts clearly show he'

Re: Why doesn't input code return 'plants' as in 'Getting Started with Beautiful Soup' text (on page 30) ?

2015-07-12 Thread Laura Creighton
In a message of Sun, 12 Jul 2015 21:09:22 +0100, Mark Lawrence writes: >On 12/07/2015 20:47, Laura Creighton wrote: >> Simon Evans -- what editor are you using to write your Python code with? >> >> Laura Creighton >> > >Editor? His earlier posts clearly show he's using the 2.7.6 32 bit >interacti

Re: Why doesn't input code return 'plants' as in 'Getting Started with Beautiful Soup' text (on page 30) ?

2015-07-12 Thread Larry Hudson via Python-list
On 07/12/2015 05:48 AM, Simon Evans wrote: Dear Peter Otten, Yes, I have been copying and pasting, as it saves typing. I do get 'indented block' error responses as a small price > to pay for the time and energy thus saved. > You CANNOT ignore indenting. Indenting is NOT optional, it is REQUIRED

Re: Why doesn't input code return 'plants' as in 'Getting Started with Beautiful Soup' text (on page 30) ?

2015-07-12 Thread Mark Lawrence
On 12/07/2015 20:47, Laura Creighton wrote: Simon Evans -- what editor are you using to write your Python code with? Laura Creighton Editor? His earlier posts clearly show he's using the 2.7.6 32 bit interactive interpreter on Windows. -- My fellow Pythonistas, ask not what our language c

Re: Why doesn't input code return 'plants' as in 'Getting Started with Beautiful Soup' text (on page 30) ?

2015-07-12 Thread Laura Creighton
Simon Evans -- what editor are you using to write your Python code with? Laura Creighton -- https://mail.python.org/mailman/listinfo/python-list

Re: Why doesn't input code return 'plants' as in 'Getting Started with Beautiful Soup' text (on page 30) ?

2015-07-12 Thread Albert Visser
On Sun, 12 Jul 2015 19:33:17 +0200, Simon Evans wrote: Dear Peter Otten, I typed in (and did not copy and paste) the code as you suggested just now (6.28 pm, Sunday 12th July 2015), this is the result I got: Pyth

Re: Why doesn't input code return 'plants' as in 'Getting Started with Beautiful Soup' text (on page 30) ?

2015-07-12 Thread Mark Lawrence
On 12/07/2015 18:33, Simon Evans wrote: Dear Peter Otten, I typed in (and did not copy and paste) the code as you suggested just now (6.28 pm, Sunday 12th July 2015), this is the result I got: Python 2.7.6 (default, No

Re: Why doesn't input code return 'plants' as in 'Getting Started with Beautiful Soup' text (on page 30) ?

2015-07-12 Thread MRAB
On 2015-07-12 18:33, Simon Evans wrote: Dear Peter Otten, I typed in (and did not copy and paste) the code as you suggested just now (6.28 pm, Sunday 12th July 2015), this is the result I got: Python 2.7.6 (default, No

Re: Why doesn't input code return 'plants' as in 'Getting Started with Beautiful Soup' text (on page 30) ?

2015-07-12 Thread Chris Angelico
On Mon, Jul 13, 2015 at 3:54 AM, Laurent Pointal wrote: > Double \ in your string: > "C:\\Beautiful Soup\\ecologicalpyramid.html" > > Or use a raw string by prepending a r to disable escape sequences: > r"C:\Beautiful Soup\ecologicalpyramid.html" Or use forward slashes: "C:/Be

Re: Why doesn't input code return 'plants' as in 'Getting Started with Beautiful Soup' text (on page 30) ?

2015-07-12 Thread Laurent Pointal
Simon Evans wrote: > - with open("C:\Beautiful Soup\ecologicalpyramid.html","r") as You seem to run Python under Windows. You have to take care of escape mechanism beyond \ char in string literals (see Python docs). By

Re: Why doesn't input code return 'plants' as in 'Getting Started with Beautiful Soup' text (on page 30) ?

2015-07-12 Thread Simon Evans
Dear Peter Otten, I typed in (and did not copy and paste) the code as you suggested just now (6.28 pm, Sunday 12th July 2015), this is the result I got: Python 2.7.6 (default, Nov 10 2013, 19:24:18) [MSC v.1500 32 bit

Re: Why doesn't input code return 'plants' as in 'Getting Started with Beautiful Soup' text (on page 30) ?

2015-07-12 Thread Peter Otten
Simon Evans wrote: > Dear Peter Otten, > Yes, I have been copying and pasting, as it saves typing. I do get > 'indented block' error responses as a small price to pay for the time and > energy thus saved. Also Console seems to reject for 'indented block' > reasons better known to itself, copy and

Re: Why doesn't input code return 'plants' as in 'Getting Started with Beautiful Soup' text (on page 30) ?

2015-07-12 Thread Simon Evans
Dear Peter Otten, Yes, I have been copying and pasting, as it saves typing. I do get 'indented block' error responses as a small price to pay for the time and energy thus saved. Also Console seems to reject for 'indented block' reasons better known to itself, copy and pasted lines that it accep

Re: Why doesn't input code return 'plants' as in 'Getting Started with Beautiful Soup' text (on page 30) ?

2015-07-12 Thread Simon Evans
Dear Peter Otten, Incidentally, you have discovered a fault in that there is an erroneous difference in my code of 'ecologicalpyramid.html' and that given in the text, in the first few lines re: plants 1000

Re: Why doesn't input code return 'plants' as in 'Getting Started with Beautiful Soup' text (on page 30) ?

2015-07-12 Thread Peter Otten
Simon Evans wrote: > Dear Peter Otten, thank you for your reply that I have not gone very far > into the detail of which, as it seems Python console cannot recognise the > name 'f' as given it, re output below : > > > Python 2.7.6 (default, Nov 10 2013, 19:24:18) [MSC v.1500 32 bit (Intel)] > on

Re: Why doesn't input code return 'plants' as in 'Getting Started with Beautiful Soup' text (on page 30) ?

2015-07-12 Thread Simon Evans
Dear Peter Otten, thank you for your reply that I have not gone very far into the detail of which, as it seems Python console cannot recognise the name 'f' as given it, re output below : Python 2.7.6 (default, Nov 10 2013, 19:24:18) [MSC v.1500 32 bit (Intel)] on win 32 Type "help", "copyright"

Re: Why doesn't input code return 'plants' as in 'Getting Started with Beautiful Soup' text (on page 30) ?

2015-07-12 Thread Peter Otten
Simon Evans wrote: > Dear Mark Lawrence, thank you for your advice. > I take it that I use the input you suggest for the line : > > soup = BeautifulSoup("C:\Beautiful Soup\ecological_pyramid.html",lxml") > > seeing as I have to give the file's full address I therefore have to > modify your : >

Re: Why doesn't input code return 'plants' as in 'Getting Started with Beautiful Soup' text (on page 30) ?

2015-07-12 Thread Simon Evans
icalpyramid' html file, or more specifically why does it respond that the html file has no such attribute as 'li' ? Incidentally I have installed all the xml, lxml, html, and html5 TreeBuilders/ Parsers. I am using lxml as that is the format specified in the text. I may as well qu

Re: Why doesn't input code return 'plants' as in 'Getting Started with Beautiful Soup' text (on page 30) ?

2015-07-11 Thread Mark Lawrence
On 11/07/2015 23:17, Simon Evans wrote: Dear Programmers, Thank you for your advice regarding giving the console a current address in the code for it to access the html file. The console seems to accept the code to that extent, but when I input the two lines of code intended to access the loca

Why doesn't input code return 'plants' as in 'Getting Started with Beautiful Soup' text (on page 30) ?

2015-07-11 Thread Simon Evans
Dear Programmers, Thank you for your advice regarding giving the console a current address in the code for it to access the html file. The console seems to accept the code to that extent, but when I input the two lines of code intended to access the location of a required word, the console re

Re: Text Code(from 'Getting Started in Beautiful Soup' re: cd Soup , returns 'Syntax Error, invalid syntax'

2014-12-14 Thread Chris Angelico
On Mon, Dec 15, 2014 at 1:48 AM, Simon Evans wrote: > Thanks Guys > This book keeps swapping from the Python console to the Windows - without > telling you, but it is the only book out there on 'Beautiful Soup' so I have > got to put up with it. There's more problems with it, but I will start a

Re: Text Code(from 'Getting Started in Beautiful Soup' re: cd Soup , returns 'Syntax Error, invalid syntax'

2014-12-14 Thread Simon Evans
Thanks Guys This book keeps swapping from the Python console to the Windows - without telling you, but it is the only book out there on 'Beautiful Soup' so I have got to put up with it. There's more problems with it, but I will start a new thread in regard of, I don't know if its related to the

Re: Text Code(from 'Getting Started in Beautiful Soup' re: cd Soup , returns 'Syntax Error, invalid syntax'

2014-12-11 Thread Dave Angel
On 12/11/2014 02:40 PM, Chris Angelico wrote: On Fri, Dec 12, 2014 at 6:34 AM, Dave Angel wrote: Please give your environment when starting a new thread. Python version and OS version. In this case, I'm guessing Windows, because I have to guess something to give a meaningful answer. On 12/11

Re: Text Code(from 'Getting Started in Beautiful Soup' re: cd Soup , returns 'Syntax Error, invalid syntax'

2014-12-11 Thread Chris Angelico
On Fri, Dec 12, 2014 at 6:34 AM, Dave Angel wrote: > Please give your environment when starting a new thread. Python version and > OS version. In this case, I'm guessing Windows, because I have to guess > something to give a meaningful answer. > > On 12/11/2014 02:21 PM, Simon Evans wrote: >> Py

Re: Text Code(from 'Getting Started in Beautiful Soup' re: cd Soup , returns 'Syntax Error, invalid syntax'

2014-12-11 Thread Dave Angel
Please give your environment when starting a new thread. Python version and OS version. In this case, I'm guessing Windows, because I have to guess something to give a meaningful answer. On 12/11/2014 02:21 PM, Simon Evans wrote: At the start of Chapter 3 of 'Getting Started in

Re: Text Code(from 'Getting Started in Beautiful Soup' re: cd Soup , returns 'Syntax Error, invalid syntax'

2014-12-11 Thread sohcahtoa82
On Thursday, December 11, 2014 11:21:52 AM UTC-8, Simon Evans wrote: > At the start of Chapter 3 of 'Getting Started in Beautiful Soup' it has said > to create a html file, 'ecological > > pyramid.html'

Text Code(from 'Getting Started in Beautiful Soup' re: cd Soup , returns 'Syntax Error, invalid syntax'

2014-12-11 Thread Simon Evans
At the start of Chapter 3 of 'Getting Started in Beautiful Soup' it has said to create a html file, 'ecological pyramid.html' - which I have already done re: plants 10 algae 10

Getting started with Python: The ultimate list with Tips, Tools and Resources

2013-03-13 Thread Manish
Getting started with Python: The ultimate list with Tips, Tools and Resources http://lurnq.com/lesson/Getting-started-with-Python-Tips-Tools-and-Resources/ Here is a lesson which includes a great set of resources including Books, MOOCs, Video Tutorials, Interactive tutorials, exercises which can

Getting started with Python: The ultimate guide with Tips, Tools and Resources

2013-03-06 Thread Manish
Getting started with Python: Tips, Tools and Resources http://lurnq.com/lesson/getting-started-with-python-tips-tools-and-resources/ This is a lesson I published on LurnQ which acts like a beginners guide. I have included various Books, MOOCs, Video Tutorials, Interactive tutorials, exercises

Re: Google spreadsheets - getting started

2012-11-03 Thread Mark Carter
OK, the story so far: import gdata import gdata.auth import gdata.gauth import gdata.docs.service import OpenSSL.crypto tokenfile = "privatekey.p12" #f = open(tokenfile, 'r') #blob = f.read() #f.close() #if blob: p12 = OpenSSL.crypto.load_pkcs12(file(tokenfile, 'rb').read(), 'notasecret') print

Re: Google spreadsheets - getting started

2012-11-03 Thread Mark Carter
OK, maybe the p12 file is useful after all (?) I've got the following code: import gdata tokenfile = "my-privatekey.p12" f = open(tokenfile, 'r') blob = f.read() f.close() token = gdata.gauth.token_from_blob(blob) When I run that I get: Traceback (most recent call last): File "/home/mcarter/wa

Google spreadsheets - getting started

2012-11-03 Thread Mark Carter
I want to mess around with my online Google spreadsheets from my Linux box programmatically. I am TOTALLY confused. I've got gdata installed, and it appears that the best way to access the spreadsheets is to authenticate with Oauth2. Here's the main thing: how do I get an Oauth2 key to use with

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):

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

2012-08-05 Thread PeterSo
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): return sum(data)/len(data) mean(da

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

Getting started with PyGTK [Receiving Error]

2012-04-28 Thread Santosh Kumar
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 getting the following warning: (.:4126): Gtk-WARNING **: Unable to

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

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

2010-07-11 Thread dk
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. I want to learn python and think i need a better

Data Structures - Getting started..

2008-06-03 Thread rh0dium
Hi all, I have a primitive data structure which looks like this. cells = [{'name': 'AND2X1', 'pins': [{'direction': 'input', 'name': 'A', 'type': 'signal'}, {'direction': 'input', 'name': 'B', 'type': 'signal'}, {'direction': 'output', '

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

Getting started with pyvtk

2008-05-01 Thread Peter Pearson
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.ioc.ee/cgi-bin/viewcvs.

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

Getting started with OS X Leopard

2008-03-15 Thread Mark Carter
One thing I really liked about Ubuntu was that Nautilus allowed you to add scripts to a directory which could be accessed via the RMB. It was a very simple thing to do. I've recently switched to Leopard, and I'm trying to do the same thing. I'm fairly experienced with Python, but new to OS X. I

Re: ANN: O'Reilly e-book, "Getting Started with Pyparsing"

2007-11-01 Thread Paul McGuire
On Nov 1, 1:25 am, Paul McGuire <[EMAIL PROTECTED]> wrote: > Several chapter excerpts are available online, including this > chapter on the Zen of Pyparsing:http://preview.tinyurl.com/yp4v48 > Here is a better link: http://my.safaribooksonline.com/9780596514235/what_makes_pyparsing_so_special --

ANN: O'Reilly e-book, "Getting Started with Pyparsing"

2007-10-31 Thread Paul McGuire
I'm happy to report the release of the O'Reilly ShortCut, "Getting Started With Pyparsing." This 65-page e-book goes into detail on Pyparsing's design rationale, basic features, and a succession of applications. "Getting Started With Pyparsing" covers a range o

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.

Getting started with JPype

2007-08-13 Thread porter
Hi, For nefarious javaesque reasons I've been trying to get started with jpype (http://jpype.sourceforge.net). This looks like a potentially useful tool for integrating java classes into C-python, but frustratingly I've run into immediate problems. The documentation on the project really doesn't d

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

  1   2   >