Re: What's the best way to learn perl for a python programmer?

2006-03-26 Thread john_sips_tea
The online docs are very good. Just run "perldoc perl", and then go through the various tutorial pages (starting with "perldoc perlintro"). You can also read them online here: http://perldoc.perl.org/perl.html . Then go to http://www.perlmonks.org . They have many tutorial-style articles there, as

Re: doctest, unittest, or if __name__='__main__'

2006-03-22 Thread john_sips_tea
> so you think that a "why all this creativity when you could just > standardize on something ported from java, and throw away every- > thing else" post is friendly ? really ? Sorry for the sloppy writing. Thanks for clarifying. I wrote: > If unittest is the standard way to write test code, why

Re: doctest, unittest, or if __name__='__main__'

2006-03-21 Thread john_sips_tea
> and you can kill two birds with one stone. By that, do you mean you can write your tests and your docstrings in one shot with doctest? > I would like to see yet another alternatise such as py.test > in the standard lib, Ah: http://codespeak.net/py/current/doc/home.html -- http://mail.python.

Re: doctest, unittest, or if __name__='__main__'

2006-03-21 Thread john_sips_tea
> because it's a vastly superior way to write tests ? Well, since this is a mailing list where this sort of thing is discussed, and since I was was asking about which way is preferred, could you tell us why you (presumably) think doctest is vastly superior to unittest? > why is it that comp.lang.

doctest, unittest, or if __name__='__main__'

2006-03-21 Thread john_sips_tea
For writing testcode, it looks like there's three ways that it's typically done: (1). using the doctest module, (2). using the unittest module (i.e. "pyunit"), or else (3). just putting an "if __name__ = '__main__':" at the bottom of your module containing code to manually run your class through

Re: Loop Backwards

2006-03-17 Thread john_sips_tea
Tim Roberts wrote: > "Dave" <[EMAIL PROTECTED]> wrote: > > > >Please be mindful of making statements such as: > >"it's silly to believe both will behave equally" > > > >One of the greatest weaknesses of Python is the less than friendly > >attitude Pythonistas display towards one another. > > I don

Re: Tried Ruby (or, "what Python *really* needs" or "perldoc!")

2006-03-16 Thread john_sips_tea
Jason Earl wrote: > "msoulier" <[EMAIL PROTECTED]> writes: > > >> I have found the Python sidebar VERY helpful: > > > > Personally, I can't use local docs on my desktop as they may not be > > the same version of the docs for the Python distro running on the > > server that I'm deploying on. I usua

Re: Tried Ruby (or, "what Python *really* needs" or "perldoc!")

2006-03-15 Thread john_sips_tea
msoulier wrote: > > [snip] > But, if Python would match Perl for docs available on the command-line, > then I'd have it all at my fingertips. I simply don't understand why > this is not being done. [snip] > > Mike Ok, well, here's my attempt to begin to make that happen: http://www.simisen.com/jm

Re: Tried Ruby (or, "what Python *really* needs" or "perldoc!")

2006-03-14 Thread john_sips_tea
> And the patch procedure you described requires > a higher degree of motivation (and free time) than > most potential contributors might have on offer, imo. Another option is to simply email the author/maintainer for a given module your modifications to their module. cd ~/dev/python/modified_mod

Re: Tried Ruby (or, "what Python *really* needs" or "perldoc!")

2006-03-14 Thread john_sips_tea
Well, we've already got a wiki, of course: http://wiki.python.org/moin/ Regarding the docs for the module you're asking about, the way it's supposed to work is (I think), you're supposed to checkout the Python source, add your docs to the docstrings of that module, then either commit your changes

Re: Tried Ruby (or, "what Python *really* needs" or "perldoc!")

2006-03-14 Thread john_sips_tea
Ok. I'm going to try and make something happen. Give me a day or so. :) ---John -- http://mail.python.org/mailman/listinfo/python-list

Re: Tried Ruby (or, "what Python *really* needs" or "perldoc!")

2006-03-14 Thread john_sips_tea
> So far epytext suited my needs. I like it too. Ok, now I'm starting to get excited. :) -- http://mail.python.org/mailman/listinfo/python-list

Re: Tried Ruby (or, "what Python *really* needs" or "perldoc!")

2006-03-14 Thread john_sips_tea
Thanks Diez! Epydoc looks great. Can we use epytext to generate output suitable for a manpage? Do you prefer epytext or reST? -- http://mail.python.org/mailman/listinfo/python-list

Tried Ruby (or, "what Python *really* needs" or "perldoc!")

2006-03-14 Thread john_sips_tea
Just tried Ruby over the past two days. I won't bore you with the reasons I didn't like it, however one thing really struck me about it that I think we (the Python community) can learn from. Ruby has ... an issue with docs. That is to say, there are almost none. Well, actually, there are some. For

fairly large webapp: from Java to Python. experiences?

2006-02-03 Thread john_sips_tea
I've got a fairly substantial webapp written in Java (plus Tomcat, Hibernate, Struts, JSP, MySQL) that is a bit of a bear to work with. I didn't write it. Much of it is only very sparsely documented (if at all). No design docs anywhere. It's a large webapp with many classes and fairly deep inherita