ipaddress (was: Re: for a 'good python')

2023-04-21 Thread Simon Ward
On Thu, Apr 13, 2023 at 04:00:59PM +0100, Barry wrote: Ipaddress was developed outside of the std lib and later added i recall. I used it prior to it being in the standard library: https://pypi.org/project/ipaddr/ Simon -- A complex system that works is invariably found to have evolved from a

Re: for a 'good python'

2023-04-13 Thread Dennis Lee Bieber
On Thu, 13 Apr 2023 00:21:58 +0200, jak declaimed the following: >Thank you too. I had seen this library but I always try not to use >libraries outside the standard ones. Now I don't remember why I was >convinced that this wasn't part of it, perhaps because it was like that >at the time or becau

Re: for a 'good python'

2023-04-13 Thread jak
Dennis Lee Bieber ha scritto: On Thu, 13 Apr 2023 00:21:58 +0200, jak declaimed the following: Thank you too. I had seen this library but I always try not to use libraries outside the standard ones. Now I don't remember why I was convinced that this wasn't part of it, perhaps because it was l

Re: for a 'good python'

2023-04-13 Thread Barry
 > On 13 Apr 2023, at 00:19, jak wrote: > > Barry ha scritto: >>  On 12 Apr 2023, at 18:10, jak wrote: >>> Hi everyone, >>> some time ago I wrote a class to determine if an ipv4 address belonged >>> to a subnet. Seldom using python I'm pretty sure it's not written in >>> 'good python'

Re: for a 'good python'

2023-04-13 Thread Lars Liedtke
Lars Liedtke Software Entwickler [Tel.] +49 721 98993- [Fax] +49 721 98993- [E-Mail]l...@solute.de solute GmbH Zeppelinstraße 15 76185 Karlsruhe Germany [Logo Solute] Marken der solute GmbH | brands of solute GmbH [Marken] [Advertising Partner] Geschäft

Re: for a 'good python'

2023-04-12 Thread jak
Barry ha scritto:  On 12 Apr 2023, at 18:10, jak wrote: Hi everyone, some time ago I wrote a class to determine if an ipv4 address belonged to a subnet. Seldom using python I'm pretty sure it's not written in 'good python' nor too portable. Could you give me some advice to make it better?

Re: for a 'good python'

2023-04-12 Thread Barry
 > On 12 Apr 2023, at 18:10, jak wrote: > Hi everyone, > some time ago I wrote a class to determine if an ipv4 address belonged > to a subnet. Seldom using python I'm pretty sure it's not written in > 'good python' nor too portable. Could you give me some advice to make it > better? > > class

Re: for a 'good python'

2023-04-12 Thread jak
Stefan Ram ha scritto: jak writes: @property def subnet(self): return self.__to_str(self.__tsubnet) Maybe each of those attributes should be an object of a special class where your "__to_str" is "__str__"? E.g., # code in "calcip.__init__" self.tsubnet = ip_address_class.from_int(

for a 'good python'

2023-04-12 Thread jak
Hi everyone, some time ago I wrote a class to determine if an ipv4 address belonged to a subnet. Seldom using python I'm pretty sure it's not written in 'good python' nor too portable. Could you give me some advice to make it better? class calcip: def __init__(self, psubnet: str): ssu

Re: Looking for a good Python environment

2007-11-14 Thread Simon Pickles
Well, I am recent Windows escapee, and was dismayed by lack of Pyscripter for Linux. Hold on... there is hope! Pyscripter works great using WINE. search http://groups.google.com/group/PyScripter?hl=en for "Linux" Enjoy! Paul Rudin wrote: > jwelby <[EMAIL PROTECTED]> writes: > > > >> This

Re: Looking for a good Python environment

2007-11-14 Thread Eric S. Johansson
[EMAIL PROTECTED] wrote: > Hey, I'm looking for a good Python environment. That is, at least an editor > and a debugger, and it should run on Windows. Does anyone have any idea? I've been looking for the equivalent although I want the IDE to run on Windows and to be able to edit

Re: Looking for a good Python environment

2007-11-13 Thread Chris Mellon
On Nov 13, 2007 3:56 AM, bramble <[EMAIL PROTECTED]> wrote: > On Nov 10, 4:48 am, Paul Rudin <[EMAIL PROTECTED]> wrote: > > jwelby <[EMAIL PROTECTED]> writes: > > > > > The main reason I have used Eclipse for larger, team based, projects > > > is for the source control plug-ins. Eclipse has plug-in

Re: Looking for a good Python environment

2007-11-13 Thread cokofreedom
On Nov 13, 10:56 am, bramble <[EMAIL PROTECTED]> wrote: > On Nov 10, 4:48 am, Paul Rudin <[EMAIL PROTECTED]> wrote: > > > jwelby <[EMAIL PROTECTED]> writes: > > > > The main reason I have used Eclipse for larger, team based, projects > > > is for the source control plug-ins. Eclipse has plug-in sup

Re: Looking for a good Python environment

2007-11-13 Thread bramble
On Nov 10, 4:48 am, Paul Rudin <[EMAIL PROTECTED]> wrote: > jwelby <[EMAIL PROTECTED]> writes: > > > The main reason I have used Eclipse for larger, team based, projects > > is for the source control plug-ins. Eclipse has plug-in support for > > cvs and svn. PyScripter may have this too - perhaps I

Re: Looking for a good Python environment

2007-11-13 Thread Nir
On Nov 11, 11:39 pm, Paul Rubin wrote: > Russell Warren <[EMAIL PROTECTED]> writes: > > Wing now has multi-threaded debugging. > > Cool, is it windows-only? I'm using Linux. > > > A quick look at the current state of SPE shows that it now has multi- > > threaded debuggin

Re: Looking for a good Python environment

2007-11-12 Thread VSmirk
On Nov 11, 4:39 pm, Paul Rubin wrote: > Russell Warren <[EMAIL PROTECTED]> writes: > > Wing now has multi-threaded debugging. > > Cool, is it windows-only? I'm using Linux. > > > A quick look at the current state of SPE shows that it now has multi- > > threaded debugging

Re: Looking for a good Python environment

2007-11-11 Thread Paul Rubin
Russell Warren <[EMAIL PROTECTED]> writes: > Wing now has multi-threaded debugging. Cool, is it windows-only? I'm using Linux. > A quick look at the current state of SPE shows that it now has multi- > threaded debugging via WinPDB (what I used to use for debugging thread > issues). Interesting.

Re: Looking for a good Python environment

2007-11-11 Thread Russell Warren
> While we're at it, do any of these debuggers implement a good way to > debug multi-threaded Python programs? Wing now has multi-threaded debugging. I'm a big Wing (pro) fan. To be fair, when I undertook my huge IDE evaluation undertaking it was approx 2 years ago... at the time as far as what

Re: Looking for a good Python environment

2007-11-10 Thread PyScripter
PyScripter provides integrated version control, via TortoiseSVN or TortoiseCVS and the File Explorer. On Nov 10, 11:21 am, jwelby <[EMAIL PROTECTED]> wrote: > On Nov 7, 12:42 pm, "Colin J. Williams" <[EMAIL PROTECTED]> wrote: > > > jwelby wrote: > ... > > > > I currently use Python Scripter as a l

Re: Looking for a good Python environment

2007-11-10 Thread Paul Rudin
jwelby <[EMAIL PROTECTED]> writes: > This is a fair question. I didn't phrase my post too well. > > I find PyScripter does pretty much everything I need in terms of doing > actual development for Python. My use of 'lightweight' is by no means > a criticism of PyScripter - it's more of a complimen

Re: Looking for a good Python environment

2007-11-10 Thread jwelby
On Nov 7, 12:42 pm, "Colin J. Williams" <[EMAIL PROTECTED]> wrote: > jwelby wrote: ... > > > I currently use Python Scripter as a lightweight editor for Windows. > > Could you elaborate on "lightweight" > please? I find PyScripter to be a > powerful editor/debugger combination. > > What functionali

Re: Looking for a good Python environment

2007-11-09 Thread Fabio Zadrozny
On 07 Nov 2007 08:50:49 -0800, Paul Rubin <"http://phr.cx"@nospam.invalid> wrote: > "Colin J. Williams" <[EMAIL PROTECTED]> writes: > > Could you elaborate on "lightweight" please? I find PyScripter to be a > > powerful editor/debugger combination. > > > > What functionality does Eclipse have that

Re: Looking for a good Python environment

2007-11-08 Thread PyScripter
On Nov 7, 6:50 pm, Paul Rubin wrote: > "Colin J. Williams" <[EMAIL PROTECTED]> writes: > > > Could you elaborate on "lightweight" please? I findPyScripterto be a > > powerful editor/debugger combination. > > > What functionality does Eclipse have thatPyScripterdoes not? >

Re: Looking for a good Python environment

2007-11-07 Thread Paul Rubin
"Colin J. Williams" <[EMAIL PROTECTED]> writes: > Could you elaborate on "lightweight" please? I find PyScripter to be a > powerful editor/debugger combination. > > What functionality does Eclipse have that PyScripter does not? While we're at it, do any of these debuggers implement a good way to

Re: Looking for a good Python environment

2007-11-07 Thread VSmirk
On Nov 7, 9:16 am, Gerhard Häring <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > Hey, I'm looking for a good Python environment. That is, at least an > > editor and a debugger, and it should run on Windows. Does anyone have > > any idea? > >

Re: Looking for a good Python environment

2007-11-07 Thread Gerhard Häring
[EMAIL PROTECTED] wrote: > Hey, I'm looking for a good Python environment. That is, at least an > editor and a debugger, and it should run on Windows. Does anyone have > any idea? I like ERIC. You can get it at http://www.die-offenbachs.de/eric/eric4-download.html Or just downlo

Re: Looking for a good Python environment

2007-11-07 Thread Colin J. Williams
jwelby wrote: > On Nov 6, 10:56 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> > wrote: >> Hey, I'm looking for a good Python environment. That is, at least an >> editor and a debugger, and it should run on Windows. Does anyone have >> any idea? > &g

Re: Looking for a good Python environment

2007-11-07 Thread [EMAIL PROTECTED]
On Nov 7, 1:15 pm, jwelby <[EMAIL PROTECTED]> wrote: > On Nov 6, 10:56 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> > wrote: > > > Hey, I'm looking for a good Python environment. That is, at least an > > editor and a debugger, and it should run

Re: Looking for a good Python environment

2007-11-07 Thread jwelby
On Nov 6, 10:56 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Hey, I'm looking for a good Python environment. That is, at least an > editor and a debugger, and it should run on Windows. Does anyone have > any idea? I currently use Python Scripter as a lightw

Re: Looking for a good Python environment

2007-11-07 Thread Fabio Zadrozny
On 11/6/07, Jens <[EMAIL PROTECTED]> wrote: > > Just wrote a mini "review" of three Python code editors on my blog... > > http://pyminer.blogspot.com/2007/11/python-code-editors.html > > I use PSPad or Notepad++ for quick editing, and Komodo Edit 4.2 for > longer sessions. Komodo Edit is the only o

Re: Looking for a good Python environment

2007-11-07 Thread [EMAIL PROTECTED]
On Nov 7, 3:51 am, Jens <[EMAIL PROTECTED]> wrote: > Just wrote a mini "review" of three Python code editors on my blog... > > http://pyminer.blogspot.com/2007/11/python-code-editors.html > > I use PSPad or Notepad++ for quick editing, and Komodo Edit 4.2 for > longer sessions. Komodo Edit is the o

Re: Looking for a good Python environment

2007-11-06 Thread Jens
Just wrote a mini "review" of three Python code editors on my blog... http://pyminer.blogspot.com/2007/11/python-code-editors.html I use PSPad or Notepad++ for quick editing, and Komodo Edit 4.2 for longer sessions. Komodo Edit is the only one with code completion - a very nice feature. You can p

Re: Looking for a good Python environment

2007-11-06 Thread Jeff
Pida is a nice looking IDE for Python, written in Python with GTK. Emacs is decent, Eclipse has support, too. SciTE is a nice editor if you are looking for something minimal (such as no debugger). -- http://mail.python.org/mailman/listinfo/python-list

Looking for a good Python environment

2007-11-06 Thread [EMAIL PROTECTED]
Hey, I'm looking for a good Python environment. That is, at least an editor and a debugger, and it should run on Windows. Does anyone have any idea? -- http://mail.python.org/mailman/listinfo/python-list

Re: looking for a good python module for MS SQL server

2005-11-02 Thread Jarek Zgoda
Peter Decker napisał(a): >>Things didn't change, as last update to adodbapi was long time ago... I >>had no problems with stored procedures accessed using cursor's execute() >>method (i.e. execute('exec sp_someproc, param')), but I never tried to >>get any results, just call sp and commit or rollb

Re: looking for a good python module for MS SQL server

2005-11-02 Thread Frank Millman
Peter Decker wrote: > On 11/1/05, Jarek Zgoda <[EMAIL PROTECTED]> wrote: > > > Things didn't change, as last update to adodbapi was long time ago... I > > had no problems with stored procedures accessed using cursor's execute() > > method (i.e. execute('exec sp_someproc, param')), but I never trie

Re: looking for a good python module for MS SQL server

2005-11-01 Thread Peter Decker
On 11/1/05, Jarek Zgoda <[EMAIL PROTECTED]> wrote: > Things didn't change, as last update to adodbapi was long time ago... I > had no problems with stored procedures accessed using cursor's execute() > method (i.e. execute('exec sp_someproc, param')), but I never tried to > get any results, just c

Re: looking for a good python module for MS SQL server

2005-11-01 Thread Steve Holden
Jarek Zgoda wrote: > Steve Holden napisał(a): > > >>Does anyone know a good python mudule that works with MS SQL server? > >Google will yield something, but I prefer adodbapi over specialized >modules. Works good with SQLServer using SSPI auth (others rather not). Though

Re: looking for a good python module for MS SQL server

2005-11-01 Thread Jarek Zgoda
Steve Holden napisał(a): > Does anyone know a good python mudule that works with MS SQL server? Google will yield something, but I prefer adodbapi over specialized modules. Works good with SQLServer using SSPI auth (others rather not). >>> >>> Though it does have problems with s

Re: looking for a good python module for MS SQL server

2005-11-01 Thread Steve Holden
Jarek Zgoda wrote: > Steve Holden napisał(a): > > Does anyone know a good python mudule that works with MS SQL server? >>> >>>Google will yield something, but I prefer adodbapi over specialized >>>modules. Works good with SQLServer using SSPI auth (others rather not). >>> >> >>Though it does

Re: looking for a good python module for MS SQL server

2005-11-01 Thread Jarek Zgoda
Steve Holden napisał(a): >>> Does anyone know a good python mudule that works with MS SQL server? >> >> Google will yield something, but I prefer adodbapi over specialized >> modules. Works good with SQLServer using SSPI auth (others rather not). >> > Though it does have problems with stored proce

Re: looking for a good python module for MS SQL server

2005-10-31 Thread Frank Millman
Anat wrote: > Hi, > Does anyone know a good python mudule that works with MS SQL server? > Thanks, > Anat I use the odbc module from pywin32. I believe that it is not 100% DB-API 2.0 compliant, but it works fine for me. It has the advantage that if you have installed pywin32 (which is advisable o

Re: looking for a good python module for MS SQL server

2005-10-31 Thread Grig Gheorghiu
I successfully used mxODBC () Grig -- http://mail.python.org/mailman/listinfo/python-list

Re: looking for a good python module for MS SQL server

2005-10-31 Thread Steve Holden
Jarek Zgoda wrote: > Anat napisał(a): > > >>Does anyone know a good python mudule that works with MS SQL server? > > > Google will yield something, but I prefer adodbapi over specialized > modules. Works good with SQLServer using SSPI auth (others rather not). > Though it does have problems wi

Re: looking for a good python module for MS SQL server

2005-10-31 Thread Brian
I've had good results with adodbapi as well. -- http://mail.python.org/mailman/listinfo/python-list

Re: looking for a good python module for MS SQL server

2005-10-31 Thread Jarek Zgoda
Anat napisał(a): > Does anyone know a good python mudule that works with MS SQL server? Google will yield something, but I prefer adodbapi over specialized modules. Works good with SQLServer using SSPI auth (others rather not). -- Jarek Zgoda http://jpa.berlios.de/ -- http://mail.python.org/ma

looking for a good python module for MS SQL server

2005-10-31 Thread Anat
Hi, Does anyone know a good python mudule that works with MS SQL server? Thanks, Anat -- http://mail.python.org/mailman/listinfo/python-list