Re: Is c.l.py becoming less friendly?

2009-02-06 Thread Richard Levasseur
On Feb 5, 8:02 am, Dan Upton wrote: > On Thu, Feb 5, 2009 at 11:00 AM, mk wrote: > > > (duck) > > > 542 comp.lang.python rtfm > > > 467 comp.lang.python shut+up > > > 263 comp.lang.perl rtfm > > > 45 comp.lang.perl shut+up > > But over how many messages for each group?  Wouldn't the percentage of

Re: index all instances by id - a memory leak?

2008-10-02 Thread Richard Levasseur
On Oct 1, 10:35 pm, Jason Scheirer <[EMAIL PROTECTED]> wrote: > On Oct 1, 10:01 pm, Dan Barbus <[EMAIL PROTECTED]> wrote: > > > On Oct 2, 7:54 am, Dan Barbus <[EMAIL PROTECTED]> wrote: > > > >     def getItemById(id): > > >         return _itemsById[id] > > > I just saw that this won't compile. Sti

Re: XML-RPC "filter"

2008-09-11 Thread Richard Levasseur
On Sep 10, 2:04 pm, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] schrieb: > > > > > On 9 Set, 17:55, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote: > >> I would go for a slightly different approach: make your server have a > >> dispatch-method that delegates the calls to the und

Re: XML-RPC "filter"

2008-09-10 Thread Richard Levasseur
On Sep 9, 8:53 am, Luigi <[EMAIL PROTECTED]> wrote: > Dear all, > > I'm writing an XML-RPC server which should be able to modify the > incoming request before dispatching it. In particular I wand to added > two fixed parameters to the method called: one is the client host > address, and the other i

Re: exception handling in complex Python programs

2008-08-20 Thread Richard Levasseur
One common-place thing I've noticed in a lot of python code is that every package or module has a main Error class, and all sub-types inherit from that class. So you just catch mylib.Error, and you're going to catch all the exceptions that package generates directly. There seems to be a lot of co

Re: SimpleJson is slow .... is there any C Compiled version ?

2008-07-26 Thread Richard Levasseur
On Jul 25, 5:52 pm, Matt Nordhoff <[EMAIL PROTECTED]> wrote: > Also, simplejson and python-cjson might not be entirely compatible: > there's one character that one escapes and the other doesn't, or something. > -- They also have different interface. simplejson uses load/loads/dump/ dumps, whereas

Re: Why does python not have a mechanism for data hiding?

2008-06-03 Thread Richard Levasseur
On Jun 3, 3:07 am, "BJörn Lindqvist" <[EMAIL PROTECTED]> wrote: > On Mon, Jun 2, 2008 at 10:50 PM, Russ P. <[EMAIL PROTECTED]> wrote: > > On Jun 2, 6:41 am, Carl Banks <[EMAIL PROTECTED]> wrote: > > >> You are not realizing that only useful(**) thing about data hiding is > >> that some code has acc

Re: Python Unicode to String conversion

2007-09-16 Thread Richard Levasseur
> On 1 sep, 09:17, iapain <[EMAIL PROTECTED]> wrote: > > > First make sure your DB encoding is UTF-8 not the latin1 > It took me days to figure out what was going on when dealing with unicode, ascii, latin1, utf8, decodeerrors, etc, so I'm just chiming in to echo something similar iapain's comment

Re: Extending logging module

2007-08-10 Thread Richard Levasseur
On Aug 9, 9:08 am, jay <[EMAIL PROTECTED]> wrote: > Hello, > > I've been using the python logging module a lot lately, and I've come > across an instance where I need some new levels. Specifically, python > does not include ALERT and NOTICE in the default set of logging > levels. I am wondering h