Re: Dictionary or Database—Please advise

2010-02-26 Thread lbolla
On Feb 26, 3:58 pm, Jeremy wrote: > I have lots of data that I currently store in dictionaries.  However, > the memory requirements are becoming a problem.  I am considering > using a database of some sorts instead, but I have never used them > before.  Would a database be more memory efficien

Re: memory usage, temporary and otherwise

2010-03-04 Thread lbolla
On Mar 4, 12:24 pm, Duncan Booth wrote: > >  >>> a={} >  >>> for i in range(1000): > ...     a[i]=intern('spam'*10) > "intern": another name borrowed from Lisp? -- http://mail.python.org/mailman/listinfo/python-list

Re: loop over list and process into groups

2010-03-04 Thread lbolla
On Mar 4, 3:57 pm, Sneaky Wombat wrote: > [ {'vlan_or_intf': 'VLAN2021'}, >  {'vlan_or_intf': 'Interface'}, >  {'vlan_or_intf': 'Po1'}, >  {'vlan_or_intf': 'Po306'}, >  {'vlan_or_intf': 'VLAN2022'}, >  {'vlan_or_intf': 'Interface'}, >  {'vlan_or_intf': 'Gi7/33'}, >  {'vlan_or_intf': 'Po1'}, >  {'v

Re: SOAP 1.2 Python client ?

2010-03-05 Thread lbolla
On Mar 5, 10:01 am, BlueBird wrote: > On 3 mar, 20:35, Stefan Behnel wrote: > > > BlueBird, 03.03.2010 17:32: > > > > I am looking for a SOAP 1.2 python client. To my surprise, it seems > > > that this does not exist. Does anybody know about this ? > > > SOAP may be an overly bloated protocol, bu

Re: Selecting MAX from a list

2010-03-05 Thread lbolla
On Mar 5, 11:39 am, Ines T wrote: > I need to select a maximum number from a list and then call the variable that > identifies that number, for example: > x1,x2=1, y1,y2=4, z1,z2=3 > So I need first to find 4 and then to take y to do additional operations as > y-z. It's not clear what you are su

Re: loop over list and process into groups

2010-03-05 Thread lbolla
On Mar 5, 1:26 pm, mk wrote: > Sneaky Wombat wrote: > > [ 'VLAN4065', > >  'Interface', > >  'Gi9/6', > >  'Po2', > >  'Po3', > >  'Po306', > >  'VLAN4068', > >  'Interface', > >  'Gi9/6', > >  'VLAN4069', > >  'Interface', > >  'Gi9/6',] > > Hey, I just invented a cute ;-) two-liner using list co

Re: Sublassing tuple works, subclassing list does not

2010-03-31 Thread lbolla
On Mar 31, 7:49 am, "Frank Millman" wrote: > Hi all > > I needed something similar to, but not quite the same as, > collections.namedtuple. > > The differences are that namedtuple requires the 'names' to be provided at > creation time, and then lends itself to creating multiple instances of > itse

Re: HTTP server + SQLite?

2010-05-03 Thread lbolla
On May 3, 8:46 am, Gilles Ganault wrote: > Hello > > I'd like to build a prototype that will combine a web server as > front-end (it must support GZIPping data to the remote client when > there are a lot of data to return), and SQLite as back-end, call the > server from a VB.Net application, and s