Re: for loop question
just do: for a in range(2, foo+1): print a range(a, b) gives [a, a+1, a+2, ..., b-2, b-1] bruce schrieb: > hi.. > > basic foor/loop question.. > > i can do: > > for a in foo > print a > > if i want to do something like > for a, 2, foo > print foo > > where go from 2, to foo.. > > i can't figure out how to accomplish this... > > can someone point me to how/where this is demonstrated... > > found plenty of google for for/loop.. just not this issue.. > > thanks > > -bruce -- http://mail.python.org/mailman/listinfo/python-list
Re: for loop question
> Except that in the OP's example foo was a sequence, not an > integer. I think. Yes, possibly. But then, what's "from 2 to foo"? this way it might be for a in [2] + foo: print a -- http://mail.python.org/mailman/listinfo/python-list
Announcing Apydia
Today, I am very excited to announce the first release of the Apydia API reference documentation generator for Python. It's designed as an instantly serviceable replacement for Pudge's API documentation generator. It won't generate complete websites from reST etc. like Pudge does, though - Apydia is only about the API. Features include: - Basic Pudge compatibility and a short and easy migration path - Rudimentary Trac-integration, that is links into Trac's sourcecode browser - Some fair amount of usability - Setuptools integration - Flexible, Genshi/XInclude-based themeability with theme inheritance - Support for various text formats like Markdown, Textile and reST - Other parsers can easily be plugged in on demand - Syntax highlighting thanks to Pygments For more information visit Apydia's web site at http://apydia.ematia.de and the Apydia Google Group at http://groups.google.com/group/apydia. -- Daniel Haus http://ematia.de -- http://mail.python.org/mailman/listinfo/python-list
Re: Announcing Apydia
On 30 Nov., 19:46, "Daniel Fetchinson" <[EMAIL PROTECTED]> wrote: > You might want to fix the typo in the title tag of the webpage. > > Cheers, > Daniel That one was really hard to find, now I fixed it. Thank you, Daniel! -- http://mail.python.org/mailman/listinfo/python-list