In article ,
Pablo Torres N. 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) <*> http://www.pythoncraft.com/
"as long as we like the sa
On Tue, Jul 7, 2009 at 10:02, 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 this one a try too
lto:sajmik...@gmail.com]
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, wrote:
> Dear Python gurus,
>
> If I'd like to set dielectric constant for the certain material, is it
> po
On Mon, Jul 6, 2009 at 7:00 PM, 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 p
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
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
> Als
On Tue, 07 Jul 2009 00:00:39 +0100, 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 pos
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 Logi
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/
--
http://mail.python.org/mailman
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
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:
> Gree
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 nee
Oups. Bad beginning. Sorry for the double post. Thunderbird has mental
problems
Luis
--
http://mail.python.org/mailman/listinfo/python-list
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 so
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 y
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
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
>
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
>
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
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 suppo
Dennis Lee Bieber wrote:
> c.execute("insert into %s (%s) values (%s)"
> % ("statecode",
> ", ".join(data.keys() ),
> ", ".join(["%s"] * len(data.keys() ) ) ),
> data.values() )
> # NOTE: on
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.co
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 statemen
[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.
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
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 wi
)
TotalUSD 1'234,55 (-6,7%)
It also helps to read SE-DOC.HTM which explains a host of basic techniques.
Glad to help
Frederic
- Original Message -
From: "Graham Feeley" <[EMAIL PROTECTED]>
Newsgroups: comp.lang.python
To:
Sent: Sunday, July 30, 2006 5:55 A
-
> From: "Graham Feeley" <[EMAIL PROTECTED]>
> Newsgroups: comp.lang.python
> To:
> 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
- Original Message -
From: "Graham Feeley" <[EMAIL PROTECTED]>
Newsgroups: comp.lang.python
To:
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 w
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.
---
#
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 v
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/2006&meetings=bdgo
The fields required are as follows
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 a
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
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
--
http://mail.python.org/mailman/listinfo/python-list
[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 doi
"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:
>
> xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/";
> xmlns:soapenc="http://schemas.xmlsoap.org/soap/e
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'
>
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. U
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 s
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 separa
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'
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
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
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 htt
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.
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 t
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 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" clic
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
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 wh
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, wi
52 matches
Mail list logo