Re: Remote XML Parsing

2007-03-30 Thread Laurent Pointal
[EMAIL PROTECTED] a écrit : > How can I parse a remote XML file with Python? > And what will I be able to do with this XML file in Python? > > Sorry if this is a noob-ish question. You can process XML data with Python as long as you can get it - you will be able to do what you want with it. How

Re: Game programming for kids: looking for open source 2D game development kit

2007-03-30 Thread Laurent Pointal
Max Kubierschky a écrit : > Hello, > > I'm planning to give a game programming course for kids of mixed age. > For this, I am looking for an open source 2D game development kit. > I am also willing to participate in the development of the development kit. > > Features I'd like to see > - Possibil

Is any way to split zip archive to sections?

2007-03-30 Thread Durumdara
Hi! I want to create some backup archives with python (I want to write a backup application in Python). Some package managers (7z, arj, winzip) can create splitted archives (1 mega, 650, 700 mega, etc). Because I want to ftp these results to a ftp server, I want to split large volumes to 15 mb s

Re: with timeout(...):

2007-03-30 Thread Hendrik van Rooyen
"Nick Craig-Wood" <[EMAIL PROTECTED]> wrote: > I'd like there to be something which works well enough for day to day > use. Ie doesn't ever wreck the internals of python. It could have > some caveats like "may not timeout during C functions which haven't > released the GIL" and that would still

Re: Weird behavior in search in a list

2007-03-30 Thread Hendrik van Rooyen
"Su Y" <[EMAIL PROTECTED]> wrote: > I want find the first number in extend[] which is larger than num, so > I wrote: > def find(num): > count=0 > for elem in extend: > if elem count+=1 > return count > > I found that if extend[] is monotonous, like [1.1, 2.3, 3.2,

Re: socket read timeout

2007-03-30 Thread Hendrik van Rooyen
"Jean-Paul Calderone" <[EMAIL PROTECTED]> wrote: > On Thu, 29 Mar 2007 07:29:35 +0200, Hendrik van Rooyen <[EMAIL PROTECTED]> wrote: > >Are sockets full duplex? > > Uh, yes. The reason I asked is that I have noticed that other file like objects (on Suse 10 Linux and Python 2.4 out of the box) ar

Memory testing in Python

2007-03-30 Thread csselo
Hi all I want to test my python code for memory efficiency in gnu/linux.How can I do this? thanks. -- http://mail.python.org/mailman/listinfo/python-list

Re: What are OOP's Jargons and Complexities

2007-03-30 Thread Timofei Shatrov
On Fri, 30 Mar 2007 06:48:05 GMT, "Mike Schilling" <[EMAIL PROTECTED]> tried to confuse everyone with this message: >Xah Lee wrote: > >> So, a simple code like this in normal languages: >> becomes in Java: >> >> > >Only when written by someone almost entirely ignorant of Java. > Which is the st

Re: What are OOP's Jargons and Complexities

2007-03-30 Thread bugbear
Xah Lee wrote: > So, a simple code like this in normal languages: > > a = "a string"; > b = "another one"; > c = join(a,b); > print c; > > or in lisp style > > (set a "a string") > (set b "another one") > (set c (join a b)) > (print c) > > becomes in Java: > > public class test { > public s

Re: Game programming for kids: looking for open source 2D game development kit

2007-03-30 Thread Diez B. Roggisch
Max Kubierschky schrieb: > Hello, > > I'm planning to give a game programming course for kids of mixed age. > For this, I am looking for an open source 2D game development kit. > I am also willing to participate in the development of the development kit. > > Features I'd like to see > - Possibili

Object Oriented Database with interface for Pyhton

2007-03-30 Thread [EMAIL PROTECTED]
Hello all I am looking for an object oriented database with interffaces for python. Either open source or commercial. I am looking for a Database not a object persistence system. I would like to be able to execute queries outside from the aplication. If posible wih OQL ( object query language )

Indentation for code readability

2007-03-30 Thread DE
Hello, Here is what I do in C++ and can not right now in python : pushMatrix() { drawStuff(); pushMatrix(); { drawSomeOtherStuff() } popMatrix(); } popMatrix(); The curly brackets have no functional meaning but increase the readability significantly. I want

Re: Game programming for kids: looking for open source 2D game development kit

2007-03-30 Thread Max Kubierschky
Diez B. Roggisch schrieb: > Max Kubierschky schrieb: >> Hello, >> >> I'm planning to give a game programming course for kids of mixed age. >> For this, I am looking for an open source 2D game development kit. >> I am also willing to participate in the development of the development >> kit. >> >> F

Re: Indentation for code readability

2007-03-30 Thread Thomas Krüger
DE schrieb: > Hello, > > Here is what I do in C++ and can not right now in python : > > pushMatrix() > { > drawStuff(); > > pushMatrix(); > { > drawSomeOtherStuff() > } > popMatrix(); > } > popMatrix(); > > The curly brackets have no functional meaning but i

Re: Object Oriented Database with interface for Pyhton

2007-03-30 Thread csselo
http://www.sqlalchemy.org/ you ll like it. On 30 Mart, 12:04, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Hello all > > I am looking for an object oriented database with interffaces for > python. Either open source or commercial. > > I am looking for a Database not a object persistence syste

Re: Indentation for code readability

2007-03-30 Thread John Machin
On Mar 30, 7:04 pm, "DE" <[EMAIL PROTECTED]> wrote: > Hello, > > Here is what I do in C++ and can not right now in python : > > pushMatrix() > { > drawStuff(); > > pushMatrix(); > { > drawSomeOtherStuff() > } > popMatrix();} > > popMatrix(); > > The curly bracke

Re: Indentation for code readability

2007-03-30 Thread Peter Otten
DE wrote: > Hello, > > Here is what I do in C++ and can not right now in python : > > pushMatrix() > { > drawStuff(); > > pushMatrix(); > { > drawSomeOtherStuff() > } > popMatrix(); > } > popMatrix(); > > The curly brackets have no functional meaning but in

How to get the demension of a video file?

2007-03-30 Thread seppl43
Hello there, does anybody know, how to get the dimension values (width/height) of a quicktime (.mov) and/or a avi-file? Is there perhaps a module which can do this job? Thank you for tips. seppl -- http://mail.python.org/mailman/listinfo/python-list

Re: Object Oriented Database with interface for Pyhton

2007-03-30 Thread M�ta-MCI
Hi! >>> http://www.sqlalchemy.org/ No. sqlalchemy is an object-oriented-interface(or wrapper) Alfaeco want an Object-Oriented-Database (like Jasmin, Caché, etc.) @-salutations Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: Object Oriented Database with interface for Pyhton

2007-03-30 Thread Bruno Desthuilliers
[EMAIL PROTECTED] a écrit : (top-post corrected) > > On 30 Mart, 12:04, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: >> Hello all >> >> I am looking for an object oriented database with interffaces for >> python. Either open source or commercial. >> >> I am looking for a Database not a object pe

Re: Cheeseshop needs mirrors

2007-03-30 Thread Paul Boddie
On 30 Mar, 09:05, "Jon" <[EMAIL PROTECTED]> wrote: > > If something as widely used as eggs is going to have a single point of > failure like the Cheeseshop, we can't have it going down. > > I'm sure there are other solutions, but my suggestion is simply to > have mirrors. It works for Debian, after

Re: How can I get the content of a web site using http library

2007-03-30 Thread Lawrence Oluyede
<[EMAIL PROTECTED]> wrote: > http://www.python.org/doc/current/lib/module-urllib2.html > > Look into urlopen's data parameter. I add also this tutorial to the plate: http://www.voidspace.org.uk/python/articles/urllib2.shtml -- Lawrence, oluyede.org - neropercaso.it "It is difficult to get a ma

Re: Game programming for kids: looking for open source 2D game development kit

2007-03-30 Thread Marc 'BlackJack' Rintsch
In <[EMAIL PROTECTED]>, Max Kubierschky wrote: > What part of Squeak is targeted at 2D game development? http://www.squeak.org/Features/FunandGames/ And also take a look at http://www.squeakland.org/ (Kids play → Etoys) which is a framework for children, that let's you paint objects and attach b

Re: socket read timeout

2007-03-30 Thread Jean-Paul Calderone
On Fri, 30 Mar 2007 08:22:18 +0200, Hendrik van Rooyen <[EMAIL PROTECTED]> wrote: >"Jean-Paul Calderone" <[EMAIL PROTECTED]> wrote: > >> On Thu, 29 Mar 2007 07:29:35 +0200, Hendrik van Rooyen ><[EMAIL PROTECTED]> wrote: > >> >Are sockets full duplex? >> >> Uh, yes. > >The reason I asked is that I

Library for windows ini-files ?

2007-03-30 Thread stef
hello, is there a Python library for easy reading and writing windows ini-files ? thanks, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

python win32com and dispatchbaseclass

2007-03-30 Thread vml
I am a newbie in python and com. I am trying to use python and com to access to a software. I had a look in the file .py describing the interface (generated by makepy) and I found some dispatch base class... My fisrt question is : is it possible to invoke a com object dispatch base class? other

Re: Library for windows ini-files ?

2007-03-30 Thread Laurent Pointal
stef a écrit : > hello, > > is there a Python library for easy reading and writing windows ini-files ? http://docs.python.org/lib/module-ConfigParser.html A+ Laurent. -- http://mail.python.org/mailman/listinfo/python-list

Re: Library for windows ini-files ?

2007-03-30 Thread Diez B. Roggisch
stef schrieb: > hello, > > is there a Python library for easy reading and writing windows ini-files ? Isn't ConfigParser ini-style? I'm not totally sure though. Diez -- http://mail.python.org/mailman/listinfo/python-list

Re: Indentation for code readability

2007-03-30 Thread Bjoern Schliessmann
DE wrote: > The curly brackets have no functional meaning but increase the > readability significantly. Personally, I don't think so. It quite explodes the code. Yes, I also indent "BSD style" in my C++ programs. Regards, Björn -- BOFH excuse #175: OS swapped to disk -- http://mail.pyth

Re: Memory testing in Python

2007-03-30 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]> wrote: >Hi all > >I want to test my python code for memory efficiency in gnu/linux.How >can I do this? . . . What does "memory efficiency" mean to you? Are you asking how to

Re: PyPy for dummies

2007-03-30 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Paddy <[EMAIL PROTECTED]> wrote: . . . >It is also European funding for an open source project with sprints. >I'm sure some eurocrat will be dissecting the project to see if it is >aa good way to

Re: with timeout(...):

2007-03-30 Thread Diez B. Roggisch
Nick Craig-Wood schrieb: > Diez B. Roggisch <[EMAIL PROTECTED]> wrote: >>> I beleive the convention is when calling an OS function which might >>> block the global interpreter lock is dropped, thus allowing other >>> python bytecode to run. >> >> So what? That doesn't help you, as you are single-t

Re: Object Oriented Database with interface for Pyhton

2007-03-30 Thread MC
Salut! Heureusement qu'il y a qq français pour faire un peu de ménage... -- @-salutations Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: make RE more cleaver to avoid inappropriate : sre_constants.error: redefinition of group name

2007-03-30 Thread aspineux
On 30 mar, 00:13, "Paddy" <[EMAIL PROTECTED]> wrote: > On Mar 29, 3:22 pm, "aspineux" <[EMAIL PROTECTED]> wrote: > > > > > I want to parse > > > '[EMAIL PROTECTED]' or '<[EMAIL PROTECTED]>' and get the email address > > [EMAIL PROTECTED] > > > the regex is > > > r'<[EMAIL PROTECTED]>|[EMAIL PROTEC

Sending emails to 3 addresses....

2007-03-30 Thread Boudreau, Emile
Hello all, I'm trying to send a results email to 3 people. For some reason only the first person in the list will receive the email but in the received email it shows the 3 addresses. Here is my code, can someone show me where I'm going wrong?? Thanks sendMail('this is the subject line', 'the resu

Re: Library for windows ini-files ?

2007-03-30 Thread stef
Laurent Pointal wrote: > stef a écrit : > >> hello, >> >> is there a Python library for easy reading and writing windows ini-files ? >> > > http://docs.python.org/lib/module-ConfigParser.html > > A+ > > Laurent. > thanks Laurent, that seems to be what I was looking for. cheers, Stef --

Re: which methods to use?

2007-03-30 Thread Steven D'Aprano
On Thu, 29 Mar 2007 14:55:04 -0300, Gabriel Genellina wrote: > En Thu, 29 Mar 2007 01:56:15 -0300, Steven D'Aprano > <[EMAIL PROTECTED]> escribió: > >> By the way, "id(obj) == id(another_object)" is just a long way of writing >> "obj is another_object". > > Just as a side note: that's not true

Re: Sending emails to 3 addresses....

2007-03-30 Thread Tim Williams
On 30/03/07, Boudreau, Emile <[EMAIL PROTECTED]> wrote: > > sendMail('this is the subject line', 'the results: 71 fails, 229 pass, 300 > total.', '[EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED]') > > def sendMail(subject, body, TO, FROM="[EMAIL PROTECTED]"): > print TO > HOST = "ex

Re: What are OOP's Jargons and Complexities

2007-03-30 Thread Lew
Timofei Shatrov wrote: > On Fri, 30 Mar 2007 06:48:05 GMT, "Mike Schilling" <[EMAIL PROTECTED]> > tried to confuse everyone with this message: > >> Xah Lee wrote: >> >>> So, a simple code like this in normal languages: > >>> becomes in Java: >>> >>> >> Only when written by someone almost entirely

Re: What are OOP's Jargons and Complexities

2007-03-30 Thread Lew
Xah Lee wrote: >> public class test { >> public static void main(String[] args) { >> String a = new String("a string"); >> String b = new String("another one"); >> StringBuffer c = new StringBuffer(40); >> c.append(a); c.append(b); >> System.out.println(c.toString()); >> }

Re: Sending emails to 3 addresses....

2007-03-30 Thread Tim Williams
On 30/03/07, Tim Williams <[EMAIL PROTECTED]> wrote: Emile, (slight change to my original reply) You are passing the TO addresses as 3 addresses in a single string. [TO] results in a list containing a single string - not a list containing 3 individual addresses. You need to either pass the ad

RE: Sending emails to 3 addresses....

2007-03-30 Thread Boudreau, Emile
Thanks so much I would of never found that out. Problem SOLVED Emile Boudreau -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Tim Williams Sent: Friday, March 30, 2007 9:12 AM To: Boudreau, Emile Cc: python-list@python.org Subject: Re: Sending ema

Re: which methods to use?

2007-03-30 Thread Duncan Booth
Steven D'Aprano <[EMAIL PROTECTED]> wrote: >> py> id(object()) == id(object()) >> True >> py> object() is object() >> False > > That's weird. How on earth does that happen? The lifetimes of the two objects createted in the first comparison do not overlap: once the call to id() returns it immedi

Re: Indentation for code readability

2007-03-30 Thread Steven D'Aprano
On Fri, 30 Mar 2007 02:04:45 -0700, DE wrote: > Hello, > > Here is what I do in C++ and can not right now in python : > > pushMatrix() > { > drawStuff(); > > pushMatrix(); > { > drawSomeOtherStuff() > } > popMatrix(); > } > popMatrix(); > > The curly bracke

Re: A nice way to use regex for complicate parsing

2007-03-30 Thread aspineux
On 29 mar, 17:33, "Paul McGuire" <[EMAIL PROTECTED]> wrote: > On Mar 29, 9:42 am, Shane Geiger <[EMAIL PROTECTED]> wrote: > > > It would be worth learning pyparsing to do this. > > Thanks to Shane and Steven for the ref to pyparsing. I also was > struck by this post, thinking "this is pyparsing wr

Re: How to get the demension of a video file?

2007-03-30 Thread Bart Ogryczak
On Mar 30, 11:56 am, "seppl43" <[EMAIL PROTECTED]> wrote: > Hello there, > > does anybody know, how to get the dimension values (width/height) of a > quicktime (.mov) and/or a avi-file? > Is there perhaps a module which can do this job? Identify from ImageMagick. There is a Python binding (PythonM

Re: Indentation for code readability

2007-03-30 Thread Mark Jackson
"DE" <[EMAIL PROTECTED]> writes: > Hello, > > Here is what I do in C++ and can not right now in python : > > pushMatrix() > { > drawStuff(); > > pushMatrix(); > { > drawSomeOtherStuff() > } > popMatrix(); > } > popMatrix(); > > The curly brackets have no fun

Re: Object Oriented Database with interface for Pyhton

2007-03-30 Thread Laurent Pointal
MC a écrit : > Salut! > > Heureusement qu'il y a qq français pour faire un peu de ménage... Question de décalage horaire ? -- http://mail.python.org/mailman/listinfo/python-list

Re: Any "consumer review generators" available?

2007-03-30 Thread Evil Otto
On Mar 30, 3:46 am, nullified <[EMAIL PROTECTED]> wrote: > On 29 Mar 2007 20:34:26 -0700, "Evil Otto" <[EMAIL PROTECTED]> wrote: > > >On Mar 29, 2:19 pm, [EMAIL PROTECTED] wrote: > >> I am looking for a fake consumer review generator that could generate > >> realistic looking reviews for any produ

Re: Any "consumer review generators" available?

2007-03-30 Thread nullified
On 30 Mar 2007 07:01:16 -0700, "Evil Otto" <[EMAIL PROTECTED]> wrote: >On Mar 30, 3:46 am, nullified <[EMAIL PROTECTED]> wrote: >> On 29 Mar 2007 20:34:26 -0700, "Evil Otto" <[EMAIL PROTECTED]> wrote: >> >> >On Mar 29, 2:19 pm, [EMAIL PROTECTED] wrote: >> >> I am looking for a fake consumer review

Re: Indentation for code readability

2007-03-30 Thread DE
Thanks Peter. This sounds like to right solution for my case, because in addition to indentation, I can automate push and pop. I'll investigate this further. I appreciate. -- http://mail.python.org/mailman/listinfo/python-list

Re: Indentation for code readability

2007-03-30 Thread Duncan Booth
"DE" <[EMAIL PROTECTED]> wrote: > Here is what I do in C++ and can not right now in python : > > pushMatrix() > { > drawStuff(); > > pushMatrix(); > { > drawSomeOtherStuff() > } > popMatrix(); > } > popMatrix(); > If I understand this contortion is because

Re: Indentation for code readability

2007-03-30 Thread DE
> > I don't understand why you are indenting > the function calls. What does the > indentation and spacing signify? The indentation of function calls increases readability not in the sense that it is easier to decrypt the code, but rather it is analogous to the coordinate system transformations th

Re: Indentation for code readability

2007-03-30 Thread DE
Thanks Duncan. I guess you and Peter have been typing in the same minute :) It really looks like a good solution, I wasn't aware this with statement in Python. I can imagine the context handler coming handy in other cases too. Devrim -- http://mail.python.org/mailman/listinfo/python-list

Re: Indentation for code readability

2007-03-30 Thread Alex Martelli
Thomas Krüger <[EMAIL PROTECTED]> wrote: > BTW: having one way to do it is one of the main ideas of Python's > philosophy. Yes, just like C's -- see point 4 in the "Spirit of C" summary taken from the ISO Standard for C and quoted e.g. at . Of cou

Re: Indentation for code readability

2007-03-30 Thread Paul McGuire
On Mar 30, 4:04 am, "DE" <[EMAIL PROTECTED]> wrote: > > The curly brackets have no functional meaning... "Curly brackets have no functional meaning"? Surely you must be thinking of C, but not C++. Some of the most powerful idioms (idia?) of C++ make use of functionality that runs when a closing

Re: Memory testing in Python

2007-03-30 Thread mkPyVS
>While I have a great deal of interest in memory management, >my general reaction to your question as you've posed it is, >"Don't; concentrate for now on good Python style." I agree but for monitoring... I've had good luck with executing a popen to grab and parse output from ps -Af and pass it yo

next python berlin user group meeting / naechstes berliner python treffen

2007-03-30 Thread Stephan Diehl
time: 3.4., 7pm place: c-base info: http://groups.google.de/group/python-berlin -- http://mail.python.org/mailman/listinfo/python-list

Re: Indentation for code readability

2007-03-30 Thread DE
> > > The curly brackets have no functional meaning... > > "Curly brackets have no functional meaning"? Surely you must be > thinking of C, but not C++. Some of the most powerful idioms (idia?) > of C++ make use of functionality that runs when a closing bracket > causes local variables to fall ou

Inserting '-' character in front of all numbers in a string

2007-03-30 Thread kevinliu23
Hey guys, I want to be able to insert a '-' character in front of all numeric values in a string. I want to insert the '-' character to use in conjunction with the getopt.getopt() function. Rigt now, I'm implementing a menu system where users will be able to select a set of options like "2a 3ab"

New to Python - Easy way to open a text file

2007-03-30 Thread Max Steel
Hey gang, I'm new to python coding. I'm trying to find the simplest way to open a text file (on the same server) and display it's content. The text file is plain text (no markup language of any kind). The filename gets found and placed into a variable named [plainfiles.href] I'm using python t

Re: Inserting '-' character in front of all numbers in a string

2007-03-30 Thread kyosohma
On Mar 30, 10:38 am, "kevinliu23" <[EMAIL PROTECTED]> wrote: > Hey guys, > > I want to be able to insert a '-' character in front of all numeric > values in a string. I want to insert the '-' character to use in > conjunction with the getopt.getopt() function. > > Rigt now, I'm implementing a menu

Re: Inserting '-' character in front of all numbers in a string

2007-03-30 Thread Larry Bates
kevinliu23 wrote: > Hey guys, > > I want to be able to insert a '-' character in front of all numeric > values in a string. I want to insert the '-' character to use in > conjunction with the getopt.getopt() function. > > Rigt now, I'm implementing a menu system where users will be able to > sele

Re: Game programming for kids: looking for open source 2D game development kit

2007-03-30 Thread John Nagle
Max Kubierschky wrote: > Diez B. Roggisch schrieb: > >> Max Kubierschky schrieb: >> >>> Hello, >>> >>> I'm planning to give a game programming course for kids of mixed age. >>> For this, I am looking for an open source 2D game development kit. >>> I am also willing to participate in the developmen

Re: Islam, the Religion of Ease

2007-03-30 Thread adrian . villanustre
On Mar 29, 11:36 am, "moslim" <[EMAIL PROTECTED]> wrote: > Excuse me!! > Would you stop for a moment?! > O...man...Haven't you thought-one day- about yourself ? > Who has made it? > Have you seen a design which hasn't a designer ?! > Have you seen a wonderful,delicate work without a worker ?! > It'

Re: New to Python - Easy way to open a text file

2007-03-30 Thread kyosohma
On Mar 30, 10:49 am, "Max Steel" <[EMAIL PROTECTED]> wrote: > Hey gang, I'm new to python coding. I'm trying to find the simplest way to > open a text file (on the same server) and display it's content. > > The text file is plain text (no markup language of any kind). > > The filename gets found a

Re: New to Python - Easy way to open a text file

2007-03-30 Thread skip
Max> Hey gang, I'm new to python coding. I'm trying to find the Max> simplest way to open a text file (on the same server) and display Max> it's content. Try the open() builtin function: f = open(plainfiles.href, "r") print f.read() Skip -- http://mail.python.org/mailman/l

Re: Memory testing in Python

2007-03-30 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, mkPyVS <[EMAIL PROTECTED]> wrote: >>While I have a great deal of interest in memory management, >>my general reaction to your question as you've posed it is, >>"Don't; concentrate for now on good Python style." > >I agree but for monitoring... > >I've had good luck w

Re: make RE more cleaver to avoid inappropriate : sre_constants.error: redefinition of group name

2007-03-30 Thread Paddy
On Mar 30, 1:44 pm, "aspineux" <[EMAIL PROTECTED]> wrote: > On 30 mar, 00:13, "Paddy" <[EMAIL PROTECTED]> wrote: > > > On Mar 29, 3:22 pm, "aspineux" <[EMAIL PROTECTED]> wrote: > > > > I want to parse > > > > '[EMAIL PROTECTED]' or '<[EMAIL PROTECTED]>' and get the email address > > > [EMAIL PROTE

Re: Library for windows ini-files ?

2007-03-30 Thread [EMAIL PROTECTED]
On Mar 30, 1:26 am, stef <[EMAIL PROTECTED]> wrote: > hello, > > is there a Python library for easy reading and writing windows ini-files ? > > thanks, > Stef Mientki Maybe check this out? http://www.voidspace.org.uk/python/configobj.html -- http://mail.python.org/mailman/listinfo/python-list

911 was a HEINOUS CRIME by RACIST YANK BASTARDZ - Opinion from JAPANESE Americans

2007-03-30 Thread thermate2
http://www.opednews.com/maxwrite/page.php?a=32710 March 28, 2007 at 21:50:23 Breaking my silence on 9/11 Truth by John Kusumi Page 1 of 1 page(s) http://www.opednews.com Tell A Friend Initially I preferred to keep silent about the 9/11 Truth Movement, to not be diverted from my issue. I'

Re: New to Python - Easy way to open a text file

2007-03-30 Thread Marc 'BlackJack' Rintsch
In <[EMAIL PROTECTED]>, kyosohma wrote: > I'm not familiar with ezt formats, however reading a text file is a > breeze. This sentence doesn't match the code that follow. It's really simpler than that ``while`` loop. > f = open(r'pathToFile') > while True: > line = f.readline() > if

Re: File deletion after 72 hours of creation

2007-03-30 Thread Tim Williams
On 29 Mar 2007 13:40:58 -0700, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > On Mar 29, 12:02 pm, [EMAIL PROTECTED] wrote: > > Alex> I'm looking for a simple method to delete a folder after 72 > > Alex> "Business hours" (saturday/sunday doesnt count) since its > > Alex> creation. Note

Re: Inserting '-' character in front of all numbers in a string

2007-03-30 Thread Marc 'BlackJack' Rintsch
In <[EMAIL PROTECTED]>, kevinliu23 wrote: > "2a 3ab" into "-2a -3ab". In [8]: '-' + ' -'.join('2a 3ab 4xy'.split()) Out[8]: '-2a -3ab -4xy' Ciao, Marc 'BlackJack' Rintsch -- http://mail.python.org/mailman/listinfo/python-list

Re: Modules & positive surprises

2007-03-30 Thread Steven Bethard
Jan Danielsson wrote: >But then there are a few modules that I just love to use, because > they are so "clean" from interface to function. Among them I can't help > mentioning optparse. If you like optparse, you should try argparse: http://argparse.python-hosting.com/ It has an optpars

Re: Inserting '-' character in front of all numbers in a string

2007-03-30 Thread kevinliu23
Hey guys, thanks for the quick replies. I'm looking for something more generic than adding it to "2a 3ab". For example, under the menu option 2, there can be upwards of 8 other suboptions. I'll see what's suggested here and post back if I run into more problems. Thanks guys! -- http://mail.python

Re: Islam, the Religion of Ease

2007-03-30 Thread hg
[EMAIL PROTECTED] wrote: > On Mar 29, 11:36 am, "moslim" <[EMAIL PROTECTED]> wrote: >> Excuse me!! >> Would you stop for a moment?! >> O...man...Haven't you thought-one day- about yourself ? >> Who has made it? >> Have you seen a design which hasn't a designer ?! >> Have you seen a wonderful,delic

Re: Islam, the Religion of Ease

2007-03-30 Thread hg
Just came to me ... if wars were always fought with fish as weapons, they'd be much less hunger in the world ... lol ... (as a non-anglo-saxon, I thought for many years that lol meant "Lord, Oh Lord !) hg (Holly Grail) -- http://mail.python.org/mailman/listinfo/python-list

Re: What are OOP's Jargons and Complexities

2007-03-30 Thread Mike Schilling
Timofei Shatrov wrote: > On Fri, 30 Mar 2007 06:48:05 GMT, "Mike Schilling" > <[EMAIL PROTECTED]> tried to confuse everyone with this > message: > >> Xah Lee wrote: >> >>> So, a simple code like this in normal languages: > >>> becomes in Java: >>> >>> >> >> Only when written by someone almost entir

clean up html document created by Word

2007-03-30 Thread jd
I am looking for python code (working or sample code) that can take an html document created by Microsoft Word and clean it up (if you've never had to look at a Word-generated html document, consider yourself lucky ;-) Alternatively, if you know of a non-python solution, I'd like to hear about it.

Re: What are OOP's Jargons and Complexities

2007-03-30 Thread Mike Schilling
bugbear wrote: > Er. How about > > public class test { > public static void main(String[] args) { > String a = "a string"; > String b = "another one"; > StringBuffer c = a + b; String c (etc.), that is. > System.out.println(c); > } > } -- http://mail.python.org/mailman/li

Re: clean up html document created by Word

2007-03-30 Thread kyosohma
On Mar 30, 12:20 pm, "jd" <[EMAIL PROTECTED]> wrote: > I am looking for python code (working or sample code) that can take an > html document created by Microsoft Word and clean it up (if you've > never had to look at a Word-generated html document, consider yourself > lucky ;-) Alternatively, if

Re: clean up html document created by Word

2007-03-30 Thread Peter Otten
jd wrote: > I am looking for python code (working or sample code) that can take an > html document created by Microsoft Word and clean it up (if you've > never had to look at a Word-generated html document, consider yourself > lucky ;-) Alternatively, if you know of a non-python solution, I'd > l

Re: clean up html document created by Word

2007-03-30 Thread jkn
IIUC, the original poster is asking about 'cleaning up' in the sense of removing the swathes of unnecessary and/or redundant 'cruft' that Word puts in there, rather than making valid HTML out of invalid HTML. Again, IIUC, HTMLtidy does not do this. If Beautiful Soup does, then I'm intererested!

Re: clean up html document created by Word

2007-03-30 Thread Shane Geiger
Tidy can now perform wonders on HTML saved from Microsoft Word 2000! Word bulks out HTML files with stuff for round-tripping presentation between HTML and Word. If you are more concerned about using HTML on the Web, check out Tidy's "Word-2000"

Re: clean up html document created by Word

2007-03-30 Thread Peter Otten
jkn wrote: > IIUC, the original poster is asking about 'cleaning up' in the sense > of removing the swathes of unnecessary and/or redundant 'cruft' that > Word puts in there, rather than making valid HTML out of invalid HTML. > Again, IIUC, HTMLtidy does not do this. >From that very page I linked

Re: clean up html document created by Word

2007-03-30 Thread bearophileHUGS
jd: > I am looking for python code (working or sample code) that can take an > html document created by Microsoft Word and clean it up (if you've > never had to look at a Word-generated html document, consider yourself > lucky ;-) Alternatively, if you know of a non-python solution, I'd > like to

Re: Game programming for kids: looking for open source 2D game development kit

2007-03-30 Thread John Salerno
Laurent Pointal wrote: > With Python: > * pygame + build your drag'n drop features > * if you like 3D, vpython. > > > http://www.pygame.org/ > http://www.vpython.org/ Wow, vpython looks pretty need. I'm messing around with it right now and reading the docs. But I can't find something...do you

Re: LRU cache (and other things missing from the standard library ...)

2007-03-30 Thread skip
Evan> I agree that LRU caches are a data structure too frequently Evan> re-implemented in Python. I'd also like to see a "standard" cache Evan> package, either as part of the standard library or elsewhere. To Evan> that end, I've just uploaded an LRU cache package to the Python

Re: Game programming for kids: looking for open source 2D game development kit

2007-03-30 Thread John Salerno
John Salerno wrote: > Laurent Pointal wrote: > >> With Python: >> * pygame + build your drag'n drop features >> * if you like 3D, vpython. >> >> >> http://www.pygame.org/ >> http://www.vpython.org/ > > Wow, vpython looks pretty need. neat* :) -- http://mail.python.org/mailman/listinfo/python-

Re: Object Oriented Database with interface for Pyhton

2007-03-30 Thread kyosohma
On Mar 30, 8:51 am, Laurent Pointal <[EMAIL PROTECTED]> wrote: > MC a écrit : > > > Salut! > > > Heureusement qu'il y a qq français pour faire un peu de ménage... > > Question de décalage horaire ? Here is a list of all the popular database interface modules: http://www.python.org/topics/database

Re: manually implementing staticmethod()?

2007-03-30 Thread 7stud
Hi, Thanks for the responses. On Mar 28, 4:01 pm, "Michael Spencer" <[EMAIL PROTECTED]> wrote: > "7stud" <[EMAIL PROTECTED]> wrote in message > > news:[EMAIL PROTECTED]> Hi, > > > Can someone show me how to manually implement staticmethod()? Here is > > my latest attempt: > > >

Re: LRU cache (and other things missing from the standard library ...)

2007-03-30 Thread skip
Evan> http://www.python.org/pypi?:action=display&name=lrucache&version=0.2 skip> Couldn't get to your website, but I've been using this one I wrote skip> for several years: skip> http://www.webfast.com/~skip/python/Cache.py skip> I'm just coming to this thread, so I don'

Re: Inserting '-' character in front of all numbers in a string

2007-03-30 Thread Michael Bentley
On Mar 30, 2007, at 10:38 AM, kevinliu23 wrote: > I want to be able to insert a '-' character in front of all numeric > values in a string. I want to insert the '-' character to use in > conjunction with the getopt.getopt() function. > > Rigt now, I'm implementing a menu system where users will b

Re: New to Python - Easy way to open a text file

2007-03-30 Thread Max Steel
Hmm.. maybe it'd help if I explained that I'm playing with edna http://edna.sourceforge.net/ I'll play with this simple code: f = open(r'pathToFile) for line in f: # do something with the line of text such as print it. f.close() and this one from Skip: f = open(plainfiles.href, "r")

Re: New to Python - Easy way to open a text file

2007-03-30 Thread kyosohma
On Mar 30, 11:39 am, Marc 'BlackJack' Rintsch <[EMAIL PROTECTED]> wrote: > In <[EMAIL PROTECTED]>, kyosohma wrote: > > I'm not familiar with ezt formats, however reading a text file is a > > breeze. > > This sentence doesn't match the code that follow. It's really simpler > than that ``while`` loo

Tkinter menu question--how to pass arguments

2007-03-30 Thread Kevin Walzer
I'm having difficulty structuring a Tkinter menu entry. Here is the command in question: self.finkmenu.add_command(label='Update List of Packages', command=self.authorizeCommand(self.scanPackages)) When I start my program, it crashes because it's trying to run the command self.authorizeCommand

Re: New to Python - Easy way to open a text file

2007-03-30 Thread Max Steel
nothing is "lame" to me , all help is appreciated :) .\\ax <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Mar 30, 11:39 am, Marc 'BlackJack' Rintsch <[EMAIL PROTECTED]> wrote: >> In <[EMAIL PROTECTED]>, kyosohma >> wrote: >> > I'm not familiar with ezt formats, however readin

Re: Tkinter menu question--how to pass arguments

2007-03-30 Thread Dave Opstad
In article <[EMAIL PROTECTED]>, Kevin Walzer <[EMAIL PROTECTED]> wrote: > I'm having difficulty structuring a Tkinter menu entry. Here is the > command in question: > > self.finkmenu.add_command(label='Update List of Packages', > command=self.authorizeCommand(self.scanPackages)) > > When I st

Re: Any "consumer review generators" available?

2007-03-30 Thread Schraalhans Keukenmeester
nullified wrote: > On 30 Mar 2007 07:01:16 -0700, "Evil Otto" <[EMAIL PROTECTED]> wrote: > >> On Mar 30, 3:46 am, nullified <[EMAIL PROTECTED]> wrote: >>> On 29 Mar 2007 20:34:26 -0700, "Evil Otto" <[EMAIL PROTECTED]> wrote: >>> On Mar 29, 2:19 pm, [EMAIL PROTECTED] wrote: > I am looking

  1   2   >