Re: Generating Tones With Python

2009-05-17 Thread Tim Harig
On 2009-05-18, Adam Gaskins wrote: > I am pretty sure this shouldn't be as hard as I'm making it to be, but > how does one go about generating tones of specific frequency, volume, and > L/R pan? I've been digging around the internet for info, and found a few This can be done with SDL which wou

Re: Generating Tones With Python

2009-05-17 Thread John O'Hagan
On Mon, 18 May 2009, Adam Gaskins wrote: > I am pretty sure this shouldn't be as hard as I'm making it to be, but > how does one go about generating tones of specific frequency, volume, and > L/R pan? I've been digging around the internet for info, and found a few > examples. One was with gstreamer

Re: [Python-Dev] PEP 384: Defining a Stable ABI

2009-05-17 Thread Martin v. Löwis
>>> It also might make it easier for alternate implementations to support >>> the same API so some modules could work cross implementation - but I >>> suspect that's a non-goal of this PEP :). >>> >> >> Indeed :-) I'm also skeptical that this would actually allow >> cross-implementation module

Which C compiler?

2009-05-17 Thread Jive Dadson
I am using Python 2.4. I need to make a native Python extension for Windows XP. I have both VC++ 6.0 and Visual C++ 2005 Express Edition. Will VC++ 6.0 do the trick? That would be easier for me, because the project is written for that one. If not, will the 2005 compiler do it? Thanks much,

Re: Generating Tones With Python

2009-05-17 Thread Matus
try http://www.pygame.org, as far as I remember there is a way to generate sound arrays though not sure aboout the pan m Adam Gaskins wrote: > I am pretty sure this shouldn't be as hard as I'm making it to be, but > how does one go about generating tones of specific frequency, volume, and > L/R

Re: http://orbited.org/ - anybody using it?

2009-05-17 Thread alex23
On May 18, 9:14 am, Aljosa Mohorovic wrote: > can anybody comment onhttp://orbited.org/? > is it an active project? does it work? I have no idea about your second question but looking at PyPI,the module was last updated on the 9th of this much, so I'd say it's very much an active project: http:/

Python mail truncate problem

2009-05-17 Thread David
Hi, I am writing Python script to process e-mails in a user's mail account. What I want to do is to update that e-mail's Status to 'R' after processing it, however, the following script truncates old e- mails even though it updates that e-mail's Status correctly. Anybody knows how to fix this? Th

Re: Help with Tkinter on OS X --- driving me insane!

2009-05-17 Thread Edward Grefenstette
Bingo! Updating to Python 6.2.2 did the trick (I had 6.2). I just had to relink the /usr/bin/python to the Current directory in /Library/ Frameworks/Python.framework/Versions/ and everything worked without deletions etc. Thanks for your help, everyone! Best, Edward -- http://mail.python.org/mailm

Re: Help with Tkinter on OS X --- driving me insane!

2009-05-17 Thread Ned Deily
In article , Edward Grefenstette wrote: > Bingo! Updating to Python 6.2.2 did the trick (I had 6.2). I just had > to relink the /usr/bin/python to the Current directory in /Library/ > Frameworks/Python.framework/Versions/ and everything worked without > deletions etc. Thanks for your help, every

Generating Tones With Python

2009-05-17 Thread Adam Gaskins
I am pretty sure this shouldn't be as hard as I'm making it to be, but how does one go about generating tones of specific frequency, volume, and L/R pan? I've been digging around the internet for info, and found a few examples. One was with gstreamer, but I can't find much in the documentation

Re: Help with Tkinter on OS X --- driving me insane!

2009-05-17 Thread Kevin Walzer
Edward Grefenstette wrote: Whereas Tk 8.5 is installed in: === /Library/Frameworks/Tk.framework/Versions/8.5/ === Delete this one if you want to ensure that Python sees 8.4. -- Kevin Walzer Code by Kevin http://www.codebykevin.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Help with Tkinter on OS X --- driving me insane!

2009-05-17 Thread Edward Grefenstette
Thanks to Kevin and Ned for the pointers. The question is now this. Running find tells me I have tk.h in the following locations: === /Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/Tk.framework/ Versions/8.4/Headers/tk.h /Developer/SDKs/MacOSX10.4u.sdk/usr/include/tk.h /Developer/SDKs/Ma

Re: Help with Tkinter on OS X --- driving me insane!

2009-05-17 Thread Ned Deily
In article , Edward Grefenstette wrote: > I thought of this. I uninstalled Tk from macports, but the same error > crops up. Evidently, Tk 8.5 remains installed somewhere else, but I > don't know where. How can I find out? Look in /Library/Frameworks for Tcl.framework and Tk.framework. You can

Re: Adding a Par construct to Python?

2009-05-17 Thread Steven D'Aprano
On Sun, 17 May 2009 20:36:36 +0200, Diez B. Roggisch wrote: >> But reduce() can't tell whether the function being applied is >> commutative or not. I suppose it could special-case a handful of >> special cases (e.g. operator.add for int arguments -- but not floats!) >> or take a caller- supplied a

Re: [Python-Dev] PEP 384: Defining a Stable ABI

2009-05-17 Thread James Y Knight
On May 17, 2009, at 4:54 PM, Martin v. Löwis wrote: Currently, each feature release introduces a new name for the Python DLL on Windows, and may cause incompatibilities for extension modules on Unix. This PEP proposes to define a stable set of API functions which are guaranteed to be available f

Re: Help with Tkinter on OS X --- driving me insane!

2009-05-17 Thread Kevin Walzer
Edward Grefenstette wrote: I thought of this. I uninstalled Tk from macports, but the same error crops up. Evidently, Tk 8.5 remains installed somewhere else, but I don't know where. How can I find out? Best, Edward Look in /Library/Frameworks... Kevin Walzer Code by Kevin http://www.codebyk

Re: [Python-Dev] PEP 384: Defining a Stable ABI

2009-05-17 Thread Michael Foord
Martin v. Löwis wrote: Dino Viehland wrote: Dirkjan Ochtman wrote: It would seem to me that optimizations are likely to require data structure changes, for exactly the kind of core data structures that you're talking about locking down. But that's just a high-level view, I might be wron

Re: Adding a Par construct to Python?

2009-05-17 Thread Steven D'Aprano
On Sun, 17 May 2009 20:34:00 +0200, Diez B. Roggisch wrote: >>> My math-skills are a bit too rusty to qualify the exact nature of the >>> operation, commutativity springs to my mind. >> >> And how is reduce() supposed to know whether or not some arbitrary >> function is commutative? > > I don't

how to verify SSL certificate chain - M2 Crypto library?

2009-05-17 Thread skrobul
Hi, is there any simple way to do SSL certificate chain validation using M2Crypto or any other library ? Basically what I want to achieve is to be able to say if certificate chain contained in 'XYZ.pem' file is issued by known CA (list of common root-CA's certs should be loaded from separate dire

http://orbited.org/ - anybody using it?

2009-05-17 Thread Aljosa Mohorovic
can anybody comment on http://orbited.org/ ? is it an active project? does it work? Aljosa Mohorovic -- http://mail.python.org/mailman/listinfo/python-list

RE: [Python-Dev] PEP 384: Defining a Stable ABI

2009-05-17 Thread Dino Viehland
Dirkjan Ochtman wrote: > > It would seem to me that optimizations are likely to require data > structure changes, for exactly the kind of core data structures that > you're talking about locking down. But that's just a high-level view, > I might be wrong. > In particular I would guess that ref co

Re: [Python-Dev] PEP 384: Defining a Stable ABI

2009-05-17 Thread Martin v. Löwis
Dino Viehland wrote: > Dirkjan Ochtman wrote: >> It would seem to me that optimizations are likely to require data >> structure changes, for exactly the kind of core data structures that >> you're talking about locking down. But that's just a high-level view, >> I might be wrong. >> > > > In part

Re: Help with Tkinter on OS X --- driving me insane!

2009-05-17 Thread Edward Grefenstette
I thought of this. I uninstalled Tk from macports, but the same error crops up. Evidently, Tk 8.5 remains installed somewhere else, but I don't know where. How can I find out? Best, Edward > > > Have you installed Tk version 8.5? > > If so, remove it. You might also install the latest 8.4 version

Re: [Python-Dev] PEP 384: Defining a Stable ABI

2009-05-17 Thread Martin v. Löwis
Dirkjan Ochtman wrote: > On Mon, May 18, 2009 at 12:07 AM, "Martin v. Löwis" > wrote: >> I fail to see the relationship, so: no effect that I can see. >> >> Why do you think that optimization efforts could be related to >> the PEP 384 proposal? > > It would seem to me that optimizations are like

Re: Creating temperory files for a web application

2009-05-17 Thread sserrano
I would use a js plotting library, like http://code.google.com/p/flot/ On 8 mayo, 06:26, koranthala wrote: > Hi, >    I am doing web development using Django. I need to create an image > (chart) and show it to the users - based on some data which user > selects. >    My question is - how do I cre

Re: [Python-Dev] PEP 384: Defining a Stable ABI

2009-05-17 Thread Dirkjan Ochtman
On Mon, May 18, 2009 at 12:07 AM, "Martin v. Löwis" wrote: > I fail to see the relationship, so: no effect that I can see. > > Why do you think that optimization efforts could be related to > the PEP 384 proposal? It would seem to me that optimizations are likely to require data structure changes

Re: [Python-Dev] PEP 384: Defining a Stable ABI

2009-05-17 Thread Martin v. Löwis
>> Functions declared in the following header files are not part >> of the ABI: >> - cellobject.h >> - classobject.h >> - code.h >> - frameobject.h >> - funcobject.h >> - genobject.h >> - pyarena.h >> - pydebug.h >> - symtable.h >> - token.h >> - traceback.h > > What kind of effect does this have

Re: [Python-Dev] PEP 384: Defining a Stable ABI

2009-05-17 Thread Dirkjan Ochtman
On Sun, May 17, 2009 at 10:54 PM, "Martin v. Löwis" wrote: > Excluded Functions > -- > > Functions declared in the following header files are not part > of the ABI: > - cellobject.h > - classobject.h > - code.h > - frameobject.h > - funcobject.h > - genobject.h > - pyarena.h > - py

Re: Adding a Par construct to Python?

2009-05-17 Thread Paul Boddie
On 17 Mai, 14:05, jer...@martinfamily.freeserve.co.uk wrote: > From a user point of view I think that adding a 'par' construct to > Python for parallel loops would add a lot of power and simplicity, > e.g. > > par i in list: >     updatePartition(i) You can do this right now with a small amount of

PEP 384: Defining a Stable ABI

2009-05-17 Thread Martin v. Löwis
Thomas Wouters reminded me of a long-standing idea; I finally found the time to write it down. Please comment! Regards, Martin PEP: 384 Title: Defining a Stable ABI Version: $Revision: 72754 $ Last-Modified: $Date: 2009-05-17 21:14:52 +0200 (So, 17. Mai 2009) $ Author: Martin v. Löwis Status: D

Re: Swapping superclass from a module

2009-05-17 Thread Terry Reedy
Peter Otten wrote: Terry Reedy wrote: If the names of superclasses is resolved when classes are instantiated, the patching is easy. If, as I would suspect, the names are resolved when the classes are created, before the module becomes available to the importing code, then much more careful a

Re: pushback iterator

2009-05-17 Thread Matus
Luis Alberto Zarrabeitia Gomez wrote: > Quoting Mike Kazantsev : > >> And if you're "pushing back" the data for later use you might just as >> well push it to dict with the right indexing, so the next "pop" won't >> have to roam thru all the values again but instantly get the right one >> from t

Seeking old post on developers who like IDEs vs developers who like simple languages

2009-05-17 Thread Steve Ferg
A few years ago someone, somewhere on the Web, posted a blog in which he observed that developers, by general temperament, seem to fall into two groups. On the one hand, there are developers who love big IDEs with lots of features (code generation, error checking, etc.), and rely on them to provid

threading issue

2009-05-17 Thread anusha k
hi, i am using pygtk,glade in the front end and postgresql,python-twisted (xmlrpc) as the back end.My issue is i am trying to add the progress bar in my application but when the progress bar comes up it is blocking the backend process.So i started using threading in my application.But when i added

Re: Adding a Par construct to Python?

2009-05-17 Thread Diez B. Roggisch
But reduce() can't tell whether the function being applied is commutative or not. I suppose it could special-case a handful of special cases (e.g. operator.add for int arguments -- but not floats!) or take a caller- supplied argument that tells it whether the function is commutative or not. But

Re: Adding a Par construct to Python?

2009-05-17 Thread Diez B. Roggisch
My math-skills are a bit too rusty to qualify the exact nature of the operation, commutativity springs to my mind. And how is reduce() supposed to know whether or not some arbitrary function is commutative? I don't recall anybody saying it should know that - do you? The OP wants to introdu

Re: Adding a Par construct to Python?

2009-05-17 Thread MRAB
Steven D'Aprano wrote: On Sun, 17 May 2009 17:19:15 +0100, MRAB wrote: But reduce()? I can't see how you can parallelize reduce(). By its nature, it has to run sequentially: it can't operate on the nth item until it is operated on the (n-1)th item. It can calculate the items in parallel, I

Re: Adding a Par construct to Python?

2009-05-17 Thread Steven D'Aprano
On Sun, 17 May 2009 17:19:15 +0100, MRAB wrote: >> But reduce()? I can't see how you can parallelize reduce(). By its >> nature, it has to run sequentially: it can't operate on the nth item >> until it is operated on the (n-1)th item. >> > It can calculate the items in parallel, I don't underst

Re: Adding a Par construct to Python?

2009-05-17 Thread Steven D'Aprano
On Sun, 17 May 2009 18:24:34 +0200, Diez B. Roggisch wrote: >> But reduce()? I can't see how you can parallelize reduce(). By its >> nature, it has to run sequentially: it can't operate on the nth item >> until it is operated on the (n-1)th item. > > That depends on the operation in question. Add

Re: Adding a Par construct to Python?

2009-05-17 Thread Gary Herron
MRAB wrote: Steven D'Aprano wrote: On Sun, 17 May 2009 09:26:35 -0500, Grant Edwards wrote: On 2009-05-17, Steven D'Aprano wrote: On Sun, 17 May 2009 05:05:03 -0700, jeremy wrote: From a user point of view I think that adding a 'par' construct to Python for parallel loops would add a lot o

Re: Adding a Par construct to Python?

2009-05-17 Thread Roy Smith
In article <0220260f$0$20645$c3e8...@news.astraweb.com>, Steven D'Aprano wrote: > But reduce()? I can't see how you can parallelize reduce(). By its > nature, it has to run sequentially: it can't operate on the nth item > until it is operated on the (n-1)th item. Well, if you're willing to im

Re: pushback iterator

2009-05-17 Thread Luis Alberto Zarrabeitia Gomez
Quoting Mike Kazantsev : > And if you're "pushing back" the data for later use you might just as > well push it to dict with the right indexing, so the next "pop" won't > have to roam thru all the values again but instantly get the right one > from the cache, or just get on with that iterable unt

Re: Adding a Par construct to Python?

2009-05-17 Thread Diez B. Roggisch
But reduce()? I can't see how you can parallelize reduce(). By its nature, it has to run sequentially: it can't operate on the nth item until it is operated on the (n-1)th item. That depends on the operation in question. Addition for example would work. My math-skills are a bit too rusty to qu

Re: Adding a Par construct to Python?

2009-05-17 Thread MRAB
Steven D'Aprano wrote: On Sun, 17 May 2009 09:26:35 -0500, Grant Edwards wrote: On 2009-05-17, Steven D'Aprano wrote: On Sun, 17 May 2009 05:05:03 -0700, jeremy wrote: From a user point of view I think that adding a 'par' construct to Python for parallel loops would add a lot of power and s

Re: pushback iterator

2009-05-17 Thread Mike Kazantsev
Somehow, I got the message off the list. On Sun, 17 May 2009 17:42:43 +0200 Matus wrote: > > Sounds to me more like an iterator with a cache - you can't really pull > > the line from a real iterable like generator function and then just push > > it back. > > true, that is why you have to implem

Re: Adding a Par construct to Python?

2009-05-17 Thread Steven D'Aprano
On Sun, 17 May 2009 09:26:35 -0500, Grant Edwards wrote: > On 2009-05-17, Steven D'Aprano > wrote: >> On Sun, 17 May 2009 05:05:03 -0700, jeremy wrote: >> >>> From a user point of view I think that adding a 'par' construct to >>> Python for parallel loops would add a lot of power and simplicity,

Re: Help with Tkinter on OS X --- driving me insane!

2009-05-17 Thread Benjamin Kaplan
On Sun, May 17, 2009 at 8:42 AM, Piet van Oostrum wrote: > > Edward Grefenstette (EG) wrote: > > >EG> Any attempt to do anything with Tkinter (save import) raises the > >EG> following show-stopping error: > > >EG> "Traceback (most recent call last): > >EG> File "", line 1, in > >EG> Fil

Re: pushback iterator

2009-05-17 Thread Mike Kazantsev
On Sun, 17 May 2009 16:39:38 +0200 Matus wrote: > I searches web and python documentation for implementation of pushback > iterator but found none in stdlib. > > problem: > > when you parse a file, often you have to read a line from parsed file > before you can decide if you want that l

Re: Adding a Par construct to Python?

2009-05-17 Thread bearophileHUGS
Jeremy Martin, nowadays a parallelfor can be useful, and in future I'll try to introduce similar things in D too, but syntax isn't enough. You need a way to run things in parallel. But Python has the GIL. To implement a good parallel for your language may also need more immutable data structures (t

pushback iterator

2009-05-17 Thread Matus
Hallo pylist, I searches web and python documentation for implementation of pushback iterator but found none in stdlib. problem: when you parse a file, often you have to read a line from parsed file before you can decide if you want that line it or not. if not, it would be a nice feature

Re: Adding a Par construct to Python?

2009-05-17 Thread Grant Edwards
On 2009-05-17, Steven D'Aprano wrote: > On Sun, 17 May 2009 05:05:03 -0700, jeremy wrote: > >> From a user point of view I think that adding a 'par' construct to >> Python for parallel loops would add a lot of power and simplicity, e.g. >> >> par i in list: >> updatePartition(i) >> >> There

Re: What's the use of the else in try/except/else?

2009-05-17 Thread Beni Cherniavsky
[Long mail. You may skip to the last paragraph to get the summary.] On May 12, 12:35 pm, Steven D'Aprano wrote: > To really be safe, that should become: > > try: >     rsrc = get(resource) > except ResourceError: >     log('no more resources available') >     raise > else: >     try: >         do

Re: Photoimage on button appears pixelated when button is disabled

2009-05-17 Thread Tim Golden
Dustan wrote: On May 15, 2:59 pm, Dustan wrote: In tkinter, when I place a photoimage on a button and disable the button, the image has background dots scattered through the image. Searching the web, I wasn't able to find any documentation on this behavior, nor how to turn it off. So here I am.

Re: Adding a Par construct to Python?

2009-05-17 Thread Steven D'Aprano
On Sun, 17 May 2009 05:05:03 -0700, jeremy wrote: > From a user point of view I think that adding a 'par' construct to > Python for parallel loops would add a lot of power and simplicity, e.g. > > par i in list: > updatePartition(i) > > There would be no locking and it would be the programme

Re: Photoimage on button appears pixelated when button is disabled

2009-05-17 Thread Dustan
On May 15, 2:59 pm, Dustan wrote: > In tkinter, when I place a photoimage on a button and disable the > button, the image has background dots scattered through the image. > Searching the web, I wasn't able to find any documentation on this > behavior, nor how to turn it off. So here I am. How do I

Re: Help with Tkinter on OS X --- driving me insane!

2009-05-17 Thread Piet van Oostrum
> Edward Grefenstette (EG) wrote: >EG> Any attempt to do anything with Tkinter (save import) raises the >EG> following show-stopping error: >EG> "Traceback (most recent call last): >EG> File "", line 1, in >EG> File "/Library/Frameworks/Python.framework/Versions/2.6/lib/ >EG> python2.6/

Re: Adding a Par construct to Python?

2009-05-17 Thread jeremy
On 17 May, 13:05, jer...@martinfamily.freeserve.co.uk wrote: > From a user point of view I think that adding a 'par' construct to > Python for parallel loops would add a lot of power and simplicity, > e.g. > > par i in list: >     updatePartition(i) > ...actually, thinking about this further, I thi

Adding a Par construct to Python?

2009-05-17 Thread jeremy
>From a user point of view I think that adding a 'par' construct to Python for parallel loops would add a lot of power and simplicity, e.g. par i in list: updatePartition(i) There would be no locking and it would be the programmer's responsibility to ensure that the loop was truly parallel an

Fwd: [python-win32] Fwd: Autosizing column widths in Excel using win32com.client ?

2009-05-17 Thread James Matthews
-- Forwarded message -- From: Tim Golden Date: Sun, May 17, 2009 at 1:00 PM Subject: Re: [python-win32] Fwd: Autosizing column widths in Excel using win32com.client ? To: Cc: Python-Win32 List James Matthews wrote: > -- Forwarded message -- > From: > Date: Fri,

Re: Best practice for operations on streams of text

2009-05-17 Thread Beni Cherniavsky
On May 8, 12:07 am, MRAB wrote: > def compound_filter(token_stream): >      stream = lowercase_token(token_stream) >      stream = remove_boring(stream) >      stream = remove_dupes(stream) >      for t in stream(t): >          yield t The last loop is superfluous. You can just do:: def compoun

Help with Tkinter on OS X --- driving me insane!

2009-05-17 Thread Edward Grefenstette
Any attempt to do anything with Tkinter (save import) raises the following show-stopping error: "Traceback (most recent call last): File "", line 1, in File "/Library/Frameworks/Python.framework/Versions/2.6/lib/ python2.6/lib-tk/Tkinter.py", line 1645, in __init__ self._loadtk() File "

Conceptual flaw in pxdom?

2009-05-17 Thread Emanuele D'Arrigo
Hi everybody, I'm looking at pxdom and in particular at its foundation class DOMObject (source code at the end of the message). In it, the author attempts to allow the establishment of readonly and read&write attributes through the special methods __getattr__ and __setattr__. In so doing is possib

Re: Circular relationship: object - type

2009-05-17 Thread Chris Rebert
On Thu, May 14, 2009 at 3:34 PM, Mohan Parthasarathy wrote: > Hi, > > I have read several articles and emails: > > http://www.cafepy.com/article/python_types_and_objects/python_types_and_objects.html#relationships-transitivity-figure > http://mail.python.org/pipermail/python-list/2007-February/600

Re: Swapping superclass from a module

2009-05-17 Thread Emanuele D'Arrigo
Wow, thank you all. Lots of ideas and things to try! I wish I knew which one is going to work best. The module I'm trying to (monkey!) patch is pxdom, and as it is a bit long (5700 lines of code in one file!) I'm not quite sure if the simplest patching method will work or the more complicated o

filecmp.py licensing

2009-05-17 Thread Fatih Tumen
Hi, As I mentioned on the other thread about samba, I am working on a synchronisation project and using filecmp.py for comparing files. I modified it according to my needs and planning to distribute it with my package. At first glance it seems that filecmp.py is a part of Python package. Though I d

python and samba

2009-05-17 Thread Fatih Tumen
Hi, I am working on a directory synchronisation tool for Linux. $ gcc --version gcc (GCC) 4.2.4 (Ubuntu 4.2.4-1ubuntu3) $ python -V Python 2.5.2 $ smbclient --version Version 3.0.28a I first designed it to work on the local filesystem. I am using filecmp.py (distributed with Python) for comparing

Re: os.path.split gets confused with combined \\ and /

2009-05-17 Thread Chris Rebert
On Sun, May 17, 2009 at 3:11 AM, Stef Mientki wrote: > hello, > > just wonder how others solve this problem: > I've to distribute both python files and data files. > Everything is developed under windows and now the datafiles contains paths > with mixed \\ and /. > Under windows everthing is worki

os.path.split gets confused with combined \\ and /

2009-05-17 Thread Stef Mientki
hello, just wonder how others solve this problem: I've to distribute both python files and data files. Everything is developed under windows and now the datafiles contains paths with mixed \\ and /. Under windows everthing is working well, but under Ubuntu / Fedora sometimes strange errors occu

Re: Generic web parser

2009-05-17 Thread James Matthews
I don't see the issue of using urllib and Sqllite for everything you mention here. On Sat, May 16, 2009 at 4:18 PM, S.Selvam wrote: > Hi all, > > I have to design web parser which will visit the given list of websites and > need to fetch a particular set of details. > It has to be so generic tha

Re: Your Favorite Python Book

2009-05-17 Thread James Matthews
For me it's any book on Django, Core Python 2nd Edition (which I will buy if updated) and Python Power. On Fri, May 15, 2009 at 7:05 PM, Lou Pecora wrote: > In article > , > Mike Driscoll wrote: > > > On May 11, 4:45 pm, Chris Rebert wrote: > > > > > > > I like "Python in a Nutshell" as a re

Re: Concurrency Email List

2009-05-17 Thread James Matthews
I second this. Google groups are annoying! Just request that it be added to python.org James On Sun, May 17, 2009 at 12:22 PM, David M. Besonen wrote: > On 5/16/2009 5:26 PM, Aahz wrote: > > > On Sat, May 16, 2009, Pete wrote: > > > >> python-concurre...@googlegroups.com is a new email list > >

Re: Concurrency Email List

2009-05-17 Thread David M. Besonen
On 5/16/2009 5:26 PM, Aahz wrote: > On Sat, May 16, 2009, Pete wrote: > >> python-concurre...@googlegroups.com is a new email list >> for discussion of concurrency issues in python. > > Is there some reason you chose not to create a list on > python.org? I'm not joining the list because Google >

Re: KeyboardInterrupt catch does not shut down the socketserver

2009-05-17 Thread Igor Katson
Gabriel Genellina wrote: En Sat, 16 May 2009 04:04:03 -0300, Igor Katson escribió: Gabriel Genellina wrote: En Fri, 15 May 2009 09:04:05 -0300, Igor Katson escribió: Lawrence D'Oliveiro wrote: In message , Igor Katson wrote: Lawrence D'Oliveiro wrote: In message , Igor Katson wrote: I h

Re: How to get Exif data from a jpeg file

2009-05-17 Thread Arnaud Delobelle
Daniel Fetchinson writes: >> I need to get the creation date from a jpeg file in Python. Googling >> brought up a several references to apparently defunct modules. The best >> way I have been able to find so far is something like this: >> >> from PIL import Image >> img = Image.open('img.jpg')

Re: Swapping superclass from a module

2009-05-17 Thread Peter Otten
Terry Reedy wrote: > Steven D'Aprano wrote: >> On Sat, 16 May 2009 09:55:39 -0700, Emanuele D'Arrigo wrote: >> >>> Hi everybody, >>> >>> let's assume I have a module with loads of classes inheriting from one >>> class, from the same module, i.e.: >> [...] >>> Now, let's also assume that myFile.py

Re: using urlretrive/urlopen

2009-05-17 Thread rustom
On May 16, 6:30 am, "Gabriel Genellina" wrote: > En Fri, 15 May 2009 12:03:09 -0300, Rustom Mody   > escribió: > > > I am trying to talk to a server that runs on localhost > > The server runs onhttp://localhost:7000/and that opens alright in  a > > web browser. > > > However if I use urlopen or u

Re: Swapping superclass from a module

2009-05-17 Thread Michele Simionato
Try this: class Base(object): pass class C(Base): pass class NewBase(object): pass C.__bases__ = (NewBase,) help(C) -- http://mail.python.org/mailman/listinfo/python-list