Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-16 Thread Jochen Schulz
* 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

Re: similar words index?

2009-01-02 Thread Jochen Schulz
* 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.

Re: maximum recursion depth?

2008-05-29 Thread Jochen Schulz
* 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

Re: Data structure recommendation?

2008-04-08 Thread Jochen Schulz
* 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

Re: Data structure recommendation?

2008-04-10 Thread Jochen Schulz
* [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

Re: Regarding Python is scripting language or not

2009-06-17 Thread Jochen Schulz
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

Re: Regarding Python is scripting language or not

2009-06-18 Thread Jochen Schulz
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

Re: Why does extend() fail in this case, and what am I doing wrong?

2009-07-14 Thread Jochen Schulz
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

Re: iterate lines with regex

2009-08-01 Thread Jochen Schulz
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

Re: anyone with genomewide microarray analysis experience ?

2009-08-14 Thread Jochen Schulz
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

Re: Python for 64bit Linux version

2009-09-03 Thread Jochen Schulz
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

Re: Accessing objects at runtime.

2009-09-10 Thread Jochen Schulz
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

Re: Accessing objects at runtime.

2009-09-10 Thread Jochen Schulz
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