Re: Is there any Generic RSS/ATOM generator in Python?

2008-02-13 Thread Canarix
Hi, On Mon, Feb 11, 2008 at 3:47 PM, js <[EMAIL PROTECTED]> wrote: > Hi, > > I'm looking for RSS/ATOM generator I can use in Python. > I searched on pypi and the other places but I couldn't find any > options on this. (I found many parsers, though) > Is there any de-fact standard RSS/ATOM gene

Re: Is there any Generic RSS/ATOM generator in Python?

2008-02-13 Thread Stefan Behnel
Torsten Bronger wrote: > Terran Melconian writes: > >> On 2008-02-11, js <[EMAIL PROTECTED]> wrote: >> >>> Is there any de-fact standard RSS/ATOM generator? (especially, >>> I'd like to create Atom's) Do I have to do it myself from >>> scratch? >> I looked into similar issues about six months ago.

UN BELIVABLE PHOTOS

2008-02-13 Thread arulprakash456
UN BELIVABLE PHOTOS PLEASE CLICK THIS * http://voltage_voltageextra_lowvoltage.blogspot.com * -- http://mail.python.org/mailman/listinfo/python-list

Re: Is there any Generic RSS/ATOM generator in Python?

2008-02-13 Thread Torsten Bronger
Hallöchen! Terran Melconian writes: > On 2008-02-11, js <[EMAIL PROTECTED]> wrote: > >> Is there any de-fact standard RSS/ATOM generator? (especially, >> I'd like to create Atom's) Do I have to do it myself from >> scratch? > > I looked into similar issues about six months ago. My conclusion > w

Re: Looking for a Python Program/Tool That Will Add Line Numbers to a txt File

2008-02-13 Thread Chris
On Feb 14, 8:54 am, "W. Watson" <[EMAIL PROTECTED]> wrote: > See Subject. It's a simple txt file, each line is a Python stmt, but I need > up to four digits added to each line with a space between the number field > and the text. Perhaps someone has already done this or there's a source on > the we

Coverage.py reporting and UML tools - what exists already?

2008-02-13 Thread J Peyret
I got coverage.py to work after somewhat of a difficult start... Hint: if moving your code from Windows to Linux and if running 'coverage.py -r mymodule.py' causes SyntaxError/SyntaxException, the 'flip' utility is your friend to deal with removing those nasty \r\n newlines that are preventing co

Re: non-uniform string substituion

2008-02-13 Thread 7stud
On Feb 13, 4:03 pm, Horacius ReX <[EMAIL PROTECTED]> wrote: > Hi, > > I have a file with a lot of the following ocurrences: > > denmark.handa.1-10 > denmark.handa.1-12344 > denmark.handa.1-4 > denmark.handa.1-56 > > ... > > distributed randomly in a file. I need to convert each of this > ocurrences

Re: Is there any Generic RSS/ATOM generator in Python?

2008-02-13 Thread Terran Melconian
On 2008-02-11, js <[EMAIL PROTECTED]> wrote: > Is there any de-fact standard RSS/ATOM generator? (especially, I'd > like to create Atom's) > Do I have to do it myself from scratch? I looked into similar issues about six months ago. My conclusion was that generally XML generation libraries (unlike

Looking for a Python Program/Tool That Will Add Line Numbers to a txt File

2008-02-13 Thread W. Watson
See Subject. It's a simple txt file, each line is a Python stmt, but I need up to four digits added to each line with a space between the number field and the text. Perhaps someone has already done this or there's a source on the web for it. I'm not yet into files with Python. A sudden need has

Re: XML pickle

2008-02-13 Thread Stefan Behnel
Hi, [EMAIL PROTECTED] wrote: > Readability of the Pickle module. Can one export to XML, from cost of > speed and size, to benefit of user-readability? Regarding pickling to XML, lxml.objectify can do that: http://codespeak.net/lxml/objectify.html however: > It does something else: plus functi

Re: Cannot understand error message

2008-02-13 Thread Chris
On Feb 14, 2:25 am, Steven D'Aprano <[EMAIL PROTECTED] cybersource.com.au> wrote: > On Wed, 13 Feb 2008 17:29:59 +, Bill Davy wrote: > > The following code produces an error message (using Idle with Py 2.4 and > > 2.5). "There's an error in your program: EOL while scanning > > single-quoted st

Re: XML pickle

2008-02-13 Thread George Sakkis
On Feb 13, 4:43 pm, [EMAIL PROTECTED] wrote: > Readability of the Pickle module. Can one export to XML, from cost > of speed and size, to benefit of user-readability? Take a look at gnosis.xml.pickle, it seems a good starting point. George -- http://mail.python.org/mailman/listinfo/python-list

Re: mmap and shared memory

2008-02-13 Thread Jeff Schwab
Nikita the Spider wrote: > In article <[EMAIL PROTECTED]>, > Jeff Schwab <[EMAIL PROTECTED]> wrote: > >> greg wrote: >>> Carl Banks wrote: In C you can use the mmap call to request a specific physical location in memory (whence I presume two different processes can mmap anonymous m

Re: Coverage.py reporting and UML tools - what exists already?

2008-02-13 Thread Ricardo Aráoz
J Peyret wrote: > I got coverage.py to work after somewhat of a difficult start... > > Hint: if moving your code from Windows to Linux and if running > 'coverage.py -r mymodule.py' causes SyntaxError/SyntaxException, the > 'flip' utility is your friend to deal with removing those nasty \r\n > new

Re: dream hardware

2008-02-13 Thread castironpi
On Feb 13, 8:28 pm, Steven D'Aprano <[EMAIL PROTECTED] cybersource.com.au> wrote: > On Wed, 13 Feb 2008 17:45:33 -0800, castironpi wrote: > > Fortran is better than what?  Ideal semantics beat pain and pleasure any > > day, they are practical goals. > > Okay, are you a bot or something? Almost all

Re: XML pickle

2008-02-13 Thread castironpi
On Feb 13, 10:41 pm, George Sakkis <[EMAIL PROTECTED]> wrote: > On Feb 13, 4:43 pm, [EMAIL PROTECTED] wrote: > > > Readability of the Pickle module.  Can one export to XML, from cost > > of speed and size, to benefit of user-readability? > > Take a look at gnosis.xml.pickle, it seems a good startin

Re: Paramiko SFTP autologon using id_dsa.pub

2008-02-13 Thread Michele Hjorleifsson
wow been going nuts here after cutting and pasting to get a working test so i ran demo.py ... and its not me.. i changed the hostname for obvious reasongs, the id_dsa file does exist. i can sftp from bash no problem. there is NO password on the key Any ideas ? here is what i get. Hostname: x

Re: OT: Speed of light

2008-02-13 Thread Erik Max Francis
Bjoern Schliessmann wrote: > eV has a advantages some "kilogram force" hasn't: It's on completely > different order of magnitude. People aren't happy writing 81.8 aJ > (Attojoule = 1e-15 Joule), instead they prefer > 511 keV. A couple of problems here. 1 eV = 1.602 x 10^-19 J. Also, the atto-

Re: counting lines using fileinput module

2008-02-13 Thread Robert
On Feb 13, 8:31 pm, 7stud <[EMAIL PROTECTED]> wrote: > On Feb 13, 6:47 pm, Robert <[EMAIL PROTECTED]> wrote: > > > > > I would like to count lines in a file using the fileinput module and I > > am getting an unusual output. > > ---

Re: mmap and shared memory

2008-02-13 Thread Nikita the Spider
In article <[EMAIL PROTECTED]>, Jeff Schwab <[EMAIL PROTECTED]> wrote: > greg wrote: > > Carl Banks wrote: > >> In C you can use the mmap call to request a specific physical location > >> in memory (whence I presume two different processes can mmap anonymous > >> memory block in the same location

Re: counting lines using fileinput module

2008-02-13 Thread 7stud
On Feb 13, 6:47 pm, Robert <[EMAIL PROTECTED]> wrote: > I would like to count lines in a file using the fileinput module and I > am getting an unusual output. > --- > --- > #!/usr/bin/python > import fileinput > > # cycle thro

Re: dream hardware

2008-02-13 Thread Steven D'Aprano
On Wed, 13 Feb 2008 17:45:33 -0800, castironpi wrote: > Fortran is better than what? Ideal semantics beat pain and pleasure any > day, they are practical goals. Okay, are you a bot or something? Almost all your posts in this thread have been slightly off: non sequitors like this response, or ju

Re: counting lines using fileinput module

2008-02-13 Thread Gabriel Genellina
En Wed, 13 Feb 2008 23:47:11 -0200, Robert <[EMAIL PROTECTED]> escribió: > I would like to count lines in a file using the fileinput module and I > am getting an unusual output. > -- > #!/usr/bin/python > import fileinpu

Re: Regular Expression for Prime Numbers (or How I came to fail at them, and love the bomb)

2008-02-13 Thread castironpi
On Feb 13, 5:43 pm, Mark Dickinson <[EMAIL PROTECTED]> wrote: > On Feb 13, 5:14 pm, [EMAIL PROTECTED] wrote: > > > Isn't the finite state machine "regular expression 'object'" really > > large? > > There's no finite state machine involved here, since this isn't a > regular expression in the stricte

Re: Floating point bug?

2008-02-13 Thread Jeff Schwab
[EMAIL PROTECTED] wrote: > I've never had any call to use floating point numbers and now that I > want to, I can't! > > *** Python 2.5.1 (r251:54863, May 1 2007, 17:47:05) [MSC v.1310 32 > bit (Intel)] on win32. *** float (.3) > 0.2 foo = 0.3 foo > 0.299

counting lines using fileinput module

2008-02-13 Thread Robert
I would like to count lines in a file using the fileinput module and I am getting an unusual output. -- #!/usr/bin/python import fileinput # cycle through files for line in fileinput.input(): if (fileinput.isfirstline()

Re: dream hardware

2008-02-13 Thread castironpi
On Feb 13, 10:14 am, Florian Diesch <[EMAIL PROTECTED]> wrote: > Jeff Schwab <[EMAIL PROTECTED]> wrote: > >> On Feb 12, 2008 1:05 PM,  <[EMAIL PROTECTED]> wrote: > >>> What is dream hardware for the Python interpreter? > > > Warren Myers wrote: > >> A Cray? > > >> What are you trying to do? "dream"

Re: non-uniform string substituion

2008-02-13 Thread Steve Holden
Horacius ReX wrote: > Hi, > > I have a file with a lot of the following ocurrences: > > denmark.handa.1-10 > denmark.handa.1-12344 > denmark.handa.1-4 > denmark.handa.1-56 > > ... > > distributed randomly in a file. I need to convert each of this > ocurrences to: > > denmark.handa.1-10_1 > den

Re: Complicated string substitution

2008-02-13 Thread Tim Chase
> I have a file with a lot of the following ocurrences: > > denmark.handa.1-10 > denmark.handa.1-12344 > denmark.handa.1-4 > denmark.handa.1-56 Each on its own line? Scattered throughout the text? With other content that needs to be un-changed? With other stuff on the same line? > denmark.han

Re: Email Directly from python

2008-02-13 Thread Martin P. Hellwig
Guilherme Polo wrote: > I hope to not disappoint you, but mail will invoke a smtp server to > send your mail. > I disagree. If you really want to, all you need is telnet. You connect to port 25 of the mail server that handles the mail of the domain for that mail address and do the helo, mail f

Re: Floating point bug?

2008-02-13 Thread Bjoern Schliessmann
[EMAIL PROTECTED] wrote: > I've never had any call to use floating point numbers and now that > I want to, I can't! Ever considered phrasing your actual problem so one can help, let alone looking at the archive for many, many postings about this topic? Regards, Björn -- BOFH excuse #66: bit

Re: OT: Speed of light

2008-02-13 Thread greg
Erik Max Francis wrote: > rocket motor performance (specific impulse) is measured in > seconds, as it's the ratio of the the thrust (force) to rate of fuel > usage (would be mass divided by time, but weight on Earth is used > instead of mass). Which is particularly ironic, as you'd think that r

Re: Floating point bug?

2008-02-13 Thread Preston Landers
[EMAIL PROTECTED]([EMAIL PROTECTED])@2008.02.13 15:13:20 -0800: > Not a bug. All languages implementing floating point numbers have the > same issue. Some just decide to hide it from you. Please read > http://docs.python.org/tut/node16.html and particularly > http://docs.python.org/tut/node16.html#

Re: Python equivt of __FILE__ and __LINE__

2008-02-13 Thread Gabriel Genellina
En Wed, 13 Feb 2008 13:07:31 -0200, alain <[EMAIL PROTECTED]> escribió: > There exists an undocumented builtin called __file__, but > unfortunately no corresponding __line__ There is no __file__ builtin AFAIK; but there is __file__ module attribute documented here: http://docs.python.org/ref/ty

Re: Cannot understand error message

2008-02-13 Thread Steven D'Aprano
On Wed, 13 Feb 2008 17:29:59 +, Bill Davy wrote: > The following code produces an error message (using Idle with Py 2.4 and > 2.5). "There's an error in your program: EOL while scanning > single-quoted string". It comes just after "s = ''" (put there to try > and isolate the broken string).

Re: Recommended data structure/ implementation

2008-02-13 Thread Gabriel Genellina
En Wed, 13 Feb 2008 05:34:43 -0200, Mike D <[EMAIL PROTECTED]> escribió: > I have a simple requirement: A user belongs to groups and groups contain > items. > > Based on user/group I want to display items. > Based on user I want to display groups. > > What would be the best method of implementing

Re: OT: Speed of light [was Re: Why not a Python compiler?]

2008-02-13 Thread Steven D'Aprano
On Wed, 13 Feb 2008 22:13:51 +, I V wrote: > On Mon, 11 Feb 2008 14:07:49 -0800, Erik Max Francis wrote: >> experience. The notion of impetus -- where an object throw moves in a >> straight line until it runs out of impetus, then falls straight down -- >> is clearly contrary to everyday exper

Re: ODF vs OOXML (was: Write ooxml .ods (spreadsheat) from python?)

2008-02-13 Thread Neal Becker
Ben Finney wrote: > Neal Becker <[EMAIL PROTECTED]> writes: > >> I'd like to output some data directly in .ods format. > > Presumably you mean the OpenDocument Spreadsheet format. That's not > OOXML, it's ODF, the international standard document format > implemented in OpenOffice.org, KOffice, a

Re: Regular Expression for Prime Numbers (or How I came to fail at them, and love the bomb)

2008-02-13 Thread Mark Dickinson
On Feb 13, 5:14 pm, [EMAIL PROTECTED] wrote: > Isn't the finite state machine "regular expression 'object'" really > large? There's no finite state machine involved here, since this isn't a regular expression in the strictest sense of the term---it doesn't translate to a finite state machine, sinc

Re: How to access object attributes given a string

2008-02-13 Thread Gabriel Genellina
En Tue, 12 Feb 2008 18:53:36 -0200, Santiago Romero <[EMAIL PROTECTED]> escribió: >> Dennis Kempin wrote: >> You are using a scripting language.. why not use python directly? > > I just want to execute an small set of commands (PLAYSOUND, PLAYMUSIC, > WALKTO, PLAYERSAY, SLEEP and a couple more) .

Re: ways to declare empty set variable

2008-02-13 Thread Steve Holden
[EMAIL PROTECTED] wrote: > The irony that, x = (,) produces an error. > > Personally I would of thought it would be a better example of an empty > tuple than anything else, but it still isn't that readable. > > The use of dict/list/tuple/set seems to stand out a lot better, makes > it readable! E

Re: OT: Speed of light

2008-02-13 Thread Erik Max Francis
Hrvoje Niksic wrote: > It would be possible for US pound to only refer to weight, but I > cannot find references to corroborate it. For example, taken from > Wikipedia: > > In 1958 the United States and countries of the Commonwealth of > Nations agreed upon common definitions for the pou

Re: Floating point bug?

2008-02-13 Thread marek . rocki
Not a bug. All languages implementing floating point numbers have the same issue. Some just decide to hide it from you. Please read http://docs.python.org/tut/node16.html and particularly http://docs.python.org/tut/node16.html#SECTION001610 Regards, Marek -- http://mail.python.org

Re: OT: Speed of light [was Re: Why not a Python compiler?]

2008-02-13 Thread Erik Max Francis
I V wrote: > On Mon, 11 Feb 2008 14:07:49 -0800, Erik Max Francis wrote: >> experience. The notion of impetus -- where an object throw moves in a >> straight line until it runs out of impetus, then falls straight down -- >> is clearly contrary to everyday experience of watching two people throw >

Re: OT: Speed of light [was Re: Why not a Python compiler?]

2008-02-13 Thread Erik Max Francis
Grant Edwards wrote: > A slug is 14.593903 kg according to the trysty old Unix "units" > program. Hmm, I always thought a slug weighed exactly 32 lbs, > but I see it's 32.174049. Learn something new every day... It's defined so that 1 slug times the acceleration due to gravity is a pound. The

non-uniform string substituion

2008-02-13 Thread Horacius ReX
Hi, I have a file with a lot of the following ocurrences: denmark.handa.1-10 denmark.handa.1-12344 denmark.handa.1-4 denmark.handa.1-56 ... distributed randomly in a file. I need to convert each of this ocurrences to: denmark.handa.1-10_1 denmark.handa.1-12344_1 denmark.handa.1-4_1 denmark.han

Complicated string substitution

2008-02-13 Thread Horacius ReX
Hi, I have a file with a lot of the following ocurrences: denmark.handa.1-10 denmark.handa.1-12344 denmark.handa.1-4 denmark.handa.1-56 ... distributed randomly in a file. I need to convert each of this ocurrences to: denmark.handa.1-10_1 denmark.handa.1-12344_1 denmark.handa.1-4_1 denmark.han

Floating point bug?

2008-02-13 Thread robinsiebler
I've never had any call to use floating point numbers and now that I want to, I can't! *** Python 2.5.1 (r251:54863, May 1 2007, 17:47:05) [MSC v.1310 32 bit (Intel)] on win32. *** >>> float (.3) 0.2 >>> foo = 0.3 >>> foo 0.2 >>> -- http://mail.python.org/mailman/

RE: Word document accessing using python

2008-02-13 Thread Reedick, Andrew
> -Original Message- > From: [EMAIL PROTECTED] [mailto:python- > [EMAIL PROTECTED] On Behalf Of Juan_Pablo > Sent: Wednesday, February 13, 2008 1:07 PM > To: python-list@python.org > Subject: Re: Word document accessing using python > > > > import win32com.client > > but, window32com.cl

standardization allows?

2008-02-13 Thread castironpi
Standardization helps avoid the readability and reliability problems which arise when many different individuals create their own slightly varying implementations, each with their own quirks and naming conventions. -- http://mail.python.org/mailman/listinfo/python-list

Re: Recursive generator

2008-02-13 Thread Ben C
On 2008-02-13, Erich <[EMAIL PROTECTED]> wrote: > On Feb 12, 5:15 am, Ben C <[EMAIL PROTECTED]> wrote: >> I think this works OK, but it seems a bit odd. Is there something more >> "Pythonic" I should be doing? > > I have a similar tree to the one you describe here at work. I have a > visit function

Re: Word document accessing using python

2008-02-13 Thread castironpi
On Feb 13, 12:07 pm, Juan_Pablo <[EMAIL PROTECTED]> wrote: > > import win32com.client > >  but, window32com.client is only functional in  windows Excel can read XML. abc 123 Word command line to save as text, or the reader from Microsoft? -- http://mail.python.org/

Re: ways to declare empty set variable

2008-02-13 Thread Ben Finney
Nick Craig-Wood <[EMAIL PROTECTED]> writes: > Ben Finney <[EMAIL PROTECTED]> wrote: > > [EMAIL PROTECTED] writes: > > > > > Missing that, I think dict() and set() and tuple() and list() > > > > I often use these myself. They're slightly more explicit, which can > > help when I want the reader

Re: copying files through Python

2008-02-13 Thread Larry Bates
Lalit wrote: > I am new to python. Infact started yesterday and feeling out of place. > I need to write a program which would transfer files under one folder > structure (there are sub folders) to single folder. Can anyone give me > some idea like which library files or commands would be suitable f

ODF vs OOXML (was: Write ooxml .ods (spreadsheat) from python?)

2008-02-13 Thread Ben Finney
Neal Becker <[EMAIL PROTECTED]> writes: > I'd like to output some data directly in .ods format. Presumably you mean the OpenDocument Spreadsheet format. That's not OOXML, it's ODF, the international standard document format implemented in OpenOffice.org, KOffice, and many others. http://open

Re: Regular Expression for Prime Numbers (or How I came to fail at them, and love the bomb)

2008-02-13 Thread castironpi
On Feb 13, 9:48 am, Carsten Haese <[EMAIL PROTECTED]> wrote: > On Wed, 2008-02-13 at 07:31 -0800, [EMAIL PROTECTED] wrote: > >     return re.match("^1?$|^(11+?)\1+$", convert) > > That needs to be either > > return re.match(r"^1?$|^(11+?)\1+$", convert) > > or > > return re.match("^1?$|^(11+?)\\1+$

Re: OT: Speed of light [was Re: Why not a Python compiler?]

2008-02-13 Thread I V
On Mon, 11 Feb 2008 14:07:49 -0800, Erik Max Francis wrote: > experience. The notion of impetus -- where an object throw moves in a > straight line until it runs out of impetus, then falls straight down -- > is clearly contrary to everyday experience of watching two people throw > a ball back and

Re: copying files through Python

2008-02-13 Thread Tim Chase
> I am new to python. Infact started yesterday and feeling out of place. > I need to write a program which would transfer files under one folder > structure (there are sub folders) to single folder. Can anyone give me > some idea like which library files or commands would be suitable for > this fil

Re: Recursive generator

2008-02-13 Thread Erich
On Feb 12, 5:15 am, Ben C <[EMAIL PROTECTED]> wrote: > I think this works OK, but it seems a bit odd. Is there something more > "Pythonic" I should be doing? I have a similar tree to the one you describe here at work. I have a visit function that is very similar to yours, but takes function argume

Re: Write ooxml .ods (spreadsheat) from python?

2008-02-13 Thread John Machin
On Feb 14, 12:50 am, Neal Becker <[EMAIL PROTECTED]> wrote: Message subject: OOXML is "Office Open" XML i.e. Microsoft Office "Open" -- a /different/ complex XML spreadsheet format. > I'd like to output some data directly in .ods format. This format appears > to be quite complex. You're not wro

copying files through Python

2008-02-13 Thread Lalit
I am new to python. Infact started yesterday and feeling out of place. I need to write a program which would transfer files under one folder structure (there are sub folders) to single folder. Can anyone give me some idea like which library files or commands would be suitable for this file transfer

Re: Email Directly from python

2008-02-13 Thread Martin P. Hellwig
Martin P. Hellwig wrote: > I already wrote a command line mailer that can do attachments too, no > need to write it again. If anybody is interested I can open-source it. > To reply on my own post ;-) Even if nobody is interested in case you change your mind it is hosted at: http://code.google.c

Re: fromfunc functions

2008-02-13 Thread castironpi
On Feb 13, 1:32 pm, azrael <[EMAIL PROTECTED]> wrote: > Thaks guys. this helped May I point you to partial: f= partial( func, arg ) f() -> func( arg ) -- http://mail.python.org/mailman/listinfo/python-list

XML pickle

2008-02-13 Thread castironpi
Readability of the Pickle module. Can one export to XML, from cost of speed and size, to benefit of user-readability? It does something else: plus functions do not export their code, either in interpreter instructions, or source, or anything else; and classes do not export their dictionaries, jus

Re: dream hardware

2008-02-13 Thread Florian Diesch
Jeff Schwab <[EMAIL PROTECTED]> wrote: >> On Feb 12, 2008 1:05 PM, <[EMAIL PROTECTED]> wrote: >>> What is dream hardware for the Python interpreter? > > Warren Myers wrote: >> A Cray? >> >> What are you trying to do? "dream" hardware is a very wide question. > > The only "dream hardware" I know o

Re: Write ooxml .ods (spreadsheat) from python?

2008-02-13 Thread Jarek Zgoda
Neal Becker pisze: >>> I'd like to output some data directly in .ods format. This format >>> appears >>> to be quite complex. Is there any python software available to do this? >>> I >>> did look at pyuno briefly. It looks pretty complicated also, and it >>> looks like it uses it's own private

Re: Email Directly from python

2008-02-13 Thread Martin P. Hellwig
brad wrote: > Martin P. Hellwig wrote: > >> The tricky part is how to resolve the mail server for a mail address. >> Usually you have to query the mx record of that domain. I solved that >> by looking if I can find the nslookup binary. > > The from and to are static constants... they don't cha

Re: Truncated postings

2008-02-13 Thread Russell E. Owen
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] wrote: > Hello, Over the past 24 hours or so, all of my Python-List e-mails have been > truncated to subject list only. No posts. Are others experiencing this > problem? Or is it just on my end? Thanks, Lloyd R. Prentice I'm not seeing th

Re: Email Directly from python

2008-02-13 Thread brad
Martin P. Hellwig wrote: > The tricky part is how to resolve the mail server for a mail address. > Usually you have to query the mx record of that domain. I solved that by > looking if I can find the nslookup binary. The from and to are static constants... they don't change. Mail just seems s

Re: Write ooxml .ods (spreadsheat) from python?

2008-02-13 Thread Stefan Behnel
Neal Becker wrote: > # OOo's libraries > import uno > > IIUC, this is the same problem. This uno module is tied to an old python > (2.2?) that ships with OO. Is it available standalone to build for python > 2.5? Roll your own OpenOffice server: http://pypi.python.org/pypi/z3c.recipe.openof

Re: Email Directly from python

2008-02-13 Thread Guilherme Polo
2008/2/13, brad <[EMAIL PROTECTED]>: > I'd like to send email directly from within python without having to > rely on an external smtp server. You know, something like the good, old > Unix... > > echo My_message | mail -s Subject [EMAIL PROTECTED] I hope to not disappoint you, but mail will inv

Re: Email Directly from python

2008-02-13 Thread Martin P. Hellwig
Larry Bates wrote: > brad wrote: >> I'd like to send email directly from within python without having to >> rely on an external smtp server. You know, something like the good, >> old Unix... >> >> echo My_message | mail -s Subject [EMAIL PROTECTED] >> >> Can Python do something similar in a porta

Re: Email Directly from python

2008-02-13 Thread Larry Bates
brad wrote: > I'd like to send email directly from within python without having to > rely on an external smtp server. You know, something like the good, old > Unix... > > echo My_message | mail -s Subject [EMAIL PROTECTED] > > Can Python do something similar in a portable fashion without a smtp

Re: dream hardware

2008-02-13 Thread castironpi
On Feb 13, 2:23 pm, [EMAIL PROTECTED] wrote: > On Feb 13, 2:01 pm, Laurent Pointal <[EMAIL PROTECTED]> > wrote: > > > Le Tue, 12 Feb 2008 10:05:59 -0800, castironpi a écrit : > > > > What is dream hardware for the Python interpreter? > > > Dream... I dont know, but hardware for the Python interpret

Re: ANN: NUCULAR B3 Full text indexing (now on Win32 too)

2008-02-13 Thread Paul Rubin
Aaron Watters <[EMAIL PROTECTED]> writes: > ANNOUNCE: NUCULAR Fielded Full Text Indexing, BETA 3 Oh cool, I wondered if anything was going on with this. I'm still using Solr/Lucene while Nucular matures, which sounds to be moving along nicely. A while back we chatted about flash drives. I did a

Re: Write ooxml .ods (spreadsheat) from python?

2008-02-13 Thread Guilherme Polo
2008/2/13, Neal Becker <[EMAIL PROTECTED]>: > Guilherme Polo wrote: > > > 2008/2/13, Neal Becker <[EMAIL PROTECTED]>: > >> I'd like to output some data directly in .ods format. > > > > Do you want to output data from .ods file or do you want to input data > > into an ods ? > > > >> This form

Re: dream hardware

2008-02-13 Thread Jeroen Ruigrok van der Werven
-On [20080213 02:36], Jeff Schwab ([EMAIL PROTECTED]) wrote: >*Oven-roasted* garlic? OK, that's just weird. Apologies for diverging even further: First time I ate at an Australian Outback (if I remember the name correctly) I got to experience the Blooming Onion. Now that was quit

Re: Write ooxml .ods (spreadsheat) from python?

2008-02-13 Thread Neal Becker
Guilherme Polo wrote: > 2008/2/13, Neal Becker <[EMAIL PROTECTED]>: >> I'd like to output some data directly in .ods format. > > Do you want to output data from .ods file or do you want to input data > into an ods ? > >> This format appears >> to be quite complex. Is there any python software

Re: dream hardware

2008-02-13 Thread castironpi
On Feb 13, 2:01 pm, Laurent Pointal <[EMAIL PROTECTED]> wrote: > Le Tue, 12 Feb 2008 10:05:59 -0800, castironpi a écrit : > > > What is dream hardware for the Python interpreter? > > Dream... I dont know, but hardware for the Python interpreter, yes. > > http://www.telit.co.it/product.asp?productId

Re: OT: Speed of light

2008-02-13 Thread Dotan Cohen
On 13/02/2008, David H Wild <[EMAIL PROTECTED]> wrote: > > Their weight on the moon would be exactly the same as on earth if they used > a balance with weights on the other side of the fulcrum. That is not measuring weight. That is measuring mass. To measure weight, you need a set, nonvariable re

Re: Write ooxml .ods (spreadsheat) from python?

2008-02-13 Thread Guilherme Polo
2008/2/13, Neal Becker <[EMAIL PROTECTED]>: > I'd like to output some data directly in .ods format. Do you want to output data from .ods file or do you want to input data into an ods ? > This format appears > to be quite complex. Is there any python software available to do this? I > did look

Email Directly from python

2008-02-13 Thread brad
I'd like to send email directly from within python without having to rely on an external smtp server. You know, something like the good, old Unix... echo My_message | mail -s Subject [EMAIL PROTECTED] Can Python do something similar in a portable fashion without a smtp server installed on the

Re: Chinese character error

2008-02-13 Thread John Deas
On Feb 11, 6:51 am, "Martin v. Löwis" <[EMAIL PROTECTED]> wrote: > > Have you any idea why this is not working on my computer ? > > Can you please try the listdir operation with the Python distribution > from python.org instead ofCygwinPython? > > Regards, > Martin it works. Thanks. -- http://mai

Re: OT: Speed of light

2008-02-13 Thread Jeff Schwab
David H Wild wrote: > In article <[EMAIL PROTECTED]>, >Jeff Schwab <[EMAIL PROTECTED]> wrote: >> We (Americans) all measure our weight in pounds. People talk about how >> much less they would weigh on the moon, in pounds, or even near the >> equator (where the Earth's radius is slightly higher

Re: dream hardware

2008-02-13 Thread Laurent Pointal
Le Tue, 12 Feb 2008 10:05:59 -0800, castironpi a écrit : > What is dream hardware for the Python interpreter? Dream... I dont know, but hardware for the Python interpreter, yes. http://www.telit.co.it/product.asp?productId=96 -- Laurent POINTAL - [EMAIL PROTECTED] -- http://mail.python.org/

Re: Big time WTF with generators - bug?

2008-02-13 Thread bearophileHUGS
Paul Rubin: > Even with that though, at least for me, Python starts feeling really > scary when the iterators get this complicated. I start wishing for > a static type system, re-usable iterators, etc. This is an interesting topic. I agree with you, I too was scared in a similar situation. The la

Re: OT: Speed of light

2008-02-13 Thread David H Wild
In article <[EMAIL PROTECTED]>, Jeff Schwab <[EMAIL PROTECTED]> wrote: > We (Americans) all measure our weight in pounds. People talk about how > much less they would weigh on the moon, in pounds, or even near the > equator (where the Earth's radius is slightly higher). Their weight on the moo

PyHyphen-0.2.1a - OpenOffice-like hyphenation

2008-02-13 Thread Dr. leo
Hi, a couple of weeks ago I uploaded PyHyphen-0.1 on the PyPI. It is a wrapper around the C library "hnj_hyphen 2.3" that ships with OpenOffice and Mozilla products. You can have a look at PyHyphen at http://pypi.python.org/pypi/PyHyphen/0.2.1a I've tested it on Linux, but it should also run on

Re: Big time WTF with generators - bug?

2008-02-13 Thread James Stroud
Steve Holden wrote: > James Stroud wrote: >> [...] I then append the growing list of series generator >> into the "serieses" list ("serieses" is plural for series if your >> vocablulary isn't that big). >> > Not as big as your ego, apparently ;-) And don't be coming back with any > argumentses.

Re: Regular Expression for Prime Numbers (or How I came to fail at them, and love the bomb)

2008-02-13 Thread subeen
hmm... interesting here is another way you can find prime numbers http://love-python.blogspot.com/2008/02/find-prime-number-upto-100-nums-range2.html On Feb 13, 9:31 pm, [EMAIL PROTECTED] wrote: > I was reading up on this site [http://www.noulakaz.net/weblog/ > 2007/03/18/a-regular-expression-t

Re: OT: Speed of light [was Re: Why not a Python compiler?]

2008-02-13 Thread Grant Edwards
On 2008-02-13, Jeff Schwab <[EMAIL PROTECTED]> wrote: > Grant Edwards wrote: >> On 2008-02-13, Jeff Schwab <[EMAIL PROTECTED]> wrote: >> Eh? Last I checked both pound and kilogram are units of mass, so where is the incompatibility? >>> I've never heard of "pound" as a unit of mass. At l

Re: fromfunc functions

2008-02-13 Thread azrael
Thaks guys. this helped -- http://mail.python.org/mailman/listinfo/python-list

Re: ways to declare empty set variable

2008-02-13 Thread Nick Craig-Wood
Ben Finney <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] writes: > > > Missing that, I think dict() and set() and tuple() and list() > > I often use these myself. They're slightly more explicit, which can > help when I want the reader not to have to think too much, and they're > not particul

Re: OT: Speed of light [was Re: Why not a Python compiler?]

2008-02-13 Thread Jeroen Ruigrok van der Werven
-On [20080213 20:16], Jeff Schwab ([EMAIL PROTECTED]) wrote: >So what is the mass of a slug, anyway? (I assume this is slug as in >bullet, not slimy, creeping thing.) http://en.wikipedia.org/wiki/Slug_(mass) would be my guess. -- Jeroen Ruigrok van der Werven / asmodai イェルーン ラウフロック

Re: OT: Speed of light [was Re: Why not a Python compiler?]

2008-02-13 Thread Jeroen Ruigrok van der Werven
-On [20080213 18:46], Jeff Schwab ([EMAIL PROTECTED]) wrote: >I've never heard of "pound" as a unit of mass. Then please correct/fix: http://en.wikipedia.org/wiki/Pound_(mass) Me being mainland European I know not this silly system called imperial. [Yes, partially in good je

Re: Big time WTF with generators - bug?

2008-02-13 Thread James Stroud
Steve Holden wrote: > James Stroud wrote: >> [...] I then append the growing list of series generator >> into the "serieses" list ("serieses" is plural for series if your >> vocablulary isn't that big). >> > Not as big as your ego, apparently ;-) And don't be coming back with any > argumentses.

Re: Combinatorics

2008-02-13 Thread Paul Hankin
On Feb 12, 7:52 am, Michael Robertson <[EMAIL PROTECTED]> wrote: > Where is the python equivalent of: > > http://search.cpan.org/~fxn/Algorithm-Combinatorics-0.16/Combinatoric... > > combinations (with and without repetition) > variations (with and without repetition) > permutations > partitions >

Re: Recursive generator

2008-02-13 Thread Ben C
On 2008-02-12, Paul Hankin <[EMAIL PROTECTED]> wrote: > On Feb 12, 10:17 pm, Ben C <[EMAIL PROTECTED]> wrote: >> On 2008-02-12, Paul Rubin <> wrote: >> >> > Paul Hankin <[EMAIL PROTECTED]> writes: >> >> def genDescendants(self): >> >>     return chain([self], *[child.genDescendants() >> >>        

Re: Regular Expression for Prime Numbers (or How I came to fail at them, and love the bomb)

2008-02-13 Thread [EMAIL PROTECTED]
On Feb 13, 12:53 pm, Carsten Haese <[EMAIL PROTECTED]> wrote: > On Wed, 2008-02-13 at 10:40 -0800, [EMAIL PROTECTED] wrote: > > But why doesn't it work when you make that change? > > I can't answer that question, because it *does* work when you make that > change. Well, the OP said the function wa

Re: OT: Speed of light [was Re: Why not a Python compiler?]

2008-02-13 Thread Jeff Schwab
Grant Edwards wrote: > On 2008-02-13, Jeff Schwab <[EMAIL PROTECTED]> wrote: > >>> Eh? Last I checked both pound and kilogram are units of mass, so where is >>> the incompatibility? >> I've never heard of "pound" as a unit of mass. At least where I went to >> school (Boston, MA), "pound" is the

  1   2   >