On Mar 22, 7:32 pm, per perfr...@gmail.com wrote:
hi all,
i have a very large dictionary object that is built from a text file
that is about 800 MB -- it contains several million keys. ideally i
would like to pickle this object so that i wouldnt have to parse this
large file to compute the
On Mar 19, 8:51 am, digz digvijo...@gmail.com wrote:
Hi,
I am trying to convert a | delimited file to fixed width by right
padding with spaces, Here is how I have written the program , just get
the feeling this can be done in a much better ( python functional )
way rather than the procedural
On Mar 19, 9:50 am, Ryan Rosario uclamath...@gmail.com wrote:
I have a parser that needs to process 7 million files. After running
for 2 days, it had only processed 1.5 million. I want this script to
parse several files at once by using multiple threads: one for each
file currently being
On Mar 13, 12:52 am, koranthala koranth...@gmail.com wrote:
Hi,
Is it possible to convert a string to a function parameter?
Ex:
str = 'True, type=rect, sizes=[3, 4]'
and I should be able to use it as:
test(convert(str)) and the behaviour should be same as calling test
with those values
have other things added in your class. You
could also write these things to a simple text file, for example with
the csv module.
--
Piet van Oostrum p...@cs.uu.nl
URL:http://pietvanoostrum.com[PGP8DAE142BE17999C4]
Private email: p...@vanoostrum.org
Hi, odeits, Piet van Oostrum, thanks
On Mar 12, 5:03 am, SamuelXiao foolsmart2...@gmail.com wrote:
I want to input data by using pickle
First of all, I have a database.txt
The content is like:
AAA,aaalink
BBB,bbblink
CCC,ccclink
...,...
AAA,BBB,CCC is Language name, and aaalink,bbblink,ccclink is their
respective link.
I
On Mar 9, 1:06 am, Dennis Lee Bieber wlfr...@ix.netcom.com wrote:
On Sun, 8 Mar 2009 19:07:08 -0700 (PDT), odeits ode...@gmail.com
declaimed the following in gmane.comp.python.general:
i get this error when running that query:
sqlite3.OperationalError: LIMIT clause should come after
On Mar 8, 3:50 pm, Oltmans rolf.oltm...@gmail.com wrote:
On Mar 9, 3:37 am, Chris Rebert c...@rebertia.com wrote:
Learn about the methods of the string class
(str):http://docs.python.org/library/stdtypes.html#id4
You'll probably be most interested in .split()
OK, thanks I got it. I was
On Mar 8, 4:48 am, andrew cooke and...@acooke.org wrote:
odeits wrote:
On Mar 7, 1:07 pm, Scott David Daniels scott.dani...@acm.org wrote:
odeits wrote:
I am looking to clean up this code... any help is much appreciated.
Note: It works just fine, I just think it could be done cleaner
On Mar 8, 11:31 am, Dennis Lee Bieber wlfr...@ix.netcom.com wrote:
On Sat, 7 Mar 2009 23:07:55 -0800 (PST), odeits ode...@gmail.com
declaimed the following in gmane.comp.python.general:
For those of you who asked about the SQL the full function is here.
The connection is to a sqlite
On Mar 8, 12:31 pm, Dennis Lee Bieber wlfr...@ix.netcom.com wrote:
On Sat, 7 Mar 2009 23:07:55 -0800 (PST), odeits ode...@gmail.com
declaimed the following in gmane.comp.python.general:
For those of you who asked about the SQL the full function is here.
The connection is to a sqlite
On Mar 7, 1:07 pm, Scott David Daniels scott.dani...@acm.org wrote:
odeits wrote:
I am looking to clean up this code... any help is much appreciated.
Note: It works just fine, I just think it could be done cleaner.
The result is a stack of dictionaries. the query returns up to
STACK_SIZE
On Mar 7, 10:58 pm, odeits ode...@gmail.com wrote:
On Mar 7, 1:07 pm, Scott David Daniels scott.dani...@acm.org wrote:
odeits wrote:
I am looking to clean up this code... any help is much appreciated.
Note: It works just fine, I just think it could be done cleaner.
The result
On Mar 6, 11:53 am, awel albert.well...@gmail.com wrote:
Hi,
I am trying to get a value from an xml file, increment it by 1,
replace by the new value and write another xml with the new value
inside.
I have found this code to get the line and it works but I have to do
everything manualy:
On Mar 6, 3:31 pm, odeits ode...@gmail.com wrote:
On Mar 6, 11:53 am, awel albert.well...@gmail.com wrote:
Hi,
I am trying to get a value from an xml file, increment it by 1,
replace by the new value and write another xml with the new value
inside.
I have found this code to get
I am looking to clean up this code... any help is much appreciated.
Note: It works just fine, I just think it could be done cleaner.
The result is a stack of dictionaries. the query returns up to
STACK_SIZE ads for a user. The check which i think is very ugly is
putting another contraint saying
On Mar 3, 12:07 am, Andre Engels andreeng...@gmail.com wrote:
On Tue, Mar 3, 2009 at 7:35 AM, Hyunchul Kim sun...@sfc.keio.ac.jp wrote:
How can I find all completely connected subgraphs in a graph when node and
edge data are available?
completely connected subgraph is a group, all members
On Mar 2, 11:26 pm, Hyunchul Kim sun...@sfc.keio.ac.jp wrote:
Dear Odeits,
Yes, I meant directly connected to each other.
Thanks.
Hyunchul
odeits wrote:
On Mar 2, 10:35 pm, Hyunchul Kim sun...@sfc.keio.ac.jp wrote:
Hi, all,
How can I find all completely connected subgraphs
On Mar 3, 4:16 am, Fab86 fabien.h...@gmail.com wrote:
Thanks, this seems like a simpler way to do it.
I plan on recording 200 values to this file from the outcome of 200
Yahoo searches. Is there any type of loop I can make to do this or do
I have to have a line like print f,
On Mar 2, 7:14 am, W. eWatson notval...@sbcglobal.net wrote:
I'm modifying a Tkinter Python program that uses hard coded initial values
for several widgets. For example, latitude = 40. My plan is to put the names
and values for configuration purposes into a file. For example, a pseudo
On Mar 2, 10:35 pm, Hyunchul Kim sun...@sfc.keio.ac.jp wrote:
Hi, all,
How can I find all completely connected subgraphs in a graph when node
and edge data are available?
completely connected subgraph is a group, all members of which are
connected to each other.
Thanks,
Hyunchul
Do you
On Feb 27, 2:17 am, Gabriel Genellina gagsl-...@yahoo.com.ar
wrote:
En Fri, 27 Feb 2009 07:33:44 -0200, pranav pra...@gmail.com escribió:
Greeting fellow pycoders,
I have a script that browses large codes and replaces certain text
with some other text. Of lately i observed an issue.Some
On Feb 27, 1:18 am, Stefan Behnel stefan...@behnel.de wrote:
bearophileh...@lycos.com wrote:
odeits:
How big of a list are we talking about? If the list is so big that the
entire list cannot fit in memory at the same time this approach wont
work e.g. removing duplicate lines from a very
On Feb 26, 9:15 pm, Chris Rebert c...@rebertia.com wrote:
On Thu, Feb 26, 2009 at 8:49 PM, Benjamin Peterson benja...@python.org
wrote:
Shanmuga Rajan m.shanmugarajan at gmail.com writes:
f any one suggests better solution then i will be very happy.Advance thanks
for any help.Shan
Use
On Feb 26, 3:05 am, Clarendon jine...@hotmail.com wrote:
Hi. This must be a simple command but I just can't find it in the
Phthon manual. How do I delete all items with a certain condition from
a list? For instance:
L=['a', 'b', 'c', 'a']
I want to delete all 'a's from the list.
But if
On Feb 22, 9:02 pm, venutaurus...@gmail.com
venutaurus...@gmail.com wrote:
On Feb 23, 9:25 am, MRAB goo...@mrabarnett.plus.com wrote:
venutaurus...@gmail.com wrote:
Hello all,
I am writing an application where I need to open a shared
file on a remote machine using python
On Feb 21, 12:47 am, Gabriel Genellina gagsl-...@yahoo.com.ar
wrote:
En Sat, 21 Feb 2009 01:14:02 -0200, odeits ode...@gmail.com escribió:
On Feb 15, 11:31 pm, odeits ode...@gmail.com wrote:
It seems what you are actually testing for is if the intersection of
the two sets is not empty
On Feb 21, 2:24 pm, rdmur...@bitdance.com wrote:
odeits ode...@gmail.com wrote:
On Feb 21, 12:47=A0am, Gabriel Genellina gagsl-...@yahoo.com.ar
wrote:
En Sat, 21 Feb 2009 01:14:02 -0200, odeits ode...@gmail.com escribi=F3:
On Feb 15, 11:31=A0pm, odeits ode...@gmail.com wrote
On Feb 20, 3:45 pm, Emile van Sebille em...@fenx.com wrote:
brianrpsgt1 wrote:
def step1(val):
data2_row = []
for d1r in data1_row:
if d1r[1] = val:
switch = 0
data2_row = d1r[0],d1r[1],d1r[2],switch
On Feb 15, 11:31 pm, odeits ode...@gmail.com wrote:
On Feb 15, 9:56 pm, Chris Rebert c...@rebertia.com wrote:
On Sun, Feb 15, 2009 at 9:17 PM, pyt...@bdurham.com wrote:
I need to test strings to determine if one of a list of chars is in the
string. A simple example would be to test
On Feb 17, 7:14 am, John Posner jjpos...@snet.net wrote:
Try this change:
from: btn.configure(image = None)
to: img1.blank()
This does in fact clear the image out, however it isn't causing the
text to display... Do i have have to create a new button and swap it
On Feb 16, 8:40 am, John Posner jjpos...@snet.net wrote:
from Tkinter import *
def do():
btn.configure(image = None)
root = Tk()
img1 = PhotoImage(file=bacon.gif)
btn = Button(image = img1, command = do, text = hello )
btn.img = img1
btn.pack()
I want to be able to toggle if the button has an image or text. For
some reason the following code gets the button to have an image but
when i push the button i expect the image to go away but it does not.
Am I missing something?
from Tkinter import *
def do():
btn.configure(image = None)
On Feb 15, 9:56 pm, Chris Rebert c...@rebertia.com wrote:
On Sun, Feb 15, 2009 at 9:17 PM, pyt...@bdurham.com wrote:
I need to test strings to determine if one of a list of chars is in the
string. A simple example would be to test strings to determine if they have
a vowel (aeiouAEIOU)
34 matches
Mail list logo