On Sun, 16 Oct 2011 00:18:40 -0700, Jon Clements wrote:
> On Oct 16, 12:53 am, PoD wrote:
>> On Sat, 15 Oct 2011 11:00:17 -0700, Gnarlodious wrote:
>> > What is the best way (Python 3) to loop through dict keys, examine
>> > the string, change them if needed, and s
On Sat, 15 Oct 2011 11:00:17 -0700, Gnarlodious wrote:
> What is the best way (Python 3) to loop through dict keys, examine the
> string, change them if needed, and save the changes to the same dict?
>
> So for input like this:
> {'Mobile': 'string', 'context': '', 'order': '7',
> 'time': 'True'}
On Thu, 18 Jun 2009 13:39:28 +0200, Anthra Norell wrote:
> I had a look at Blender. It looks impressive too. It might be an
> alternative to Sketch Up. I'll worry about that later. My immediate need
> is a file conversion utility. A cursory inspection of Blender's menu
> tabs and the various
On Fri, 19 May 2006 10:04:15 +0200, Christophe wrote:
> PoD a écrit :
>> Maybe what Python should do (but never will given the obsession with using
>> spaces) is only allow one level of indentation increase per block so that
>>
>> def foo():
>> return 'b
On Thu, 18 May 2006 10:33:58 +0200, Christophe wrote:
> PoD a écrit :
>> On Wed, 17 May 2006 21:37:14 +0800, Andy Sy wrote:
>>
>>
>>>If tabs are easily misunderstood, then they are a MISfeature
>>>and they need to be removed.
>>>
>>>
On Thu, 18 May 2006 08:30:03 +, Duncan Booth wrote:
> PoD wrote:
>> How many levels of indentation does 12 spaces indicate?
>> It could be 1,2,3,4,6 or 12. If you say it's 3 then you are
>> _implying_ that each level is represented by 4 spaces.
>
> By rea
On Wed, 17 May 2006 21:37:14 +0800, Andy Sy wrote:
> If tabs are easily misunderstood, then they are a MISfeature
> and they need to be removed.
>
>>From the Zen of Python:
>
> "Explicit is better than implicit..."
> "In the face of ambiguity, refuse the temptation to guess..."
> "Special cases
On Mon, 19 Dec 2005 02:29:41 -0800, [EMAIL PROTECTED] wrote:
> I want to be able to do something like:
>
> myscript.py * -o outputfile
>
> and then have the shell expand the * as usual, perhaps to hundreds of
> filenames. But as far as I can see, getopt can only get one argument
> with each opti
On Fri, 30 Sep 2005 15:40:51 -0700, James Stroud wrote:
> I'm very curious about what is going on here. I'm sure my curiosity has
> something to do with ignorance of some fundamental concept of computer
> science (maybe that 8 is just a vertical infinity?):
>
> py> b = '\xb6'
> py> b[0]
> '\xb6
On Fri, 13 May 2005 02:52:34 -0700, Xah Lee wrote:
> i wanted to define a function where the number of argument matters.
> Example:
>
> def Range(n):
> return range(n+1)
>
> def Range(n,m):
> return range(n,m+1)
>
> def Range(n,m,step):
> return range(n,m+1,step)
>
> this obvious d
10 matches
Mail list logo