Bento 0.0.3 (ex-toydist), a pythonic packaging solution

2010-07-01 Thread David
to build with bento - Improved documentation - 2.4 - 2.7 support, tested on linux/windows/mac os x You can download bento on github: http://github.com/cournape/Bento, discussion on bento design/features happens on numpy mailing list cheers, David -- http://mail.python.org

TypeError error on tkinter.createfilehandler dummy example

2005-01-21 Thread David
er.createfilehandler functionality but it does not work :( TIA -- David Santiago -- http://mail.python.org/mailman/listinfo/python-list

Problem with py2exe

2005-10-21 Thread David
returned exit code: can’t copy c:\Python24\Lib\sit I am running on Windows XP with distribution 2.4.2 and executing the setup.py from Pythonwin Build 204 I downloaded py2exe from sourceforge the version of py2exe for Python 2.4 Can anyone suggest what may be wrong? Thanks in advance David

Re: Problem with py2exe

2005-10-21 Thread David
David wrote: I am unable to use py2exe to create an executable, even on the simple sample that comes with the package. There seems to be a problem when it is copying files. The ‘build’ and ‘dist’ directories are created and populated, but there is no executable created. The error message

help with sending data out the parallel port

2005-10-26 Thread David
that installed with my version, [ Python 2.4.1. ] yielded nothing on the subject of either timing or parallel port. Id be thankful for any help. David KG2LI -- http://mail.python.org/mailman/listinfo/python-list

I am looking for some python script to compare two files

2005-11-08 Thread david
hi: The file can be PDF or Word format. Any help? thx -- http://mail.python.org/mailman/listinfo/python-list

Re: Looking Python script to compare two files

2005-11-09 Thread david
Hello Tim: Thanks for your reply! I want to compare PDF-PDF files and WORD-WORD files. It seems that the right way is : First, extract text from PDF file or Word file. Then, use Difflib to compare these text files. Would you please give me some more information about the external diff tools?

Re: Looking Python script to compare two files

2005-11-09 Thread david
Hello Tim: One more thing: There some Python scripts that can extract text from PDF or WORD file? Thx -- http://mail.python.org/mailman/listinfo/python-list

Re: Looking Python script to compare two files

2005-11-09 Thread david
Hello Tim: One more thing: There some Python scripts that can extract text from PDF or WORD file? Thx -- http://mail.python.org/mailman/listinfo/python-list

Re: Looking Python script to compare two files

2005-11-09 Thread david
Hello Tim: One more thing: There some Python scripts that can extract text from PDF or WORD file? Thx -- http://mail.python.org/mailman/listinfo/python-list

Re: Looking Python script to compare two files

2005-11-10 Thread david
Thanks for the quick replies! So if I want to use these tools: antiword,pdf2text, can I pack these tools and python script into a windows EXE file? I know there is open source tool which can pack python script and libs and generate the windows EXE file. Yes, this approach can't handle the

Re: Looking Python script to compare two files

2005-11-11 Thread david
Thanks Tim! I will have a try,maybe this weekend and let you know the result. -- http://mail.python.org/mailman/listinfo/python-list

Re: Python IDE

2005-12-16 Thread David
linuxfreak wrote: Which is a better python IDE SPE or WingIDE in terms of features You might want to look at a review of Python IDEs at http://spyced.blogspot.com/2005/09/review-of-6-python-ides.html david lees -- http://mail.python.org/mailman/listinfo/python-list

Socket programming design problem

2005-12-22 Thread David
. Is there any particular reason for this? Thanks, David -- http://mail.python.org/mailman/listinfo/python-list

Display of JPEG images from Python

2006-01-05 Thread David
way to display results? I guess I could issue shell commands to a graphics display package such as IrfanView, but I thought there might be a cleaner method. david lees -- http://mail.python.org/mailman/listinfo/python-list

Unlimited Free Music Downloads !

2005-10-10 Thread david
Download Unlimited Free Music Click Here! -- http://mail.python.org/mailman/listinfo/python-list

Cgi scripts in apache not working

2005-07-28 Thread David
I've looked all over the place for an answer, and the only one I can find doesn't mean anything to me. The end of line issue with writting it in Windows and then uploading it doesn't help me since I'm doing this all from Linux. I've been trying to get python cgi scripts to work, and I always end

Re: Display of JPEG images from Python

2006-01-15 Thread David
Svien and Michel, Thanks for your help. Much appreciated. David Lees -- http://mail.python.org/mailman/listinfo/python-list

Are there memory limits for external C modules?

2006-01-26 Thread david
if there's some sort of memory limitation the Python interpreter imposes on the C code it calls that I might be running into, and if so, any ways to increase it? Thanks, David -- http://mail.python.org/mailman/listinfo/python-list

Authenticating to Kerberos

2006-01-29 Thread David
Hi, I've had a quick look but cannot find a module that will let me authenticate against Kerberos. There appears to be a krb5 module that hasn't been updated for a long time and I can't find much on it except the pages at starship.python.net. I don't need to do anything except authenticate and

Re: How can I find the remainder when dividing 2 integers

2006-02-26 Thread David
: print colors[colorIndex++ % colors.length] ^ SyntaxError: invalid syntax The syntax error comes from your use of the ++ operator not the modulo operator. The ++ operator is not valid in python. david lees -- http://mail.python.org/mailman/listinfo/python-list

A new to Python question

2005-05-14 Thread David
? If you want to see the fortran code just email me. David -- http://mail.python.org/mailman/listinfo/python-list

Re: A new to Python question

2005-05-14 Thread David
] I think its just wonderful now, but if you got any other suggestions, Please do tell. Thanks everyone. David -- http://mail.python.org/mailman/listinfo/python-list

Re: A new to Python question

2005-05-14 Thread David
Hmm don't know what happened. I guess the formatting got all chewed up. -- http://mail.python.org/mailman/listinfo/python-list

libpython2.3.a Linux

2005-05-22 Thread David
-2.3.5/Include -L /usr/local/src/Python-2.3.5 - shared -fPIC -l libpython2.3 -o file.so Running on Fedora Core 3 - 1.7.0 made the following steps in compiling and installing Python : ./configure make make install make libpython2.3.so Compiling on windows 2k is fine. Thanks for any input. David

Linuz Python Module using PythonC/ API

2005-05-24 Thread David
init function (initutm) but the initutm function is there. Running on Fedora Core 3. Thanx David P.S Other question is there a command to know what export symbols a .so library has ? Relevant files below. utmmodule.c -- #include Python.h #include utm.h PyMODINIT_FUNC initutm

Re: html DOM

2008-03-29 Thread David
at Beautiful Soup? http://www.crummy.com/software/BeautifulSoup/ David. -- http://mail.python.org/mailman/listinfo/python-list

Re: Can anyone help me?

2008-03-29 Thread David
What is the collision of spheres? Is it the melding of a sphere of influence and cosmic sphere? What does it mean to say that such a collision doesn't work? The sphere is the optimal solid for storing the maximum volume in the minimum area. A sphere can retain the most heat, with

Re: Recurring patterns: Am I missing it, or can we get these added to the language?

2008-04-15 Thread David
Today I found myself once again defining two functions that I use all the time: nsplit and iterable. These little helper functions of mine get used all the time when I work. Im sick of having to define them (but am very good at it these days, less than 1 typo per function!). It leads me

Re: Getting subprocess.call() output into a string?

2008-04-15 Thread David
On Tue, Apr 15, 2008 at 10:36 PM, Tobiah [EMAIL PROTECTED] wrote: I am not sure how to capture the output of a command using subprocess without creating a temp file. I was trying this: import StringIO import subprocess file = StringIO.StringIO() subprocess.call(ls, stdout = file)

Re: Getting subprocess.call() output into a string?

2008-04-15 Thread David
uses real file handles), rather than in a python library (for which StringIO would probably work). David. -- http://mail.python.org/mailman/listinfo/python-list

Re: Checking if a text file is blank

2008-04-20 Thread David
the newline types seen. 'U' cannot be combined with 'w' or '+' mode. Note: open() is an alias for file(). Also, comparison of a value with True is redundant in an if statement. Rather use 'if f.read():' David. -- http://mail.python.org/mailman/listinfo/python-list

Re: Checking if a text file is blank

2008-04-20 Thread David
import os print os.lstat(friends.txt)[6] I prefer os.lstat(friends.txt).st_size -- http://mail.python.org/mailman/listinfo/python-list

Re: Any reliable obfurscator for Python 2.5

2008-04-20 Thread David
On Sun, Apr 20, 2008 at 6:55 AM, Banibrata Dutta [EMAIL PROTECTED] wrote: Hi, Wanted to check if there is any known, reliable, FOSS/Libre -- Obfurscator for Python 2.5 code. What might work is to put all your code in python modules, generate .pyc, and then only distribute those. But you have

Re: Where to get BeautifulSoup--www.crummy.com appears to be down.

2008-04-22 Thread David
side). Doesn't come with the nice online docs. But you can find those in other places (eg Google Cache). David. -- http://mail.python.org/mailman/listinfo/python-list

Re: Setting expirty data on a cookie

2008-04-22 Thread David
On Tue, Apr 22, 2008 at 6:21 PM, sophie_newbie [EMAIL PROTECTED] wrote: Does anyone know how to do this? I can't seem to make it work. I'm using: c = Cookie.SimpleCookie() c['data'] = unamepwordwhatever c.expires = time.time() + 300 print c This doesn't seem to work, so I'm

Re: Setting expirty data on a cookie

2008-04-25 Thread David
that the Cookie module author wanted to represent http state as a python dictionary, but chose an unfortunate name for the class. Also, the example page doesn't go into detail about setting attributes. David. -- http://mail.python.org/mailman/listinfo/python-list

Re: problem with listdir

2008-04-26 Thread David
besides F: (C: is a good start) * Try using other directories under F: drive in your program and see when you start hitting the problem. David. -- http://mail.python.org/mailman/listinfo/python-list

Re: Desktop notifications on Windows

2008-04-26 Thread David
On Sat, Apr 26, 2008 at 4:41 AM, [EMAIL PROTECTED] wrote: I'm looking for a way to implement desktop notifications (much like an instant messaging program or a mail notifier) within my Python application, on Windows only (no Gtk/Galago, please). I need no more than a simple text-based

Re: nntplib retrieve news://FULL_URL

2008-04-26 Thread David
there wasn't a and in your message ID, so it tried to parse it as an article number instead. I couldn't check your example because newsclip.ap.org requires a login. David. -- http://mail.python.org/mailman/listinfo/python-list

Re: problem with listdir

2008-04-27 Thread David
DOS. Try this instead: dir f:\code\python\pgmgallery\*.* David. -- http://mail.python.org/mailman/listinfo/python-list

Re: Question regarding Queue object

2008-04-27 Thread David
want a better performance. Is there any alternative out there? You could try a defaultdict containing queues, one queue per message ID. Or you could implement your own thread-safe LookAheadQueue class. David -- http://mail.python.org/mailman/listinfo/python-list

Re: design choice: multi-threaded / asynchronous wxpython client?

2008-04-27 Thread David
1) The data for the race about to start updates every (say) 15 seconds, and the data for earlier and later races updates only every (say) 5 minutes. There is no point for me to be hammering the server with requests every 15 seconds for data for races after the upcoming Try using an HTTP

Re: python and web programming, easy way...?

2008-04-27 Thread David
in the webpy online docs. Maybe it's possible to bolt on support with Python's Cookie module. David. -- http://mail.python.org/mailman/listinfo/python-list

Re: Question regarding Queue object

2008-04-27 Thread David
an intelligent PutMsg function), and the consumer threads pull from the queues they're interested in and ignore the others. If your apps are heavily threaded you might take a look at Stackless Python: http://www.stackless.com/ David. -- http://mail.python.org/mailman/listinfo/python-list

Re: design choice: multi-threaded / asynchronous wxpython client?

2008-04-27 Thread David
of the XML (GET request with a range header), and check the timestamp you mentinoed. If that changed then re-request the doc (a download resume is risky, the XML might change between your 2 requests). David. -- http://mail.python.org/mailman/listinfo/python-list

Re: design choice: multi-threaded / asynchronous wxpython client?

2008-04-27 Thread David
executions? (eg: if you restart it, does it need to have a fully populated UI, or can it start from an empty UI and start updating as it downloads new XML updates). How you answer the above questionss determines what kind of algorithm will work best. David. PS: I suggest that you contact

Re: design choice: multi-threaded / asynchronous wxpython client?

2008-04-27 Thread David
to 1 horse. 1 of these per horse per combination. - bet - Represents a bet. Has foreign relationship with combination (and other tables, eg: better, race) With a structure like the above you don't need hudreds of database columns :-) David. -- http://mail.python.org/mailman/listinfo/python-list

Re: Python -v import behavior

2008-04-30 Thread David
to the #! line instead of the command line. Something for you to try: Making a temporary copy of the project, and then cut out all the code except the import lines. See if that fails, then start commenting out imports until the error goes away. David. -- http://mail.python.org/mailman/listinfo/python

Re: State machine Example in Python

2008-05-03 Thread David
what you want from Google. David. -- http://mail.python.org/mailman/listinfo/python-list

Re: State machine Example in Python

2008-05-03 Thread David
There's plenty of results. Be more specific if you can't get what you want from Google. You'll probably find what you're looking for here: http://wiki.python.org/moin/FiniteStateMachine David. -- http://mail.python.org/mailman/listinfo/python-list

Re: Light slices + COW

2008-05-03 Thread David
objects only contain a tree of sub-operations (slices, concatenations, references to original sequences, etc). This shouldn't be too hard to implement. Does anyone know of an already-existing 'rope' module? David. -- http://mail.python.org/mailman/listinfo/python-list

Re: Script Optimization

2008-05-04 Thread David
you send it to the list as an attachment? David. -- http://mail.python.org/mailman/listinfo/python-list

Re: generator functions in another language

2008-05-04 Thread David
/view/python/trunk/Modules/itertoolsmodule.c?rev=61634view=markup David. -- http://mail.python.org/mailman/listinfo/python-list

Fw: Script Optimization

2008-05-04 Thread David
Forwarding back to the list. -- Forwarded message -- From: lev [EMAIL PROTECTED] Date: Sun, May 4, 2008 at 10:21 AM Subject: Re: Script Optimization To: David [EMAIL PROTECTED] On May 4, 12:32 am, David [EMAIL PROTECTED] wrote: It's too long to post here (160 lines) so

Re: using sqlite3 - execute vs. executemany; committing ...

2008-05-04 Thread David
levels, etc). David. -- http://mail.python.org/mailman/listinfo/python-list

Re: Open a file within an ISO in python.

2008-05-04 Thread David
On Sun, May 4, 2008 at 12:01 PM, [EMAIL PROTECTED] wrote: Is there a way to open a file that is inside of an ISO in python? Say I have an ISO file, danikars.iso and on the iso there is a file called information.txt I want to be able to do something like this. [code] iso_h =

Re: Script Optimization

2008-05-04 Thread David
() because rename() shadows a function imported from os. * Rename vars shadowing imported names * Improve logic for checking when to print help * Create emtpy md5 listing file if one doesn't exist * Add a comment for a dodgy-looking section David. -- http://mail.python.org/mailman/listinfo/python-list

Re: Script Optimization

2008-05-04 Thread David
' print \n\tChecksums Verified\n def rename_md5(newdirname, checksums): dict_ = md5format(checksums) # David [EMAIL PROTECTED]: # What's going on here? Looks like you assume there are always # 4 files (001string 1, 0001string 2, etc), which you rename to # string1, string2

Re: Light slices + COW

2008-05-04 Thread David
long sequences in when you need to (the same way that STL has it separate to the string class, even though the string class has a lot of other optimizations (internal ref counts, etc, to avoid unnecessary copies)). Do you know one? David. -- http://mail.python.org/mailman/listinfo/python-list

Re: please remove me from this list

2008-05-04 Thread David
. David. -- http://mail.python.org/mailman/listinfo/python-list

Re: ISBN Barecode reader in Python?

2008-05-04 Thread David
opensource/free SDK doing the same? As it is a hobby project, I don't like to spend money on the SDK. I Googled a bit and found this: http://jocr.sourceforge.net/index.html According to the docs it should be able to scan bar codes. David. -- http://mail.python.org/mailman/listinfo/python-list

Re: Image grab in Python

2008-05-04 Thread David
/ David. -- http://mail.python.org/mailman/listinfo/python-list

Re: Image grab in Python

2008-05-04 Thread David
is now (until they release the mouse button). Another way would be to listen to all events sent through X, and act based on the mouse events. VNC does something similar. A good starting point would be the Python xlib libraries: http://python-xlib.sourceforge.net/ David. -- http://mail.python.org

Re: Image grab in Python

2008-05-04 Thread David
Another way would be to listen to all events sent through X, and act based on the mouse events. VNC does something similar. See the 'record_demo.py' example that comes with python-xlib. -- http://mail.python.org/mailman/listinfo/python-list

Re: Image grab in Python

2008-05-04 Thread David
. All this would be in the docs for the Python x/gtk/wx/qt/etc libs. Where is the difficulty? David. -- http://mail.python.org/mailman/listinfo/python-list

Re: Real Time Midi File Playback - Reading and Writing midi at the same time

2008-05-04 Thread David
writing it, and continue writing as it plays. Have you tried the MIDI libraries listed on this page? http://wiki.python.org/moin/PythonInMusic David. -- http://mail.python.org/mailman/listinfo/python-list

Re: HTTP Error code Info

2008-05-04 Thread David
a wrapper function which captures the HTTPError exception, extracts the code, and returns it to the caller. David. -- http://mail.python.org/mailman/listinfo/python-list

unicode newbie - printing mixed languages to the terminal

2008-05-04 Thread David
better). But again, it looks like this limits me to 1 language. If what I want to do is very hard, I'll output html instead and view it in a web browser. But I'd prefer to use the terminal instead if possible :-) Thanks in advance. David. -- http://mail.python.org/mailman/listinfo/python-list

Re: using sqlite3 - execute vs. executemany; committing ...

2008-05-04 Thread David
Thank you very much for your comprehensive answer and detailed informations, David; I really appreciate it! You're welcome. As for the number of items, there would be approx. 34 000 calls of execute() in my present code, in the final version probably more; I think executmany is more

Re: using sqlite3 - execute vs. executemany; committing ...

2008-05-05 Thread David
;-) David. -- http://mail.python.org/mailman/listinfo/python-list

Re: unicode newbie - printing mixed languages to the terminal

2008-05-05 Thread David
a en_ZA.utf8 update-locale LANG=en_ZA.utf8 (And then rebooted, but I don't know if that was necessary). I can now print mixed language unicode to the console from Python. Thanks for your help. David. -- http://mail.python.org/mailman/listinfo/python-list

Re: using sqlite3 - execute vs. executemany; committing ...

2008-05-06 Thread David
try this and let me know how well it works? David -- http://mail.python.org/mailman/listinfo/python-list

How do you debug memory usage?

2008-05-06 Thread David
this? David. -- http://mail.python.org/mailman/listinfo/python-list

Re: How do you debug memory usage?

2008-05-06 Thread David
not tried this myself), use the Java Memory usage profiling/debugging tools. Thanks for your post. I didn't think of Googling for python memory profiling. That search returns a lot of results. I'll check a few of those results and post to the list if I find something good. David. -- http

Re: How do you debug memory usage?

2008-05-06 Thread David
I'll check a few of those results and post to the list if I find something good. It looks like Heapy, part of the Guppy project can do this: http://guppy-pe.sourceforge.net/#Heapy David. David. -- http://mail.python.org/mailman/listinfo/python-list

Re: How do you debug memory usage?

2008-05-06 Thread David
-backup (Python backup tool for Linux) - it's using 2 GB of memory (1GB ram, 1GB swap) on a backup server at work. I'll use your method to find out why this is happening. Even if it doesn't give me exact details, it should be enough info to go by. David -- http://mail.python.org/mailman/listinfo

Re: using sqlite3 - execute vs. executemany; committing ...

2008-05-07 Thread David
tell. Google for overlapping markup and python overlapping markup for more information. Here's one interesting page I found: http://www.wilmott.ca/python/xmlparser.html#OVERLAPPED It discusses the issue in detail, and comes with a Python implementation (I haven't checked it). David. -- http

Re: How do you debug memory usage?

2008-05-07 Thread David
with millions of files. A memory leak seems more likely. Thanks for your input. In case you're interested here's a link to my post to a local Linux user group: http://lists.clug.org.za/pipermail/clug-tech/2008-May/040532.html David. -- http://mail.python.org/mailman/listinfo/python-list

Re: using sqlite3 - execute vs. executemany; committing ...

2008-05-07 Thread David
://www.lmnl.org/wiki/index.php/Main_Page Another, related markup is Creole: http://www.lmnl.org/wiki/index.php/Creole David. -- http://mail.python.org/mailman/listinfo/python-list

Re: python equivalent to perl's inplace edit mechanism

2008-05-08 Thread David
#!/usr/bin/env perl #chgit script $^I = ''; while() { s/mike/dave/g; print; } #!/usr/bin/python import sys lines = open(sys.argv[1]).readlines() open(sys.argv[1], 'w').writelines([line.replace('mike', 'dave') for line in lines]) -- http://mail.python.org/mailman/listinfo/python-list

Re: python equivalent to perl's inplace edit mechanism

2008-05-08 Thread David
of the Zen of Python: Beautiful is better than ugly. Explicit is better than implicit. Simple is better than complex. You might find a variable like that in Ruby, which has strong Perl influences. David. -- http://mail.python.org/mailman/listinfo/python-list

Re: Parsing Email 'References' header.

2008-05-08 Thread David
On Thu, May 8, 2008 at 2:53 PM, Aspersieman [EMAIL PROTECTED] wrote: Hi I have a python script that parses email headers to extract information from them. I need to get the _last_ messageid in the 'References' field (http://cr.yp.to/immhf/thread.html) to create a threaded view of these

Re: Parsing Email 'References' header.

2008-05-08 Thread David
.*(.*?) Doesn't work if there is only one e-mail address: Here's another one: [^]+$ -- http://mail.python.org/mailman/listinfo/python-list

Re: prove

2008-05-08 Thread David
-in-funcs.html David. -- http://mail.python.org/mailman/listinfo/python-list

Re: Find more than one error at once

2008-05-10 Thread David
On Sat, May 10, 2008 at 8:38 AM, Joseph Turian [EMAIL PROTECTED] wrote: Is it possible to coax python to find more than one error at once? Thanks, Joseph -- http://mail.python.org/mailman/listinfo/python-list Sounds like you want to catch and log exceptions. --

Pythonicity of some algorithms

2008-05-10 Thread David
app calls queue.interrupt_get(), all threads currently locking on a queue.get() will continue, but with a GetInterrupted exception thrown. Perhaps there is some other Python threading idiom I should be using in this case. Any suggestions? David. -- http://mail.python.org/mailman/listinfo/python

Login to Drupal 6 site using pycurl

2009-04-12 Thread David
size=15 class=form-text required / /div input type=submit name=op id=edit-submit-2 value=Log in class=form-submit / [snip] Here are some guides I used; http://code.activestate.com/recipes/267255/ http://drupal.org/node/87711 thanks, -david -- Powered by Gentoo GNU/Linux http

Re: decent interactive python shell on MS Windows?

2008-10-01 Thread David
Il Wed, 1 Oct 2008 09:53:48 -0700 (PDT), [EMAIL PROTECTED] ha scritto: Is there an interactive Python shell on Windows that supports: - easy copy-pasting to/from an editor? (as opposed to the cumbersome mark, copy and then paste sequence that any terminal on Windows seems forced to adopt)

Re: open a new terminal window from another terminal window in linux/unix system

2008-11-05 Thread David
gaurav kashyap wrote: What i want to do is open another terminal window from already opened terminal window. Why? Can this be achieved.If yes,please provide a tested solution How about GNU Screen http://coding.derkeiler.com/Archive/Python/comp.lang.python/2008-09/msg01932.html --

Re: Unhandled exceptions checking

2008-05-24 Thread David
testing. Won't raise all possible exceptions in a given piece of code, but at least you can check if all lines get run once. David. -- http://mail.python.org/mailman/listinfo/python-list

Code correctness, and testing strategies

2008-05-24 Thread David
write and test (complete) unit tests? 4) Any other comments? Thanks for your time. David. -- http://mail.python.org/mailman/listinfo/python-list

Re: Code correctness, and testing strategies

2008-05-24 Thread David
misconceptions. David. -- http://mail.python.org/mailman/listinfo/python-list

Re: Code correctness, and testing strategies

2008-05-24 Thread David
. Thanks for your informative reply. I've learned a bit from this thread and will definitely look more into TDD :-) David. -- http://mail.python.org/mailman/listinfo/python-list

Re: Code correctness, and testing strategies

2008-05-24 Thread David
, but they are a poor substitute. If the customer is happy with the first version, you can improve it, fix bugs, and add more unit tests later. David PS: To people following this thread: I don't mean to be argumentative. This is a subject I find interesting and I enjoy the debate. I'm playing devil's advocate

Re: Code correctness, and testing strategies

2008-05-25 Thread David
be to update the event loop to enable unit testing. eg only iterate once if a 'being_tested' variable is set somewhere. None of the above are ideal. What is a good way to unit test event loops? David. -- http://mail.python.org/mailman/listinfo/python-list

Re: Code correctness, and testing strategies

2008-05-25 Thread David
lucky to work on smaller projects most of the time. David. -- http://mail.python.org/mailman/listinfo/python-list

Re: method-wrapper?

2008-06-01 Thread David
: A.__call__() will run B() A.__cmp__(C) will run cmp(B, C) etc. In other words python code which runs A() will be running the equivalent of A.B(), where A can do other things besides calling B() if it wants to. David. -- http://mail.python.org/mailman/listinfo/python-list

Re: SMS sending and receiving from website?

2008-06-01 Thread David
: http://smstools3.kekekasvi.com/ Debian installer: http://packages.debian.org/sid/smstools David. -- http://mail.python.org/mailman/listinfo/python-list

Re: Better performance

2008-06-02 Thread David
text-processing utils, and Python for the longer, more complicated scripts which you have to maintain. David. -- http://mail.python.org/mailman/listinfo/python-list

  1   2   3   4   5   6   7   8   9   10   >