Re: Good programming style

2008-09-14 Thread Ben Finney
Adelle Hartley <[EMAIL PROTECTED]> writes: > I'm looking at porting a library that was written for COM and .Net > to work as a Python module, and was wondering whether it would be > better to stick to the library's current naming convention so that > the API is as similar as possible on each platf

Re: Good programming style

2008-09-14 Thread Sean DiZazzo
On Sep 14, 7:10 pm, Grant Edwards <[EMAIL PROTECTED]> wrote: > On 2008-09-15, Ben Finney <[EMAIL PROTECTED]> wrote: > > > > > Grant Edwards <[EMAIL PROTECTED]> writes: > >> On 2008-09-14, Ben Finney <[EMAIL PROTECTED]> wrote: > > >>> Second: please do yourself a favour and drop the > >>> camelCaseN

Re: Good programming style

2008-09-14 Thread Ben Finney
Grant Edwards <[EMAIL PROTECTED]> writes: > On 2008-09-14, Ben Finney <[EMAIL PROTECTED]> wrote: > > Second: please do yourself a favour and drop the camelCaseNames. > > Follow PEP 8 http://www.python.org/dev/peps/pep-0008> for style > > and naming in your Python code. > > If he finds camelcase m

Re: Good programming style

2008-09-14 Thread Grant Edwards
On 2008-09-14, Ben Finney <[EMAIL PROTECTED]> wrote: > Astley Le Jasper <[EMAIL PROTECTED]> writes: > >> Is it best to have it all in one script or split it into per >> site scripts that can then be called by a manager script? If >> everything is in one script would you have per site functions >> t

Re: Good programming style

2008-09-14 Thread Ben Finney
Astley Le Jasper <[EMAIL PROTECTED]> writes: > Is it best to have it all in one script or split it into per site > scripts that can then be called by a manager script? If everything > is in one script would you have per site functions to extract the > data or generic function that contain vary sli

Re: Good programming style

2008-09-12 Thread Astley Le Jasper
On 12 Sep, 12:44, Bruno Desthuilliers wrote: > Astley Le Jasper a écrit : > > > I'm still learning python and would like to know what's a good way of > > organizing code. > > > I am writing some scripts to scrape a number of different website that > > hold similar information and then collating it

Re: Good programming style

2008-09-12 Thread Bruno Desthuilliers
Astley Le Jasper a écrit : I'm still learning python and would like to know what's a good way of organizing code. I am writing some scripts to scrape a number of different website that hold similar information and then collating it all together. Obviously each site needs to be handled differentl