Re: Regarding coding style

2008-03-17 Thread rockingred
On Mar 10, 11:30 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Fix that. That's usually something that's fairly easy to get done as > a programmer (I've had to do it at 2 of the last 4 places I worked). > Just go explain all the problems that can happen by not having VC and > all the benefi

Re: Regarding coding style

2008-03-10 Thread rockingred
On Mar 10, 10:26 am, Roel Schroeven <[EMAIL PROTECTED]> wrote: > rockingred schreef: > > > > > > > On Mar 8, 8:27 pm, Dan Bishop <[EMAIL PROTECTED]> wrote: > >> //    Copyright (C) 2008 Foobar Computer Consulting > >> //

Re: Converting a string to the most probable type

2008-03-10 Thread rockingred
On Mar 7, 6:12 pm, John Machin <[EMAIL PROTECTED]> wrote: > On Mar 8, 1:53 am, "[EMAIL PROTECTED]" > > > > > > <[EMAIL PROTECTED]> wrote: > > On Mar 6, 9:17 pm, Luis M. González <[EMAIL PROTECTED]> wrote: > > > > On 6 mar, 11:27, Pierre Quentel <[EMAIL PROTECTED]> wrote: > > > > > Hi, > > > > > I w

Re: Regarding coding style

2008-03-10 Thread rockingred
On Mar 8, 8:27 pm, Dan Bishop <[EMAIL PROTECTED]> wrote: > //    Copyright (C) 2008 Foobar Computer Consulting > // > //    VERSION   PROJECT#     DATE     DESCRIPTION > //    ---       -- > //      1.00     123456    01/04/08   Original creation. > // > > Elev

Re: List as FIFO in for loop

2008-03-10 Thread rockingred
On Mar 8, 5:37 pm, malkarouri <[EMAIL PROTECTED]> wrote: > On Mar 8, 6:24 pm, rockingred <[EMAIL PROTECTED]> wrote: > > > I think it's a bad practice to get into.  Did you intend to do the > > "process" step again over the added variables?  If not

Re: for-else

2008-03-10 Thread rockingred
On Mar 8, 4:15 pm, "Terry Reedy" <[EMAIL PROTECTED]> wrote: > "egbert" <[EMAIL PROTECTED]> wrote in message > > news:[EMAIL PROTECTED] > | However the loop-else really works more like this: > | .  try to do the loop; > | .  if it starts but is interrupted by a break, > | .  then do something else a

Re: Intelligent Date & Time parsing

2008-03-10 Thread rockingred
On Mar 7, 5:26 pm, [EMAIL PROTECTED] wrote: > On Mar 7, 4:22 pm, [EMAIL PROTECTED] wrote: > [snip]> Although if I end up writing my own I'll sure use > > datetime.parser.parse to get everything left over once you remove > > I mean dateutil.parser.parse. Tomorrow I'll have to leave off the last > Lu

Re: List as FIFO in for loop

2008-03-08 Thread rockingred
On Mar 8, 9:43 am, malkarouri <[EMAIL PROTECTED]> wrote: > Hi everyone, > > I have an algorithm in which I need to use a loop over a queue on > which I push values within the loop, sort of: > > while not(q.empty()): >     x = q.get() >     #process x to get zero or more y's >     #for each y: >    

Re: Converting a string to the most probable type

2008-03-07 Thread rockingred
Dates can be a pain. I wrote my own date program, simply because there are so many different ways to write a date: Mar 8, 2008 March 8th, 08 03/08/08 03-08-2008 And so on and so forth. The tricky bit is how to tell the difference between Day, Month and Year. I wrote a program to check the form

Re: Converting a string to the most probable type

2008-03-06 Thread rockingred
On Mar 6, 3:20 pm, George Sakkis <[EMAIL PROTECTED]> wrote: > On Mar 6, 9:27 am, Pierre Quentel <[EMAIL PROTECTED]> wrote: > > > > > > > Hi, > > > I would like to know if there is a module that converts a string to a > > value of the "most probable type" ; for instance : > > - if the string is "abc

Re: Book Recomendations

2008-03-03 Thread rockingred
The "Python Forum" has a good set of selections in their "General Forum" section: http://python-forum.org/pythonforum/viewtopic.php?f=1&t=12&st=0&sk=t&sd=a&sid=9b04b79b60f9afb56e4237856910d354&start=20 -- http://mail.python.org/mailman/listinfo/python-list

Re: PyWeek 6 is coming!

2008-02-01 Thread rockingred
On Jan 31, 4:11 pm, [EMAIL PROTECTED] wrote: > PyWeek 6 will run from 00:00 UTC on March 30th through to 00:00 UTC on April > 6th. > > Registration is NOT OPEN YET. It will open on Friday 2008/02/29. > > If you're new (or even coming back again) please have a look at the rules and > help pages atht