[Baypiggies] Baypiggies snippets

Keith Dart ♂ keith at dartworks.biz
Thu Mar 22 04:22:56 CET 2007


Chad Netzer wrote the following on 2007-03-21 at 19:12 PDT:
===
> So, just to be clear, the modern tkinter _flatten is NOT quadratic,
> but linear and C.  Which means, Keith, if you want a really fast
> flatten(), try Tkinter._flatten().

===

Wow, ok. I didn't know about that one. But that's typical: re-inventing
the wheel. ;-) But there is one problem: I don't always build (or
install) Tkinter on my systems.

It's so general, I think it should be a built-in function and not in a
GUI toolkit. 

Speaking of that, how do people here feel about inserting general
purpose functions like that into the __builtin__ namespace? I don't see
a problem with it, and in fact already do that in the pyNMS framework.
It's automatic, so if you install pyNMS you automatically get them (via
sitecustomize) into builtins and can use them in your code. I added
this flatten() function there already.



-- 
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   Keith Dart <keith at dartworks.biz>
   public key: ID: 19017044
   <http://www.dartworks.biz/>
   =====================================================================



More information about the Baypiggies mailing list