Re: Relative Package Import

2008-07-08 Thread Remy Blank
Robert Hancock wrote: mypackage/ __init__.py push/ __init__.py dest.py feed/ __init__py ^ Missing dot here? ---| In subject.py I have from ..push import dest But

Re: Exit from os.chroot()

2008-06-04 Thread Remy Blank
Thomas Bellman wrote: That might not be the best idea... Suddenly the chroot:ed program has access to the real /usr/bin; and since it likely is running as root (it was allowed to call chroot()), it can do bad things to the things in /usr/bin. If a chrooted process is running as root, it can v

Re: ANN: Sydebar 1.0 - A browser sidebar generator for Python documentation

2008-06-04 Thread Remy Blank
(I apologize for the poorly formatted message. Something between my news client and the server decided, besides delaying the message for over 17 hours, to add an empty line for every line of text, which obviously messed up some headers. Here's the content again, and hopefully this message comes

ANN: Sydebar 1.0 - A browser sidebar generator for Python documentation

2008-06-04 Thread Remy Blank
Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable I am pleased to announce the first release of Sydebar, a browser sidebar = generator for Python documentation. For the impatient, sample outputs=20 for all Python versions ever released can be

Re: MySQLdb and dictcursor

2006-07-28 Thread blank
Dennis Lee Bieber <[EMAIL PROTECTED]> wrote in news:[EMAIL PROTECTED]: > dictCursor > RETURNS the results as a dictionary; it doesn't affect how > parameters are passed in. thats how I was using it > > Normally results are a (list or tuple) where you have to know the > ord

Re: Loading a file only once into an object and being able to access it from other modules

2004-12-07 Thread Remy Blank
Philippe C. Martin wrote: > I have a very large XML file that I load into dictionnaries defined in a > class > located in a module that is imported in many places. > > Since the loading process is very slow, I would like the file not to be > loaded > on import or class instantiation, but only

Re: pre-PEP generic objects

2004-12-03 Thread Remy Blank
Istvan Albert wrote: > On the other hand, it would be nice to have a module that > implements various design patterns. The Bunch, the Borg, the Null, > the Proxy all nicely documented tucked away in their separate > module. That would feel a lot less like littering the standard name space > with an