Interesting problem about uuid1

2011-11-20 Thread sword
My colleague asks me an interesting problem about uuid library in python. In multicore system with multiprocessing, is it possible to get the duplicated uuid with uuid1? I just check the RFC 4122, and I can't find anything about multicore environment. Python's uuid1 method generates the uuid with

Re: Got some problems when using logging Filter

2011-11-20 Thread sword
On Nov 20, 8:42 am, Vinay Sajip wrote: > On Nov 17, 9:06 am, sword wrote: > > > > > > > > > > > On Nov 16, 10:50 pm, Peter Otten <__pete...@web.de> wrote: > > > > sword wrote: > > > > Thanks for your reply. I tried

Re: Got some problems when using logging Filter

2011-11-17 Thread sword
On Nov 16, 10:50 pm, Peter Otten <__pete...@web.de> wrote: > sword wrote: > > Thanks for your reply. I tried to edit the source a bit, now the > > main.py looks like this: > > #main.py > > import logging > > from logging import Filter > > import a

Re: Got some problems when using logging Filter

2011-11-16 Thread sword
On Nov 16, 7:40 pm, Jean-Michel Pichavant wrote: > sword wrote: > > The logging cookbook gives an Filter example, explainning how to add > > contextural info to log. I can't figure out how to filter log from it. > > > Suppose I have 3 file, a.py, b.py and main.

Got some problems when using logging Filter

2011-11-15 Thread sword
The logging cookbook gives an Filter example, explainning how to add contextural info to log. I can't figure out how to filter log from it. Suppose I have 3 file, a.py, b.py and main.py #file: a.py import logging logger=logging.getLogger(__name__) def print_log(): logger.debug("I'm module a")

Stucked with python logging module

2011-11-15 Thread sword
I just scaned through the beginer's guide of logging module, but I can't get anything from console. The demo just like this: import logging logging.debug("This is a demo") Maybe I should do sth to put the log to stdout in basicConfig first? Thanks in advance -- http://mail.python.org/mailman/lis

Re: python shell that saves history of typed in commands that will persist between reboots

2011-11-15 Thread sword
Maybe you're looking for ipython? History, tab-complete, sort of things in it. goldtech wrote: > Hi, > > Using Windows. Is there a python shell that has a history of typed in > commands? > > I don't need output of commands just what I typed it. I need it to > save between sessions - something that

CLAIM YOUR TWO FREE UNIVERSAL STUDIOS TICKETS!

2007-09-24 Thread Sword, Robyn
how do you claim your tickets? CLAIM YOUR TWO FREE UNIVERSAL STUDIOS TICKETS! CLAIM YOUR TWO FREE UNIVERSAL STUDIOS TICKETS! lisawill4u at yahoo.com Sat Nov 20 21:35:53 CET