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
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
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:
>
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
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
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
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
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
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
> 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
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
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
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
"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
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
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
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
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
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
[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
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
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
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.
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
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
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
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
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
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
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),
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,
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.
>
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
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
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
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
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
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
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
[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
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,
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
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
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
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
> 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
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
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,
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
[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
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 ?
[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,
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
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
101 - 154 of 154 matches
Mail list logo