Re: about functions question

2007-10-26 Thread Bruno Desthuilliers
Neil Cerutti a écrit : > On 2007-10-25, Bruno Desthuilliers > <[EMAIL PROTECTED]> wrote: >> The canonical case for small scripts is to have first all >> functions and globals defined, then the main code protected by >> a guard, ie: > > There's no reason to "protect" your main code in a small scrip

Re: Parallel insert to postgresql with thread

2007-10-26 Thread Laurent Pointal
Le Thu, 25 Oct 2007 13:27:40 +0200, Diez B. Roggisch a écrit : > DB modules aren't necessarily thread-safe. Most of the times, a > connection (and of course their cursor) can't be shared between threads. > > So open a connection for each thread. > > Diez DB modules following DBAPI2 must define

Re: modifying __class__

2007-10-26 Thread Evan Klitzke
On 10/26/07, Piyush Jain <[EMAIL PROTECTED]> wrote: > Hi, > Itis possible to change the class of an object by assigning new value to > __class__ > Is it possible to call my module when it is done. > For example, > object = ClassA() > > object.__class__ = classB # I want to call my method when this

modifying __class__

2007-10-26 Thread Piyush Jain
Hi, Itis possible to change the class of an object by assigning new value to __class__ Is it possible to call my module when it is done. For example, object = ClassA() object.__class__ = classB # I want to call my method when this statement is executed. I want to do it in a general way. For ex. ,

Re: Python and Combinatorics

2007-10-26 Thread Gerard Flanagan
On Oct 25, 12:20 am, none <""atavory\"@(none)"> wrote: > Hello, > > Is there some package to calculate combinatorical stuff like (n over > k), i.e., n!/(k!(n - k!) ? > > I know it can be written in about 3 lines of code, but still... > > Thanks, > > Ami http

Need to help to parse the matlab log file.

2007-10-26 Thread wang frank
I have a big log file generated by matlab. Here is a copy of part of it. I want to write a function to parse some results. For example, if I want to get the results of BandWidth and freq_offset_in_KHz, the function will print all lines with contain them as : BandWidth = 10 freq_offset_in_KHz

renice

2007-10-26 Thread mokhtar
Hi Is it possible to renice the python process executing the current python script ?:confused: -- View this message in context: http://www.nabble.com/renice-tf4695834.html#a13422771 Sent from the Python - python-list mailing list archive at Nabble.com. -- http://mail.python.org/mailman/listin

Re: Read Matlab files with Python and Numeric?

2007-10-26 Thread Matthieu Brucher
Scipy proposes such a module. Matthieu 2007/10/25, QAM <[EMAIL PROTECTED]>: > > Hi Travis, > > > > Could you please send me the matlab reader you mentioned? > > > > Thanks, > > > > Frank > > -- > http://mail.python.org/mailman/listinfo/python-list > -- French PhD student Website : http://mil

Re: Iteration for Factorials

2007-10-26 Thread Marco Mariani
[EMAIL PROTECTED] wrote: > class fact_0(object): > value = 1 [... > def __new__(self, n_): > class spanish_inquisition(object): > __metaclass__ = fact_meta > n = n_ > return spanish_inquisition() You wrote lots o

tuples within tuples

2007-10-26 Thread korovev76
Hello everybody. I'm wondering how to iterate over a tuple like this [A,B,C,D] while saving A and C in a list. My problem is that C sometimes is a tuple of the same structure itself... thanks! korovev -- http://mail.python.org/mailman/listinfo/python-list

Proposal: Decimal literals in Python.

2007-10-26 Thread Lennart Benschop
Python has had the Decimal data type for some time now. The Decimal data type is ideal for financial calculations. Using this data type would be more intuitive to computer novices than float as its rounding behaviour matches more closely what humans expect. More to the point: 0.1 and 0.01 are exact

object inheritance

2007-10-26 Thread Anand
I am trying to implement some kind of object inheritance. Just like one class can extend from another, I want to do the same on objects dynamically. I just thought that I can share my excitement here. Suppose there are classes A and B and their instances a and b. class A: def foo(self): self

Re: Iteration for Factorials

2007-10-26 Thread Nicko
On Oct 25, 2:36 am, Paul Rubin wrote: > Lou Pecora <[EMAIL PROTECTED]> writes: > > There might even be an array method that can be adapted to get the > > product. Is there a product method? (analogous to a sum method) > > The "reduce" function which is being removed from

matplotlib & mod_python

2007-10-26 Thread kenneth
Hi all. I would like to use a "combination" of matplotlib and mod_python to create a PNG figure on the fly in my web site. The mod_python handler code should be something like this: def handler(req): fig = Figure() ... ... figure creation stuff ... canvas = FigureCanvasAgg(f

Mouse hover event in wxpython

2007-10-26 Thread sundarvenkata
Hi All, Can somebody tell me if there is an event to indicate mouse hover over a control in wxPython? EVT_MOTION does not seem to cut it. Thanks in advance, Sundar -- http://mail.python.org/mailman/listinfo/python-list

Re: Proposal: Decimal literals in Python.

2007-10-26 Thread Ben Finney
Lennart Benschop <[EMAIL PROTECTED]> writes: > Python has had the Decimal data type for some time now. Since version 2.4 http://www.python.org/dev/peps/pep-0327>. > Unfortunately it is not very easy to access the Decimal data > type. To obtain the decimal number 12.34 one has to do something > l

Eclipse Plugins

2007-10-26 Thread Robert Rawlins - Think Blue
Hello Chaps, I'm not sure what you IDE you all generally use for your python development. I've been somewhat lazy and always used a plain text editor, however this technique is starting to take its toll, and it's purely been out of laziness not finding myself a decent IDE to develop in. So this

Re: Python Windows Installation

2007-10-26 Thread Bjoern Schliessmann
Wildemar Wildenburger wrote: > Bjoern Schliessmann wrote: >> Which I don't understand (works best for me, and is best practice >> in Windows). > > Best practice? Says who? Ok, LOL. So, now you expect me to cite some official source? Despite the fact that the vast majority of windows installers

Re: object inheritance

2007-10-26 Thread Pradeep Jindal
Can you tell any specific use case for doing this? Regards, Pradeep On 10/26/07, Anand <[EMAIL PROTECTED]> wrote: > I am trying to implement some kind of object inheritance. Just like > one class can extend from another, I want to do the same on objects > dynamically. > > I just thought that I ca

Re: about functions question

2007-10-26 Thread Neil Cerutti
On 2007-10-26, Bruno Desthuilliers <[EMAIL PROTECTED]> wrote: > Neil Cerutti a écrit : >> On 2007-10-25, Bruno Desthuilliers >> <[EMAIL PROTECTED]> wrote: >>> The canonical case for small scripts is to have first all >>> functions and globals defined, then the main code protected by >>> a guard, ie

Re: Proposal: Decimal literals in Python.

2007-10-26 Thread Steven D'Aprano
On Fri, 26 Oct 2007 19:19:46 +1000, Ben Finney wrote: >> Of course we can intruduce a single character function name as an alias >> for the Decimal type constructor, but even then we have to use both >> parentheses and quotes for each and every decimal constant. We cannot >> make it shorter than D

Re: "Standard" Full Text Search Engine

2007-10-26 Thread Diez B. Roggisch
Martin Marcher wrote: > Hello, > > is there something like a standard full text search engine? > > I'm thinking of the equivalent for python like lucene is for java or > ferret for rails. Preferrably something that isn't exactly a clone of > one of those but more that is python friendly in terms

Re: Mouse hover event in wxpython

2007-10-26 Thread Larry Bates
sundarvenkata wrote: > Hi All, > > Can somebody tell me if there is an event to indicate mouse hover over > a control in wxPython? EVT_MOTION does not seem to cut it. > > Thanks in advance, > Sundar > You might want to take a look at gmane.comp.python.wxpython for better replies to wxPython s

Re: Eclipse Plugins

2007-10-26 Thread Martin Marcher
2007/10/26, Robert Rawlins - Think Blue <[EMAIL PROTECTED]>: > I'm not sure what you IDE you all generally use for your python development. > I've been somewhat lazy and always used a plain text editor, however this > technique is starting to take its toll, and it's purely been out of laziness > no

Re: tuples within tuples

2007-10-26 Thread Larry Bates
[EMAIL PROTECTED] wrote: > Hello everybody. > > I'm wondering how to iterate over a tuple like this > [A,B,C,D] > while saving A and C in a list. > > My problem is that C sometimes is a tuple of the same structure > itself... > > > thanks! > korovev > First of all [A,B,C,D] is a list not a tup

"Standard" Full Text Search Engine

2007-10-26 Thread Martin Marcher
Hello, is there something like a standard full text search engine? I'm thinking of the equivalent for python like lucene is for java or ferret for rails. Preferrably something that isn't exactly a clone of one of those but more that is python friendly in terms of the API it provides. Things I'd

Re: "Standard" Full Text Search Engine

2007-10-26 Thread Stephan Diehl
Martin Marcher wrote: > Hello, > > is there something like a standard full text search engine? > > I'm thinking of the equivalent for python like lucene is for java or > ferret for rails. Preferrably something that isn't exactly a clone of > one of those but more that is python friendly in terms

Re: .py to sqlite translator [1 of 2]

2007-10-26 Thread Guilherme Polo
2007/10/26, smitty1e <[EMAIL PROTECTED]>: > Disclaimer(s): the author is nobody's pythonista. This could probably > be done more elegantly. > The driver for the effort is to get PyMacs to work with new-style > classes. > This rendering stage stands alone, and might be used for other > purposes. >

Re: Python Windows Installation

2007-10-26 Thread Wildemar Wildenburger
Bjoern Schliessmann wrote: > Wildemar Wildenburger wrote: >> Bjoern Schliessmann wrote: > >>> Which I don't understand (works best for me, and is best practice >>> in Windows). >> >> Best practice? Says who? > > Ok, LOL. So, now you expect me to cite some official source? Despite > the fact tha

Re: object inheritance

2007-10-26 Thread Anand
On Oct 26, 5:31 pm, "Pradeep Jindal" <[EMAIL PROTECTED]> wrote: > Can you tell any specific use case for doing this? I have many implementaions of a db interface. SimpleDB - simple implementation BetterDB - optimized implementation CachedDB - an implementation with caching of queries RestrictedDB

Re: tuples within tuples

2007-10-26 Thread korovev76
[cut] > > Without a better example or explanation of what you are trying to do it is > difficult You're right. Actually i'm parsing an xml file using pyrxp, which returns something like this: (tagName, attributes, list_of_children, spare) Where list_of_children might "be a list with elements that

Re: tuples within tuples

2007-10-26 Thread J. Clifford Dyer
On Fri, Oct 26, 2007 at 06:59:51AM -0700, [EMAIL PROTECTED] wrote regarding Re: tuples within tuples: > > > Resolve *what*? The problem isn't clear yet; at least to me. Above you > > say what you get. What exactly do you want? Examples please. > > > > > Sorry for my poor english, but I mean

Re: bug: subprocess.Popen() hangs

2007-10-26 Thread Nick Craig-Wood
Jonathan Amsterdam <[EMAIL PROTECTED]> wrote: > This is a bug in python 2.4 under Linux 2.6. > > I occasionally see subprocess.Popen() fail to return, and I have > finally figured out roughly what's going on. It involves the GC and > stderr. Interesting Do you have a program to demonstrate t

Re: tuples within tuples

2007-10-26 Thread korovev76
> Resolve *what*? The problem isn't clear yet; at least to me. Above you > say what you get. What exactly do you want? Examples please. > Sorry for my poor english, but I meant: how can I obtain a list of A and C starting from something like this? (A,B,C,D) that could be ('tagA', None, [('t

Re: object inheritance

2007-10-26 Thread Duncan Booth
Anand <[EMAIL PROTECTED]> wrote: > On Oct 26, 5:31 pm, "Pradeep Jindal" <[EMAIL PROTECTED]> wrote: >> Can you tell any specific use case for doing this? > > I have many implementaions of a db interface. > > SimpleDB - simple implementation > BetterDB - optimized implementation > CachedDB - an im

Re: tuples within tuples

2007-10-26 Thread Marc 'BlackJack' Rintsch
On Fri, 26 Oct 2007 05:54:24 -0700, korovev76 wrote: > [cut] >> >> Without a better example or explanation of what you are trying to do it is >> difficult > > You're right. > Actually i'm parsing an xml file using pyrxp, which returns something > like this: > (tagName, attributes, list_of_childre

Re: Mouse hover event in wxpython

2007-10-26 Thread kyosohma
On Oct 26, 3:55 am, sundarvenkata <[EMAIL PROTECTED]> wrote: > Hi All, > > Can somebody tell me if there is an event to indicate mouse hover over > a control in wxPython? EVT_MOTION does not seem to cut it. > > Thanks in advance, > Sundar What are you trying to do? I use EVT_MOTION for mouse hove

Re: list (range) syntax

2007-10-26 Thread Christof Winter
Ryan Ginstrom wrote: >> On Behalf Of Steven D'Aprano >> Because in common English, counting starts at 1 and ranges >> normally include both end points (that is, it is a "closed" >> interval). If you say "I'll be away from the 4th to the 7th" >> and then turn up on the 7th, nearly everyone will w

Re: An efficient, pythonic way to calculate result sets

2007-10-26 Thread happyhondje
On Oct 26, 2:33 am, Raymond Hettinger <[EMAIL PROTECTED]> wrote: > On Oct 25, 8:31 am, [EMAIL PROTECTED] wrote: > > > > > I've got a little issue, both programming and performance-wise. I have > > a set, containing objects that refer to other sets. For example, in a > > simple notation: (, ) (or in

Re: Proposal: Decimal literals in Python.

2007-10-26 Thread Ben Finney
Steven D'Aprano <[EMAIL PROTECTED]> writes: > On Fri, 26 Oct 2007 19:19:46 +1000, Ben Finney wrote: > > Nor should we. A function or type name should be short but > > explicit, and 'Decimal' is about as short as I'd want. > > You don't like str, int, float, list, set, dict, or bool? They'd all m

Re: An efficient, pythonic way to calculate result sets

2007-10-26 Thread happyhondje
> def cross_nodups(*args): > 'Cross product after eliminating repeat elements, keeping constant > size' > ans = [[]] > for arg in args: > ans = [x+[y] for x in ans for y in arg if y not in x] > return ans > > def choose_first(obj1, *args): > 'Assume a choice of a first o

Re: tuples within tuples

2007-10-26 Thread Duncan Booth
[EMAIL PROTECTED] wrote: > > [cut] >> >> Without a better example or explanation of what you are trying to do >> it is difficult > > You're right. > Actually i'm parsing an xml file using pyrxp, which returns something > like this: > (tagName, attributes, list_of_children, spare) > Where list_of

Re: "Standard" Full Text Search Engine

2007-10-26 Thread aaron . watters
On Oct 26, 8:53 am, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote: > Martin Marcher wrote: > > Hello, > > > is there something like a standard full text search engine? > > any hints? > > There are several python lucene implementations available, and recently here > a project called NUCULAR turne

distutils error dealing with rpms?

2007-10-26 Thread cesar.ortiz
Hi all, I am trying to generate an distribution with distutils, using in the setup() invocation the parameters 'packages' and 'data_files'. If I use bdist, the tar.gz contains all the files, but I I use bdist_rpm the data_files are not included in the rpm. has anyone face this before? I am using

Re: Dual Python Installed Environments..

2007-10-26 Thread Neil Wallace
On Thu, 25 Oct 2007 14:45:51 -0700, sam wrote: > Hi.. > > I'm looking to install dual versions of python 2.3, 2.4 on the same box. > I'm trying to figure out if there's something I'm missing, some kind of > gotchas that I haven't seen. > > I'm also trying to figure out how to allow my script to

Re: NUCULAR fielded text searchable indexing

2007-10-26 Thread aaron . watters
On Oct 17, 7:20 am, Steve Holden <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > (see the graphic at the bottom of http://nucular.sourceforge.net) > > It's a shame the name obscures rather than enlightens. Your stuff is > usually pretty good - I still remember Gadfly fondly. Sorry you fe

Interpreter hook during evaluation

2007-10-26 Thread WilliamKF
Hello, I would like access to a hook inside Python that would allow me to register a C++ function to be called periodically during the evaluation of a Python script. Does any such thing exist today in Python? I poked around but didn't find anything. I want to do this for interrupt handling. I'd

Re: renice

2007-10-26 Thread Dan
On Oct 26, 4:30 am, mokhtar <[EMAIL PROTECTED]> wrote: > Hi > > Is it possible to renice the python process executing the current python > script ?:confused: > -- > View this message in > context:http://www.nabble.com/renice-tf4695834.html#a13422771 > Sent from the Python - python-list mailing lis

Re: Cross-platform GUI development

2007-10-26 Thread Sion Arrowsmith
bramble <[EMAIL PROTECTED]> wrote: > [ GTK is ] free >software, so contributors can try and make the L&F more native if it's >really that big a deal. But the people who care about Windows native L&F are not the people with the resources (time, money, probably experience) to address this issue. An

[ANN] Dabo 0.8.2 Released

2007-10-26 Thread Ed Leafe
We are pleased to announce the release of Dabo 0.8.2, the latest version of our desktop application framework. It is available on our download page: http://dabodev.com/download If you're not familiar with Dabo, it is the leading framework for building desktop applications in

Re: "Standard" Full Text Search Engine

2007-10-26 Thread Martin Marcher
2007/10/26, [EMAIL PROTECTED] <[EMAIL PROTECTED]>: > On Oct 26, 8:53 am, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote: > > Martin Marcher wrote: > Thanks for the NUCULAR mention (http://nucular.sourceforge.net). It > certainly doesn't meet all the requirements requested (very few users > yet, some

Re: Python Windows Installation

2007-10-26 Thread Bjoern Schliessmann
Wildemar Wildenburger wrote: > Of course, but that would constitute "common practice". Ah, okay. That was what I actually meant ;) > "Best practice" in my book is the one that causes the least > trouble, which names-with-whitespace clearly don't. Though by this > day and age, I admit that progr

Re: pure python data compression (zip)

2007-10-26 Thread Meff
Hi René, What about to use the GE863-PRO? It comes with ARM9 inside, helps with 200MIPS and will run embedded Linux. We will launch a version with connectors, SIM card holder and RF connector on http://www.telemobilityforum.com/eng/ in Monza next days. I call it an embedded Linux with integrated G

Re: "Standard" Full Text Search Engine

2007-10-26 Thread Paul Rubin
"Martin Marcher" <[EMAIL PROTECTED]> writes: > is there something like a standard full text search engine? > > I'm thinking of the equivalent for python like lucene is for java or > ferret for rails. Preferrably something that isn't exactly a clone of > one of those but more that is python friendl

how to/help installing impure packages

2007-10-26 Thread owl
I love easy_install. I love watching it search and complete. It's when it doesn't complete that causes me grief. I don't program a lot these days and am relatively new to python but I often wind up installing packages on both unix and windows machines and often the 'build' part of the install fail

Re: Interpreter hook during evaluation

2007-10-26 Thread ThunderBug
> I would like access to a hook inside Python that would allow me to > register a C++ function to be called periodically during the > evaluation of a Python script. > > ... so calling it > every Python instruction would not be that bad in terms of > performance. > I too could make good use of such

python logging config file doesn't allow filters?

2007-10-26 Thread Matthew Wilson
The python logging module is a beautiful masterpiece. I'm studying filters and the config-file approach. Is it possible to define a filter somehow and then refer to it in my config file? TIA Matt -- http://mail.python.org/mailman/listinfo/python-list

Re: Interpreter hook during evaluation

2007-10-26 Thread Diez B. Roggisch
[EMAIL PROTECTED] schrieb: > Hello, > > I would like access to a hook inside Python that would allow me to > register a C++ function to be called periodically during the > evaluation of a Python script. > > Does any such thing exist today in Python? I poked around but didn't > find anything. > >

Re: elementtree w/utf8

2007-10-26 Thread Tim Arnold
"Marc 'BlackJack' Rintsch" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Thu, 25 Oct 2007 17:15:36 -0400, Tim Arnold wrote: > >> Hi, I'm getting the by-now-familiar error: >> return codecs.charmap_decode(input,errors,decoding_map) >> UnicodeEncodeError: 'ascii' codec can't enco

ctypes on arm linux

2007-10-26 Thread Samuel M. Smith
I have built python 1.5.1 from source for an embedded ARM9 debian linux Sarge distribution but ctypes doesn't build. Anybody have any idea what the problem is? Do I have to have the libffi package installed. See my errors below. I looked and ffi.h exists in three places /usr/local/src/Python

Re: Eclipse Plugins

2007-10-26 Thread Heikki Toivonen
Martin Marcher wrote: > 2007/10/26, Robert Rawlins - Think Blue <[EMAIL PROTECTED]>: >> For my other languages, such as HTML, ColdFusion, JAVA etc I make good use >> of the Eclipse SDK, and I'm looking for some advice on the best and most >> popular python plug-ins available, what would you suggest

Re: Bypassing __getattribute__ for attribute access

2007-10-26 Thread Adam Donahue
Thank you all for the detailed replies, I appreciate it. I only read up on this yesterday morning, but I feel I've gotten a lot of insight in a short time thanks to your contributions to this thread. Useful all around! Adam On Oct 26, 2:50 am, Bruno Desthuilliers wrote: > Chris Mellon a écrit

*** Will DEVASTATE and BANKRUPT any Brit daring to get out of line ***

2007-10-26 Thread lemnitzer
http://www.ft.com/cms/s/0/56cb5b92-10a7-11dc-96d3-000b5df10621.html?nclick_check=1 Harvard legal expert vows to sue lecturers boycotting Israel By Jon Boone Published: June 2 2007 03:00 A top American lawyer has threatened to wage a legal war against British academics who seek to cut links with

Re: "Standard" Full Text Search Engine

2007-10-26 Thread Paul Boddie
On 26 Okt, 19:33, Paul Rubin wrote: > > Ferret is basically a Lucene clone, originally written in Ruby but > with the intensive parts later rewritten in C for speed since the Ruby > version was too slow. There was something similar done in Python > (PyLucene, I think) th

Intellectual TERRORism by Alan Dershowitz Re: *** Will DEVASTATE and BANKRUPT any Brit daring to get out of line ***

2007-10-26 Thread lemnitzer
Intellectual terrorism By Ghada Karmi 10/26/2007 The newest and least attractive import from America, following on behind Coca-Cola, McDonald's and Friends, is the pro-Israel lobby. The latest target of this US-style campaign is the august Oxford Union. This week, two Israeli colleagues and I were

Re: *** Will DEVASTATE and BANKRUPT any Brit daring to get out of line ***

2007-10-26 Thread lemnitzer
http://www.fpp.co.uk/online/07/06/Dershowitz.html Look at the facial expression of Alan Dershowitz <- Financial times Monday, June 4, 2007 Harvard legal expert vows to sue ["bankrupt"] lecturers boycotting Israel By Jon Boone A TOP American lawyer has threatened to wage a leg

Re: [ANN] Dabo 0.8.2 Released

2007-10-26 Thread Ed Leafe
On Oct 26, 2007, at 1:23 PM, Dennis Lee Bieber wrote: >> We are also including DaboDemo and the visual tools in the download, >> instead of making you grab those separately. We plan on integrating >> Web Update-like features into these in the near future. >> > Let's see if I have this r

Re: Proposal: Decimal literals in Python.

2007-10-26 Thread Shane Geiger
D = lambda x: decimal.Decimal(str(x)) >> D(3.2) Decimal("3.2") Steven D'Aprano wrote: > On Fri, 26 Oct 2007 19:19:46 +1000, Ben Finney wrote: > > >>> Of course we can intruduce a single character function name as an alias >>> for the Decimal type constructor, but even then we have to use bo

Rare Footage: An Intellectually and spiritually enlightening discussion with Rabbis of Neturei Karta

2007-10-26 Thread lemnitzer
Hour long RARE video of the Great Rabbis, Unfortunately, the sound is poor quality. http://www.youtube.com/watch?v=3dSHl3C9kgY http://www.youtube.com/watch?v=jOVJr-ATnOw On Oct 26, 11:37 am, [EMAIL PROTECTED] wrote: > http://www.ft.com/cms/s/0/56cb5b92-10a7-11dc-96d3-000b5df10621.html?n... > > H

Re: Eclipse Plugins

2007-10-26 Thread cyberco
> PyDev is open source, and the developer is pretty responsive, so if you > could describe what is missing there is a good chance it would get > implemented. I even fixed two bugs myself, my first ever real Java > contribution... > > -- > Heikki Toivonen I can second that. I'm a happy PyDev user

Editing MS Word

2007-10-26 Thread tonylabarbara
Hi; I'm trying to edit MS Word tables with a python script. Here's a snippet: import string def msw2htmlTables(): input = "/usr/home/me/test.doc" input = open(input,'r') word = "whatever" inputFlag = 0 splitString = [] for line in input: # Check first the inputFlag, since we only want to

Re: tuples within tuples

2007-10-26 Thread korovev76
On 26 Ott, 19:23, Dennis Lee Bieber <[EMAIL PROTECTED]> wrote: > > (A,B,C,D) > > that could be > > ('tagA', None, [('tagB', None, ['bobloblaw], None)], None) > > "C" isn't a tuple in your example either. It is a one-element list > (the single element INSIDE the list is a tuple whose third

Re: Hack request: rational numbers

2007-10-26 Thread Anton Mellit
> Hi! > > I am using rational numbers from the gmpy module and I find that creating > one in Python using > mpq(3,4) > > is rather clumsy. Clearly, minimal representation of this rational number > is > >3/4 > > but in Python this expression has different meaning. Hi, I am writing an inter

Re: "sem_post: Invalid argument"

2007-10-26 Thread Jonathan Gardner
On Oct 25, 2:19 pm, robert <[EMAIL PROTECTED]> wrote: > Jonathan Gardner wrote: > > On Oct 25, 12:56 pm, robert <[EMAIL PROTECTED]> wrote: > >> On a server the binary (red hat) installed python2.4 and also a > >> fresh compiled python2.5 spits "sem_post: Invalid argument". > >> What is this and how

Re: how to/help installing impure packages

2007-10-26 Thread Jonathan Gardner
On Oct 26, 10:35 am, owl <[EMAIL PROTECTED]> wrote: > I love easy_install. > > I love watching it search and complete. > It's when it doesn't complete that causes me grief. > I don't program a lot these days and am relatively new to python but I > often wind up installing packages on both unix and

Re: tuples within tuples

2007-10-26 Thread Michael L Torrie
[EMAIL PROTECTED] wrote: > On 26 Ott, 19:23, Dennis Lee Bieber <[EMAIL PROTECTED]> wrote: > > > (A,B,C,D) >>> that could be >>> ('tagA', None, [('tagB', None, ['bobloblaw], None)], None) >> "C" isn't a tuple in your example either. It is a one-element list >> (the single element INSIDE the

Re: how to/help installing impure packages

2007-10-26 Thread kyosohma
On Oct 26, 12:35 pm, owl <[EMAIL PROTECTED]> wrote: > I love easy_install. > > I love watching it search and complete. > It's when it doesn't complete that causes me grief. > I don't program a lot these days and am relatively new to python but I > often wind up installing packages on both unix and

Re: tuples within tuples

2007-10-26 Thread Stargaming
On Fri, 26 Oct 2007 14:26:24 -0600, Michael L Torrie wrote: > [EMAIL PROTECTED] wrote: [snip] ('tagA', None, [('tagB', None, ['bobloblaw], None)], None) ^ Syntax error behind ``'bobloblaw``. >>> "C" isn't a tuple in your example either.

Going past the float size limits?

2007-10-26 Thread jimmy . musselwhite
Hello all It would be great if I could make a number that can go beyond current size limitations. Is there any sort of external library that can have infinitely huge numbers? Way way way way beyond say 5x10^350 or whatever it is? I'm hitting that "inf" boundary rather fast and I can't seem to work

Re: Python Windows Installation

2007-10-26 Thread Fuzzyman
On Oct 25, 6:36 pm, TheFlyingDutchman <[EMAIL PROTECTED]> wrote: > On Oct 24, 11:22 pm, Tim Roberts <[EMAIL PROTECTED]> wrote: > > > TheFlyingDutchman <[EMAIL PROTECTED]> wrote: > > > >I am trying to install Python 2.5 on Windows XP. It installs into the > > >root directory on C:\ instead of C:\Pyt

Re: renice

2007-10-26 Thread Carl Banks
On Oct 26, 12:46 pm, Dan <[EMAIL PROTECTED]> wrote: > On Oct 26, 4:30 am, mokhtar <[EMAIL PROTECTED]> wrote: > > > Hi > > > Is it possible to renice the python process executing the current python > > script ?:confused: > > -- > > View this message in > > context:http://www.nabble.com/renice-tf469

Re: Proposal: Decimal literals in Python.

2007-10-26 Thread Matimus
> - Traling characters at the end of a literal are already used (the L > for long). The trailing L is going away in Python 3.0. For your consideration may I suggest a '$' prefix. Though, I'm not sure I even support the idea of a decimal literal, and I'm not even sure if I support the idea of usi

The Comprehensive History of Zionists (VERY THOROUGH and SUCCINCT VIDEO TUTORIAL)

2007-10-26 Thread thermate2
The Comprehensive History of Zionists (VERY THOROUGH and SUCCINCT VIDEO TUTORIAL) http://www.youtube.com/watch?v=YTkluxTOXzQ On Oct 26, 11:55 am, [EMAIL PROTECTED] wrote: > Hour long RARE video of the Great Rabbis, Unfortunately, the sound is > poor quality. > > http://www.youtube.com/watch?v=3d

Re: Going past the float size limits?

2007-10-26 Thread Chris Mellon
On 10/26/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Hello all > It would be great if I could make a number that can go beyond current > size limitations. Is there any sort of external library that can have > infinitely huge numbers? Way way way way beyond say 5x10^350 or > whatever it is? >

Re: Going past the float size limits?

2007-10-26 Thread Guilherme Polo
2007/10/26, [EMAIL PROTECTED] <[EMAIL PROTECTED]>: > Hello all > It would be great if I could make a number that can go beyond current > size limitations. Is there any sort of external library that can have > infinitely huge numbers? Way way way way beyond say 5x10^350 or > whatever it is? Check t

Re: Going past the float size limits?

2007-10-26 Thread J. Cliff Dyer
[EMAIL PROTECTED] wrote: > Hello all > It would be great if I could make a number that can go beyond current > size limitations. Is there any sort of external library that can have > infinitely huge numbers? Way way way way beyond say 5x10^350 or > whatever it is? > > I'm hitting that "inf" boundar

Re: Going past the float size limits?

2007-10-26 Thread Diez B. Roggisch
[EMAIL PROTECTED] schrieb: > Hello all > It would be great if I could make a number that can go beyond current > size limitations. Is there any sort of external library that can have > infinitely huge numbers? Way way way way beyond say 5x10^350 or > whatever it is? > > I'm hitting that "inf" boun

Re: Going past the float size limits?

2007-10-26 Thread Matt McCredie
> It would be great if I could make a number that can go beyond current > size limitations. Is there any sort of external library that can have > infinitely huge numbers? Way way way way beyond say 5x10^350 or > whatever it is? > > I'm hitting that "inf" boundary rather fast and I can't seem to wor

Re: Python Windows Installation

2007-10-26 Thread Bjoern Schliessmann
Fuzzyman wrote: > However I did once use a machine where Python had been installed > into 'c:\Program Files\Python24'. It caused no end of problems... What, "it"? The machine or the folder? What kinds of problems? Regards, Björn -- BOFH excuse #170: popper unable to process jumbo kernel --

Re: Proposal: Decimal literals in Python.

2007-10-26 Thread Ben Finney
Matimus <[EMAIL PROTECTED]> writes: > The trailing L [for 'long' literals] is going away in Python 3.0. Yes. On the other hand, we are gaining '0b' for binary literals, to go along with '0o' for octal and '0x' for hexadecimal. So, the original poster might get further by proposing an

Re: Proposal: Decimal literals in Python.

2007-10-26 Thread J. Cliff Dyer
Matimus wrote: >> - Traling characters at the end of a literal are already used (the L >> for long). >> > > The trailing L is going away in Python 3.0. For your consideration may > I suggest a '$' prefix. Though, I'm not sure I even support the idea > of a decimal literal, and I'm not even s

Re: Proposal: Decimal literals in Python.

2007-10-26 Thread J. Cliff Dyer
Ben Finney wrote: > Matimus <[EMAIL PROTECTED]> writes: > > >> The trailing L [for 'long' literals] is going away in Python 3.0. >> > > Yes. On the other hand, we are gaining '0b' for binary literals, > to go along with '0o' for octal and '0x' for hexadecimal. > > So, the origin

Re: Going past the float size limits?

2007-10-26 Thread jimmy . musselwhite
On Oct 26, 6:56 pm, "Chris Mellon" <[EMAIL PROTECTED]> wrote: > On 10/26/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > Hello all > > It would be great if I could make a number that can go beyond current > > size limitations. Is there any sort of external library that can have > > infinitel

911 Was a Zionist Job, feel the sadism of the zionists, people tumbling down from the top

2007-10-26 Thread thermate2
911 was a zionist job video http://www.youtube.com/watch?v=D6PErp5TBpM On Oct 26, 3:50 pm, [EMAIL PROTECTED] wrote: > The Comprehensive History of Zionists (VERY THOROUGH and SUCCINCT > VIDEO TUTORIAL) > > http://www.youtube.com/watch?v=YTkluxTOXzQ > > On Oct 26, 11:55 am, [EMAIL PROTECTED] wrote:

Re: Going past the float size limits?

2007-10-26 Thread Stéphane Larouche
gmail.com> writes: > The calculation looks like this > > A = 0.35 > T = 0.30 > C = 0.25 > G = 0.10 > > and then I basically continually multiply those numbers together. I > need to do it like 200,000+ times but that's nuts. I can't even do it > 1000 times or the number rounds off to 0.0. I tri

Re: Going past the float size limits?

2007-10-26 Thread Hrvoje Niksic
[EMAIL PROTECTED] writes: > The calculation looks like this > > A = 0.35 > T = 0.30 > C = 0.25 > G = 0.10 > > and then I basically continually multiply those numbers together. I > need to do it like 200,000+ times but that's nuts. I can't even do it > 1000 times or the number rounds off to 0.0. I

Re: Going past the float size limits?

2007-10-26 Thread Grant Edwards
On 2007-10-26, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: >> What in the world are you trying to count? > > The calculation looks like this > > A = 0.35 > T = 0.30 > C = 0.25 > G = 0.10 The bases in DNA? > and then I basically continually multiply those numbers together. I > need to do it like

Re: Going past the float size limits?

2007-10-26 Thread jimmy . musselwhite
On Oct 26, 8:03 pm, Stéphane Larouche <[EMAIL PROTECTED]> wrote: > gmail.com> writes: > > > The calculation looks like this > > > A = 0.35 > > T = 0.30 > > C = 0.25 > > G = 0.10 > > > and then I basically continually multiply those numbers together. I > > need to do it like 200,000+ times but tha

Re: Good Book

2007-10-26 Thread Aahz
In article <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]> wrote: > >The Python Cookbook would probably be another good resource. While I >don't like the Dummies series' name, the Python Dummies book is a good >introduction, although it doesn't have enough examples, in my opinion. Could you explain what

Re: Going past the float size limits?

2007-10-26 Thread [EMAIL PROTECTED]
On Oct 26, 6:29 pm, [EMAIL PROTECTED] wrote: > On Oct 26, 6:56 pm, "Chris Mellon" <[EMAIL PROTECTED]> wrote: > > > On 10/26/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > > Hello all > > > It would be great if I could make a number that can go beyond current > > > size limitations. Is there

  1   2   >