Re: Python noob SOS (any [former?] Perlheads out there?)

2008-02-02 Thread samwyse
kj wrote: I'd written a Perl module to facilitate the writing of scripts. It contained all my boilerplate code for parsing and validating command-line options, generating of accessor functions for these options, printing of the help message and of the full documentation, testing, etc. A lot

Re: Python noob SOS (any [former?] Perlheads out there?)

2008-01-31 Thread A.T.Hofkamp
On 2008-01-30, grflanagan [EMAIL PROTECTED] wrote: On Jan 29, 5:39 pm, kj [EMAIL PROTECTED] wrote: For command line options I get a long way with this: [code python] def _getargs(): allargs = sys.argv[1:] args = [] kwargs = {} key = None while allargs: arg =

Re: Python noob SOS (any [former?] Perlheads out there?)

2008-01-31 Thread grflanagan
On Jan 31, 2:56 pm, A.T.Hofkamp [EMAIL PROTECTED] wrote: On 2008-01-30, grflanagan [EMAIL PROTECTED] wrote: On Jan 29, 5:39 pm, kj [EMAIL PROTECTED] wrote: For command line options I get a long way with this: [code python] def _getargs(): allargs = sys.argv[1:] args = []

Re: Python noob SOS (any [former?] Perlheads out there?)

2008-01-30 Thread kj
In [EMAIL PROTECTED] Reedick, Andrew [EMAIL PROTECTED] writes: Be that as it may, the activation barrier to using Python for my scripting remains too high. =20 I'd written a Perl module to facilitate the writing of scripts. It contained all my boilerplate code for parsing and validating

Re: Python noob SOS (any [former?] Perlheads out there?)

2008-01-30 Thread kj
In [EMAIL PROTECTED] Wildemar Wildenburger [EMAIL PROTECTED] writes: kj wrote: Is there any good reading (to ease the transition) for Perl programmers trying to learn Python? www.diveintopython.org Thanks. Not for Perl programmers specifically, but it looks useful all the same. kynn --

Re: Python noob SOS (any [former?] Perlheads out there?)

2008-01-30 Thread grflanagan
On Jan 29, 5:39 pm, kj [EMAIL PROTECTED] wrote: [...] It's not the Python syntax that I'm having problems with, but rather with larger scale issues such as the structuring of packages, techniques for code reuse, test suites, the structure of distributions,... Python and Perl seem to come from

RE: Python noob SOS (any [former?] Perlheads out there?)

2008-01-29 Thread Reedick, Andrew
-Original Message- From: [EMAIL PROTECTED] [mailto:python- [EMAIL PROTECTED] On Behalf Of kj Sent: Tuesday, January 29, 2008 11:39 AM To: python-list@python.org Subject: Python noob SOS (any [former?] Perlheads out there?) For many months now I've been trying to learn Python

Re: Python noob SOS (any [former?] Perlheads out there?)

2008-01-29 Thread Bruno Desthuilliers
kj a écrit : For many months now I've been trying to learn Python, but I guess I'm too old a dog trying to learn new tricks... For better or worse, I'm so used to Perl when it comes to scripting, that I'm just having a very hard time getting a hang of The Python Way. (snip) I'd written a

Re: Python noob SOS (any [former?] Perlheads out there?)

2008-01-29 Thread Paddy
On Jan 29, 4:39 pm, kj [EMAIL PROTECTED] wrote: It's not the Python syntax that I'm having problems with, but rather with larger scale issues such as the structuring of packages, techniques for code reuse, test suites, the structure of distributions,... Python and Perl seem to come from

Re: Python noob SOS (any [former?] Perlheads out there?)

2008-01-29 Thread Rick Dooling
On Jan 29, 10:39 am, kj [EMAIL PROTECTED] wrote: I'd written a Perl module to facilitate the writing of scripts. It contained all my boilerplate code for parsing and validating command-line options, generating of accessor functions for these options, printing of the help message and of the

Python noob SOS (any [former?] Perlheads out there?)

2008-01-29 Thread kj
For many months now I've been trying to learn Python, but I guess I'm too old a dog trying to learn new tricks... For better or worse, I'm so used to Perl when it comes to scripting, that I'm just having a very hard time getting a hang of The Python Way. It's not the Python syntax that I'm

Re: Python noob SOS (any [former?] Perlheads out there?)

2008-01-29 Thread Wildemar Wildenburger
kj wrote: Is there any good reading (to ease the transition) for Perl programmers trying to learn Python? www.diveintopython.org While it is a bit dated by now (Python 2.2), that thing worked wonders for me. Shows you Python in action and presents a fair amount of its philosophy along the