fast kdtree tree implementation for python 3?

2010-09-11 Thread _wolf
does anyone have a suggestion for a ready-to-go, fast kdtree implementation for python 3.1 and up, for nearest-neighbor searches? i used to use the one from numpy/scipy, but find it a pain to install for python 3. also, i'm trying to wrap the code from http://code.google.com/p/kdtree/ using

Re: fast kdtree tree implementation for python 3?

2010-09-11 Thread _wolf
Since you're looking for an implementation, I guess you won't be the one volunteering to maintain such code in the stdlib, would you? this is indeed a problem. i am probably not the right one for this kind of task. however, i do sometimes feel like the standard library carries too much cruft

Re: fast kdtree tree implementation for python 3?

2010-09-11 Thread _wolf
Do you know about the kdtree implementation in biopython? I don't know if it is already available for Python 3, but for me it worked fine in Python 2.X. i heard they use a brute-force approach and it's slow. that's just rumors alright. also, judging from the classes list on

strange syntax error

2010-06-04 Thread _wolf
this may not be an earth-shattering deficiency of python, but i still wonder about the rationale behind the following behavior: when i run :: source = print( 'helo' ) if __name__ == '__main__': print( 'yeah!' ) # print( compile( source, 'whatever', 'exec' ) ) i get :: File

Re: Is it possible to use re2 from Python?

2010-03-24 Thread _wolf
yes we can! http://github.com/facebook/pyre2 as pointed out by http://stackoverflow.com/users/219162/daniel-stutzbach now gotta go and try it out. -- http://mail.python.org/mailman/listinfo/python-list

how to do asynchronous http requests with epoll and python 3.1

2010-03-24 Thread _wolf
i asked this question before on http://stackoverflow.com/questions/2489780/how-to-do-asynchronous-http-requests-with-epoll-and-python-3-1 but without a definitive answer as yet. can someone help me out? i want to do several simple http GET and POST requests in the same process using Python 3.1

Re: Is it possible to use re2 from Python?

2010-03-14 Thread _wolf
i am afraid that thread goes straight perpendicular to what re2 is supposed to be, or do. my suggestion for these folks would be to create a new, clean interface to stop the violence that comes with the Python ``re`` interface, and open the thing up so one can plug in ``re`` implementations as

Re: Is it possible to use re2 from Python?

2010-03-14 Thread _wolf
There's a recent thread about this on the python-dev list, pointers? i searched but didn’t find anything. -- http://mail.python.org/mailman/listinfo/python-list

whassup? builtins? python3000? Naah can't be right?

2010-01-31 Thread _wolf
dear pythoneers, i would be very gladly accept any commentaries about what this sentence, gleaned from http://celabs.com/python-3.1/reference/executionmodel.html, is meant to mean, or why gods have decided this is the way to go. i anticipate this guy named Kay Schluehr will have a say on that,

preferred way to set encoding for print

2009-09-15 Thread _wolf
hi folks, i am doing my first steps in the wonderful world of python 3. some things are good. some things have to be relearned. some things drive me crazy. sadly, i'm working on a windows box. which, in germany, entails that python thinks it to be a good idea to take cp1252 as the default

question about xrange performance

2009-04-17 Thread _wolf
lately i realized a slow running portion of my application, and a quick profiling nourished the suspicion that, of all things, calls to `xrange().__contains__` (`x in b` where `b = xrange(L,H)`) is the culprit. to avoid any other influences, i wrote this test script with class `xxrange` being a

Re: forcing future re-import from with an imported module

2008-12-12 Thread _wolf
On Dec 11, 12:43 am, rdmur...@bitdance.com wrote: Why can't you have the code that is doing the import [...] call a function [...] to produce [the] side effect [...]? Explicit is better than implicit. A python programmer is going to expect that importing a module is idempotent you’re

Re: forcing future re-import from with an imported module

2008-12-10 Thread _wolf
On Dec 10, 1:46 pm, Gabriel Genellina [EMAIL PROTECTED] wrote: En Tue, 09 Dec 2008 23:27:10 -0200, _wolf [EMAIL PROTECTED] escribió: how can i say, approximately, re-import the present module when it is imported the next time, don’t use the cache in a simple way? i do not want to reload

forcing future re-import from with an imported module

2008-12-09 Thread _wolf
line `import sys; del sys.modules[ 'importee' ]` does what it says on the tin. how can i say, approximately, re-import the present module when it is imported the next time, don’t use the cache in a simple way? i do not want to reload the module, that doesn’t help. greets _wolf

image scaling in cairo, python

2008-05-24 Thread _wolf
[also posted to: [EMAIL PROTECTED] hi all, i've heard cairo has become the image scling library for firefox3. is that true? wonderful, i want to do that in python. there's a python interface for cairo, right? i've used it before to do simple vector stuff. seems to work. however, i haven't been

matploblib communication problem, graphics question

2008-05-23 Thread _wolf
i've had a hard time today to drill down on some infos about matplotlib of http://matplotlib.sourceforge.net/. this is an sf.net-managed project, its mailing lists are managed by shudder/ gnu mailman in a pre-1994 version. still there is a sf.net standard forum interface, which however denies me

anti-spam policy for c.l.py?

2008-01-16 Thread _wolf
this list has been receiving increasing amounts of nasty OT spam messages for some time. are there any plans to prevent such messages from appearing on the list or to purge them retrospectively? _wolf -- http://mail.python.org/mailman/listinfo/python-list

Re: anti-spam policy for c.l.py?

2008-01-16 Thread _wolf
On Jan 16, 3:11 pm, Bruno Desthuilliers bruno. [EMAIL PROTECTED] wrote: Jeroen Ruigrok van der Werven a écrit : -On [20080116 12:51], Bruno Desthuilliers ([EMAIL PROTECTED]) wrote: Apart from checking posts headers and complaining about the relevant ISPs, there's not much you can do AFAIK.

Re: re-posting: web.py, incomplete

2006-03-04 Thread _wolf
? you do get to see all the output in that case, at long last upon process termination, right? i'm wondering. _wolf -- http://mail.python.org/mailman/listinfo/python-list

Re: re-posting: web.py, incomplete

2006-03-03 Thread _wolf
it does look like it, no? but i don't---at least i think i don't. in my httpd conf it says ``AddHandler cgi-script .py``, and at the top of my script, ``#!/usr/local/bin/python``. standard, no ``-u`` here. -- http://mail.python.org/mailman/listinfo/python-list

re-posting: web.py, incomplete

2006-03-02 Thread _wolf
but *this* will result in a last output line that is 8 characters long, so someone swallows 24 characters. does look like a buffer of fixed length. i'd like to bust that ghost. _wolf -- http://mail.python.org/mailman/listinfo/python-list