First  |  Prev |  Next  |  Last
Pages: 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70
Importing package with zip-archives
I'd like to have the following structure of my Python code: I have a directory called 'mysystem'. In this directory, I have files 'comp1.zip' and 'comp2.zip' etc which are zipped archives with python packages and modules. I'd like to be able to use them like this in my code: import mysystem.comp1.module imp... 2 Jul 2010 14:37
Decorators, with optional arguments
Okay, so! I actually never quite got around to learning to do deep and useful magic with decorators. I've only ever done the most basic things with them. Its all been a little fuzzy in my head: things like what order decorators end up being called in if there's more then one, etc. But in my current situatio... 3 Jul 2010 02:37
drag & drop in a python GUI application
On 07/01/2010 08:57 AM, Alan wrote: I know drag & drop is not possible with TK. Is this a Python Tk limitation or a Tk limitation in general? Google suggests that Tk itself supports some form of dnd. Which widget could I use for my python application to be able to work with drag & drop? PyQt will do... 3 Jul 2010 15:40
delegation pattern via descriptor
hello, friendliest prog lang community on earth ;) i'm feeling that (0) delegation pattern thru descriptor encourages dedicated delegate for each task, if feeling: print(benefits) (1) the delegate is designed to be blind about the class on which the delegate is attached to isn't that the two strengthen the co... 9 Jul 2010 22:43
Pool Module: iterator does not yield consistently with differentchunksizes
syockit wrote: I've been playing around with custom iterators to map into Pool. When I run the code below: def arif(arr): return arr def permutate(n): k = 0 a = list(range(6)) while k<n: for i in range(6): a.insert(0, a.pop(5)+6) #yield ... 2 Jul 2010 07:59
Pool Module: iterator does not yield consistently with different chunksizes
I've been playing around with custom iterators to map into Pool. When I run the code below: def arif(arr): return arr def permutate(n): k = 0 a = list(range(6)) while k<n: for i in range(6): a.insert(0, a.pop(5)+6) #yield a[:] <-- produces correct results ... 2 Jul 2010 06:54
GAE + recursion limit
Hi, I'm writing a small translator using pyparsing library v1.5.2 (http://pyparsing.wikispaces.com/) and I'm using it both from command line and on Google App Engine. Recently I checked one of my samples which runs perfect from CLI against GAE and it throws me "RuntimeError 'maximum recursion depth exceeded'". ... 5 Jul 2010 05:37
Bento 0.0.3 (ex-toydist), a pythonic packaging solution
On 02/07/2010 03:38, David wrote: I am pleased to announce the release 0.0.3 for Bento, the pythonic packaging solution. Bento aims at being an alternative to distutils/setuptools/distribute, based on a static metadata file format. Existing packages can be converted from setup.py to bento format autom... 2 Jul 2010 05:49
Is there a reference manual for "pyparsing"?
Is there a reference manual for "pyparsing"? Not a tutorial. Not a wiki. Not a set of examples. Not a "getting started guide". Something that actually documents what each primitive does? John Nagle ... 2 Jul 2010 01:31
Why defaultdict?
I would like to better understand some of the design choices made in collections.defaultdict. Firstly, to initialise a defaultdict, you do this: from collections import defaultdict d = defaultdict(callable, *args) which sets an attribute of d "default_factory" which is called on key lookups when the key i... 2 Jul 2010 20:09
First  |  Prev |  Next  |  Last
Pages: 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70