Re: Adding through recursion

2005-11-18 Thread Mark Jackson
y > else: > x -= 1 > y += 1 > add(x, y) > > print add(2, 4) > > result: > 6 > None Perhaps this hint will help: >>> print add(0,6) 6 6 -- Mark Jackson - http://www.alumni.caltech.edu/~mjackson Of course a weed-puller isn&

Re: Documentation suggestions

2005-12-07 Thread Mark Jackson
only > user. But are those 10 modules the same 10 modules that other folks > need? I don't know... > > Of course, the only way to find out is to try... Or you can just look up the module you need to write a 'bot to constantly look up the

Re: global variables

2005-02-03 Thread Mark Jackson
7;ll just have to put > up with the ambiguities. Or perhaps, given my (lack of) typing skill, I > should just start signing myself "Stvev"? What's this doing *here*? I thought the discussion of the pitfalls of name rebinding was taking place in the "variable declaration&q

Re: Tricky Dictionary Question from newbie

2005-07-11 Thread Mark Jackson
turn a new dict with string keys and lists containing the > previous keys for repeated values. > > NewDict = {'This is repeated':['rt','sr'],'This is not':['gf']} NewDict = {} for x in Dict.keys(): try: NewDict[Dic

Re: Interleave merge pdf files

2005-07-22 Thread Mark Jackson
I would be interested in an alternative approach which does not generate a ton of intermediate pdfs. -- Mark Jackson - http://www.alumni.caltech.edu/~mjackson It is difficult for men in high office to avoid the malady of self-delusion.- Calvin Coolidge -- http://mail.python.org/mailman/listinfo/python-list

Re: negative integer division

2005-02-07 Thread Mark Jackson
Q: What multiple of 7 did I add to the critical expression in the Zeller algorithm so it would remain nonnegative for the next few centuries? -- Mark Jackson - http://www.alumni.caltech.edu/~mjackson People who write obscurely are either unskilled in writing or up to mischie

Re: negative integer division

2005-02-10 Thread Mark Jackson
[EMAIL PROTECTED] (John Machin) writes: > [EMAIL PROTECTED] (Mark Jackson) wrote in message news:<[EMAIL PROTECTED]>... > > > > A: 42 > > > > Q: What multiple of 7 did I add to the critical expression in the Zeller > > algorithm so it would remain

Re: How did you learn Python?

2004-12-03 Thread Mark Jackson
> the re class for example. > > Somebody called O'Reilly taught you that Python has "standard > classes", one of which is "re"??? Hmmm, can't have been O'Reilly the > publisher; must have been O'Reilly the builder. Or possibly O'Reilly

Re: Filename case-insensitivity on OS X

2006-01-06 Thread Mark Jackson
e search box in Google, your AOL or Jabber buddy > list: all case-insensitive. Not all URLs. Compare, for example: http://www.python.org/doc/Summary.html http://www.python.org/doc/summary.html -- Mark Jackson - http://www.alumni.caltech.edu/~mjackson Those who can make you believe a

Re: Indentation for code readability

2007-03-30 Thread Mark Jackson
x(); > } > popMatrix(); > > The curly brackets have no functional meaning but increase the > readability significantly. You are e. e. cummings, and I claim my £5. -- Mark Jackson - http://www.alumni.caltech.edu/~mjackson Every 10 years we say t

Re: Characters contain themselves?

2006-04-07 Thread Mark Jackson
f/types.html > > (One item of what type, one might ask) Good point. ". . .represented by a string of length one" would be better. -- Mark Jackson - http://www.alumni.caltech.edu/~mjackson An information system based on theory isolated from reality is bound to fail. - Mitch Kabay -- http://mail.python.org/mailman/listinfo/python-list