Re: Unit Testing in Python

2005-02-10 Thread Tom Willis
Neat the original poster shows up as a potential Phisher with a nice big red warning in gmail. Due to some funky header fakedness. Don't give them your SSN. :) I have a related question. What is PyDoc? I see it come up alot in searches for Unit testing and python, but I've never gotten around to

Re: goto, cls, wait commands

2005-02-10 Thread Michael Hoffman
BOOGIEMAN wrote: First of all, what's Python command equivalent to QBasic's "goto" ? You can only use the goto function if you use Python with line numbers, thusly: """ 10 import sys 20 real_stdout = sys.stdout 30 class fake_stdout(object): pass 40 fake_stdout.write = lambda x, y: None 50 sys.stdou

Loading functions from a file during run-time

2005-02-10 Thread Bryant Huang
Hello! I would like to read in files, during run-time, which contain plain Python function definitions, and then call those functions by their string name. In other words, I'd like to read in arbitrary files with function definitions, using a typical 'open()' call, but then have those functions av

Re: Unit Testing in Python

2005-02-10 Thread rhat
Yeah, you know I only ask questions about Test-driven development basics in hopes of obtaining your personal information, so that I can sell it on the Molodovian blackmarket. I'm not a "Phisher", I'm a comp-sci major who's too lazy to dig around for his own answers. ;) Thanks for your help Roy, I

Re: Unit Testing in Python

2005-02-10 Thread Tom Willis
It could be a bug in gmail. I wasn't actually accusing you, just thought it was funny enough to point out. Of course you could be more sarcastic than me who knows. :) I'm not worried though. I believe the best strategy against Identity theft is bad credit. So question , do you see the big red blo

Your message to RT-Announce awaits moderator approval

2005-02-10 Thread rt-announce-bounces
Your mail to 'RT-Announce' with the subject Registration is accepted Is being held until the list moderator can review it for approval. The reason it is being held: Post by non-member to a members-only list Either the message will get posted to the list, or you will receive notificatio

Re: Unit Testing in Python

2005-02-10 Thread Brian van den Broek
rhat said unto the world upon 2005-02-10 21:10: Hi Everyone, I've recently been reading some articles about unit-testing in Python [1] [2], but I am a bit confused: where do I go to get started with this? I tried googling for "unittest" but all I've found are some old links to projects that already

Re: [perl-python] combinatorics fun

2005-02-10 Thread Haibao Tang
I am no longer resisting. As time goes, the nausea when I first saw Mr. Lee's smelly "technical posts" is starting to fade. The discussion group should have a high tolerance towards polymorphic people these days. -- http://mail.python.org/mailman/listinfo/python-list

Your message to RT-Announce awaits moderator approval

2005-02-10 Thread rt-announce-bounces
Your mail to 'RT-Announce' with the subject Delivery service mail Is being held until the list moderator can review it for approval. The reason it is being held: Post by non-member to a members-only list Either the message will get posted to the list, or you will receive notification o

Re: Loading functions from a file during run-time

2005-02-10 Thread Grant Edwards
On 2005-02-11, Bryant Huang <[EMAIL PROTECTED]> wrote: > I would like to read in files, during run-time, which contain > plain Python function definitions, and then call those > functions by their string name. In other words, I'd like to > read in arbitrary files with function definitions, using a

Re: Performance Issues of MySQL with Python

2005-02-10 Thread Haibao Tang
There are no performance overhead except when you are dragging a huge chunk of information out of the database, in that case, python is converting the data to its tuple data type which adds one more processing. I found this when I didn't have the priviledge to do "mysql> SELECT * FROM TBL INTO OUT

Your message to RT-Announce awaits moderator approval

2005-02-10 Thread rt-announce-bounces
Your mail to 'RT-Announce' with the subject Is delivered mail Is being held until the list moderator can review it for approval. The reason it is being held: Post by non-member to a members-only list Either the message will get posted to the list, or you will receive notification of th

:-)

2005-02-10 Thread Greg Ewing
Sion Arrowsmith wrote: Greg Ewing <[EMAIL PROTECTED]> wrote: As a fellow named Church once pointed out, lambdas are really *all* you need in a language... ... where as others argue that it is impractical not to have some form of runtime data storage, thereby giving rise to the separation of Churc

Re: Python-libnjb on macosx

2005-02-10 Thread Christian Dieterich
On Déardaoin, Feabh 10, 2005, at 18:08 America/Chicago, Robert Kern wrote: Timothy Grant wrote: I was working on some things that use Glenn Strong's excellent libnjb wrapper on my Linux box. I have since bought a PowerBook and have been trying to get everything working correctly under OS/X. This

PyINI : Cross-Platform INI parser

2005-02-10 Thread SeSe
hi, every one, I started a opensource project PyINI for corss-platform *.ini parsing at http://sourceforge.net/projects/pyini/ I have released a simple alpha version, which can read *.ini, with some extended features such as "key=value1,value2,value3". I also made a c++ binding to PyINI with elmer

Re: a sequence question

2005-02-10 Thread David Isaac
"Nick Coghlan" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Using zip(*[iter(l)]*N) or zip(*(iter(l),)*N) simply extends the above to the > general case. Clearly true. But can you please go into much more detail for a newbie? I see that [iter(l)]*N produces an N element list with

Re: Unit Testing in Python

2005-02-10 Thread rhat
Tom Willis wrote: > It could be a bug in gmail. I wasn't actually accusing you, just > thought it was funny enough to point out. Of course you could be more > sarcastic than me who knows. :) > > I'm not worried though. I believe the best strategy against Identity > theft is bad credit. > > So ques

Re: Unit Testing in Python

2005-02-10 Thread rhat
I actually meant to link to the last two ONLamp articles you mentioned, so yeah I have seen those (kinda forgot to post them, in fact). Thanks for the other links too, they look pretty interesting. Incidentally, what kind of projects are you guys (planning on) using this technology with? I'm workin

Re: convert list of tuples into several lists

2005-02-10 Thread Pierre Quentel
Steven Bethard a écrit : Cappy2112 wrote: What does the leading * do? Tells Python to use the following iterable as the (remainder of the) argument list: Could someone explain why this doesn't work : Python 2.3.2 (#49, Oct 2 2003, 20:02:00) [MSC v.1200 32 bit (Intel)] on win32 Type "help", "co

Re: [perl-python] combinatorics fun

2005-02-10 Thread Xah Lee
David Eppstein's code is very nice. Here's the python version of the perl code: ©# -*- coding: utf-8 -*- ©# Python © ©def combo (n): ©'''returns all possible (unordered) pairs out of n numbers 1 to n. © ©Returns a dictionary. The keys are of the form "n,m", ©and their values are tuple

Re: convert list of tuples into several lists

2005-02-10 Thread Stephen Thorne
On Fri, 11 Feb 2005 07:35:43 +0100, Pierre Quentel <[EMAIL PROTECTED]> wrote: > Steven Bethard a écrit : > > Cappy2112 wrote: > > > >> What does the leading * do? > > > > > > Tells Python to use the following iterable as the (remainder of the) > > argument list: > > > > Could someone explain why t

Re: Python v.s. c++

2005-02-10 Thread suryaprakashg
xiaobin yang wrote: > Hi, if i am already skillful with c++. Is it useful to learn python? thanks! Defenitly , It is much easier to convert an idea to a living model easily in python and with out much effort . You can always mix things with C++ and python ( for optimization or whatever)with s

Re: goto, cls, wait commands

2005-02-10 Thread James
On Windows, I use WConio http://newcenturycomputers.net/projects/wconio.html It provides other screen functions you might have gotten used to in QBasic as well. On unix/cygwin, use curses. I am not aware of any portable library though. I used to use cls a lot in my QBasic days. Now I just don't.

Re: implementing singleton class at the module level

2005-02-10 Thread Michele Simionato
A Singleton class is there to be inherited from; a singleton instance like the one you define is pretty much useless (unless I misunderstand your intentions). Michele Simionato -- http://mail.python.org/mailman/listinfo/python-list

Re: ActivePython 2.3.5.236 and ActivePython 2.4.0.244 are available

2005-02-10 Thread mep
ActivePython-2.4.0-243-win32-ix86.msi : 29M ActivePython-2.4.0-244-win32-ix86.msi : 18M What make so much difference of the size of them, which distinct monir version number for 1 only. Any explaination? -- Best Regards, Wang Kebo http://www.huihoo.org/~mep "Trent Mick" <[EMAIL PROTECTED]> w

<    1   2   3