Re: Python's garbage collection was Re: Python reliability

2005-10-14 Thread Paul Rubin
[EMAIL PROTECTED] writes: Folks, most common GC schemes have been tried as experiments over the years. None have succeeeded, for various reasons. I think one of the main reasons is that Python has to play nice with external libraries, many of which weren't written with GC beyond malloc and

Re: Setdefault bypasses __setitem__

2005-10-14 Thread Fredrik Lundh
Diez B. Roggisch wrote: I rarely find things in python strange or named incorrectly, but this is IMHO such a case - setdefault led me to think that using it would set a default value to return for _future_ lookups of non-existant keys. That semantics is known in e.g. ruby or java. I think a

Re: ImportError: No module named dbm

2005-10-14 Thread Fredrik Lundh
[EMAIL PROTECTED] wrote: firstly i couldnt find the DBM module for python 2.3.5, trustix system and i386 hardware platform. so i downloaded gnu dbm for python 2.3.5 and i568( precisly, python-gdbm-2.3.5-4tr.i586), simply assuming it could just work. but trying to install gives me the

Help with cPickle for deserializing datetime.datetime instances

2005-10-14 Thread Mingus Tsai
Hello- please help with unpickling problem: I am using Python version 2.3.4 with IDLE version 1.0.3 on a Windows XPhome system. My problem is with using cPickle to deserialize my pickled arrays of datetime.datetime instances. The following is the code I have written: import cPickle,

Re: A problem while using urllib

2005-10-14 Thread Johnny Lee
Steve Holden 写道: Good catch, John, I suspect this is a possibility so I've added the following note: The Windows 2.4.1 build doesn't show this error, but the Cygwin 2.4.1 build does still have uncollectable objects after a urllib2.urlopen(), so there may be a platform dependency here. No

Re: Well written open source Python apps

2005-10-14 Thread B Mahoney
The paper on BitPim http://bitpim.sourceforge.net/papers/baypiggies/ lists and describes programs and ideas used for the project. Some of it is just bullet-points, but everything seems to be well chosen. I've swiped a lot of these ideas. -- http://mail.python.org/mailman/listinfo/python-list

Re: Jargons of Info Tech industry

2005-10-14 Thread Stefaan A Eeckels
On Wed, 12 Oct 2005 22:04:14 GMT Roedy Green [EMAIL PROTECTED] wrote: On Mon, 10 Oct 2005 00:42:18 +0200, Stefaan A Eeckels [EMAIL PROTECTED] wrote or quoted : I don't understand that attitude. Don't we want email that has dancing bears, cute little videos, musical tunes, animated waving

Re: Problem processing Chinese

2005-10-14 Thread Peter Otten
Anthony Liu wrote: I believe that topic related to Chinese processing was discussed before. I could not dig out the info I want from the mail list archive. My Python script reads some Chinese text and then split a line delimited by white spaces. I got lists like ['\xbc\xc7\xd5\xdf',

Re: Help with cPickle for deserializing datetime.datetime instances

2005-10-14 Thread Peter Otten
Mingus Tsai wrote: When these three statements run, the IDLE crashes! Is there a traceback that you can provide (cut and paste)? Peter -- http://mail.python.org/mailman/listinfo/python-list

Re: Well written open source Python apps

2005-10-14 Thread Michele Simionato
Could anyone suggest an open source project that has particularly well written Python? I am especially looking for code that people would describe as very Python-ic. I vote for the doctest code in the standard library. Michele Simionato --

Re: setuptools, ez_setup over http proxy

2005-10-14 Thread yoda
Thanks guys, Incidentally, I had already tried setting the env variable $http_proxy but that didn't seem to work. That being said, I'm moving this discussion to the distutils-SIG mailing list while I carry out some tests. Thanks again. -- http://mail.python.org/mailman/listinfo/python-list

Re: Jargons of Info Tech industry

2005-10-14 Thread Tim Tyler
In comp.lang.java.programmer Mike Meyer [EMAIL PROTECTED] wrote or quoted: Tim Tyler [EMAIL PROTECTED] writes: In comp.lang.java.programmer Mike Meyer [EMAIL PROTECTED] wrote or quoted: The technial problems have been solved for over a decade. NeXT shipped systems that used text/richtext,

Re: Jargons of Info Tech industry

2005-10-14 Thread Eike Preuss
1. flipping to a digital id based email system so that the sender of any piece of mail can be legally identified and prosecuted. If every piece of anonymous email disappeared that would go a long way to clearing up spam. Let those sending ransom notes, death threats and hate mail use snail

Re: Well written open source Python apps

2005-10-14 Thread Gerrit Holl
Ben wrote: Could anyone suggest an open source project that has particularly well written Python? I am especially looking for code that people would describe as very Python-ic. (Not trying to start any kind of war - just wanted some good examples of a well written Python app to read.)

Re: Help with cPickle for deserializing datetime.datetime instances

2005-10-14 Thread Hans Georg Krauthaeuser
Mingus Tsai schrieb: Hello- please help with unpickling problem: I am using Python version 2.3.4 with IDLE version 1.0.3 on a Windows XPhome system. My problem is with using cPickle to deserialize my pickled arrays of datetime.datetime instances. The following is the code I have written:

Re: [PIL]: Question On Changing Colour

2005-10-14 Thread Iain King
Andrea Gavana wrote: I have tried your solution, Terry: new_hue # your 'basic color', just the hue part rgb_base # color from the basic button image rgb_new # the new color you want to replace rgb_base with rgb_new = hsv_to_rgb( (new_hue,) + rgb_to_hsv(rgb_base)[1:]) thanks a

get_payload problem with large mail attachments

2005-10-14 Thread hungryblank
I'm having troubles with a script that uses the get_payload function. My script just works perfectly if I use it with attachment up to 8 Mb. If the attachment are more than 8 Mb large, the script exits with a TypeError exception. IMHO when get_payload try to convert the attachment in a single

Re: Yes, this is a python question, and a serious one at that (moving to Win XP)

2005-10-14 Thread Christophe
Kenneth McDonald a écrit : For unfortunate reasons, I'm considering switching back to Win XP (from OS X) as my main system. Windows has so many annoyances that I can only compare it to driving in the Bay Area at rush hour (OS X is like driving in Portland at rush hour--not as bad, but

Re: Python's garbage collection was Re: Python reliability

2005-10-14 Thread Diez B. Roggisch
Yeah, I noticed that, I could have been pedantic about it but chose to just describe how these language implementations work in the real world with zero exceptions that I know of. I guess I should have spelled it out. You talked about CPU architectures: And this presumes an architecture

Re: Yes, this is a python question, and a serious one at that (moving to Win XP)

2005-10-14 Thread Peter Hansen
Christian Stapfer wrote: 0.0. ... and add an item to your SendTo folder that allows you to have Windows Explorer open a terminal window with its current directory set to the currently displayed folder (= Open terminal here). Or install the Command Prompt Here gadget that MS produces, which

Re: get_payload problem with large mail attachments

2005-10-14 Thread Peter Otten
[EMAIL PROTECTED] wrote: I'm having troubles with a script that uses the get_payload function. My script just works perfectly if I use it with attachment up to 8 Mb. If the attachment are more than 8 Mb large, the script exits with a TypeError exception. IMHO when get_payload try to convert

Re: UI toolkits for Python

2005-10-14 Thread Ville Voipio
In article [EMAIL PROTECTED], Kenneth McDonald wrote: 4) Ease of installation/use on OS X? There are two questions which may restrict your choice rather a lot: #1 Should the UI look the same on each platform or should it look the same as all other apps on the platform? #2 Are you trying

Re: UI toolkits for Python

2005-10-14 Thread [EMAIL PROTECTED]
I find wxPython to pro fill my GUI needs from python in a pretty good way. To show off it's capabilities - I am building a GUI editor and it currently converts from windows forms (visual studio c# forms) to wxPython code. When I started programming this editor I thought I'd have major

Compilation of _tkinter, tcl/tk bindings

2005-10-14 Thread mg
Hello, First, I installed Python on a traditionnal default linux-x86 platform (tk.h is located in /usr/include) and I did not meet any problem. I can write the following instruction without error in my python interpreter: ./configure --prefix=/usr/local/python make make install

my array subset method could be improved?

2005-10-14 Thread Jim O'D
Hi all I have an array a=array([2,3,1]). I want to extract an array with all the elements of a that are less than 0. Method 1. new = array([i for i in a if i 0]) Method 2. new = a[nonzero(a0)] I'm using Numeric arrays but can't seem to find a function that does this. Am I missing a more

Re: Python's Performance

2005-10-14 Thread Fredrik Lundh
Paul Boddie wrote: On the subject of other virtual machine implementations, I wonder what happened to this one: http://effbot.org/zone/pytte.htm Fredrik? ;-) so much code, so little time... /F -- http://mail.python.org/mailman/listinfo/python-list

array subset could be improved? -repost ;)

2005-10-14 Thread Jim O'D
Hi all I have an array a=array([2,3,-1]). I want to extract an array with all the elements of a that are less than 0. Method 1. new = array([i for i in a if i 0]) Method 2. new = a[nonzero(a0)] I'm using Numeric arrays but can't seem to find a function that does this. Am I missing a more

Text not showing up

2005-10-14 Thread Simone
Hi all, I am new to python and trying to write a simple GUI that would call 2 growisofs processes (dvd burning) at the same time, and retrive the exit code to be printed on a text box (couldn't find any program that could use multiple dvd burners, not even k3b). Excuse me if this is really a

Re: my array subset method could be improved?

2005-10-14 Thread Juho Schultz
Jim O'D wrote: Hi all I have an array a=array([2,3,1]). I want to extract an array with all the elements of a that are less than 0. Method 1. new = array([i for i in a if i 0]) Method 2. new = a[nonzero(a0)] I'm using Numeric arrays but can't seem to find a function that does

Re: my array subset method could be improved?

2005-10-14 Thread Peter
Jim O'D wrote: Hi all I have an array a=array([2,3,1]). I want to extract an array with all the elements of a that are less than 0. Method 1. new = array([i for i in a if i 0]) Method 2. new = a[nonzero(a0)] I'm using Numeric arrays but can't seem to find a function that does this. Am I

Re: my array subset method could be improved?

2005-10-14 Thread Jim O'D
new = Numeric.compress(Numeric.less(a,0),a) Ah, thank you! Sorry about subject mangle, I gave a silly example first time round. Jim -- http://mail.python.org/mailman/listinfo/python-list

Help with creating a dict from list and range

2005-10-14 Thread Echo
Hello,Here is what I am trying to do. I am trying to make a dict that has a key that is the value an element in a list and the value for the dict to be the index.This is the closest I have been able to get:dict((d[0],i) for d in self.cu.description for i in xrange(len(self.cu.description)-1))

Re: get_payload problem with large mail attachments

2005-10-14 Thread Larry Bates
While I don't intend to stir up a hornet's nest, I feel an obligation to point out that an 8Mb email attachment should set off warning bells. I don't believe that SMTP email is very efficient at moving such large files around and that there are other methods for moving them more efficiently. I've

Re: UI toolkits for Python

2005-10-14 Thread [EMAIL PROTECTED]
sure it is, but since this is a Python list, you'd also need PyQt to go along with it, and there's no version of PyQt yet compatible with Qt4. -- http://mail.python.org/mailman/listinfo/python-list

Node Subtree

2005-10-14 Thread Vinci
Hi, I'm using Python to work on Xml documents importing the minidom module: in particular I need to get the whole subtree rooted at a given node n. Does anyone know whether there is a way to find it with a function /class or by importing another module? Thank you! -- Alevi --

Re: Jargons of Info Tech industry

2005-10-14 Thread Paul Rubin
Tim Tyler [EMAIL PROTECTED] writes: Are there any examples of HTML email causing security problems - outside of Microsoft's software? There was a pretty good one that went something like Click this link to download latest security patch! a href=http://www.mxx.com.Microsoft

Re: Node Subtree

2005-10-14 Thread Michael Ekstrand
On Friday 14 October 2005 08:40, Vinci wrote: I'm using Python to work on Xml documents importing the minidom module: in particular I need to get the whole subtree rooted at a given node n. Does anyone know whether there is a way to find it with a function /class or by importing another

Re: Jargons of Info Tech industry

2005-10-14 Thread Richie Hindle
Not so: you disable Java, Javascript and plugins. You leave the ability to format, colour and hint documents. This is not /that/ difficult. Don't forget disabling Unicode. http://news.netcraft.com/archives/2005/02/15/firefox_to_disable_idn_support_as_phishing_defense.html -- Richie

Re: Python's garbage collection was Re: Python reliability

2005-10-14 Thread Mike Meyer
Diez B. Roggisch [EMAIL PROTECTED] writes: And regarding the zero exceptions - I know for sure that quite a few programs were crashing when the transition in 68K from 24 bit addresses to real 32 bit was done on popular systems like the ATARI ST - as some smart-asses back then used the MSByte

Re: UI toolkits for Python

2005-10-14 Thread Adriaan Renting
I realy like developing PyQt applications using the Eric3 IDE. I find Qt really has a lot of high level functionality already available for you, I like the flexibility of the slot-signal system, I like that the Qt C++ maps very well into object-oriented Python though PyQt. You can just use the

Re: Python's Performance

2005-10-14 Thread Alex Stapleton
On 12 Oct 2005, at 09:33, bruno modulix wrote: Donn Cave wrote: Quoth Fredrik Lundh [EMAIL PROTECTED]: | Alex Stapleton wrote | | Except it is interpreted. | | except that it isn't. Python source code is compiled to byte code, which | is then executed by a virtual machine. if the

How to delete yourself????

2005-10-14 Thread christian . siegl
Hello, I got a problem deleting objects, which are placed in a hirarchy Asume we have the following code: class parent: MyChilds = [] # this list is filled with childs def AddChild(self, child): # add childs

Re: [ANN] XPN 0.5.5 released

2005-10-14 Thread Cousin Stanley
XPN (X Python Newsreader) is a multi-platform newsreader with Unicode support. You can find it on: http://xpn.altervista.org/index-en.html http://sf.net/projects/xpn Changes in this release: Cousin Nemesis Are the new xpn 5.5 config data files compatible

Re: How to delete yourself????

2005-10-14 Thread Kay Schluehr
[EMAIL PROTECTED] wrote: Hello, I got a problem deleting objects, which are placed in a hirarchy Asume we have the following code: class parent: MyChilds = [] # this list is filled with childs def AddChild(self,

Re: How to delete yourself????

2005-10-14 Thread christian . siegl
well, of course these classes are dummies. in my application they have of course more functionality they shall only describe the problem here one certain event which could appear is, that the child wants to delete itself by calling self.deleteMe() somewhere in one of the member

Re: Adding a __filename__ predefined attribute to 2.5?

2005-10-14 Thread Magnus Lycka
Rune Strand wrote: I've read a lot of your comments the last years. Your friendliness always strikes me. Trying to be ironic? He *is* always right though! ;) If ones ideas are getting shut down by people like Fredrik and Steve, the rational reaction would be to assume that they are right and

Re: File compare

2005-10-14 Thread Magnus Lycka
PyPK wrote: I have two files file1 in format id val1 test1 test2 'AA' 1 T T 'AB' 1 T F file2 same as file1 id val1 test1 test2 'AA' 1 T T 'AB' 1 T T Also the compare should be based on id. So it should look for line starting with id 'AA' (for example) and then match the line so if

Re: UI toolkits for Python

2005-10-14 Thread SPE - Stani's Python Editor
Something to consider when writing cross-platform applications with any gui toolkit is that it never works out of the box. Despite what they might promise you. If you have yourself access to a Windows, Linux and Mac OS X computer, you probably won't have any problem to make it fully

Re: UI toolkits for Python

2005-10-14 Thread Steve Holden
Adriaan Renting wrote: [which GUI toolkit?] Kenneth McDonald [EMAIL PROTECTED] 10/13/05 10:17 pm Is there any emerging consensus on the best UI for toolkit. Tk never quite made it but from what I can see, both qt and wxWin are both doing fairly well in general. I'm already aware of the

getting the path in a cgi script

2005-10-14 Thread Kalle Anke
I know I've done this once before ... I think ... but now I can't figure out how to do it I've set my web server to use an alias similar to this ScriptAlias /xx/ /Library/WebServer/CGI-Executables/xxx.cgi/ which makes it possible for me to write http://127.0.0.1/xx/some/kind/of/path my

Problems with properties

2005-10-14 Thread Michael Schneider
Hello All, I have been working on learning how to use python properties. The get property access is working, but the the set property is not working. Rather then dispatching the property assignment to setNothing, the property object is being replaced with a string. I must be doing something

Re: Help with creating a dict from list and range

2005-10-14 Thread Steve Holden
Echo wrote: Hello, Here is what I am trying to do. I am trying to make a dict that has a key that is the value an element in a list and the value for the dict to be the index. This is the closest I have been able to get: dict((d[0],i) for d in self.cu.description for i in

Re: UI toolkits for Python

2005-10-14 Thread Mike Meyer
Adriaan Renting [EMAIL PROTECTED] writes: [On Qt] I don't know how it performs on OSX, I think it works fine, as Qt is available on OSX. Qt on OS X is halfway there. It looks - and acts - like an aqua application. However, to support the Command key, they hacked things so that it is reported to

Re: Jargons of Info Tech industry

2005-10-14 Thread Mike Meyer
Paul Rubin http://[EMAIL PROTECTED] writes: Not so: you disable Java, Javascript and plugins. You leave the ability to format, colour and hint documents. This is not /that/ difficult. Don't forget disabling Unicode. To kill web bugs, you have to turn off images, and anything else that

Re: Problems with properties

2005-10-14 Thread [EMAIL PROTECTED]
If you change it to this it works. You should provide a get and a set function for a property. class Task: def __init__(self, value): self._command = value def setCommand(self, value): self._command = value def getCommand(self): return self._command

Re: Problems with properties

2005-10-14 Thread [EMAIL PROTECTED]
If you change it to this it works. You should provide a get and a set function for a property. class Task: def __init__(self, value): self._command = value def setCommand(self, value): self._command = value def getCommand(self): return self._command

Re: Problems with properties

2005-10-14 Thread Benji York
Michael Schneider wrote: The get property access is working, but the the set property is not working. The classes need to be new style for properties to work right. Just change class Task: to class Task(object):. Your setNothing method is unnecessary, if you don't proved a setter an

Using SRP on TCPServer module

2005-10-14 Thread dcrespo
Hi all, Below, you can see a class that when it receives a host connection, it gets validated. Then, if the validation returns True, then process the request. Also, if I want to stop the server, I simply access the self.QuitFlag in lock mode, and set it to 1. Now that you know what I have, I

Re: Problems with properties

2005-10-14 Thread shawn
I was thinking that in Python2.4, all class definitions inherited from new-style classes. There may be a bug here. I can make your code work as expected by changing the class definition to: class Task(object): with that change, the assignment raises an attribute error. You could also accomplish

Re: Problems with properties

2005-10-14 Thread Peter Otten
Michael Schneider wrote: Rather then dispatching the property assignment to setNothing, the property object is being replaced with a string. properties are for newstyle classes only (i. e. classes that inherit from object). from unittest import TestCase import unittest class Task(object):

Re: Python's garbage collection was Re: Python reliability

2005-10-14 Thread [EMAIL PROTECTED]
Paul Rubin wrote: This correctly describes difficulties of using a copying GC in CPython. Note that the Boehm GC is mark-and-sweep. As Alex mentions, that usually means there's a pause every so often while the GC scans the entire heap, touching all data both live and dead (maybe the Boehm

Re: Using SRP on TCPServer module

2005-10-14 Thread Paul Rubin
dcrespo [EMAIL PROTECTED] writes: Now that you know what I have, I would like to add SRP functionality to the validation of each new connection. What I need to add to my code to get SRP to work? I don't know where to start. The docs are poor. I don't know of a Python SRP module that only does

Re: Help with cPickle for deserializing datetime.datetime instances

2005-10-14 Thread Mingus Tsai
Hans Georg Krauthaeuser wrote: Mingus Tsai schrieb: Hello- please help with unpickling problem: I am using Python version 2.3.4 with IDLE version 1.0.3 on a Windows XPhome system. My problem is with using cPickle to deserialize my pickled arrays of datetime.datetime instances. The following

Re: Problems with properties

2005-10-14 Thread Gerrit Holl
Michael Schneider wrote: Could someone please point out my error, I have dents in my forehead for this one. -- from unittest import TestCase import unittest Here you need to add: __metaclass__ = type this will make your

Re: array subset could be improved? -repost ;)

2005-10-14 Thread jon
Jim O'D wrote: Hi all I have an array a=array([2,3,-1]). I want to extract an array with all the elements of a that are less than 0. Method 1. new = array([i for i in a if i 0]) Method 2. new = a[nonzero(a0)] I'm using Numeric arrays but can't seem to find a function that does this.

Re: Help with cPickle for deserializing datetime.datetime instances

2005-10-14 Thread Mingus Tsai
Peter Otten wrote: Mingus Tsai wrote: When these three statements run, the IDLE crashes! Is there a traceback that you can provide (cut and paste)? Peter It is a hard crash, so there is no traceback. Instead, a dialog window pops up and gives the standard windows xp response

Re: array subset could be improved? -repost ;)

2005-10-14 Thread jon
Jim O'D wrote: Hi all I have an array a=array([2,3,-1]). I want to extract an array with all the elements of a that are less than 0. Method 1. new = array([i for i in a if i 0]) Method 2. new = a[nonzero(a0)] I'm using Numeric arrays but can't seem to find a function that does this.

Good news and bad news!!

2005-10-14 Thread [EMAIL PROTECTED]
The Bad news is i am an IT Recruiter..The good news is that i have a great role for a developer with strong Python skills. Ideally along with that they will have Java and either an understanding of Agile development or experience in using Ruby. £35 - £45k, London Contact me for more

Re: getting the path in a cgi script

2005-10-14 Thread Fredrik Lundh
Kalle Anke wrote: I know I've done this once before ... I think ... but now I can't figure out how to do it I've set my web server to use an alias similar to this ScriptAlias /xx/ /Library/WebServer/CGI-Executables/xxx.cgi/ which makes it possible for me to write

Re: Help with cPickle for deserializing datetime.datetime instances

2005-10-14 Thread Jp Calderone
On Fri, 14 Oct 2005 01:25:27 -0500, Mingus Tsai [EMAIL PROTECTED] wrote: Hello- please help with unpickling problem: I am using Python version 2.3.4 with IDLE version 1.0.3 on a Windows XPhome system. My problem is with using cPickle to deserialize my pickled arrays of datetime.datetime

Re: getting the path in a cgi script

2005-10-14 Thread Kalle Anke
On Fri, 14 Oct 2005 18:20:10 +0200, Fredrik Lundh wrote (in article [EMAIL PROTECTED]): import os path_info = os.environ.get(PATH_INFO) Tackar ... det var nåt enkelt det mindes jag :-) -- http://mail.python.org/mailman/listinfo/python-list

Re: UI toolkits for Python

2005-10-14 Thread Adriaan Renting
Mike Meyer [EMAIL PROTECTED] 10/14/05 5:39 pm $Adriaan Renting [EMAIL PROTECTED] writes: $[On Qt] $I don't know how it performs on OSX, I think it works fine, as Qt is $available on OSX. $ $Qt on OS X is halfway there. It looks - and acts - like an aqua $application. However, to support

Moving to Win XP as a Python developer

2005-10-14 Thread Scott David Daniels
Christian Stapfer wrote: John J. Lee [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] cmd.exe can be made bearable 0. Make a shortcut to cmd.exe, stick it somewhere get-at-able, eg. quick launch toolbar I put it on my desktop. Once having made it, fiddle with Start in to be

NYLUG meeting: The Python Object Model with Alex Martelli Google (open bar and food!)

2005-10-14 Thread Ron Guerin
The New York Linux User's Group invites you to a special presentation by Alex Martelli of Google, on the Python Object Model. This presentation will be held at P.J. Clarke's Sidecar, rather than our usual location, and Google is picking up the tab for an hour and a half of open bar and food.

Re: Problems with properties

2005-10-14 Thread Michael Schneider
Thanks to all, I added the object as a subclass (should this be required for 2.4.1 ???) I also switched to the decorator with the @property syntax Thank you very much for the help for adding @property to the language. what a great language :-) Mike Michael Schneider wrote: Hello All, I

Re: Problems with properties

2005-10-14 Thread Michael Schneider
Thanks to all, I added the object as a subclass (should this be required for 2.4.1 ???) I also switched to the decorator with the @property syntax Thank you very much for the help for adding @property to the language. what a great language :-) Mike Michael Schneider wrote: Hello All, I

Re: UI toolkits for Python

2005-10-14 Thread Adriaan Renting
Mike Meyer [EMAIL PROTECTED] 10/14/05 5:39 pm #Adriaan Renting [EMAIL PROTECTED] writes: #[On Qt] #... #[mike on qt for Mac Os X] #... I've looked some more into this, and it seems that the confusion is because Qt on Mac maps: Command/Apple key - Qt::Key_Control Ctrl Key -

Re: [ANN] XPN 0.5.5 released

2005-10-14 Thread Nemesis
Mentre io pensavo ad una intro simpatica Cousin Stanley scriveva: XPN (X Python Newsreader) is a multi-platform newsreader with Unicode support. Cousin Nemesis Are the new xpn 5.5 config data files compatible with the older xpn 5.0 files ? I'm not 100% sure but I

Re: How to delete yourself????

2005-10-14 Thread Istvan Albert
But is this nice code??? Is there another way to delete yourself??? I think you are overcomplicating things. Don't think of it as deleting 'itself', since what you seem to need is deleting a reference to the instance. In your example the parent is a container and it usually makes more sense

Re: UI toolkits for Python

2005-10-14 Thread Mike Meyer
Adriaan Renting [EMAIL PROTECTED] writes: Mike Meyer [EMAIL PROTECTED] 10/14/05 5:39 pm $Adriaan Renting [EMAIL PROTECTED] writes: $[On Qt] $I don't know how it performs on OSX, I think it works fine, as Qt is $available on OSX. $ $Qt on OS X is halfway there. It looks - and acts -

Re: NYLUG meeting: The Python Object Model with Alex Martelli Google(open bar and food!)

2005-10-14 Thread George Sakkis
Ron Guerin [EMAIL PROTECTED] wrote: The New York Linux User's Group invites you to a special presentation by Alex Martelli of Google, on the Python Object Model. This presentation will be held at P.J. Clarke's Sidecar, rather than our usual location, and Google is picking up the tab for an

Re: NYLUG meeting: The Python Object Model with Alex Martelli Google(open bar and food!)

2005-10-14 Thread Gregory Piñero
A reasonable question ... What date is it ? It isn't mentioned at the web site either.George --http://mail.python.org/mailman/listinfo/python-list-- Gregory PiñeroChief Innovation Officer Blended Technologies(www.blendedtechnologies.com) -- http://mail.python.org/mailman/listinfo/python-list

Re: Searching files in directories

2005-10-14 Thread Larry Bates
Not tested but should be close: import os import shutil files = ['file1.txt'] source_directory = '/tmp/source/' destination_directory = '/tmp/destination/' for file in files: src=os.path.join(source_directory, file dst=os.path.join(destination_directory, file if

Re: [ANN] XPN 0.5.5 released

2005-10-14 Thread Cousin Stanley
I'm not 100% sure but I think that they could work. The only thing is changed is the outgoing articles format, so if you have article in the oubox delete them Can I install the newer xpn version and move the older data files into it without reconfiguring reloading data files ?

Re: NYLUG meeting: The Python Object Model with Alex Martelli Google(open bar and food!)

2005-10-14 Thread Ron Guerin
George Sakkis wrote: What date is it ? It isn't mentioned at the web site either. Sorry about that, actually it is on the web site, right at the top in the blue band. October 26, 2005 6:00pm - 10:00pm Hope to see you there. - Ron -- http://mail.python.org/mailman/listinfo/python-list

Re: NYLUG meeting: The Python Object Model with Alex Martelli Google(open bar and food!)

2005-10-14 Thread Ron Guerin
Gregory Piñero wrote: A reasonable question ... Sure is. ;) October 26, 2005 6:00pm - 10:00pm - Ron -- http://mail.python.org/mailman/listinfo/python-list

Re: Searching files in directories

2005-10-14 Thread George Sakkis
Larry Bates wrote: Not tested but should be close: import os import shutil files = ['file1.txt'] source_directory = '/tmp/source/' destination_directory = '/tmp/destination/' for file in files: src=os.path.join(source_directory, file

Re: File compare

2005-10-14 Thread PyPK
but what if case 1: no.of keys in f1 f2 and case2: no.of keys in f1 f2. Should'nt we get 1.1 if case 1 and 0.9 if case 2?? it errors of with a keyerror.? -- http://mail.python.org/mailman/listinfo/python-list

Re: setuptools, ez_setup over http proxy

2005-10-14 Thread yoda
It appears that it was my proxy config that was flakey. setup tools works like a charm. :$ -- http://mail.python.org/mailman/listinfo/python-list

Re: win32api.FindFiles Win2003, problem with Short Name

2005-10-14 Thread Frank Borell
Neil, On all three types of PC/Servers they are set to 0. For now I'll have to process this script on non 2003 servers?!? Thanks, Frank -- http://mail.python.org/mailman/listinfo/python-list

object inheritance and default values

2005-10-14 Thread Ron Adam
I'm trying to implement simple svg style colored complex objects in tkinter and want to be able to inherit default values from other previously defined objects. I want to something roughly similar to ... class shape(object): def __init__(self, **kwds): # set a bunch

Re: Moving to Win XP as a Python developer

2005-10-14 Thread Thomas Heller
Scott David Daniels [EMAIL PROTECTED] writes: Christian Stapfer wrote: John J. Lee [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] cmd.exe can be made bearable 0. Make a shortcut to cmd.exe, stick it somewhere get-at-able, eg. quick launch toolbar I put it on my desktop.

Re: [ANN] XPN 0.5.5 released

2005-10-14 Thread Cousin Stanley
Can I install the newer xpn version and move the older data files into it without reconfiguring reloading data files ? Cousin Nemesis This worked OK with no problems and I'm posting this reply via xpn-0.5.5 I copied the following from the older xpn-0.5.0 version to

Function to execute only once

2005-10-14 Thread PyPK
Hi if I have a function called tmp=0 def execute(): tmp = tmp+1 return tmp also I have def func1(): execute() and def func2(): execute() now I want execute() function to get executed only once. That is the first time it is accessed. so taht when funcc2 access

Re: Function to execute only once

2005-10-14 Thread Jaime Wyant
If I understand you correctly, you want `tmp' to be global... If so, declare it as so in execute - def execute(): global tmp tmp = tmp+1 return tmp Otherwise, what happens is that you declare a variable local to execute, that is named tmp. When the assignment occurs it uses the

Re: Moving to Win XP as a Python developer

2005-10-14 Thread Trent Mick
[Thomas Heller wrote] I have an elisp function bound to a key in XEmacs that starts cmd in the directory where the current buffer is. IMO this is very convenient. To access explorer from that command prompt (in the rare cases that I need it) I use 'start .'. I kind of have the same thing

Re: Function to execute only once

2005-10-14 Thread Paul Rubin
PyPK [EMAIL PROTECTED] writes: now I want execute() function to get executed only once. That is the first time it is accessed. so taht when funcc2 access the execute fn it should have same values as when it is called from func1. There's nothing built into Python for that. You have to program

Re: Looking for a Python mentor

2005-10-14 Thread billie
Nir Aides wrote Hello Len, You should try the #python IRC room. It is always very active and helpful. Nir Do you mean efnet #Python chan? It's not too much active... -- http://mail.python.org/mailman/listinfo/python-list

MS Word Outline - reStructuredText script?

2005-10-14 Thread Jim
Hi, I'm using reStructuredText as a format for some group documentation, and often my co-workers take notes during meetings in Word's outline mode. Does anyone already have a python script that will convert from Word (or the Open Office file format version of a word document) to reStructured

Re: Moving to Win XP as a Python developer

2005-10-14 Thread Thomas Heller
Trent Mick [EMAIL PROTECTED] writes: [Thomas Heller wrote] I have an elisp function bound to a key in XEmacs that starts cmd in the directory where the current buffer is. IMO this is very convenient. To access explorer from that command prompt (in the rare cases that I need it) I use

  1   2   >