* René Fleschenberg:
> Stefan Behnel schrieb:
>>
>> [...] They are just tools. Even if you do not
>> understand English, they will not get in your way. You just learn them.
>
> I claim that this is *completely unrealistic*. When learning Python, you
> *do* learn the actual meanings of English te
* robert:
> how can one index (text documents) for efficient similar word search?
> existing modules?
I implemented one approach in mspace.py:
http://well-adjusted.de/mspace.py/
But beware that it is pure Python and not optimized for speed. You gain
quite a lot by having Psyco installed, though.
* Marc 'BlackJack' Rintsch:
> On Wed, 28 May 2008 02:28:54 -0700, bearophileHUGS wrote:
>> Dennis Lee Bieber, the ghost:
>>
>>> I'd have to wonder why so many recursive calls?
>>
>> Why not?
>
> Because of the recursion limit of course. And function call overhead in
> Python is quite high compar
* Steven Clark:
> Hi all-
>
> I'm looking for a data structure that is a bit like a dictionary or a
> hash map. In particular, I want a mapping of floats to objects.
> However, I want to map a RANGE of floats to an object.
This solution may be more than you actually need, but I implemented two
me
* [EMAIL PROTECTED]:
>
> Please plug such good things. It seems the Python community is an
> endless source of interesting modules I didn't know about. Your
> (single) module looks very nice. I'll take a better look later.
Could you please send me an email with an existing From: address? I
tried
abhishek goswami:
>
> Can anyone Guide me that Python is Oject oriented programming language
> or Script language
In my opinion, Python is both. But an "objective" answer would require
you to define what you means by these terms.
If, by "object-oriented" you mean "everything has to be put into
c
Terry Reedy:
> Jochen Schulz wrote:
>>
>> If, by "object-oriented" you mean "everything has to be put into
>> classes", then Python is not object-oriented.
>
> That depends on what you mean by 'put into classes' (and 'everything
Xavier Ho:
>
> Why doesn't the second output print [1, 2, 3, , 7, 8, 9] ?
-- snip
> print a.n.extend([6, 7, 8, 9])
extend doesn't fail. It just returns None and extends the list in place.
In [1]: l = [1, 2, 3]
In [2]: l.extend([4, 5, 6])
In [3]: l
Out[3]: [1, 2, 3, 4, 5, 6]
J.
--
When I
Michael Savarese:
>
> for line in readThis:
> try:
> thisKey = key.search(line).group(1)
> thisMap = map.search(line).group(1)
> thisParcel = parcel.search(line).group(1)
> except:
> continue
Why do you catch all exceptions in that loop? Remove the try-exce
trias:
>
> One of the things I would like to do is to fetch all data from a certain
> distance from gene ATGs say 100+/- bp and calculate the bp average over all
> genes over this region.
I know absolutely nothing about your problem domain, but if your
distance function is metric, you can use t
Bhanu Srinivas Mangipudi:
>
> I just want to that s there a 64 bit Linux version for python ?
Yes.
> if yes can you provide me any links for it.I could find a 64bit
> windows version but could not find Linuux version
I am currently too lazy to look it up for you on python.org (if it is
there), b
jacopo:
>
> I would like to find a way to inspect the objects at run time. In
> other words I would like to check certain attributes in order to
> understand in which status the object is.
What exactly do you want to know? The names of existing attributes or
their content? The latter is probably
jacopo:
>
>> What exactly do you want to know? The names of existing attributes or
>> their content? The latter is probably obvious to you and the former is
>> easy, too. See hasattr, getattr and isinstance.
>
> I want to know the value of the attributes.
> What you suggest works when the program
13 matches
Mail list logo