Re: - E04 - Leadership! Google, Guido van Rossum, PSF

2006-01-12 Thread Alex Martelli
Dave Hansen [EMAIL PROTECTED] wrote: ... Google also has technical offices in the New York area. City? shudder. I moved out of the 'burbs of Minneapolis about 6 years ago, not because of the weather, but because it was getting too crowded for me. Yep, city -- specifically on Broadway,

Re: How to remove subset from a file efficiently?

2006-01-12 Thread Raymond Hettinger
AJL wrote: How fast does this run? a = set(file('PSP320.dat')) b = set(file('CBR319.dat')) file('PSP-CBR.dat', 'w').writelines(a.difference(b)) Turning PSP into a set takes extra time, consumes unnecessary memory, eliminates duplicates (possibly a bad thing), and loses the original

Re: More than you ever wanted to know about objects [was: Is everything a refrence or isn't it]

2006-01-12 Thread Bengt Richter
On Fri, 13 Jan 2006 03:12:00 +, Steve Holden [EMAIL PROTECTED] wrote: [...] Note to nitpickers -- Please note that I *am* oversimplifying here, and the nitpickers will undoubtedly find many threadsworth of valuable material here. The point is to develop an understanding of

Re: HP open source printer drivers are in Python

2006-01-12 Thread Ben Finney
Andy Leszczynski [EMAIL PROTECTED] writes: I have a specific question, anybody is familiar? Only the omniscient, prescient or telepathic can be familiar with your question before you ask it. URL:http://www.catb.org/~esr/faqs/smart-questions.html -- \ One of the most important

Re: ajax python module??

2006-01-12 Thread Peter Hansen
Diez B. Roggisch wrote: Mark Engstrom wrote: Does anyone have a recommendation on the best AJAX python module? If it is the best is obviously an arguable assertion - but I very much like MochiKit from Bob Ippolito. http://www.mochikit.org/ I heartily second the recommendation, but

Re: How can I make a dictionary that marks itself when it's modified?

2006-01-12 Thread Raymond Hettinger
[EMAIL PROTECTED] It's important that I can read the contents of the dict without flagging it as modified, but I want it to set the flag the moment I add a new element or alter an existing one (the values in the dict are mutable), this is what makes it difficult. Because the values are

Re: Real-world use cases for map's None fill-in feature?

2006-01-12 Thread Raymond Hettinger
[Paul Rubin] ISTR there's also a plan to eliminate map in Python 3.0 in favor of list comprehensions. That would get rid of the possibility of using map(None...) instead of izip_longest. This needs to be thought through. Not to fear. If map() eventually loses its built-in status, it will

Re: another docs problem - imp

2006-01-12 Thread Steve Holden
[EMAIL PROTECTED] wrote: Fredrik Lundh [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] [EMAIL PROTECTED] wrote: from the find_module documentation: find_module( name[, path]) [...] Reading more carefully is always useful. But that does not remove the obligation of

HP open source printer drivers are in Python

2006-01-12 Thread Andy Leszczynski
I have a specific question, anybody is familiar? A. -- http://mail.python.org/mailman/listinfo/python-list

Re: flatten a level one list

2006-01-12 Thread Alex Martelli
Nick Craig-Wood [EMAIL PROTECTED] wrote: Sion Arrowsmith [EMAIL PROTECTED] wrote: sum(...) sum(sequence, start=0) - value If you're using sum() as a 1-level flatten you need to give it start=[]. Except if you are trying to sum arrays of strings... sum([a,b,c], )

Creating shortcuts?

2006-01-12 Thread Ron Griswold
Hi Folks, Is it possible to create a shortcut to a file in Python? I need to do this in both win32 and OSX. I've already got it covered in Linux by system(ln...). Thanks, Ron Griswold Character TD R!OT Pictures [EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-list

Re: time.strftime() NOT producing RFC2822-compliant Date strings?

2006-01-12 Thread Peter Hansen
richard wrote: I'm just dealing with a Roundup bug report in which it's pointed out that time.strftime() doesn't produce RFC2822-compliant date strings when in a locale other than C. While it doesn't fix strftime() (though a change to the docs might do that wink), using

Re: Remote Function Call

2006-01-12 Thread Irmen de Jong
Mike wrote: Hi, I have two machines. A python program on machine 1 needs to make a python call to a method in machine 2. What is the most efficient / fast / programmer friendly way to do it? - XML-RPC? - Http Call? use Pyro http://pyro.sourceforge.net --Irmen --

Re: Why is there no post-pre increment operator in python

2006-01-12 Thread Mike Meyer
[EMAIL PROTECTED] writes: Anyone has any idea on why is there no post/pre increment operators in python ? For lots of good reasons. Although the statement: ++j works but does nothing So does --j. They both parse as a value with two unary operators applied to it in succession: +(+(j))

Re: flatten a level one list

2006-01-12 Thread bonono
David Murmann wrote: Robin Becker schrieb: # New attempts: from itertools import imap def flatten4(x, y): '''D Murman''' l = [] list(imap(l.extend, izip(x, y))) return l from Tkinter import _flatten def flatten5(x, y): '''D Murman''' return

Re: Is 'everything' a refrence or isn't it?

2006-01-12 Thread Bryan Olson
[EMAIL PROTECTED] wrote: The reason is that I am still trying to figure out what a value is myself. Do all objects have values? Yes. If not which do and which don't? What's the value of int(1)? An object? Some otherwise unreachable thing that represents the abstract concept of the

Re: atexit + threads = bug?

2006-01-12 Thread skip
David atExitFunc is called when the main thread terminates, rather than David when the process exits. The atexit documentation contains David several warnings, but nothing about this. Is this a bug? This might be a bug, but I can't see how it can be in atexit. Atexit just

[ python-Bugs-1403349 ] in email can't get attachments' filenames using get_filename

2006-01-12 Thread SourceForge.net
Bugs item #1403349, was opened at 2006-01-11 22:47 Message generated for change (Settings changed) made by birkenfeld You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=105470aid=1403349group_id=5470 Please note that this message will contain a full copy of the comment

[ python-Bugs-1404213 ] os.getlogin() goes **poof**

2006-01-12 Thread SourceForge.net
Bugs item #1404213, was opened at 2006-01-12 20:59 Message generated for change (Comment added) made by wilson1442 You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=105470aid=1404213group_id=5470 Please note that this message will contain a full copy of the comment

[ python-Bugs-1404213 ] os.getlogin() goes **poof**

2006-01-12 Thread SourceForge.net
Bugs item #1404213, was opened at 2006-01-12 20:59 Message generated for change (Comment added) made by wilson1442 You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=105470aid=1404213group_id=5470 Please note that this message will contain a full copy of the comment

[ python-Bugs-1404213 ] os.getlogin() goes **poof**

2006-01-12 Thread SourceForge.net
Bugs item #1404213, was opened at 2006-01-12 21:59 Message generated for change (Comment added) made by birkenfeld You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=105470aid=1404213group_id=5470 Please note that this message will contain a full copy of the comment

[ python-Bugs-1396543 ] urlparse is confused by /

2006-01-12 Thread SourceForge.net
Bugs item #1396543, was opened at 2006-01-04 05:57 Message generated for change (Comment added) made by pterk You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=105470aid=1396543group_id=5470 Please note that this message will contain a full copy of the comment thread,

<    1   2   3