is this foolish?

2012-04-12 Thread Cameron Simpson
I've found myself using a Python gotcha as a feature. I've got a budding mail filter program which keeps rule state in a little class instance. Slightly paraphrased: class RuleState(object): def __init__(self, M, maildb_path, maildirs={}): [...] self.maildirs

Re: is this foolish?

2012-04-12 Thread Chris Angelico
On Thu, Apr 12, 2012 at 7:35 PM, Cameron Simpson c...@zip.com.au wrote: I've found myself using a Python gotcha as a feature. I've got a budding mail filter program which keeps rule state in a little class instance. Slightly paraphrased:    class RuleState(object):        def __init__(self,

Re: is this foolish?

2012-04-12 Thread Cameron Simpson
On 12Apr2012 19:43, Chris Angelico ros...@gmail.com wrote: | On Thu, Apr 12, 2012 at 7:35 PM, Cameron Simpson c...@zip.com.au wrote: | I've found myself using a Python gotcha as a feature. | I've got a budding mail filter program which keeps rule state in a | little class instance. Slightly

Re: is this foolish?

2012-04-12 Thread Tim Golden
On 12/04/2012 10:35, Cameron Simpson wrote: I've found myself using a Python gotcha as a feature. Have a look at Peter Inglesby's lightning talk from a recent London Python Dojo: http://inglesp.github.com/2012/03/24/mutable-default-arguments.html TJG --

Re: is this foolish?

2012-04-12 Thread Karl Knechtel
On Thu, Apr 12, 2012 at 7:15 AM, Tim Golden m...@timgolden.me.uk wrote: On 12/04/2012 10:35, Cameron Simpson wrote: I've found myself using a Python gotcha as a feature. Have a look at Peter Inglesby's lightning talk from a recent London Python Dojo:

Re: is this foolish?

2012-04-12 Thread Jean-Michel Pichavant
Cameron Simpson wrote: I've found myself using a Python gotcha as a feature. I've got a budding mail filter program which keeps rule state in a little class instance. Slightly paraphrased: class RuleState(object): def __init__(self, M, maildb_path, maildirs={}): [...]

Re: is this foolish?

2012-04-12 Thread Andrea Crotti
On 04/12/2012 10:35 AM, Cameron Simpson wrote: I've found myself using a Python gotcha as a feature. I've got a budding mail filter program which keeps rule state in a little class instance. Slightly paraphrased: class RuleState(object): def __init__(self, M, maildb_path,

Re: is this foolish?

2012-04-12 Thread gene heskett
On Thursday, April 12, 2012 10:40:47 AM Tim Golden did opine: On 12/04/2012 10:35, Cameron Simpson wrote: I've found myself using a Python gotcha as a feature. Tim: your setup of using the CC: line for every thing with a blank To: line is landing your posts in my spam folder. Do you have

Re: is this foolish?

2012-04-12 Thread Cameron Simpson
On 12Apr2012 10:44, gene heskett ghesk...@wdtv.com wrote: | On Thursday, April 12, 2012 10:40:47 AM Tim Golden did opine: | On 12/04/2012 10:35, Cameron Simpson wrote: | I've found myself using a Python gotcha as a feature. | | Tim: your setup of using the CC: line for every thing with a

Re: The odius and RACISTS WASPS of FBI can ONLY STING FOOLISH PATSIES, When will these INCOMPETENTOS catch the YANK ANTHRAX MAILER ? Re: *** Secret Technical Papers, dont tell the FBI ***

2007-05-10 Thread War Office
out of the office and exiled to China. If I found out some five FOOLISH PATSIES, Immigrants under mental or social imbalance were planning a STUPID and IDIOTIC operation, I would confront them with courtesy. I would tell them that this is a foolish act. That I, a white FBI officer am doing

The odius and RACISTS WASPS of FBI can ONLY STING FOOLISH PATSIES, When will these INCOMPETENTOS catch the YANK ANTHRAX MAILER ? Re: *** Secret Technical Papers, dont tell the FBI ***

2007-05-09 Thread lemnitzer
higher than those of NIXON. Long time ago, when FBI had a competent and PATRIOTIC chief, he was able to get the NIXON BASTARD out of the office and exiled to China. If I found out some five FOOLISH PATSIES, Immigrants under mental or social imbalance were planning a STUPID and IDIOTIC operation, I