Re: Old newbie needs help.

2014-12-23 Thread Ian Kelly
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

Re: Old newbie needs help.

2014-12-20 Thread Larry Martell
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

Old newbie needs help.

2014-12-20 Thread John Culleton
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

newbie needs help with cookielib

2011-05-04 Thread Sells, Fred
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.

Re: Newbie needs help

2009-07-08 Thread Aahz
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

Re: Newbie needs help

2009-07-07 Thread Pablo Torres N.
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

RE: Newbie needs help

2009-07-07 Thread nacim_bravo
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

Re: Newbie needs help

2009-07-07 Thread Simon Forman
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

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

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 > Als

Re: Newbie needs help

2009-07-06 Thread Rhodri James
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

Newbie needs help

2009-07-06 Thread nacim_bravo
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

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 Logi

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/ -- http://mail.python.org/mailman

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

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

Newbie needs help

2008-08-26 Thread frankrentef
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:

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 nee

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

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

2008-08-21 Thread Luis Speciale
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

Newbie needs help with his blood pressure...

2008-08-21 Thread Luis Speciale
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

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 so

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 y

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

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 >

Newbie - needs help

2007-04-03 Thread Anbeyon
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

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 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 suppo

newbie needs help building Python 2.5 for Fedora Core 6

2007-02-24 Thread bobmon
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

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

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.co

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 statemen

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.

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

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 wi

Newbie needs Help

2006-08-16 Thread len
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

Re: Newbie..Needs Help

2006-07-30 Thread Anthra Norell
) 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

Re: Newbie..Needs Help

2006-07-29 Thread Graham Feeley
- > 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

Re: Newbie..Needs Help

2006-07-29 Thread Anthra Norell
- 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

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. --- #

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 v

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/2006&meetings=bdgo The fields required are as follows

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 a

Newbie..Needs Help

2006-07-28 Thread Graham Feeley
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

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

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 -- http://mail.python.org/mailman/listinfo/python-list

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 doi

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: > > xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"; > xmlns:soapenc="http://schemas.xmlsoap.org/soap/e

Newbie needs help extracting data from XML

2005-12-28 Thread Rodney
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="

Re: Python newbie needs help

2005-12-15 Thread Kent Johnson
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

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' >

Re: Python newbie needs help

2005-12-14 Thread Dennis Benzinger
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

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. U

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 s

Python newbie needs help

2005-12-14 Thread Ron Hudson
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

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 separa

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'

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

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 htt

Newbie needs help with regex strings

2005-12-14 Thread Catalina Scott A Contr AFCA/EVEO
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

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.

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 t

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] >

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" clic

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

Newbie needs help. Setting PYTHONDOCS to read HTML.

2005-10-10 Thread moondusterone
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

Re: Confused newbie needs help with "__init__() takes exactly 11 arguments (1 given)"

2005-08-19 Thread [EMAIL PROTECTED]
d'oh I'm an idiot... you are making a 'list' object. -- http://mail.python.org/mailman/listinfo/python-list

Re: Confused newbie needs help with "__init__() takes exactly 11 arguments (1 given)"

2005-08-19 Thread [EMAIL PROTECTED]
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

Re: Confused newbie needs help with "__init__() takes exactly 11 arguments (1 given)"

2005-08-18 Thread John Machin
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

Confused newbie needs help with "__init__() takes exactly 11 arguments (1 given)"

2005-08-18 Thread googleboy
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

Re: Confused newbie needs help with "__init__() takes exactly 11 arguments (1 given)"

2005-08-18 Thread [EMAIL PROTECTED]
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

Confused newbie needs help with "__init__() takes exactly 11 arguments (1 given)"

2005-08-18 Thread googleboy
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

FW: python oldie, SWIG newbie needs help

2005-08-16 Thread Sells, Fred
-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

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 wh

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, wi

Newbie needs help with canvas.create_image !

2005-02-12 Thread Antti Isomursu
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