Re: PEP 354: Enumerations in Python

2006-02-28 Thread Toby Dickenson
x27;, 'wed', 'thu', 'fri', 'sat') > >>> Grades = enum('A', 'B', 'C', 'D', 'F') s/arguments/strings/ ? -- Toby Dickenson -- http://mail.python.org/mailman/listinfo/python-list

Re: Using graphviz to visualize trace.py output, anybody?

2005-11-01 Thread Toby Dickenson
> Maybe there is some other tool that I am not aware of which can create > this kind of trace. I use eclipse with pydev plugin on MacOS 10.3.9 kcachegrind http://kcachegrind.sourceforge.net/cgi-bin/show.cgi -- Toby Dickenson -- http://mail.python.org/mailman/listinfo/python-list

Re: Sorting with only a partial order definition

2005-10-27 Thread Toby Dickenson
minimises the number of comparisons (because a comparison involves asking a human), and which takes advantage of any pre-existing rough ordering. You need timsort - the algorithm behind python lists sort() method. -- Toby Dickenson -- http://mail.python.org/mailman/listinfo/python-list

Re: Would there be support for a more general cmp/__cmp__

2005-10-20 Thread Toby Dickenson
comparison method of an individual object is being called. If you need a total ordering across a domain of objects then you need to involve some representation of that domain as a whole. -- Toby Dickenson -- http://mail.python.org/mailman/listinfo/python-list

Re: [path-PEP] Path inherits from basestring again

2005-07-26 Thread Toby Dickenson
). def functions_which_modifies_some_file_in_place(path): output = open(path+'.tmp', 'w') . I dont want a seperator inserted between path and the new extension. -- Toby Dickenson -- http://mail.python.org/mailman/listinfo/python-list

Re: System Independent Wallpaper Changer

2005-07-06 Thread Toby Dickenson
On Wednesday 06 July 2005 01:12, Terrance N. Phillip wrote: > I've done some searching, and can't seem to find a programatic way of > getting *** that to happen. http://www.google.com/search?q=setwallpaper+dcop I hope this helps -- Toby Dickenson -- http://mail.python.org/

Re: asynchronous comunication, wxPython and threads.

2005-06-21 Thread Toby Dickenson
hine sooner or later, and three communictions threads is starting to get ugly. A framework like Twisted will let you handle many machines in the one thread, but it still makes sense to keep a second one for the GUI. -- Toby Dickenson -- http://mail.python.org/mailman/listinfo/python-list

Re: collect data using threads

2005-06-14 Thread Toby Dickenson
ntents. It might only "show up" after that iteration has finished, when the consumer has discarded its reference to the shared list. -- Toby Dickenson -- http://mail.python.org/mailman/listinfo/python-list

Re: Python Impact Analysis Tool ?

2005-05-26 Thread Toby Dickenson
nge affects only A, B, and C out of the whole alphanet. Then I would > be able to isolate what needs to be changed and unit tested..I am > trying to improve programmer productivity at design time. For physical dependencies between modules: http://www.tarind.com/depgraph.html --

Re: Windows distribution suggestions?

2005-05-17 Thread Toby Dickenson
need more Ive not used NSIS, but I have had good results from the free WiX tools, at http://sourceforge.net/projects/wix/. Documentation is poor, but examples are plenty. -- Toby Dickenson -- http://mail.python.org/mailman/listinfo/python-list

Re: Distributing applications

2005-03-02 Thread Toby Dickenson
On Wednesday 02 March 2005 14:12, Phillip Mills wrote: > now any comments or references on the mechanics of creating > a self-contained distribution? Run to http://starship.python.net/crew/theller/py2exe/ -- Toby Dickenson -- http://mail.python.org/mailman/listinfo/python-list

Re: Flow chart (function tree) & cross references

2005-02-22 Thread Toby Dickenson
On Tuesday 22 February 2005 13:27, qwweeeit wrote: > Does someone knows something about function tree generation and cross > references? for trees of *module* dependencies: http://www.tarind.com/depgraph.html -- Toby Dickenson -- http://mail.python.org/mailman/listinfo/python-list

Re: python connect to server using SSH protocol

2005-02-09 Thread Toby Dickenson
s script hasnt started draining foe. For a real python program using ssh (but not 'interactive'... data written to fi does not depend on data read from foe) see http://dirstorage.sourceforge.net/replica.html -- Toby Dickenson -- http://mail.python.org/mailman/listinfo/python-list

Re: "private" variables a.k.a. name mangling (WAS: What is print? A function?)

2005-01-25 Thread Toby Dickenson
right? The problem occured because the double-underscore mangling uses the class name, but ignores module names. A related project already had a class named C derived from B (same name - different module). My refactoring caused aliasing of some originally distinct double-underscore attributes. --