Re: Fast recursive generators?

2011-10-29 Thread 88888 Dihedral
I am thinking the bye code compiler in python can be faster if all known immutable instances up to the executionare compiled immutable objects to be assigned. -- http://mail.python.org/mailman/listinfo/python-list

ANN: psutil 0.4.0 released

2011-10-29 Thread Giampaolo Rodolà
Hi folks, I'm pleased to announce the 0.4.0 release of psutil: http://code.google.com/p/psutil === About === psutil is a module providing an interface for retrieving information on all running processes and system utilization (CPU, disk, memory, network) in a portable way by using Python, impleme

Re: Need Windows user / developer to help with Pynguin

2011-10-29 Thread Lee Harr
Thanks to all those who tested and replied! > For Windows users who want to just run Pyguin (not modify or tinker > with the source code), it would be best to bundle Pynguin up with > Py2exe I considered that, but I agree that licensing issues would make it problematic. > the Python installer

Re: Assigning generator expressions to ctype arrays

2011-10-29 Thread Patrick Maupin
On Oct 28, 3:24 pm, Terry Reedy wrote: > On 10/28/2011 2:05 PM, Patrick Maupin wrote: > > > On Oct 27, 10:23 pm, Terry Reedy  wrote: > >> I do not think everyone else should suffer substantial increase in space > >> and run time to avoid surprising you. > > > What substantial increase? > > of time

Re: Need Windows user / developer to help with Pynguin

2011-10-29 Thread Andrew Berg
On 10/29/2011 9:43 AM, Lee Harr wrote: > So, windows now creates the dummy folder automatically? That is the default choice, but users are given a prompt to choose an arbitrary directory. Note that this only applies to the ZIP extractor in Explorer; other archive programs have their own behavior. I

Re: save tuple of simple data types to disk (low memory foot print)

2011-10-29 Thread Gelonida N
On 10/29/2011 03:00 AM, Steven D'Aprano wrote: > On Fri, 28 Oct 2011 22:47:42 +0200, Gelonida N wrote: > >> Hi, >> >> I would like to save many dicts with a fixed amount of keys tuples to a >> file in a memory efficient manner (no random, but only sequential >> access is required) > > What do y

Re: save tuple of simple data types to disk (low memory foot print)

2011-10-29 Thread Gelonida N
On 10/29/2011 01:08 AM, Roy Smith wrote: > In article , > Gelonida N wrote: > >> I would like to save many dicts with a fixed amount of keys >> tuples to a file in a memory efficient manner (no random, but only >> sequential access is required) > > There's two possible scenarios here. One, wh

Re: save tuple of simple data types to disk (low memory foot print)

2011-10-29 Thread Tim Chase
On 10/29/11 11:44, Gelonida N wrote: I would like to save many dicts with a fixed (and known) amount of keys in a memory efficient manner (no random, but only sequential access is required) to a file (which can later be sent over a slow expensive network to other machines) Example: Every dict wi

Re: Review Python site with useful code snippets

2011-10-29 Thread Jason Friedman
On Wed, Oct 26, 2011 at 3:51 PM, Chris Hall wrote: > I am looking to get reviews, comments, code snippet suggestions, and > feature requests for my site. > I intend to grow out this site with all kinds of real world code > examples to learn from and use in everyday coding. > The site is: > > http:

Customizing class attribute access in classic classes

2011-10-29 Thread Geoff Bache
Hi, I'm wondering if there is any way to customize class attribute access on classic classes? So this works: class Meta(type): def __getattr__(cls, name): return "Customized " + name class A: __metaclass__ = Meta print A.blah but it turns A into a new-style class. If "Meta" d

Re: Customizing class attribute access in classic classes

2011-10-29 Thread Ben Finney
Geoff Bache writes: > I'm wondering if there is any way to customize class attribute access > on classic classes? Why do that? What is it you're hoping to achieve, and why limit it to classic classes only? > So this works: > > class Meta(type): > def __getattr__(cls, name): > return

Re: Convert DDL to ORM

2011-10-29 Thread Lie Ryan
On 10/25/2011 03:30 AM, Alec Taylor wrote: Good morning, I'm often generating DDLs from EER->Logical diagrams using tools such as PowerDesigner and Oracle Data Modeller. I've recently come across an ORM library (SQLalchemy), and it seems like a quite useful abstraction. Is there a way to conve