Re: Newbie needs help

2009-07-08 Thread Aahz
In article mailman.2781.1246979580.8015.python-l...@python.org, Pablo Torres N. tn.pa...@gmail.com wrote: Give this one a try too: http://www.mikeash.com/getting_answers.html It doesn't talk down to you...as much :P Nice! I'll try remembering that one. -- Aahz (a...@pythoncraft.com)

Re: Newbie needs help

2009-07-07 Thread Simon Forman
On Mon, Jul 6, 2009 at 7:00 PM, nacim_br...@agilent.com wrote: Dear Python gurus, If I'd like to set dielectric constant for the certain material, is it possible to do such in Python environment? If yes, how to do or what syntax can be used? Also, I'd like to get a simulation result, like

RE: Newbie needs help

2009-07-07 Thread nacim_bravo
] Sent: Tuesday, July 07, 2009 7:19 AM To: BRAVO,NACIM (A-Sonoma,ex1) Cc: python-list@python.org Subject: Re: Newbie needs help On Mon, Jul 6, 2009 at 7:00 PM, nacim_br...@agilent.com wrote: Dear Python gurus, If I'd like to set dielectric constant for the certain material, is it possible

Re: Newbie needs help

2009-07-07 Thread Pablo Torres N.
On Tue, Jul 7, 2009 at 10:02, nacim_br...@agilent.com wrote: Hello Gurus, Thank you for trying to help to my initial and not well written questions.  I will compile more detailed information and ask again.  Btw, I am giving a glimpse to: How To Ask Questions The Smart Way. nacim Give

Re: Newbie needs help

2009-07-06 Thread Rhodri James
On Tue, 07 Jul 2009 00:00:39 +0100, nacim_br...@agilent.com wrote: Dear Python gurus, If I'd like to set dielectric constant for the certain material, is it possible to do such in Python environment? If yes, how to do or what syntax can be used? Also, I'd like to get a simulation result,

Re: Newbie needs help

2009-07-06 Thread Steven D'Aprano
On Mon, 06 Jul 2009 17:00:39 -0600, nacim_bravo wrote: Dear Python gurus, If I'd like to set dielectric constant for the certain material, is it possible to do such in Python environment? If yes, how to do or what syntax can be used? certain_material.dielectric_constant = 1.234 Also,

Re: Newbie needs help

2009-07-06 Thread Gary Herron
nacim_br...@agilent.com wrote: Dear Python gurus, If I'd like to set dielectric constant for the certain material, is it possible to do such in Python environment? If yes, how to do or what syntax can be used? Also, I'd like to get a simulation result, like voltage, is it possible to get this

Re: Newbie needs help

2008-08-27 Thread Marco Bizzarri
On Tue, Aug 26, 2008 at 8:33 PM, frankrentef [EMAIL PROTECTED] wrote: Would the second file need something akin to... loginout.admin (ie,url,adminlogin) Yes. Since you're importing the whole module. -- Marco Bizzarri http://iliveinpisa.blogspot.com/ --

Re: Newbie needs help

2008-08-27 Thread frankrentef
Help, I'm missing / still not grasping something My loginout file contains the following... from cPAMIE import PAMIE #Imports - used to setup / control finding files import time import os import sys url = 'http://test2/' adminlogin = 'Gorillia' adminpassword = 'Gorillia1$' #Admin Login

Re: Newbie needs help

2008-08-26 Thread Eric Wertman
Is the loginout file named loginout.py ? It needs to be for the import to work. If the import works, you have to refer to those variables within the right namespace, ie : loginout.url, loginout.adminlogin, etc. On Tue, Aug 26, 2008 at 12:46 PM, frankrentef [EMAIL PROTECTED] wrote:

Re: Newbie needs help

2008-08-26 Thread frankrentef
On Aug 26, 11:46 am, frankrentef [EMAIL PROTECTED] wrote: Greetings all, I'm wanting to maintain what values in one file and call them in another.  The purpose being to keep a single location where url's, login's and passwords can be maintained, then called as needed from another file. In

Re: Newbie needs help with... his blood pressure ;-)

2008-08-21 Thread Luis Speciale
Oups. Bad beginning. Sorry for the double post. Thunderbird has mental problems Luis -- http://mail.python.org/mailman/listinfo/python-list

Re: Newbie needs help with... his blood pressure ;-)

2008-08-21 Thread Paul Boddie
On 21 Aug, 14:57, Luis Speciale [EMAIL PROTECTED] wrote: /usr/sbin/apxs -I/Users/speciale/Desktop/dossier sans titre 3/src/include [...] I imagine that if this is really the command run by the Makefile, apxs might get upset by the unquoted path which contains spaces. Either the Makefile needs

Re: Newbie - needs help

2007-04-04 Thread Goldfish
Nothing beats http://diveintopython.org/toc/index.html for getting into the basics of Python. This guy's writing is great! -- http://mail.python.org/mailman/listinfo/python-list

Re: Newbie - needs help

2007-04-04 Thread brzrkr0
On Apr 3, 4:28 pm, 7stud [EMAIL PROTECTED] wrote: Learning Python can be purchased at amazon.com. Or, not as good: Beginning Python: From Novice to Professional. If you get the second one, you'll need Python in a Nutshell: A Desktop Quick Reference to fill in all the gaps. If you already

Re: Newbie - needs help

2007-04-04 Thread Larry Bates
Anbeyon wrote: Hi I have not yet programmed in Python but am experienced in a number o other languages. I'd like to start to use Python to develop cross platform applications but havin kust started to investigate tols, libraries etc I feel a little overwhelmed. I'm hoping someone

Re: Newbie - needs help

2007-04-03 Thread kyosohma
On Apr 3, 3:42 pm, Anbeyon [EMAIL PROTECTED] wrote: Hi I have not yet programmed in Python but am experienced in a number o other languages. I'd like to start to use Python to develop cross platform applications but havin kust started to investigate tols, libraries etc I feel a little

Re: Newbie - needs help

2007-04-03 Thread 7stud
On Apr 3, 2:42 pm, Anbeyon [EMAIL PROTECTED] wrote: Hi I have not yet programmed in Python but am experienced in a number o other languages. I'd like to start to use Python to develop cross platform applications but havin kust started to investigate tols, libraries etc I feel a little

Re: newbie needs help building Python 2.5 for Fedora Core 6

2007-02-24 Thread Tony Nelson
In article [EMAIL PROTECTED], bobmon [EMAIL PROTECTED] wrote: Hello, and please be gentle... I'm trying to build Python 2.5 on my Fedora Core 6 installation. I think I've resolved most of my problems, but make test reports an error for test_socket.py, shown below. I suppose my FC6

Re: newbie needs help building Python 2.5 for Fedora Core 6

2007-02-24 Thread bobmon
WOW. I'm gobsmacked... On Feb 24, 6:13 pm, Tony Nelson [EMAIL PROTECTED] wrote: Try it from the python command line. This is what happens when I try it Okay, that was interesting... Apparently there's a subtlety of /etc/hosts that affects this! Originally it had this line: 127.0.0.1

Re: Newbie needs Help

2006-08-16 Thread John Machin
len wrote: Hi all I am writing a python program that inserts records into a database on XP using mxODBC. I need to write a section of code which will create the following SQL command as an example; INSERT INTO statecode (state, name) VALUES ('IL', 'Illinois') This statement will be

Re: Newbie needs Help

2006-08-16 Thread johnzenger
Also, it may be easier to use string interpolation, as in: return INSERT INTO statecode (state, name) VALUES ('%(state)s', '%(name)s') % insert_dict ...after all necessary escaping, of course. John Machin wrote: len wrote: Hi all I am writing a python program that inserts records into a

Re: Newbie needs Help

2006-08-16 Thread John Machin
[EMAIL PROTECTED] wrote: Also, it may be easier to use string interpolation, as in: return INSERT INTO statecode (state, name) VALUES ('%(state)s', '%(name)s') % insert_dict ...after all necessary escaping, of course. Excuse me!? statecode needs to come from the first argument. Likewise

Re: Newbie needs Help

2006-08-16 Thread Steve Holden
len wrote: Hi all I am writing a python program that inserts records into a database on XP using mxODBC. I need to write a section of code which will create the following SQL command as an example; INSERT INTO statecode (state, name) VALUES ('IL', 'Illinois') This statement will be

Re: Newbie needs Help

2006-08-16 Thread Steve Holden
Steve Holden wrote: [...] def insertFromDict(table, d): vector Please ignore the Cygwin mousedroppings ... regards Steve -- Steve Holden +44 150 684 7255 +1 800 494 3119 Holden Web LLC/Ltd http://www.holdenweb.com

Re: Newbie needs Help

2006-08-16 Thread John Machin
Dennis Lee Bieber wrote: c.execute(insert into %s (%s) values (%s) % (statecode, , .join(data.keys() ), , .join([%s] * len(data.keys() ) ) ), data.values() ) # NOTE: only works if

Re: Newbie..Needs Help

2006-07-30 Thread Anthra Norell
explains a host of basic techniques. Glad to help Frederic - Original Message - From: Graham Feeley [EMAIL PROTECTED] Newsgroups: comp.lang.python To: python-list@python.org Sent: Sunday, July 30, 2006 5:55 AM Subject: Re: Newbie..Needs Help Well Well Well, Anthra you are a clever person

Re: Newbie..Needs Help

2006-07-29 Thread Anthra Norell
- Original Message - From: Graham Feeley [EMAIL PROTECTED] Newsgroups: comp.lang.python To: python-list@python.org Sent: Friday, July 28, 2006 5:11 PM Subject: Re: Newbie..Needs Help Thanks Nick for the reply Of course my first post was a general posting to see if someone would

Re: Newbie..Needs Help

2006-07-29 Thread Graham Feeley
[EMAIL PROTECTED] Newsgroups: comp.lang.python To: python-list@python.org Sent: Friday, July 28, 2006 5:11 PM Subject: Re: Newbie..Needs Help Thanks Nick for the reply Of course my first post was a general posting to see if someone would be able to help here is the website which holds

Re: Newbie..Needs Help

2006-07-28 Thread Nick Vatamaniuc
Your description is too general. The way to 'collect the results' depends largely in what format the results are. If they are in an html table you will have to parse the html data if they are in a simple plaintext you might use a different method, and if the site renders the numbers to images and

Re: Newbie..Needs Help

2006-07-28 Thread Graham Feeley
Thanks Nick for the reply Of course my first post was a general posting to see if someone would be able to help here is the website which holds the data I require http://www.aapracingandsports.com.au/racing/raceresultsonly.asp?storydate=27/07/2006meetings=bdgo The fields required are as follows

Re: Newbie..Needs Help

2006-07-28 Thread Nick Vatamaniuc
Graham, I won't write the program for you since I have my own program to work on but here is an idea how to do it. 1) Need to have a function to download the page -- use the urllib module. Like this: import urllib page=urllib.urlopen(URL_GOES_HERE).read() 2) Go to the page with your browser and

Re: Newbie..Needs Help

2006-07-28 Thread Nick Vatamaniuc
What do you mean? The html table is right there (at least in Firefox it is...). I'll paste it in too. Just need to isolate with some simple regexes and extract the text... Nick V. --- table border=0 width=100% cellpadding=0 cellspacing=0 tr

Re: Newbie needs help extracting data from XML

2005-12-29 Thread Alan Kennedy
[Rodney] Im a Python newbie and am trying to get the data out of a series of XML files. As Paul McGuire already noted, it's unusual to extract information from a SOAP message this way: it is more usual to use a SOAP toolkit to do the job for you. But, assuming that you know what you're

Re: Newbie needs help extracting data from XML

2005-12-29 Thread Fredrik Lundh
Alan Kennedy wrote There are other ways to do it, e.g. using ElementTree, but I'll leave it to others to suggest the best way to do that. using ElementTree with SOAP is discussed here: http://effbot.org/zone/elementsoap-1.htm /F -- http://mail.python.org/mailman/listinfo/python-list

Re: Newbie needs help extracting data from XML

2005-12-29 Thread Rodney
Thanks for the help This was a SOAP Webservice message. I used httplib instead of SOAPpy or ZSI because SOAPpy cann't do arrays of complex type and ZSI was confusing. Thanks again Rodney [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, Im a Python newbie and am trying to

Re: Newbie needs help extracting data from XML

2005-12-28 Thread Paul McGuire
Rodney [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, Im a Python newbie and am trying to get the data out of a series of XML files. So for example the xml is: ?xml version=1.0 encoding=utf-8?soap:Envelope xmlns:soap=http://schemas.xmlsoap.org/soap/envelope/;

Re: Newbie needs help with regex strings

2005-12-14 Thread Paul McGuire
This isn't a regex solution, but uses pyparsing instead. Pyparsing helps you construct recursive-descent parsers, and maintains a code structure that is easy to compose, read, understand, maintain, and remember what you did 6-months after you wrote it in the first place. Download pyparsing at

Re: Newbie needs help with regex strings

2005-12-14 Thread Fredrik Lundh
Scott wrote: I have a file with lines in the following format. pie=apple,quantity=1,cooked=yes,ingredients='sugar and cinnamon' Pie=peach,quantity=2,ingredients='peaches,powdered sugar' Pie=cherry,quantity=3,cooked=no,price=5,ingredients='cherries and sugar' I would like to pull out some

Re: Newbie needs help with regex strings

2005-12-14 Thread Christopher Subich
Paul McGuire wrote: This isn't a regex solution, but uses pyparsing instead. Pyparsing helps you construct recursive-descent parsers, and maintains a code structure that is easy to compose, read, understand, maintain, and remember what you did 6-months after you wrote it in the first place.

Re: Newbie needs help with regex strings

2005-12-14 Thread Dennis Benzinger
Catalina Scott A Contr AFCA/EVEO schrieb: I have a file with lines in the following format. pie=apple,quantity=1,cooked=yes,ingredients='sugar and cinnamon' Pie=peach,quantity=2,ingredients='peaches,powdered sugar' Pie=cherry,quantity=3,cooked=no,price=5,ingredients='cherries and sugar' I

Re: Newbie needs help with regex strings

2005-12-14 Thread Dennis Benzinger
Christopher Subich schrieb: Paul McGuire wrote: [...] For the example listed, pyparsing is even overkill; the OP should probably use the csv module. But the OP wants to parse lines with key=value pairs, not simply lines with comma separated values. Using the csv module will just separate

Re: Newbie needs help with regex strings

2005-12-14 Thread Gerard Flanagan
Fredrik Lundh wrote: Scott wrote: I have a file with lines in the following format. pie=apple,quantity=1,cooked=yes,ingredients='sugar and cinnamon' Pie=peach,quantity=2,ingredients='peaches,powdered sugar' Pie=cherry,quantity=3,cooked=no,price=5,ingredients='cherries and sugar' I

Re: Newbie needs help with regex strings

2005-12-14 Thread Michael Spencer
Dennis Benzinger wrote: Christopher Subich schrieb: Paul McGuire wrote: [...] For the example listed, pyparsing is even overkill; the OP should probably use the csv module. But the OP wants to parse lines with key=value pairs, not simply lines with comma separated values. Using the csv

Re: Newbie needs help with regex strings

2005-12-14 Thread Michael Spencer
Catalina Scott A Contr AFCA/EVEO wrote: I have a file with lines in the following format. pie=apple,quantity=1,cooked=yes,ingredients='sugar and cinnamon' Pie=peach,quantity=2,ingredients='peaches,powdered sugar' Pie=cherry,quantity=3,cooked=no,price=5,ingredients='cherries and sugar' I

Re: Newbie needs help. Setting PYTHONDOCS to read HTML.

2005-10-11 Thread Brett Hoerner
That's because the Python docs come zipped up within a folder, for example: python_docs.tar.bz2 has a folder inside it called Python-Docs-2.4.2. You need to have C:\Python24\Python-Docs-2.4.2\ as the value if thats where that folder is, or wherever you unzipped it. I, personally, just took all

Re: Newbie needs help. Setting PYTHONDOCS to read HTML.

2005-10-11 Thread moondusterone
Yes it did. And it worked! Thank you! moondusterone Brett Hoerner [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] That's because the Python docs come zipped up within a folder, for example: python_docs.tar.bz2 has a folder inside it called Python-Docs-2.4.2. You

Re: Newbie needs help. Setting PYTHONDOCS to read HTML.

2005-10-10 Thread Ivan Shevanski
You can still use it, but you can't use the help. I don't know but this has always been better than the help for me! =D-- -Ivan -- http://mail.python.org/mailman/listinfo/python-list

Re: Newbie needs help. Setting PYTHONDOCS to read HTML.

2005-10-10 Thread Brett Hoerner
You can use Python regardless of the docs... of course. Not sure what you mean there. As far as setting an Environment Variable, though: (1) Right-Click My Computer, go to Properties (2) Go to the Advanced tab (3) Click Environment Variables (bottom middle-ish) (4) Under User Variables click

Re: Newbie needs help. Setting PYTHONDOCS to read HTML.

2005-10-10 Thread moondusterone
Brett, I did that and now when I enter keywords I get a list of words. And it says that I can enter any of the words to get more help. I enter class and I get could not read docs from C:/Python24/ref/if.html. Brett Hoerner [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] You can

Re: Newbie needs help with canvas.create_image !

2005-02-12 Thread Fredrik Lundh
Antti Isomursu wrote: With code below I get a red box with given width and height. When I use that create_image, nothing happens. I only see that same red box. Why is that? The loop.bmp is working fine when I use show() method. win = Toplevel() canvas = Canvas(win,

Re: Newbie needs help with canvas.create_image !

2005-02-12 Thread Arthur
On Sat, 12 Feb 2005 18:24:11 +0100, Fredrik Lundh [EMAIL PROTECTED] wrote: Antti Isomursu wrote: With code below I get a red box with given width and height. When I use that create_image, nothing happens. I only see that same red box. Why is that? The loop.bmp is working fine when I use