On Sat, Dec 20, 2014 at 9:34 AM, John Culleton
wrote:
>
> This week I wrote my first Python program, a script callable from
Scribus, a DTP program. It ran! Now I want to spread my wings a little. How
do I call a C language executable subprogram from Python and pass
information back and forth?
Whe
On Sat, Dec 20, 2014 at 11:34 AM, John Culleton wrote:
> This week I wrote my first Python program, a script callable from Scribus, a
> DTP program. It ran! Now I want to spread my wings a little. How do I call a
> C language executable subprogram from Python and pass information back and
> for
This week I wrote my first Python program, a script callable from Scribus, a
DTP program. It ran! Now I want to spread my wings a little. How do I call a C
language executable subprogram from Python and pass information back and forth?
I am of the old school, meaning that object oriented progra
I'm using Python 2.4 and 2.7 for different apps. I'm happy with a
solution for either one.
I've got to talk to a url that uses a session cookie. I only need to
set this when I'm developing/debugging so I don't need a robust
production solution and I'm somewhat confused by the docs on cookielib.
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
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 value in Python environment?
P
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
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 file #1 I have...
import time
import os
import sys
url = 'http:
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
Hi
I'm trying to build mod_pyton on Leopard 10.5.4 on a Mac G5 with this
cvs version
http://svn.apache.org/repos/asf/quetzalcoatl/mod_python/trunk
with this Python
python
Python 2.5.2 (r252:60911, Feb 22 2008, 07:57:53)
[GCC 4.0.1 (Apple Computer, Inc. build 5363)] on darwin
So i did
./confi
Hi u all :
I'm trying to build mod_python in Leopard 10.5.4 with a cvs version from
http://svn.apache.org/repos/asf/quetzalcoatl/mod_python/trunk
I have
$ python
Python 2.5.2 (r252:60911, Feb 22 2008, 07:57:53)
[GCC 4.0.1 (Apple Computer, Inc. build 5363)] on darwin
Then when I try
./configu
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
>
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 might be able to point me in
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
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 installation is missing something, but I have no idea
what. Any ideas, di
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
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 built up using the foll
)
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
Hi this is a plea for some help.
I am enjoying a script that was written for me and its purpose is to collect
data from a web site and puts it into a access database table.
It works fine, however it is a sports info table but now I need to collect
the results of those races.
I simply can't keep
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
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:
http://schemas.xmlsoap.org/soap/envelope/";
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/";
xmlns:tns="http://www.ExchangeNetwork.net/schema/v1.0/node.wsdl";
xmlns:types="
Ron Hudson wrote:
> I am trying to create something like a MUD, It will eventually evolve
> to a multi player
> MUD over the network game, but for now it's just a platform for
> authoring and playing
> text adventures that works like a single user MUD.
You might Google "python text adventure g
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'
>
Ron Hudson schrieb:
> [...]
> I have a .py file with some def scripts(?) in it.
def is the begining of a function definition.
> [...]
> I am using "Import" to read it after I start an interactive python.
> What I need
> right now is I seem to have some sort of scoping problems with the
> wor
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
First let me apologize if this post offends, I am a real newbie to
Python having only used it for about
2 days. If this is the wrong place to post newbie questions, please
be polite.
I have the O'Reily Learning Python book and I am reading it.
Here's what I am working on..
I am trying to cre
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
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 of the values and wri
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
I have installed Python 2.4.2 from Python.org. I type "help()" and I get
basic help. In help, I type "keywords" and I get an error saying, "Sorry,
topic and keyword documentation is not available because the Python HTML
documentation files could not be found. If you have installed them, please
d'oh I'm an idiot... you are making a 'list' object.
--
http://mail.python.org/mailman/listinfo/python-list
it looks like your problem is in this line:
reviews = [Review(*[field.strip() for field in row]) for row in reader]
ouch! split that up a bit so we can understand what the heck you are
trying to do here. Also, it appears the whole thing is in these [ ] ?
why?
--
http://mail.python.org/mailman/li
googleboy wrote:
> I've written a little script to parse a csv file then use seach/replace
> over a template to create a file for each line in the file. It pikes
> out when I call the function that parses the csv (read_revs). If I
> have inadvertantly left an extra comma or two in the comma field
Mostly I posted to try to find out more about the arguments being
passed to __init__, and why they'd be 13 one second and 1 the next.
I also was hoping to get a little more background on what is happening
under the hood of the csv function I've plagiarised. I haev read the
online python doco on
That's great, but it seems like a lot of work just to read in
everything. Take a look at the sample that I did with the
interpreter...
First, X is a simulated input line...
---
x = "
param1,param2,param3,param4,param5,param6,param7,param8,param9,comments
blah , blah, test"
---
Ok, so just like you
I've written a little script to parse a csv file then use seach/replace
over a template to create a file for each line in the file. It pikes
out when I call the function that parses the csv (read_revs). If I
have inadvertantly left an extra comma or two in the comma field, it
gives an error that
-Original Message-
From: Sells, Fred
Sent: Tuesday, August 16, 2005 5:09 PM
To: python-list@python.org
Subject: python oldie, SWIG newbie needs help
I've been trying all day to get a simple SWIG generated interface to a
simple (but ugly) piece of c++ code provided to us by the
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
Ok, this is my problem:
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, width=100, h
78 matches
Mail list logo