Re: Indentation/whitespace

2005-12-23 Thread bonono
James Tanis wrote: >Honestly I wonder how so many coders actually came to be > interested in the field -- one that pretty much thrives in part on its > neverending ability to vary, grow, and change -- if something so small > can warrant so much attention. > That is what a "cafe" type newsgroup is

Re: Indentation/whitespace

2005-12-23 Thread James Tanis
On 23 Dec 2005 15:22:39 -0800, thakadu <[EMAIL PROTECTED]> wrote: > It is not really unique to Python as I have pointed out on this or > other forums before. The Occam (OCCAM?) language also uses significant > whitespace in much the same way as Python and there may also be others. > Your right of

Re: Xah's Edu Corner: Responsible Software Licensing

2005-12-23 Thread Pascal Bourguignon
"Xah Lee" <[EMAIL PROTECTED]> writes: > As i've indicated in the Responsible Licensing article, that today's > software come with disclaimers that essentially say the producer is not > liable even if the software don't work at all. It will be hard to > change this zero responsibility stance to a 1

Re: Some errors when running code in diveintopython: (

2005-12-23 Thread iclinux
thanks all ! I've solved this problem: Let me show my net environment first. My pc is in a local network, and through a proxy server can I reach the Internet, so I changed my Internet Settings. It seems that everything goes well, I can surf Internet, etc, but what a pity, I can't resolve a host

Re: Guido at Google

2005-12-23 Thread russnelson
Steve Holden wrote: > Far answers to this and all other (as far as I can determine) > hypothetical questions please refer to the license. But note that no OSI certified open source license will grant the right to use a trademark. You gain trademark rights by having control over the quality of th

program with raw_input prompt behaves differently after compile

2005-12-23 Thread tim
I want to write a program that looks into a given folder, groups files that have a certain part of the filename in common and then copy those groups one at a time to another place, using the raw_input prompt to continue or break. here's what I have: ### def makegroepen(): global p

Xah's Edu Corner: Responsible Software Licensing

2005-12-23 Thread Xah Lee
Responsible Software Licensing & Free Software Foundation Xah Lee, 2005-07 Dear Programers, I have always respected the Free Software Foundation (FSF) and its community. when i wrote the article a couple years ago on Responsible Software Licensing, i thought it might not be welcomed by the free

Re: Herds of cats

2005-12-23 Thread Aahz
In article <[EMAIL PROTECTED]>, Mike Meyer <[EMAIL PROTECTED]> wrote: > >CA pretty clearly got screwed on this deal. They have since >open-sourced the Ingres product. YM "CA screwed themselves in this deal." HTH. HAND. (That's my take based on the history of Computer Associates and a few casual

Re: How to check if a string "is" an int?

2005-12-23 Thread Alex Martelli
Paul Rubin wrote: > "Fredrik Lundh" <[EMAIL PROTECTED]> writes: > > A: are there any blue cars on the street? > > B: no. not a single one. > > A: you're wrong! all cars on the street are blue! > > B and A are both correct. It's just logic ;-). Charles Lut

Gurus'Network

2005-12-23 Thread yawgmoth7
gurusnetwork.org is a great place to learn about programming. And a lot of the admins are Python Pro's and they are willing to help and share info. Just thought I'd mention this fairly new site. -- http://mail.python.org/mailman/listinfo/python-list

Re: pyQt for windows

2005-12-23 Thread Bill
relativity wrote: > I have downloaded and installed pyQt 3.14 educational but when I run any of > the examples I get an error saying qt-mtedu333.dll was not found. I have > also installed the qt4 opensource version for windows but I am not sure > everything was set up correctly. When I run configur

Re: sorting with expensive compares?

2005-12-23 Thread Alex Martelli
Tim Peters <[EMAIL PROTECTED]> wrote: > [Steven D'Aprano] > > ... > > As others have pointed out, Python's sort never compares the same objects > > more than once. > > Others have pointed it out, and it's getting repeated now, but it's > not true. Since I wrote Python's sorting implementation, i

Re: sorting with expensive compares?

2005-12-23 Thread Paul Rubin
Steven D'Aprano <[EMAIL PROTECTED]> writes: > > There are also known ways of deliberately constructing md5 collisions > > (i.e. md5 is broken). Whether the OP should care about that depends > > on the application. > > Sure, but I don't he is deliberately trying to sabotage his own files :-) He m

Re: sorting with expensive compares?

2005-12-23 Thread Tim Peters
[Steven D'Aprano] > ... > As others have pointed out, Python's sort never compares the same objects > more than once. Others have pointed it out, and it's getting repeated now, but it's not true. Since I wrote Python's sorting implementation, it's conceivable that I'm not just making this up ;-)

Re: sorting with expensive compares?

2005-12-23 Thread Steven D'Aprano
On Fri, 23 Dec 2005 21:07:57 -0800, Paul Rubin wrote: > Steven D'Aprano <[EMAIL PROTECTED]> writes: >> http://www.iusmentis.com/technology/encryption/pgp/pgpattackfaq/hash/ >> >> the expected number of random unique files you would need to compare >> before finding a single collision in the MD5 h

Re: sorting with expensive compares?

2005-12-23 Thread Paul Rubin
Steven D'Aprano <[EMAIL PROTECTED]> writes: > http://www.iusmentis.com/technology/encryption/pgp/pgpattackfaq/hash/ > > the expected number of random unique files you would need to compare > before finding a single collision in the MD5 hashes is (very roughly) > 10**70, or ten billion trillion tri

Re: sorting with expensive compares?

2005-12-23 Thread Steven D'Aprano
On Fri, 23 Dec 2005 17:10:22 +, Dan Stromberg wrote: > I probably should've been more specific. > > I'm wanting to sort a large number of files, like a bunch of output files > from a large series of rsh or ssh outputs on a large series of distinct > machines, a music collection in .ogg format

Re: Indentation/whitespace

2005-12-23 Thread Alex Martelli
thakadu <[EMAIL PROTECTED]> wrote: > It is not really unique to Python as I have pointed out on this or > other forums before. The Occam (OCCAM?) language also uses significant > whitespace in much the same way as Python and there may also be others. Haskell. Rules not identical to Python (they

Re: What is unique about Python?

2005-12-23 Thread skip
>> > that's not really what I'm looking for. So I'm wondering, what is >> > innovative about Python, >> The letter 'y'. Before Python, it was woefully underused in the >> names of programming languages... Roy> Yacc has been around for a long time. Sure, but it's capitaliz

Re: Vaults of Parnassus hasn't been updated for months

2005-12-23 Thread Kent Johnson
Wolfgang Grafen wrote: > > Everybody is using the cheeseshop now: > > > > http://cheeseshop.python.org/pypi?%3Aaction=browse > > > > Everybody excluding me. Looks like a huge pile of cheese thrown above > a table. Sorry, I don't find what I am looking for. Can somebody > explain the improvemen

Re: What is unique about Python?

2005-12-23 Thread Alex Martelli
Roy Smith <[EMAIL PROTECTED]> wrote: > In article <[EMAIL PROTECTED]>, > [EMAIL PROTECTED] (Alex Martelli) wrote: > > > gsteff <[EMAIL PROTECTED]> wrote: > >... > > > that's not really what I'm looking for. So I'm wondering, what is > > > innovative about Python, > > > > The letter 'y'.

Re: What is unique about Python?

2005-12-23 Thread Roy Smith
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Alex Martelli) wrote: > gsteff <[EMAIL PROTECTED]> wrote: >... > > that's not really what I'm looking for. So I'm wondering, what is > > innovative about Python, > > The letter 'y'. Before Python, it was woefully underused in the names >

Re: Indentation/whitespace

2005-12-23 Thread Steven D'Aprano
On Fri, 23 Dec 2005 15:22:39 -0800, thakadu wrote: > It is not really unique to Python as I have pointed out on this or > other forums before. The Occam (OCCAM?) language also uses significant > whitespace in much the same way as Python and there may also be others. Python doesn't have any more s

Weekly Python Patch/Bug Summary

2005-12-23 Thread Kurt B. Kaiser
Patch / Bug Summary ___ Patches : 379 open ( -4) / 3002 closed (+12) / 3381 total ( +8) Bugs: 914 open (-13) / 5452 closed (+37) / 6366 total (+24) RFE : 204 open ( +0) / 193 closed ( +1) / 397 total ( +1) New / Reopened Patches __ Some fixe

Re: File object question

2005-12-23 Thread Ben Hutchings
S. D. Rose <[EMAIL PROTECTED]> wrote: > "Kent Johnson" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] >> S. D. Rose wrote: >> > Hello all. >> > If I read a binary file: >> > >> > file = open('c:\\logo.gif', 'rw'') # Read from FS as one way to get the >> > object, d/l from website a

Re: Find out the schema with psycopg?

2005-12-23 Thread Ben Hutchings
Steve Holden <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: >> I am trying to discover the schema of a PostgreSQL database >> programatically at runtime. >> >> I'm using psycopg (I assume that's still the best library). Is there a >> way to query the schema other than opening a system pipe

Re: Bad people management

2005-12-23 Thread Alex Martelli
<[EMAIL PROTECTED]> wrote: ... > Not really in the same vein but " Bad people management must be close > to the #1 cause of failure of promising ..." software projects. > Mind you, sometimes that just mean, minding one's self. Hmmm, I'm not too sure -- though managing software projects is a hug

Bad people management (Was Herds of cats)

2005-12-23 Thread jmdeschamps
Alex Martelli wrote: > Mike Meyer <[EMAIL PROTECTED]> wrote: > > > Steve Holden <[EMAIL PROTECTED]> writes: > > > Alex Martelli wrote: > > >> Not a bad point at all, although perhaps not entirely congruent to > > >> open > > >> source: hiring key developers has always been a possibility (net of >

Re: Herds of cats

2005-12-23 Thread Alex Martelli
Mike Meyer <[EMAIL PROTECTED]> wrote: > Steve Holden <[EMAIL PROTECTED]> writes: > > Alex Martelli wrote: > >> Not a bad point at all, although perhaps not entirely congruent to > >> open > >> source: hiring key developers has always been a possibility (net of > >> non-compete agreements, but I'm

Re: Enumeration idioms: Values from different enumerations

2005-12-23 Thread Steven D'Aprano
On Fri, 23 Dec 2005 23:51:22 +0200, Max wrote: > Steven D'Aprano wrote: >> >>>They certainly don't look much further from being integers than >>>booleans do. >> >> >> You think? >> >> hamburger, steak, fish, chicken, pizza >> >> What meaning do you give to steak**fish? Should that meaning ch

Re: What is unique about Python?

2005-12-23 Thread Alex Martelli
gsteff <[EMAIL PROTECTED]> wrote: ... > that's not really what I'm looking for. So I'm wondering, what is > innovative about Python, The letter 'y'. Before Python, it was woefully underused in the names of programming languages. Now, of course, there's also Ruby, but then we know Ruby did g

Re: GUI and graph

2005-12-23 Thread questions?
Thanks all you guys for the help. -- http://mail.python.org/mailman/listinfo/python-list

Re: Indentation/whitespace

2005-12-23 Thread BartlebyScrivener
The PEP is not a joke. It's a sensible set of guidelines. The blog post advocating enforcement is, shall we say, a sportive modest proposal? rpd www.dooling.com "There is no human problem which could not be solved if people would simply do as I advise."--Gore Vidal -- http://mail.python.org/mai

Re: What is unique about Python?

2005-12-23 Thread KraftDiner
I like python.. Its ok.. One thing that I find a bit dangerous it the use of the tab character for indentation.. I've had copy and pasts loose indentation on me and its theoretically impossible to really figure out what the indentation should be. I think for the extra effort it would have taken to

Re: What is unique about Python?

2005-12-23 Thread Robert J. Hansen
> [w]hat is innovative about Python, either in its design or implementation? This is probably the wrong approach to take. What Python brings to the table isn't a new capability, but an elegant and straightforward notation. It's not as beautiful as LISP, but it's close. Sell it on that, not on a

Re: pyQt for windows

2005-12-23 Thread Phil Thompson
On Friday 23 December 2005 8:39 pm, relativity wrote: > I have downloaded and installed pyQt 3.14 educational but when I run any of > the examples I get an error saying qt-mtedu333.dll was not found. I have > also installed the qt4 opensource version for windows but I am not sure > everything was s

Re: Indentation/whitespace

2005-12-23 Thread rbt
Gary Herron wrote: > rbt wrote: > >> BartlebyScrivener wrote: >> >> >>> What's needed is STRICTER whitespace enforcement, especially on April >>> Fools Day. Some call it whitespace fascism. >>> >>> http://www.artima.com/weblogs/viewpost.jsp?thread=101968 >>> >>> >> >> I've only been coding Py

Re: Indentation/whitespace

2005-12-23 Thread Gary Herron
rbt wrote: >BartlebyScrivener wrote: > > >>What's needed is STRICTER whitespace enforcement, especially on April >>Fools Day. Some call it whitespace fascism. >> >>http://www.artima.com/weblogs/viewpost.jsp?thread=101968 >> >> >> > >I've only been coding Python for about 3 years now. C is th

Re: Indentation/whitespace

2005-12-23 Thread Gary Herron
Joe wrote: >Is Python going to support s syntax the does not use it's infamous >whitespace rules? I recall reading that Python might include such a >feature. Or, maybe just a brace-to-indentation preprocessor would be >sufficient. > > Only over our dead bodies! ("our" = the large and always gro

Re: Indentation/whitespace

2005-12-23 Thread thakadu
I consider myself a fairly experienced Python coder and although I am not "uncomfortable" with significant whitespace there are a few places where I do find it annoying and I wouldnt mind an alternate block delimitation syntax. I would prefer something like the ruby "end" though rather than '{' an

Re: Indentation/whitespace

2005-12-23 Thread rbt
BartlebyScrivener wrote: > What's needed is STRICTER whitespace enforcement, especially on April > Fools Day. Some call it whitespace fascism. > > http://www.artima.com/weblogs/viewpost.jsp?thread=101968 > I've only been coding Python for about 3 years now. C is the only other language I'm mode

Re: Indentation/whitespace

2005-12-23 Thread thakadu
It is not really unique to Python as I have pointed out on this or other forums before. The Occam (OCCAM?) language also uses significant whitespace in much the same way as Python and there may also be others. -- http://mail.python.org/mailman/listinfo/python-list

Re: Indentation/whitespace

2005-12-23 Thread James Tanis
On 23 Dec 2005 10:01:37 -0800, Joe <[EMAIL PROTECTED]> wrote: > It just seems that > Python developers think the whitespace thing is only an issue for > newbies. I think that many experienced users don't learn to like it, > but instead just learn to live with it. I disagree, I don't think you can

Re: Some errors when running code in diveintopython: (

2005-12-23 Thread Heiko Wundram
beryan wrote: > El Fri, 23 Dec 2005 05:18:30 -0800, iclinux escribió: >> gaierror: (11001, 'getaddrinfo failed') > Take a look over firewall settings and give Python rights for accesing > port 80 Well, rather he should take a look at allowing Python to resolve host names. That's what this error is

Re: Vaults of Parnassus hasn't been updated for months

2005-12-23 Thread kpd
No offense intended to the cheesemakers, but I miss the vaults too. -- http://mail.python.org/mailman/listinfo/python-list

Re: Indentation/whitespace

2005-12-23 Thread BartlebyScrivener
What's needed is STRICTER whitespace enforcement, especially on April Fools Day. Some call it whitespace fascism. http://www.artima.com/weblogs/viewpost.jsp?thread=101968 rpd -- http://mail.python.org/mailman/listinfo/python-list

Re: Enumeration idioms: Values from different enumerations

2005-12-23 Thread Max
Steven D'Aprano wrote: > >>They certainly don't look much further from being integers than >>booleans do. > > > You think? > > hamburger, steak, fish, chicken, pizza > > What meaning do you give to steak**fish? Should that meaning change if I > happened to have written pizza first instead of

Re: sorting with expensive compares?

2005-12-23 Thread Paul Rubin
Dan Stromberg <[EMAIL PROTECTED]> writes: > I've been using the following compare function, which in short checks, in > order: > > 1) device number > 2) inode number > 3) file length > 4) the beginning of the file > 5) an md5 hash of the entire file > 6) the entire file > > (If #1 and #2 are iden

Re: What is unique about Python?

2005-12-23 Thread Max
gsteff wrote: > I'm a computer science student, and have recently been trying to > convince the professor who teaches the programming language design > course to consider mentioning scripting languages in the future. Along > those lines, I've been trying to think of features of Python, and > scrip

Re: Logging: Formatter: name of the function

2005-12-23 Thread Sylvain Defresne
Le vendredi 23 décembre 2005 à 16:23 +0100, Gregor Horvath a écrit : > Hi, > > Is there a possibility to format a log message to give the function name > where the log appears? > > Example > > import logging > > def aTestFunction(): >logger.debug("This is a message") > > The log should re

Re: print UTF-8 file with BOM

2005-12-23 Thread Martin v. Löwis
John Bauman wrote: > UTF-8 shouldn't need a BOM, as it is designed for character streams, and > there is only one logical ordering of the bytes. Only UTF-16 and greater > should output a BOM, AFAIK. Yes and no. Yes, UTF-8 does not need a BOM to identify endianness. No, usage of the BOM with UTF

Re: sorting with expensive compares?

2005-12-23 Thread Steven D'Aprano
On Fri, 23 Dec 2005 19:26:11 +0100, Peter Otten wrote: > Dan Stromberg wrote: > >> I'm wanting to sort a large number of files, like a bunch of output files >> from a large series of rsh or ssh outputs on a large series of distinct >> machines, a music collection in .ogg format (strictly redistri

Re: Herds of cats

2005-12-23 Thread Mike Meyer
Steve Holden <[EMAIL PROTECTED]> writes: > Alex Martelli wrote: >> Not a bad point at all, although perhaps not entirely congruent to >> open >> source: hiring key developers has always been a possibility (net of >> non-compete agreements, but I'm told California doesn't like those). California pl

query on csv file reading and replacing

2005-12-23 Thread muttu2244
Hi everybody Am trying to read a csv file "temp.csv", which has the below info, compName macAddripAddr opSys Chris-Dev 0003469F44CC 10.160.24.226 Microsoft Windows XP Professional Shivayogi-Dev 000D5234F44C 10.160.24.136 Microsoft Windows XP Profe

Re: sorting with expensive compares?

2005-12-23 Thread Steven D'Aprano
On Fri, 23 Dec 2005 09:20:55 -0800, bonono wrote: > > Dan Stromberg wrote: [snip] >> I've been using the following compare function, which in short checks, in >> order: >> >> 1) device number >> 2) inode number >> 3) file length >> 4) the beginning of the file >> 5) an md5 hash of the entire fi

pyQt for windows

2005-12-23 Thread relativity
I have downloaded and installed pyQt 3.14 educational but when I run any of the examples I get an error saying qt-mtedu333.dll was not found. I have also installed the qt4 opensource version for windows but I am not sure everything was set up correctly. When I run configure it complains about f

Re: Indentation/whitespace

2005-12-23 Thread Terry Hancock
On Fri, 23 Dec 2005 11:51:23 -0700 Dave Benjamin <[EMAIL PROTECTED]> wrote: > +1 on the preprocessor idea, especially if it would allow > us to hook in at the AST level as well. (No comment on > the curlies. ;) Only +0 on it myself, but I do know of a use-case -- certain types of web-templating f

Re: How to call function which is in one program ...

2005-12-23 Thread Shahriar Shamil Uulu
Thank you Fredrik Lundh for your help ... it worked ... the problem was in saving of file first.py Fredrik Lundh wrote: > "Shahriar Shamil Uulu" wrote: > > > i got another questions. For example i have two programs in python > > like: first.py, second.py. > > In first.py i have a function test() li

run line or selection

2005-12-23 Thread linda.s
is there any tool like "run line or selection" in Pythonwin? Thanks! -- http://mail.python.org/mailman/listinfo/python-list

Re: Vaults of Parnassus hasn't been updated for months

2005-12-23 Thread Do Re Mi chel La Si Do
Hi! >>> Just a poll: Who misses the Vaults of Parnassus like me? Me (+1) @-salutations Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: Indentation/whitespace

2005-12-23 Thread Thomas Bartkus
"Joe" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Is Python going to support s syntax the does not use it's infamous > whitespace rules? I recall reading that Python might include such a > feature. Or, maybe just a brace-to-indentation preprocessor would be > sufficient. > > Many

jython/wlst: How to avoid newlines in output from "cd" command (and others)

2005-12-23 Thread davidmichaelkarr
I'm using WebLogic Scripting Tool, which uses Jython, which uses Python 2.1. In a script I'm writing, executing a "cd()" always emits a newline to stdout. Is there a way to make it not emit that newline on the "cd()" command (and others like it)? -- http://mail.python.org/mailman/listinfo/pytho

Re: Parsing a date-time string?

2005-12-23 Thread linda.s
Hi, I got the message of "There was an error in the DDE conversation with Pythonwin" when I tried to run Pythonwin. I googled and found the possible solution is: modify the Pythonwin shortcut to pass a "/nodde" command-line option. I got lost how to do that. Thanks for any help! -- http://mail.pyt

Re: Some errors when running code in diveintopython: (

2005-12-23 Thread beryan
El Fri, 23 Dec 2005 05:18:30 -0800, iclinux escribió: > I can visit those two websites above, but when I run your code, I get > those errors(BTW,I have closed my firewall > ): > import socket socket.getaddrinfo("www.xmethods.net", 80) > > Traceback (most recent call last): > File "",

Re: Indentation/whitespace

2005-12-23 Thread Dave Benjamin
Alex Martelli wrote: > The main reason I suggest a general-purpose mechanism for the hooking-up > of the preprocessor is that such a mechanism might stand a chance to be > accepted (via the usual PEP procedure), as long as other interesting use > cases can be found; I suspect that if the only use c

Re: Providing 'default' value with raw_input()?

2005-12-23 Thread Scott David Daniels
planetthoughtful wrote: > ... > I had thought to build GUIs in wxPython - is Tkinter any easier to > learn? I certainly found Tkinter easier. There are a couple of good tutorials (and there is always the Grayson book) on the web to get started. What is easiest to learn is (in many cases) a prope

Re: sorting with expensive compares?

2005-12-23 Thread Steve Holden
[EMAIL PROTECTED] wrote: > Dan Stromberg wrote: [...] >>I've been using the following compare function, which in short checks, in >>order: >> >>1) device number >>2) inode number >>3) file length >>4) the beginning of the file >>5) an md5 hash of the entire file >>6) the entire file [...] > Why wou

Re: sorting with expensive compares?

2005-12-23 Thread Peter Otten
Dan Stromberg wrote: > I'm wanting to sort a large number of files, like a bunch of output files > from a large series of rsh or ssh outputs on a large series of distinct > machines, a music collection in .ogg format (strictly redistributable and > legally purchased music), a collection of .iso cd

Re: Indentation/whitespace

2005-12-23 Thread Alex Martelli
Joe <[EMAIL PROTECTED]> wrote: > Is Python going to support s syntax the does not use it's infamous > whitespace rules? No, never (even apart from the "its" vs "it's" issue here...;-). > I recall reading that Python might include such a > feature. And I recall reading that Elvis is still alive

Re: Indentation/whitespace

2005-12-23 Thread Larry Bates
Joe wrote: > Is Python going to support s syntax the does not use it's infamous > whitespace rules? I recall reading that Python might include such a > feature. Or, maybe just a brace-to-indentation preprocessor would be > sufficient. > > Many people think Python's syntax makes sense. There are st

Re: Guido at Google

2005-12-23 Thread rbt
Luis M. González wrote: > rbt wrote: >> Go right ahead. Perhaps we should do one for Perl too: >> >> It's like having King Kong as your very own personal body guard ;) > > Good analogy: > You know, they call Perl the "eight-hundred-pound gorilla" of scripting > languages. Absolutely. It's big, ha

Re: sorting with expensive compares?

2005-12-23 Thread Alex Martelli
Dan Stromberg <[EMAIL PROTECTED]> wrote: ... > I'm wanting to sort a large number of files, like a bunch of output files > from a large series of rsh or ssh outputs on a large series of distinct > machines, a music collection in .ogg format (strictly redistributable and > legally purchased music

Indentation/whitespace

2005-12-23 Thread Joe
Is Python going to support s syntax the does not use it's infamous whitespace rules? I recall reading that Python might include such a feature. Or, maybe just a brace-to-indentation preprocessor would be sufficient. Many people think Python's syntax makes sense. There are strong feelings both ways

Re: urlretrieve() questions

2005-12-23 Thread Dan M
> Pretty straight forward...but what I'm finding is if the > url is pointing to a file that is not there, the server > returns a file that's a web page displaying a 404 error. > > Anyone have any recommendations for handling this? You're right, that is NOT documented in a way that's easy to find

Re: How to get started in GUI Programming?

2005-12-23 Thread Heiko Wundram
Tim Peters wrote: > My wild-ass guess is that, same as most other Open > Source communities, we average [at] about one asshole per member. Tim, you saved my day. QOTW! --- Heiko. -- http://mail.python.org/mailman/listinfo/python-list

Re: sorting with expensive compares?

2005-12-23 Thread bonono
Dan Stromberg wrote: > On Thu, 22 Dec 2005 22:06:42 +, Dan Stromberg wrote: > > > > > Hi folks. > > > > Python appears to have a good sort method, but when sorting array elements > > that are very large, and hence have very expensive compares, is there some > > sort of already-available sort f

Re: Vaults of Parnassus hasn't been updated for months

2005-12-23 Thread Wolfgang Grafen
> Everybody is using the cheeseshop now: > > http://cheeseshop.python.org/pypi?%3Aaction=browse > Everybody excluding me. Looks like a huge pile of cheese thrown above a table. Sorry, I don't find what I am looking for. Can somebody explain the improvement over Parnassus for me? It is not onl

Re: sorting with expensive compares?

2005-12-23 Thread Dan Stromberg
On Thu, 22 Dec 2005 22:06:42 +, Dan Stromberg wrote: > > Hi folks. > > Python appears to have a good sort method, but when sorting array elements > that are very large, and hence have very expensive compares, is there some > sort of already-available sort function that will merge like elemen

Re: Herds of cats

2005-12-23 Thread Steve Holden
Alex Martelli wrote: > Nicola Musatti <[EMAIL PROTECTED]> wrote: >... > Ah, the closed source days! Back then you could just buy the company and be done with it. Now you have to chase developers one by one all over the world... ;-) >>> >>>. >>>You propellor-head

Re: Python IMAP4 Memory Error

2005-12-23 Thread Dody Suria Wijaya
like magic it did the trick :D This should be applied to future Python release. Thanks. Fredrik Lundh wrote: > Jean-Paul Calderone wrote: > if you look at the debug output (which you may already have done), > it's an obvious case of fragmentation-inducing behaviour. any malloc- > based system ma

Re: How to get started in GUI Programming?

2005-12-23 Thread Tim Peters
[D H] > ... > Doesn't the python community already have enough assholes as it is? The Python Software Foundation may well wish to fund a study on that. Write a proposal! My wild-ass guess is that, same as most other Open Source communities, we average about one asshole per member. I'd love to p

Re: How to get started in GUI Programming?

2005-12-23 Thread D H
Kay Schluehr wrote: > [EMAIL PROTECTED] wrote: > >>I am trying to learn GUI programming in Python, but have to confess I >>am finding it difficult. > > > Don't do it if you can prevent it. What kind of helpful advice is that? > Conclusion: if you are already familiar with BASIC I would just >

Re: What is unique about Python?

2005-12-23 Thread D H
Kay Schluehr wrote: > gsteff wrote: > > >>So I'm wondering, what is >>innovative about Python, either in its design or implementation? Or is >>its magic really just in combining many useful features of prior >>languages in an unusually pleasant way? >> >>Greg > > > The latter. > > http://www.

Re: Guido at Google

2005-12-23 Thread Luis M. González
rbt wrote: > Go right ahead. Perhaps we should do one for Perl too: > > It's like having King Kong as your very own personal body guard ;) Good analogy: You know, they call Perl the "eight-hundred-pound gorilla" of scripting languages. Although most of the time, it would be a a very unsuitable bo

Re: Logging: Formatter: name of the function

2005-12-23 Thread Bengt Richter
On Fri, 23 Dec 2005 16:23:57 +0100, Gregor Horvath <[EMAIL PROTECTED]> wrote: >Hi, > >Is there a possibility to format a log message to give the function name >where the log appears? > >Example > >import logging > >def aTestFunction(): > logger.debug("This is a message") > >The log should read:

Re: print UTF-8 file with BOM

2005-12-23 Thread Walter Dörwald
John Bauman wrote: > UTF-8 shouldn't need a BOM, as it is designed for character streams, and > there is only one logical ordering of the bytes. Only UTF-16 and greater > should output a BOM, AFAIK. However there's a pending patch (http://bugs.python.org/1177307) for a new encoding named utf-

Re: Providing 'default' value with raw_input()?

2005-12-23 Thread Alex Martelli
planetthoughtful <[EMAIL PROTECTED]> wrote: > Thank you for the suggestion, I'll have a look at this as an > alternative. > > I must admit, it seems a little like a 'kludge', though -- but probably > a necessary one, given the limitations of the OS. Hmmm, what OS? The recipe I mentioned is prob

Re: Herds of cats

2005-12-23 Thread Alex Martelli
Nicola Musatti <[EMAIL PROTECTED]> wrote: ... > > >Ah, the closed source days! Back then you could just buy the company > > >and be done with it. Now you have to chase developers one by one all > > >over the world... ;-) > > . > > You propellor-heads (I write that in all fond

Re: Detect File System changes

2005-12-23 Thread Lawrence Oluyede
Il 2005-12-23, Lukas Meyer <[EMAIL PROTECTED]> ha scritto: > Hello, > > I'm trying to detect changes in a directory. E.g if someone crates a > file, i'll execute another function on this file. pyinotify (wrapper of inotify) is for you (it's not portable however) http://pyinotify.sourceforge.net/

Re: Guido at Google

2005-12-23 Thread David E. Konerding DSD staff
In article <[EMAIL PROTECTED]>, Greg Stein wrote: > Guido would acknowledge a query, but never announce it. That's not his > style. > > This should have a positive impact on Python. His job description has a > *very* significant portion of his time dedicated specifically to > working on Python. (m

Re: Some errors when running code in diveintopython: (

2005-12-23 Thread David Wahler
Istvan Albert wrote: > I remeber once I had truly puzzling problem that manifested itself the > same way ... Firefox and cygwin python would work fine but the windows > python would raise errors when trying to connect via http ... > > ... finally I realized that the day before IE was set to use a p

Re: GUI and graph

2005-12-23 Thread bearophileHUGS
Maybe this graph library can be useful to you: http://sourceforge.net/projects/pynetwork/ Bye, bearophile -- http://mail.python.org/mailman/listinfo/python-list

Re: print UTF-8 file with BOM

2005-12-23 Thread John Bauman
UTF-8 shouldn't need a BOM, as it is designed for character streams, and there is only one logical ordering of the bytes. Only UTF-16 and greater should output a BOM, AFAIK. -- http://mail.python.org/mailman/listinfo/python-list

Have a very Pythonic Christmasolstihanukwanzaa

2005-12-23 Thread infidel
Happy holidays to my fellow Pythonistas. Love, Saint Infidel the Skeptic -- http://mail.python.org/mailman/listinfo/python-list

Re: GUI and graph

2005-12-23 Thread Fabrizio Milo
> pydot is pretty amazing in its abilitity to make nice, readable renderings of > graph data. > http://dkbza.org/pydot.html Well It's thanks to graphwiz.. http://www.research.att.com/sw/tools/graphviz/ I suggest to read the DOT language specification ( it is really easy ) and to roll up your ow

Re: Providing 'default' value with raw_input()?

2005-12-23 Thread planetthoughtful
Thank you for the suggestion, I'll have a look at this as an alternative. I must admit, it seems a little like a 'kludge', though -- but probably a necessary one, given the limitations of the OS. I'm assuming os.popen() keeps track of when the editor closes? Or would I have to manually fire an 'o

Re: Providing 'default' value with raw_input()?

2005-12-23 Thread planetthoughtful
My intention is to build a GUI for this app, yes, but given that I'm about a week old in my learning of Python, I thought a command-line app was a better place to start. I'm actually quite surprised at how featured I've managed to make this app all things considered, and now I'm running into things

urlretrieve() questions

2005-12-23 Thread Rene Lopez
I'm building an app that needs to download a file from the web. I'm trying to make sure I catch any issues with the download but I've run into a problem. here's what I have so far: try: urllib.urlretrieve(url,filename) print "File: ", filename, " downloaded" except IOError: print

Logging: Formatter: name of the function

2005-12-23 Thread Gregor Horvath
Hi, Is there a possibility to format a log message to give the function name where the log appears? Example import logging def aTestFunction(): logger.debug("This is a message") The log should read: aTestFunction This is a message. There is a possibilty to format the module namewith %(m

Re: sorting with expensive compares?

2005-12-23 Thread Aahz
In article <[EMAIL PROTECTED]>, Dan Stromberg <[EMAIL PROTECTED]> wrote: > >Python appears to have a good sort method, but when sorting array >elements that are very large, and hence have very expensive compares, >is there some sort of already-available sort function that will merge >like elements

  1   2   >