Re: simple question on dictionary usage

2007-10-26 Thread Frank Millman
On Oct 27, 8:02 am, Frank Millman <[EMAIL PROTECTED]> wrote: > > This should work - > > > egt = dict([i for i in d.items() if i[0].startswith('E')]) > > Of course I meant record.items(), not d.items(). Sorry. > > Frank On reflection, although my solution is a bit shorter than some others, it may n

Re: Finding decorators in a file

2007-10-26 Thread Kay Schluehr
On Oct 27, 3:14 am, Andrew West <[EMAIL PROTECTED]> wrote: > Probably a bit of weird question. I realise decorators shouldn't be > executed until the function they are defined with are called, but is > there anyway for me to find all the decorates declared in a file when > I import it? Or perhaps

Re: tuples within tuples

2007-10-26 Thread korovev76
On 26 Ott, 23:33, Stargaming <[EMAIL PROTECTED]> wrote: > He certainly is -- *you* are misreading *him*. The nit he's picking is > the non-terminated string (quotation mark/apostrophe missing). > right, now i got it! beside this, i'm trying to use the reduceXML function proposed by Larry.. but I

Re: Proposal: Decimal literals in Python.

2007-10-26 Thread Paul Rubin
Marc 'BlackJack' Rintsch <[EMAIL PROTECTED]> writes: > assert 0b1 is 0x1 > That this doesn't raise `AssertionError` is an implementation detail. > It's not guaranteed the two objects are really the same. I think Ben is getting at 0b1 and 0x1 being the same type, while the proposed 0d1 is a d

Re: simple question on dictionary usage

2007-10-26 Thread Frank Millman
> > This should work - > > egt = dict([i for i in d.items() if i[0].startswith('E')]) > Of course I meant record.items(), not d.items(). Sorry. Frank -- http://mail.python.org/mailman/listinfo/python-list

Re: simple question on dictionary usage

2007-10-26 Thread Frank Millman
Frank Stutzman wrote: > My apologies in advance, I'm new to python > > Say, I have a dictionary that looks like this: > > record={'BAT': '14.4', 'USD': '24', 'DIF': '45', 'OAT': '16', > 'FF': '3.9', 'C3': '343', 'E4': '1157', 'C1': '339', > 'E6': '1182', 'RPM': '996', 'C6': '311',

transmit an array via socket

2007-10-26 Thread Jeff Pang
I want to transmit an array via socket from a host to another. How to do it? thank you. --jeff _ Largest network of startups. Find new startup opportunities. Click here. http://thirdpartyoffers.juno.com/TGL2111/fc/Ioyw6iieVGxKk95ANW9UY46Z

Re: Proposal: Decimal literals in Python.

2007-10-26 Thread Marc 'BlackJack' Rintsch
On Fri, 26 Oct 2007 19:29:47 -0400, J. Cliff Dyer wrote: > Ben Finney wrote: >> So, the original poster might get further by proposing an '0dNNN.NNN' >> syntax for 'decimal.Decimal' literals. > It would rather be remarkably inconsistent and confusing. > > Python 3.0a1 (py3k:57844, Aug 31 2007,

RE: simple question on dictionary usage

2007-10-26 Thread Ryan Ginstrom
> On Behalf Of Edward Kozlowski > I think this should do the trick. There's probably something > more concise than this, but I can't think of it at the moment. > > egt = {} > for key in record: > if key.startswith('E'): > egt[key] = record[key] Not much more concise, but another way

Re: Bypassing __getattribute__ for attribute access

2007-10-26 Thread Michele Simionato
On Oct 25, 5:07 pm, Adam Donahue <[EMAIL PROTECTED]> wrote: > As an exercise I'm attempting to write a metaclass that causes an > exception to be thrown whenever a user tries to access > 'attributes' (in the traditional sense) via a direct reference. Well, now thanks to Bruno and the others you kn

Re: Python Windows Installation

2007-10-26 Thread Tim Roberts
Bjoern Schliessmann <[EMAIL PROTECTED]> wrote: > >The last app I saw that had problems with whitespace was Worms 2 >(1997). YMMV (and I'm interested in it). If only. Even the very latest Microsoft WDK (Windows Driver Kit, formerly known as the DDK) cannot successfully build drivers if the source

Re: simple question on dictionary usage

2007-10-26 Thread Karthik Gurusamy
On Oct 26, 9:29 pm, Frank Stutzman <[EMAIL PROTECTED]> wrote: > My apologies in advance, I'm new to python > > Say, I have a dictionary that looks like this: > > record={'BAT': '14.4', 'USD': '24', 'DIF': '45', 'OAT': '16', > 'FF': '3.9', 'C3': '343', 'E4': '1157', 'C1': '339', > 'E

Re: simple question on dictionary usage

2007-10-26 Thread Edward Kozlowski
On Oct 26, 11:29 pm, Frank Stutzman <[EMAIL PROTECTED]> wrote: > My apologies in advance, I'm new to python > > Say, I have a dictionary that looks like this: > > record={'BAT': '14.4', 'USD': '24', 'DIF': '45', 'OAT': '16', > 'FF': '3.9', 'C3': '343', 'E4': '1157', 'C1': '339', > '

Re: delineating by comma where commas inside quotation marks don't count

2007-10-26 Thread Junior
"Dan Bishop" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Oct 24, 8:56 pm, "Junior" <[EMAIL PROTECTED]> wrote: >> I want to open a text file for reading and delineate it by comma. I also >> want any data >> surrounded by quotation marks that has a comma in it, not to count th

resurrected modindex

2007-10-26 Thread skip
A long time ago I wrote a redirector to note and display the most frequently requested modules from the library reference manual's global module index. When Georg Brandl did his massive rewrite of the Python manuals that broke. I finally took the time this evening to resurrect that function. The r

simple question on dictionary usage

2007-10-26 Thread Frank Stutzman
My apologies in advance, I'm new to python Say, I have a dictionary that looks like this: record={'BAT': '14.4', 'USD': '24', 'DIF': '45', 'OAT': '16', 'FF': '3.9', 'C3': '343', 'E4': '1157', 'C1': '339', 'E6': '1182', 'RPM': '996', 'C6': '311', 'C5': '300', 'C4': '349',

Re: Proposal: Decimal literals in Python.

2007-10-26 Thread Terry Reedy
"Shane Geiger" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] a buggy hack (copying your top post style) >>> D(123456789.123456789) Decimal("123456789.123") Or what there an unwritten :-)? | D = lambda x: decimal.Decimal(str(x)) | | >> D(3.2) | Decimal("3.2") -- http://mail.

RE: Finding decorators in a file

2007-10-26 Thread Ryan Ginstrom
> On Behalf Of Andrew West > Basically what I'm looking for is a way to, given a python file, look > through that file and find all the decorators and the associated > functions, that includes any arguments that the decorator has. The inspect module has a function called "findsource" import ins

Re: Proposal: Decimal literals in Python.

2007-10-26 Thread Carl Banks
On Oct 26, 7:17 pm, "J. Cliff Dyer" <[EMAIL PROTECTED]> wrote: > 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

Meta-literals

2007-10-26 Thread Carl Banks
On Oct 26, 4:54 am, Lennart Benschop <[EMAIL PROTECTED]> wrote: > 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 mo

Re: Iteration for Factorials

2007-10-26 Thread Steven Bethard
Nicko wrote: > If you don't like the rounding errors you could try: > > def fact(n): > d = {"p":1L} > def f(i): d["p"] *= i > map(f, range(1,n+1)) > return d["p"] > > It is left as an exercise to the reader as to why this code will not > work on Py3K Serves yo

Re: Going past the float size limits?

2007-10-26 Thread Steven D'Aprano
On Fri, 26 Oct 2007 16:29:34 -0700, jimmy.musselwhite 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 limita

Finding decorators in a file

2007-10-26 Thread Andrew West
Probably a bit of weird question. I realise decorators shouldn't be executed until the function they are defined with are called, but is there anyway for me to find all the decorates declared in a file when I import it? Or perhaps anyway to find the decorators by loading the file by other methods

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

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 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: 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 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 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

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 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

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: 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 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: 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: 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: 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 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 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 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? >

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: 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

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

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: 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.

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 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 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: "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: 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: 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

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: 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

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: *** 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: "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

*** 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: 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

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: [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

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

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: "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

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: 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: 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

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. > >

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 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

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: 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

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: 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: 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

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

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: "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

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: 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: 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: 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: 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: 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: .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: 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: 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: 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: "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: 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: 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: "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: 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

"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: 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

  1   2   >