Re: Re: Dictionary from String?

2011-05-08 Thread gslindstrom
On May 8, 2011 2:00pm, Dan Stromberg wrote: On Sun, May 8, 2011 at 8:20 AM, Greg Lindstrom gslindst...@gmail.com> wrote: Is it possible to create a dictionary from a string value? Something along these lines (but that works): >>> mystring = "{'name':'greg','hatsize':'7 5/8'}" >>> mystri

Re: looping through possible combinations of McNuggets packs of 6,9 and 20

2010-08-14 Thread gslindstrom
On Aug 12, 4:33 am, Paul Rubin wrote: > Baba writes: > > exercise: given that packs of McNuggets can only be bought in 6, 9 or > > 20 packs, write an exhaustive search to find the largest number of > > McNuggets that cannot be bought in exact quantity. > > Is that a homework problem?  Hint: first

Python or Ant

2010-01-26 Thread gslindstrom
My company is looking at creating a tool to allow us to define and manage a process for each job we run (a typical job may be look on a customers ftp site for a file, download it, decrypt it and load it into our database). We would like something which would allow us to glue together various

Re: Checking a Number for Palindromic Behavior

2009-10-19 Thread gslindstrom
On Oct 18, 5:56 pm, Gary Herron wrote: > Benjamin Middaugh wrote: > > Thanks to everyone who helped with my query on reversing integers. I > > have one more simple problem I'm having trouble solving. I want to > > check a number for palindromic behavior (reading the same backwards > > and forwards

Re: Why not enforce four space indentations in version 3.x?

2009-07-11 Thread gslindstrom
On Jul 10, 2:22 pm, walterbyrd wrote: > I believe Guido himself has said that all indentions should be four > spaces - no tabs. > > Since backward compatibility is being thrown away anyway, why not > enforce the four space rule? > There is a routine in the Scripts directory, reindent.py, that wil

PyCon 2009 Tutorial Days

2009-02-07 Thread gslindstrom
Registration for PyCon 2009 (US) is open. Because of the popularity of the tutorials in years past, this year features 2 days of tutorials (32 total class on Wednesday, March 25 and Thursday, March 26) including: - 2

Python and Nagios

2009-01-27 Thread gslindstrom
out there? I've looked in the standard places and have not located anything. I will continue to add to my local package and, if I don't hear about a similar effort, will look to create something for the Cheese Shop. If you are interested in helping out, please drop me a line via the list o

Re: does anybody earn a living programming in python?

2006-09-26 Thread gslindstrom
walterbyrd wrote: > If so, I doubt there are many. I program full-time in Python writing systems to automate the processing of health care claims. Lots of database usage, lots of objects, lots of fun to write it in python (I used to code C/C++ and Perl). > I wonder why that is? Me, too. Are you

Re: IronPython 1.0 released today!

2006-09-06 Thread gslindstrom
Jim Hugunin wrote: > I'm extremely happy to announce that we have released IronPython 1.0 today! > http://www.codeplex.com/IronPython Way to go, Jim!! I am impressed with the effort. --greg -- http://mail.python.org/mailman/listinfo/python-list

Re: Read a file with open command

2006-08-12 Thread gslindstrom
AlbaClause wrote: > jean-jeanot wrote: > > Ummm, he did not say that your question was stupid. The Zappa quote is > included as part of what we refer to as a 'signature'. In the case of > Sybren Stuvel's posts to this newsgroup, the Frank Zappa quote is included > in every message that he pos

Re: do people really complain about significant whitespace?

2006-08-10 Thread gslindstrom
Carl Banks wrote: > Although Python doesn't do this, it is possible to mandate a specific > indent (4 spaces, say), or at least a reasonable consistent indent I like running reindent.py (found in your Python source directory under Tools/Scripts) which cleans up indentations, trailing whitespace,

Re: do people really complain about significant whitespace?

2006-08-08 Thread gslindstrom
infidel wrote: > Where are they-who-hate-us-for-our-whitespace? Are "they" really that > stupid/petty? Are "they" really out there at all? "They" almost sound > like a mythical caste of tasteless heathens that "we" have invented. > It just sounds like so much trivial nitpickery that it's hard to

Re: War chest for writing web apps in Python?

2006-07-29 Thread gslindstrom
Sybren Stuvel wrote: > Vincent Delporte enlightened us with: > > I'm thinking of using Python to build the prototype for a business > > web appplication. > > Why just the prototype? > I don't know about Vincent, but I once worked in a "C++" shop where all other languages were actively discouraged.