Re: Using pysqlite2

2006-06-06 Thread xera121
Many thanks Gerhard - the solution you offer is workable in the scope of my project. Gracias muchacho Xera121 -- http://mail.python.org/mailman/listinfo/python-list

Any good module for chart creation ?

2006-06-06 Thread struggleyb struggleyb
Hi ,    I am just doing a trivial job , which generate a bar chart from a collection of data , for example :   I have a file like below ,  Tom:23   John:12   Marry:56   Jack:34   ...    What I want to do is  to read the data from the file and display it as a bar chart or some other chart   and

Re: assign operator as variable ?

2006-06-06 Thread Fredrik Lundh
[EMAIL PROTECTED] wrote: > in python is there any way to do this > > op = "<" > a = 10 > b = 20 > if a op b : >print "a is less than b" > > ?? the "operator" module contains functions corresponding to all builtin operators: import operator ops = { "==": operator.eq,

Re: 10GB XML Blows out Memory, Suggestions?

2006-06-06 Thread Fredrik Lundh
fuzzylollipop wrote: >> Is it possible to read an XML document in compressed format? > > compressing the footprint on disk won't matter, you still have 10GB of > data that you need to process and it can only be processed uncompressed. didn't you just claim that this was an I/O bound problem ?

Re: assign operator as variable ?

2006-06-06 Thread -- bj0rn
[EMAIL PROTECTED] wrote: > hi > in python is there any way to do this > > op = "<" > a = 10 > b = 20 > if a op b : >print "a is less than b" [EMAIL PROTECTED] wrote: > hi > in python is there any way to do this > > op = "<" > a = 10 > b = 20 > if a op b : >print "a is less than b" Will

Re: 10GB XML Blows out Memory, Suggestions?

2006-06-06 Thread Fredrik Lundh
fuzzylollipop wrote: > you got no idea what you are talking about, anyone knows that something > like this is IO bound. which of course explains why some XML parsers for Python are a 100 times faster than other XML parsers for Python... -- http://mail.python.org/mailman/listinfo/python-list

Re: A more elegant way to do this list comprehension?

2006-06-06 Thread Gary Herron
Levi Self wrote: > This probably seems very trivial, maybe even a bit silly, but I was > wondering if someone has a better list comprehension that does the > same thing as this one: > > >>> print [[[i]*i for i in range(1,9)][j][k] for j in range(8) for k > in range(j+1)] > [1, 2, 2, 3, 3, 3, 4, 4,

assign operator as variable ?

2006-06-06 Thread s99999999s2003
hi in python is there any way to do this op = "<" a = 10 b = 20 if a op b : print "a is less than b" ?? thanks -- http://mail.python.org/mailman/listinfo/python-list

Re: Reading from a file and converting it into a list of lines

2006-06-06 Thread Girish Sahani
> On 6/06/2006 4:15 PM, Girish Sahani wrote: >> Really sorry for that indentation thing :) >> I tried out the code you have given, and also the one sreeram had >> written. >> In all of these,i get the same error of this type: >> Error i get in Sreeram's code is: >> n1,_,n2,_ = line.split(',') >> Va

IPython 0.7.2 is out.

2006-06-06 Thread Fernando Perez
Hi all, The IPython team is happy to release version 0.7.2, with a lot of new enhancements, as well as many bug fixes. We hope you all enjoy it, and please report any problems as usual. WHAT is IPython? 1. An interactive shell superior to Python's default. IPython has many fea

python-dev Summary for 2006-04-01 through 2006-04-15

2006-06-06 Thread Steven Bethard
python-dev Summary for 2006-04-01 through 2006-04-15 .. contents:: [The HTML version of this Summary is available at http://www.python.org/dev/summary/2006-04-01_2006-04-15] = Announcements = - Py

python-dev Summary for 2006-03-16 through 2006-03-31

2006-06-06 Thread Steven Bethard
python-dev Summary for 2006-03-16 through 2006-03-31 .. contents:: [The HTML version of this Summary is available at http://www.python.org/dev/summary/2006-03-16_2006-03-31] = Announcements = --- Pyth

Re: what are you using python language for?

2006-06-06 Thread Alex Martelli
hacker1017 <[EMAIL PROTECTED]> wrote: > im just asking out of curiosity. At work, since about 16 months ago, mostly for maintaining and enhancing many programs that control, monitor, and ensure the smooth working of, many large clusters of servers (plus, all the persnickety extra little things th

A more elegant way to do this list comprehension?

2006-06-06 Thread Levi Self
This probably seems very trivial, maybe even a bit silly, but I was wondering if someone has a better list comprehension that does the same thing as this one:>>> print [[[i]*i for i in range(1,9)][j][k] for j in range(8) for k in range(j+1)] [1, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6,

Re: 10GB XML Blows out Memory, Suggestions?

2006-06-06 Thread fuzzylollipop
[EMAIL PROTECTED] wrote: > Paul, > > This is interesting. Unfortunately, I have no control over the XML > output. The file is from Goldmine. However, you have given me an > idea... > > Is it possible to read an XML document in compressed format? compressing the footprint on disk won't matter, you

Re: 10GB XML Blows out Memory, Suggestions?

2006-06-06 Thread fuzzylollipop
K.S.Sreeram wrote: > Diez B. Roggisch wrote: > > What the OP needs is a different approach to XML-documents that won't > > parse the whole file into one giant tree - but I'm pretty sure that > > (c)ElementTree will do the job as well as expat. And I don't recall the > > OP musing about performance

pysqlite error: Database locked?

2006-06-06 Thread Tommy B
I'm currently working on a casino script for an IRC bot. I was going to make a flat file database, but I decided to make it sqlite after some suggestions. I'm using pysqlite. http://pastebin.com/764315 < Source. The lines that have @@ (pastebin doesn't like me) in front of them are important. ERR

Re: Function Verification

2006-06-06 Thread Ws
Ah, damn. That would've been soo much simpler. =S Thanks for the advice man. -Wes Ben Cartwright wrote: > Ws wrote: > > I'm trying to write up a module that *safely* sets sys.stderr and > > sys.stdout, and am currently having troubles with the function > > verification. I need to assure that the

Re: Function Verification

2006-06-06 Thread Ben Cartwright
Ws wrote: > I'm trying to write up a module that *safely* sets sys.stderr and > sys.stdout, and am currently having troubles with the function > verification. I need to assure that the function can indeed be called > as the Python manual specifies that sys.stdout and sys.stderr should be > defined

Dr. Dobb's Python-URL! - weekly Python news and links (Jun 7)

2006-06-06 Thread Cameron Laird
QOTW: "You can gain substantial speed-ups in very certain cases, but the main point of Pyrex is ease of wrapping, not of speeding-up." - Simon Percivall "The rule of thumb for all your Python Vs C questions is ... 1.) Choose Python by default. . . ." - Ravi Teja Do you remember Python's ea

Re: what are you using python language for?

2006-06-06 Thread gregarican
Currently I am using Python for a CRM client application that runs on Win32, ARM Linux, and WinCE platforms. It pushes and pulls contact data using XMLRPC calls so that it doesn't lock the client into having to use CDO for communicating with the Exchange Server and ADO for communicating with the SQ

Function Verification

2006-06-06 Thread Ws
Hi all I'm trying to write up a module that *safely* sets sys.stderr and sys.stdout, and am currently having troubles with the function verification. I need to assure that the function can indeed be called as the Python manual specifies that sys.stdout and sys.stderr should be defined (standard fi

Re: fsolve() from scipy crashes python on windows

2006-06-06 Thread Robert Kern
Vedran Furač wrote: > When I call optimize.fsolve(...) python interpreter crashes immediately, > no error messages, nothing, just brings me back to c:\ > On linux the same code works fine. I tried it on different computers. I > seems that it doesn't crash on pentium4, only on athlon and pentium2. >

Re: tempfile Question

2006-06-06 Thread John Machin
On 7/06/2006 7:50 AM, Gregory Piñero wrote: > Hey group, > > I have a command line tool that I want to be able to call from a > Python script. The problem is that this tool only writes to a file. > Another Fantastic Manual gives another idea: """ Pdftotext reads the PDF file, PDF-file,

fsolve() from scipy crashes python on windows

2006-06-06 Thread Vedran Furač
When I call optimize.fsolve(...) python interpreter crashes immediately, no error messages, nothing, just brings me back to c:\ On linux the same code works fine. I tried it on different computers. I seems that it doesn't crash on pentium4, only on athlon and pentium2. python 2.4.3 (activestate),

Re: tempfile Question

2006-06-06 Thread John Machin
On 7/06/2006 7:50 AM, Gregory Piñero wrote: > Hey group, > > I have a command line tool that I want to be able to call from a > Python script. The problem is that this tool only writes to a file. > > So my solution is to give the tool a temporary file to write to and > then have Python read that

Re: what are you using python language for?

2006-06-06 Thread mauriceling
I am using Python to assemble a biomedical literature analysis pipeline as part of my PhD thesis. (http://ib-dwb.sf.net/Muscorian.html) -- http://mail.python.org/mailman/listinfo/python-list

Re: tkinter: making widgets instance or not?

2006-06-06 Thread John McMonagle
On Wed, 2006-06-07 at 09:27 +1000, John McMonagle wrote: > On Tue, 2006-06-06 at 19:42 +, John Salerno wrote: > > Fredrik Lundh wrote: > > > > > however, if you need to access a widget later on, it might be a good > > > idea to save a reference to it somewhere... > > > > To follow up on that

Re: Writing to a certain line?

2006-06-06 Thread John Machin
On 7/06/2006 7:46 AM, Tommy B wrote: > > Umm... I tried using this method and it froze. Infiinite loop, I'm > guessing. > Don't guess. Instead: (1) Put some print statements into your code to show what is happening: (a) before start of loop (b) one or more salient points inside loop (c) at (e

Re: tkinter: making widgets instance or not?

2006-06-06 Thread John McMonagle
On Tue, 2006-06-06 at 19:42 +, John Salerno wrote: > Fredrik Lundh wrote: > > > however, if you need to access a widget later on, it might be a good > > idea to save a reference to it somewhere... > > To follow up on that point, I have the following code now. I have two > questions about it

Re: newbie: python application on a web page

2006-06-06 Thread André
Max wrote: > puzz wrote: > > sorry about the missunderstanding... > > > > but my question is "how" and not "where" to put it online > > and that's where the "newbie" comes from > > > > P M > > If you just want to make it available for download, that's easy. If you > want to make it open source, yo

Re: Writing to a certain line?

2006-06-06 Thread Fredrik Lundh
Tommy B wrote: >> import os >> old = open("/path/to/file.txt", "r") >> new = open("/path/to/new.txt", "w") >> for line in old: >> if line.strip() == "Bob 62" >> line = line.replace("62", "66") >> new.write(line) >> old.close() >> new.close() >> os.rename("/path/to/new.txt", "/path/to/file.

tempfile Question

2006-06-06 Thread Gregory Piñero
Hey group, I have a command line tool that I want to be able to call from a Python script. The problem is that this tool only writes to a file. So my solution is to give the tool a temporary file to write to and then have Python read that file. I figure that's the safest way to deal with this s

Re: Writing to a certain line?

2006-06-06 Thread Tommy B
bruno at modulix wrote: > Tommy B wrote: > > I was wondering if there was a way to take a txt file and, while > > keeping most of it, replace only one line. > > > This is a FAQ (while I don't know if it's in the FAQ !-), and is in no > way a Python problem. FWIW, this is also CS101... > > > You

Re: Need pixie dust for building Python 2.4 curses module on Solaris 8

2006-06-06 Thread John J. Lee
[EMAIL PROTECTED] writes: > I'm having no success building the curses module on Solaris 8 (yes, I know > it's ancient - advancing the state-of-the-art is not yet an option) for > Python 2.4. Sun provides an apparently ancient version of curses in > /usr/lib, so I downloaded and installed ncurses

subprocesses, stdin/out, ttys, and beating insubordinate processes into the ground

2006-06-06 Thread Jonathan Smith
First a bit about what I'm trying to do. I need a function which takes a patchfile and patches a source directory. Thats it. However, I need to be able to do so no matter what the patchlevel (-px) of the diff is. So, my solution is to just try to patch until it works or you try a level more tha

Re: how not to run out of memory in cursor.execute

2006-06-06 Thread John J. Lee
Jack Diederich <[EMAIL PROTECTED]> writes: [...] > MySQL will keep table locks until the results are all fetched so even though > the DB API allows fetchone() or fetchmany() using those with MySQLdb is > dangerous. [...] That's not true of InnoDB tables. John -- http://mail.python.org/mailman/l

Re: newbie: python application on a web page

2006-06-06 Thread Max
puzz wrote: > sorry about the missunderstanding... > > but my question is "how" and not "where" to put it online > and that's where the "newbie" comes from > > P M If you just want to make it available for download, that's easy. If you want to make it open source, you could upload it to planet

Re: what are you using python language for?

2006-06-06 Thread faulkner
i'm writing a text editor [yes, it has quite a few interesting unique features]. http://fauxlkner.sf.net> this summer, i hope to make it collaborative like gobby. i also have a full-time job this summer at my college writing a small database system to manage student records. hacker1017 wrote: > i

Re: how not to run out of memory in cursor.execute

2006-06-06 Thread amberite
Steve Holden wrote: > > The MySQLdb solution you give is way more complicated than it needs to > be, thereby skewing your opinion towards cx_Oracle unnecessarily. > I respectfully disagree with your assertion here. The code I presented for MySQLdb is what you *have* to do, to avoid using up too

Re: 10GB XML Blows out Memory, Suggestions?

2006-06-06 Thread John J. Lee
"K.S.Sreeram" <[EMAIL PROTECTED]> writes: [...] > There's just NO WAY that the 10gb xml file can be loaded into memory as > a tree on any normal machine, irrespective of whether we use C or > Python. Yes. > So the *only* way is to perform some kind of 'stream' processing > on the file. Perhaps us

Re: 10GB XML Blows out Memory, Suggestions?

2006-06-06 Thread gregarican
That a good sized Goldmine database. In past lives I have supported that app and recall that you could match the Goldmine front end against an SQL backend. If you can get to the underlying data utilizing SQL you can selectively port over sections of the database and might be able to attack things m

Re: newbie: python application on a web page

2006-06-06 Thread puzz
sorry about the missunderstanding... but my question is "how" and not "where" to put it online and that's where the "newbie" comes from P M puzz wrote: > Hi all, > > I am so new to everything, I don't even know where to post my > question... do bear... > > I made this Python calculator that will

Re: tkinter: making widgets instance or not?

2006-06-06 Thread John Salerno
John Salerno wrote: > 2. Related to your comment, the obvious problem here is that it doesn't > save references to the text box names, so I can't access them later. Is > there still a way to automate the process like I've done, but have each > entry field have a separate name? A thought about

Re: Newbie: returning dynamicly built lists (using win32com)

2006-06-06 Thread Ransom
> 1. First of all, this is not the code you are running. I know this because > the unbalanced parens wont even compile. It really doesn't help when you > ask for help, but post the wrong code. "Ok! Ok! I must have, I must have put a decimal point in the wrong place or something. Shit. I always d

Re: 10GB XML Blows out Memory, Suggestions?

2006-06-06 Thread [EMAIL PROTECTED]
Paul, This is interesting. Unfortunately, I have no control over the XML output. The file is from Goldmine. However, you have given me an idea... Is it possible to read an XML document in compressed format? Paul McGuire wrote: > <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > I

Re: 10GB XML Blows out Memory, Suggestions?

2006-06-06 Thread Fredrik Lundh
gregarican wrote: > 10 gigs? Wow, even using SAX I would imagine that you would be pushing > the limits of reasonable performance. depends on how you define "reasonable", of course. modern computers are quite fast: > dir data.xml 2006-06-06 21:35 1 002 000 015 data.xml 1

Re: 10GB XML Blows out Memory, Suggestions?

2006-06-06 Thread [EMAIL PROTECTED]
The file is an XML dump from Goldmine. I have built a document parser that allows for the population of data from Goldmine into SugarCRM. The clients data se is 10gb. Felipe Almeida Lessa wrote: > Em Ter, 2006-06-06 às 13:56 +, Paul McGuire escreveu: > > (just can't open it up like a text file

Re: tkinter: making widgets instance or not?

2006-06-06 Thread John Salerno
Fredrik Lundh wrote: > however, if you need to access a widget later on, it might be a good > idea to save a reference to it somewhere... To follow up on that point, I have the following code now. I have two questions about it: 1. Can I somehow make the passing of 'master' to the draw_entry me

Re: 10GB XML Blows out Memory, Suggestions?

2006-06-06 Thread gregarican
10 gigs? Wow, even using SAX I would imagine that you would be pushing the limits of reasonable performance. Any way you can depart from the XML requirement? That's not really what XML was intended for in terms of passing along information IMHO... [EMAIL PROTECTED] wrote: > I wrote a program that

Re: tkinter: making widgets instance or not?

2006-06-06 Thread Fredrik Lundh
John Salerno wrote: > I'm wondering, why is frame created as a local variable, and the buttons > as instance variables? What is the difference? Can you make frame an > instance variable, or vice versa? Tkinter maintains its own widget hierarchy, and widgets don't go away unless you explicitly

Re: 10GB XML Blows out Memory, Suggestions?

2006-06-06 Thread K.S.Sreeram
Fredrik Lundh wrote: > both ElementTree and cElementTree support "sax-style" event generation > (through XMLTreeBuilder/XMLParser) and incremental parsing (through > iterparse). the cElementTree versions of these are even faster than > pyexpat. > > the iterparse interface is described here: >

tkinter: making widgets instance or not?

2006-06-06 Thread John Salerno
This is from the Tkinter tutorial: from Tkinter import * class App: def __init__(self, master): frame = Frame(master) frame.pack() self.button = Button(frame, text="QUIT", fg="red", command=frame.quit) self.button.pack(side=LEFT) self.hi_ther

Re: Newbie: returning dynamicly built lists (using win32com) (SOLVED)

2006-06-06 Thread Ransom
Thanks folks! I had just gotten myself into a blind rut, apparently. Adding the .Value attribute to the com object does strip all the other messaging returning from Excel so I could then populate my list and return out of the function normally. I had tried that earlier, but had used the .Value att

Re: Newbie: returning dynamicly built lists (using win32com)

2006-06-06 Thread Paul McGuire
"Ransom" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Very newb here, but my question will hopefully be obvious to someone. > But when I try and put the output from the spreadsheet into > a dynamic list after the TODO section thusly: > > outputlist = [] > outputlis

Re: RSS feeds

2006-06-06 Thread Fredrik Lundh
david brochu jr wrote: > I am looking to take RSS feeds a process them with a python program..any > idea where I can get RSS feeds for sports stats, and how I would use the > script to connect automatically to the feed? for the python-related part of your question, start here: http://www.

RSS feeds

2006-06-06 Thread david brochu jr
Not sure where to post this one so here it goes...sorry to anyone if it shouldnt be here.   I am looking to take RSS feeds a process them with a python program..any idea where I can get RSS feeds for sports stats, and how I would use the script to connect automatically to the feed? -- http://mail.

Re: 10GB XML Blows out Memory, Suggestions?

2006-06-06 Thread Fredrik Lundh
K.S.Sreeram wrote: > There's just NO WAY that the 10gb xml file can be loaded into memory as > a tree on any normal machine, irrespective of whether we use C or > Python. So the *only* way is to perform some kind of 'stream' processing > on the file. Perhaps using a SAX like API. So (c)ElementTree

Re: capture video from camera

2006-06-06 Thread [EMAIL PROTECTED]
aljosa wrote: >and doesn't provide additional options like > motion detection nor any info on possibility of motion detection or > howto implement An example for motion detection and even pythonic eye toys :) http://gumuz.looze.net/wordpress/index.php/archives/2005/06/06/python-webcam-fun-motion

problem using logging module in python

2006-06-06 Thread Manish Marathe
Python Experts every where!! I am having a problem using the logging utility in Python using the logging module from the std. lib. I have written a class SPFLogger which actually should be creating a new logger if one already does not exist. I have given the class I wrote in the end. The problem I

Re: 10GB XML Blows out Memory, Suggestions?

2006-06-06 Thread K.S.Sreeram
Diez B. Roggisch wrote: > What the OP needs is a different approach to XML-documents that won't > parse the whole file into one giant tree - but I'm pretty sure that > (c)ElementTree will do the job as well as expat. And I don't recall the > OP musing about performances woes, btw. There's just NO

Re: newbie: python application on a web page

2006-06-06 Thread Daniel Nogradi
> > I made this Python calculator that will take an equation as an input > > and will display the computed curves on a shiny Tkinter interface > > well, it doesn't sound like you're quite as newbie-ish as many other > newbies ;-) > > > Now, I'd like to make this application available on a public we

Re: Newbie: returning dynamicly built lists (using win32com)

2006-06-06 Thread Fredrik Lundh
Ransom wrote: > Very newb here, but my question will hopefully be obvious to someone. > OK, so what is happening is that I am sending a list of data to an > overly complicated spreadsheet that produces it's own output (in cell > 32,6). As I loop through multiple test cases, the print statement >

Re: what are you using python language for?

2006-06-06 Thread [EMAIL PROTECTED]
hacker1017 wrote: > im just asking out of curiosity. Math research on the Collatz Conjecture. -- http://mail.python.org/mailman/listinfo/python-list

Re: what are you using python language for?

2006-06-06 Thread Chris Cioffi
I tend to do a significant amount of EDI related work:-statistical analysis-X12->HTML formattingI've do a ton of customer DB reporting.  I find it easier to use Python that Crystal reports for a lot of the stuff I do so I extract data and spit out CSV files for Excel to make it look pretty. And I'm

Re: capture video from camera

2006-06-06 Thread Sébastien Boisgérault
aljosa wrote: > i searched on google and found http://videocapture.sourceforge.net/ > before i posted here. yup. > videocapture has no docs With the API docs in the ".zip" and the examples provided, you should be able to handle it.I did :) > and doesn't provide additional options like > motion

Re: 10GB XML Blows out Memory, Suggestions?

2006-06-06 Thread Felipe Almeida Lessa
Em Ter, 2006-06-06 às 13:56 +, Paul McGuire escreveu: > (just can't open it up like a text file) Who'll open a 10 GiB file anyway? -- Felipe. -- http://mail.python.org/mailman/listinfo/python-list

Re: newbie: python application on a web page

2006-06-06 Thread Fredrik Lundh
puzz wrote: > I made this Python calculator that will take an equation as an input > and will display the computed curves on a shiny Tkinter interface well, it doesn't sound like you're quite as newbie-ish as many other newbies ;-) > Now, I'd like to make this application available on a public

newbie: python application on a web page

2006-06-06 Thread puzz
Hi all, I am so new to everything, I don't even know where to post my question... do bear... I made this Python calculator that will take an equation as an input and will display the computed curves on a shiny Tkinter interface Now, I'd like to make this application available on a public web pag

Re: what are you using python language for?

2006-06-06 Thread Timothy Grant
On 6/4/06, hacker1017 <[EMAIL PROTECTED]> wrote: > im just asking out of curiosity. My current gig is perl only, but I still use python for personal stuff 1) +Twisted for a couple of IRC Bots 2) an interface between TextMate and py.test 3) a soccer management game (wxPython + PyGame) -- Stand

Re: Newbie: returning dynamicly built lists (using win32com)

2006-06-06 Thread Steve Holden
Ransom wrote: > Very newb here, but my question will hopefully be obvious to someone. > > Code: > > import string > from win32com.client import Dispatch > docdir = 'E:\\scripts\\Python\\RSAutomation\\' > > def getOldData(testcases): > > excel = Dispatch("Excel.Application") > excel.Work

Re: Newbie: returning dynamicly built lists (using win32com)

2006-06-06 Thread Nick Smallbone
I'm afraid I don't have a Windows machine to test on, but.. Ransom wrote: > I get an error like: > [ 0x15450880>] > This isn't an error. This is a list with one element, where the element apparently represents a range of Excel cells. So by using that element you can do things like changing the fo

Newbie: returning dynamicly built lists (using win32com)

2006-06-06 Thread Ransom
Very newb here, but my question will hopefully be obvious to someone. Code: import string from win32com.client import Dispatch docdir = 'E:\\scripts\\Python\\RSAutomation\\' def getOldData(testcases): excel = Dispatch("Excel.Application") excel.Workbooks.Open(docdir + 'FILE.xls') #

Need pixie dust for building Python 2.4 curses module on Solaris 8

2006-06-06 Thread skip
I'm having no success building the curses module on Solaris 8 (yes, I know it's ancient - advancing the state-of-the-art is not yet an option) for Python 2.4. Sun provides an apparently ancient version of curses in /usr/lib, so I downloaded and installed ncurses 5.5, both using default settings a

Using Komodo 3.5 - Setting breakpoints in multiple *.py files

2006-06-06 Thread jeem
I am using ActiveState Komodo 3.5 to work on a large python 2.4 application with an extensive UI... I am attempting to debug the application and am setting breakpoints in 4 different *.py files.. Breakpoints in the main file are working OK, but any breakpoints in imported files are not... The thre

Re: what are you using python language for?

2006-06-06 Thread bruno at modulix
hacker1017 wrote: > im just asking out of curiosity. > Err... Programming ?-) Sorry... Actually, mostly web applications (CMS, groupware, small/medium business apps etc), and admin utilities. -- bruno desthuilliers python -c "print '@'.join(['.'.join([w[::-1] for w in p.split('.')]) for p in

Pydev 1.1.0 Released

2006-06-06 Thread Fabio Zadrozny
Hi All, Pydev and Pydev Extensions 1.1.0 have been released Details on Pydev Extensions: http://www.fabioz.com/pydev Details on Pydev: http://pydev.sf.net Details on its development: http://pydev.blogspot.com Release Highlights in Pydev Extensions: --

Re: what are you using python language for?

2006-06-06 Thread Grant Edwards
On 2006-06-06, Tim Chase <[EMAIL PROTECTED]> wrote: >> 4) Miscellaneous other stuff like grabbing all of the comic >> strips I like every day and putting them on a local web >> page so I can read them all in one place > > I wonder how many other folks have done this too. It was my > firs

Re: Expanding Search to Subfolders

2006-06-06 Thread Lou Losee
On 6/6/06, Fredrik Lundh <[EMAIL PROTECTED]> wrote: > Lou Losee wrote: > > > How about something like: > > > import os, stat > > > > class DirectoryWalker: > > # a forward iterator that traverses a directory tree, and > > # returns the filename > > ... > > > not tested > > speak for yourse

Re: 10GB XML Blows out Memory, Suggestions?

2006-06-06 Thread Kay Schluehr
[EMAIL PROTECTED] wrote: > I wrote a program that takes an XML file into memory using Minidom. I > found out that the XML document is 10gb. > > I clearly need SAX or something else? > > Any suggestions on what that something else is? Is it hard to convert > the code from DOM to SAX? If your XML f

Re: what are you using python language for?

2006-06-06 Thread Carl J. Van Arsdall
hacker1017 wrote: > im just asking out of curiosity. > We use python for somewhat complex build system which builds several versions of embedded Linux for multiple architectures (30+). Two particularly interested aspects of this build system involve simple cluster management utilities (utili

Re: what are you using python language for?

2006-06-06 Thread Miguel Galves
I'm using for processing genetic and biological data, anda for fun...On 6/4/06, hacker1017 <[EMAIL PROTECTED] > wrote:im just asking out of curiosity.-- http://mail.python.org/mailman/listinfo/python-list-- Miguel Galves - Engenheiro de ComputaçãoJá leu meus blogs hoje? Para geeks http://log4dev.b

Re: what are you using python language for?

2006-06-06 Thread Tim Chase
> 4) Miscellaneous other stuff like grabbing all of the comic > strips I like every day and putting them on a local web > page so I can read them all in one place I wonder how many other folks have done this too. It was my first pet Python project, converting a Java rendition of the sam

Re: what are you using python language for?

2006-06-06 Thread Kay Schluehr
hacker1017 wrote: > im just asking out of curiosity. To get an impression you might have a look at the Europython 2006 schedule: http://indico.cern.ch/conferenceTimeTable.py?confId=44 Personally I'm playing with the language itself at the moment and extend it through it: http://www.fiber-space.

Re: what are you using python language for?

2006-06-06 Thread Grant Edwards
At the moment, I'm using it for 1) Enginerring/scientific data analysis and visualization. 2) Serial communication test programs. 3) Small utilities for embedded software development (processing map and hex files). 4) Miscellaneous other stuff like grabbing all of the comic strips

Re: calling functions style question

2006-06-06 Thread Kay Schluehr
Brian wrote: > I just have a basic style question here. Suppose you have the program: > > def foo1(): > do something > > def foo2() > do something else > > Assume that you want to call these functions at execution. Is it more > proper to call them directly like: > > foo1() > foo2() > > o

Re: Vectorization

2006-06-06 Thread Robert Kern
Paul McGuire wrote: > "RonnyM" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > >>Hi! >> >>Need to vectorize this, but do not have a clue. >> >>a = n*m matrix >>x and y are n and m vectors >> >>Suggestions? >> >>def fill(a, x, y): >>for i in range(1,a.shape[0]): >>xp = x

what are you using python language for?

2006-06-06 Thread hacker1017
im just asking out of curiosity. -- http://mail.python.org/mailman/listinfo/python-list

Request for trackers to evaluate as SF replacement for Python development

2006-06-06 Thread Brett Cannon
The Python Software Foundation's Infrastructure committee has been charged with finding a new tracker system to be used by the Python development team as a replacement for SourceForge.  The development team is currently unhappy with SF for several reasons which include: * Bad interface    Most obvi

Re: calling functions style question

2006-06-06 Thread Thomas Nelson
The difference becomes clear when you import your program into another program (or the command line python editor). __name__!='__main__' when you import, so the functions will not be called if they're inside the block. This is why you see this block so often at the end of scripts; so that the scr

Re: Namespace problems

2006-06-06 Thread Kay Schluehr
Kiran wrote: > Hello All, > I am kind of a beginner to python, but here is the deal. > > I am writing a wxpython Application, in which I have a GUI. This GUI > imports some other modules that I have written, using the format > import mymodule as _MyModule > > Now, this GUI in addition to hav

calling functions style question

2006-06-06 Thread Brian
I just have a basic style question here. Suppose you have the program: def foo1(): do something def foo2() do something else Assume that you want to call these functions at execution. Is it more proper to call them directly like: foo1() foo2() or in an if __name__ == "__main__": ? B

Re: retaining newline characters when writing to file

2006-06-06 Thread John Salerno
Fredrik Lundh wrote: > John Salerno wrote: > >> If I read a string that contains a newline character(s) into a >> variable, then write that variable to a file, how can I retain those >> newline characters so that the string remains on one line rather than >> spans multiple lines? > > you canno

Vancouver Python Workshop: New Keynoter

2006-06-06 Thread Brian Quinlan
What's New? === The Vancouver Python Workshop is pleased to announce the addition of a third keynote speaker to this year's conference. Ian Cavén is the primary developer of the Lowry Digital Images motion picture restoration system. This Python and Zope-based system has been used to r

Re: retaining newline characters when writing to file

2006-06-06 Thread Fredrik Lundh
John Salerno wrote: > If I read a string that contains a newline character(s) into a variable, > then write that variable to a file, how can I retain those newline > characters so that the string remains on one line rather than spans > multiple lines? you cannot: the whole point of a newline c

retaining newline characters when writing to file

2006-06-06 Thread John Salerno
If I read a string that contains a newline character(s) into a variable, then write that variable to a file, how can I retain those newline characters so that the string remains on one line rather than spans multiple lines? Example: In a CGI script, I'm reading the address field from an HTML f

Re: capture video from camera

2006-06-06 Thread Fredrik Lundh
aljosa wrote: > i posted here to find out if anybody knows a better way to capture > video. what other requirements did you forget to mention ? -- http://mail.python.org/mailman/listinfo/python-list

Re: Namespace problems

2006-06-06 Thread Kiran
I should note that if you use the execfile command in the console, the script runs, but if you import the script, it says it cant find the module -- http://mail.python.org/mailman/listinfo/python-list

Re: 10GB XML Blows out Memory, Suggestions?

2006-06-06 Thread skip
Paul> You clearly need something instead of XML. Amen, brother... +1 QOTW. Skip -- http://mail.python.org/mailman/listinfo/python-list

Namespace problems

2006-06-06 Thread Kiran
Hello All, I am kind of a beginner to python, but here is the deal. I am writing a wxpython Application, in which I have a GUI. This GUI imports some other modules that I have written, using the format import mymodule as _MyModule Now, this GUI in addition to having all it's bells and whis

  1   2   >