Re: bsddb in python 2.5.1

2007-11-04 Thread Martin v. Löwis
> I know that when you upgrade Berkeley DB you're supposed to go through > steps solving this problem,but I wasn't expecting an upgrade. I've > tried to use different versions bsddb3, 4.4 and 4.5, (instead of bsddb > that comes with python 2.5.1) with different versions of Berkeley DB > installs (4

Re: how to iterate through each set

2007-11-04 Thread Cameron Walsh
Tom_chicollegeboy wrote: > I figured out problem. here is my code. now it works as it should! > Thank you everyone! > I decided my 4th clue earlier was too much, so I removed it before posting. It looks like you got it anyway =) You've now solved it the way the course instructor intended you to

How to know more about an exception?

2007-11-04 Thread Timmy
Hi, I has a question about exception in python. I know that an exception can be re-raised. Is there any simple way provided by python itself that I can know the current exception is just firstly occurred or it is re-raised by previous exception? I need to know whether the exception is fir

Re: Is pyparsing really a recursive descent parser?

2007-11-04 Thread Kay Schluehr
On 4 Nov., 03:07, Neil Cerutti <[EMAIL PROTECTED]> wrote: > On 2007-11-04, Just Another Victim of the Ambient Morality > > > > <[EMAIL PROTECTED]> wrote: > > > "Neil Cerutti" <[EMAIL PROTECTED]> wrote in message > >news:[EMAIL PROTECTED] > >> On 2007-11-03, Paul McGuire <[EMAIL PROTECTED]> wrote: >

Re: How to know more about an exception?

2007-11-04 Thread Diez B. Roggisch
Timmy schrieb: > Hi, >I has a question about exception in python. >I know that an exception can be re-raised. > Is there any simple way provided by python itself that I can know the current > exception is > just firstly occurred or it is re-raised by previous exception? > I need to know

Re: Low-overhead GUI toolkit for Linux w/o X11?

2007-11-04 Thread Bjoern Schliessmann
Grant Edwards wrote: > On 2007-11-04, Bjoern Schliessmann >> Erm, wxWidgets is implemented in C++ > > Are you saying C++ software can't be large and slow? No, but wxWidgets is quite mature and my experience is that it's faster than Qt (partly, I think, because it always uses the native widgets).

Re: (MAC) CoreGraphics module???

2007-11-04 Thread David C. Ullrich
On Fri, 02 Nov 2007 14:09:25 -0500, Robert Kern <[EMAIL PROTECTED]> wrote: >David C. Ullrich wrote: >> [???] > >Okay, which version of OS X do you have? In 10.3 and 10.4 it used to be here: >/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/plat-mac/CoreGraphics.py > >I notice

how does google search in phrase

2007-11-04 Thread [EMAIL PROTECTED]
hi my friends; google can searching in phrase but it is imposible. it have a lot of page in data base and quadrillions sentence it can't search in fulltxt all of them .it need a super algorithm. ı need the algorithm now. if you have a idea ,pls share to me thanks (sorry for my bad english :(

Re: Is pyparsing really a recursive descent parser?

2007-11-04 Thread Neil Cerutti
On 2007-11-04, Kay Schluehr <[EMAIL PROTECTED]> wrote: > On 4 Nov., 03:07, Neil Cerutti <[EMAIL PROTECTED]> wrote: >> I wouldn't characterize it as pretending. How would you parse: >> >> hello end hello end >> >> "WORD END WORD END" and "WORD WORD WORD END" are both valid >> interpretations, acco

Re: Python good for data mining?

2007-11-04 Thread Jens
> > What if I were to use my Python libraries with a web site written in > > PHP, Perl or Java - how do I integrate with Python? > > Possibly the simplest way would be python .cgi files. The cgi and cgitb > modules allow form data to be read fairly easily. Cookies are also > fairly simple. For a

how to keep order key in a dictionary

2007-11-04 Thread azrael
I 'm currenty working on a project for which it would be great to use a dictionary. At the begining I have a list of strings that should represent the keys in the dictionary. When I try to create a dictionary it rearanges the keys. For this dictionary it is realy important to keep the right order.

Re: how to keep order key in a dictionary

2007-11-04 Thread Jeff McNeil
See http://www.python.org/doc/faq/general/#how-are-dictionaries-implemented . In short, keys() and items() return an arbitrary ordering. I think that http://pypi.python.org/pypi/Ordered%20Dictionary/ will do what you want if key ordering is a necessity. Jeff On Nov 4, 2007, at 8:19 AM, azra

Re: setting variables in outer functions

2007-11-04 Thread Bruno Desthuilliers
Hrvoje Niksic a écrit : > "Chris Mellon" <[EMAIL PROTECTED]> writes: > > >>I have no idea why someone who already has a working, object system >>would want to implement their own on top of closures. > > > This subthread is getting ridiculous -- closures are *not* useful only > for implementing

Re: python newbie

2007-11-04 Thread Bruno Desthuilliers
Bjoern Schliessmann a écrit : > Bruno Desthuilliers wrote: > >>Bjoern Schliessmann a écrit : > > >>>You can't just declare in Python, you always define objects (and >>>bind a name to them). >> >>def toto(): >> global p >> p = 42 >> >>Here I declared 'x' as global without defining it. > > >

Re: Python good for data mining?

2007-11-04 Thread Cameron Walsh
Jens wrote: > > Thanks a lot! I'm not sure I completely understand your description of > how to integrate Python with, say PHP. Could you please give a small > example? I have no experience with Python web development using CGI. > How easy is it compared to web development in PHP? > > I still hav

Re: Low-overhead GUI toolkit for Linux w/o X11?

2007-11-04 Thread Grant Edwards
On 2007-11-04, Paul Rubin wrote: > Grant Edwards <[EMAIL PROTECTED]> writes: >> There is no mouse. I'm not sure how many "widgets" are >> required. Probably not very many. > > Back in the old days there were some lightweight toolkits for > doing text mode GUI's using ANSI graphic characters for

Re: how to keep order key in a dictionary

2007-11-04 Thread BartlebyScrivener
On Nov 4, 7:19 am, azrael <[EMAIL PROTECTED]> wrote: > For this dictionary it is realy > important to keep the right order. Is it possible to arange them in a > specific order? Not sure what order you want, but how about sorting the keys? def printdict(dict): """print sorted key:value pairs"""

Re: Low-overhead GUI toolkit for Linux w/o X11?

2007-11-04 Thread Grant Edwards
On 2007-11-04, Bjoern Schliessmann <[EMAIL PROTECTED]> wrote: >>> and wxPython is just a wrapper. >> >> Yes, I know. If we though Python was the problem, I wouldn't >> be asking about other toolkits that had Python bindings. > > Ah, you know more than you wrote? If you've done measurements, > I'

Re: Is pyparsing really a recursive descent parser?

2007-11-04 Thread Just Another Victim of the Ambient Morality
"Neil Cerutti" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On 2007-11-04, Just Another Victim of the Ambient Morality > <[EMAIL PROTECTED]> wrote: >> >> "Neil Cerutti" <[EMAIL PROTECTED]> wrote in message >> news:[EMAIL PROTECTED] >>> >>> Is there not an ambiguity in the grammar

modify a file

2007-11-04 Thread tech user
Hello, I have a file which is large about 3.5G. I need to modify some lines in it,but I don't like to create another file for the result. How can i do it? thanks. National Bingo Night. Play along for the chance to win $10,000 every week. Download your gamecard now at Yahoo!7 TV. http

pygresql

2007-11-04 Thread JD
Hi there. I'm trying to use python with postgresql. I decided to use psycopg to interact with the postgresql server. When installing psycopg it appeared that I needed mxDateTime. So I decided to install the mxbase package. I received the following error message (the interesting bit seems to be a

Re: pygresql

2007-11-04 Thread JD
Btw apologies for naming the post 'pygresql'! That was the module I was attempting to use before. -- http://mail.python.org/mailman/listinfo/python-list

Re: modify a file

2007-11-04 Thread Marc 'BlackJack' Rintsch
On Mon, 05 Nov 2007 01:55:50 +1100, tech user wrote: > I have a file which is large about 3.5G. > I need to modify some lines in it,but I don't like to create another file > for the result. > How can i do it? thanks. In general not a good idea unless the modification does not change the length of

Re: python newbie

2007-11-04 Thread Bruno Desthuilliers
Hendrik van Rooyen a écrit : > "Bruno Desthuilliers" wrote: > > >>functions are *not* methods of their module. > > > Now I am confused - if I write: > > result = foo.bar(param) > > Then if foo is a class, we probably all agree that bar is > a method of foo. We probably agree that it's an att

Re: python newbie

2007-11-04 Thread Bruno Desthuilliers
Paul Rubin a écrit : > Paul Hankin <[EMAIL PROTECTED]> writes: > >>I'm intrigued - when would you want a callable module? > > > I think it would be nice to be able to say > >import StringIO >buf = StringIO('hello') > > instead of > > import StringIO > buf = StringIO.StringIO('hell

Re: python newbie

2007-11-04 Thread Bruno Desthuilliers
Bjoern Schliessmann a écrit : > Hendrik van Rooyen wrote: > > >>So what's the difference ? Why can't bar be called a method >>of foo, or is it merely a convention that classes have >>methods and modules have functions? > > > In depends on which terminology you use. As Steven told, Python > met

Re: how to keep order key in a dictionary

2007-11-04 Thread azrael
thanks, the links where successfull -- http://mail.python.org/mailman/listinfo/python-list

Re: problem with iteration

2007-11-04 Thread Bruno Desthuilliers
Panagiotis Atmatzidis a écrit : > Hello, > > I managed to write some code in order to do what I wanted: Inject code > in the right place, in some html files. I developed the program using > small functions, one at the time in order to see how they work. When I > tried to put these pieces of code t

Re: how to keep order key in a dictionary

2007-11-04 Thread Bruno Desthuilliers
azrael a écrit : > I 'm currenty working on a project for which it would be great to use > a dictionary. At the begining I have a list of strings that should > represent the keys in the dictionary. When I try to create a > dictionary it rearanges the keys. For this dictionary it is realy > importan

Re: how to do the mapping btw numpy arrayvalues and matrix columns

2007-11-04 Thread [EMAIL PROTECTED]
CW, thanx for the reply..but i was looking for a mapping BTW each item of a numpy.ndarray and the corresponding column of a numpy.matrix ,after some struggle :-) i came up with this #a function to return a column from a matrix def getcol(data, colindex): return data[:,colindex]#returns a m

Re: python newbie

2007-11-04 Thread Paul Rubin
Bruno Desthuilliers <[EMAIL PROTECTED]> writes: > What's wrong with: > > from StringIO import StringIO > buf = StringIO('hello') The other functions in the module aren't available then. E.g. from random import random x = random() y = random.choice((1,2,3)) # oops -- http://mail.python.

Re: pygresql

2007-11-04 Thread JD
Apologies for essentially talking to myself out loud! I've switched back to pygresql. I think a lot of my problems were caused by not having installed postgresql-server-dev-8.2 which contains a lot of header files etc. I'm sure this was part of the problem with the psycopg modules aswell. postgre

Re: pygresql

2007-11-04 Thread rustom
On Nov 4, 8:45 pm, JD <[EMAIL PROTECTED]> wrote: > Hi there. > > I'm trying to use python with postgresql. I decided to use psycopg to > interact with the postgresql server. When installing psycopg it > appeared that I needed mxDateTime. So I decided to install the mxbase > package. > > I received

Re: Is pyparsing really a recursive descent parser?

2007-11-04 Thread Neil Cerutti
On 2007-11-04, Just Another Victim of the Ambient Morality <[EMAIL PROTECTED]> wrote: >> Consider writing a recursive decent parser by hand to parse >> the language '[ab]+b'. >> >> goal --> ab_list 'b' >> ab_list --> 'a' list_tail >> ab_list --> 'b' list_tail >> list_tail --> 'a' list_tail >>

Re: Python good for data mining?

2007-11-04 Thread paul
Jens schrieb: > What about user interfaces? How easy is it to use Tkinter for > developing a user interface without an IDE? And with an IDE? (which > IDE?) Tkinter is easy but looks ugly (yeah folks, I know it doesn't matter in you mission critical flight control system). Apart from ActiveStates

Re: python newbie

2007-11-04 Thread Bruno Desthuilliers
Paul Rubin a écrit : > Bruno Desthuilliers <[EMAIL PROTECTED]> writes: > >>What's wrong with: >> >>from StringIO import StringIO >>buf = StringIO('hello') > > > The other functions in the module aren't available then. E.g. > > from random import random > x = random() > y = random.choice(

Re: pygresql

2007-11-04 Thread Erik Jones
On Nov 4, 2007, at 9:45 AM, JD wrote: > Hi there. > > I'm trying to use python with postgresql. I decided to use psycopg to > interact with the postgresql server. When installing psycopg it > appeared that I needed mxDateTime. So I decided to install the mxbase > package. > > I received the follo

Re: python newbie

2007-11-04 Thread Paul Rubin
Bruno Desthuilliers <[EMAIL PROTECTED]> writes: > > from random import random > > x = random() > > y = random.choice((1,2,3)) # oops > > from random import random, choice > > x = random() > y = choice((1, 2, 3)) Really, a lot of these modules exist primarily to export a single class or f

Re: bsddb in python 2.5.1

2007-11-04 Thread BjornT
On Nov 4, 1:04 am, "Martin v. Löwis" <[EMAIL PROTECTED]> wrote: > > I know that when you upgrade Berkeley DB you're supposed to go through > > steps solving this problem,but I wasn't expecting an upgrade. I've > > tried to use different versions bsddb3, 4.4 and 4.5, (instead of bsddb > > that comes

Re: Python good for data mining?

2007-11-04 Thread Bruno Desthuilliers
Jens a écrit : > I'm starting a project in data mining, and I'm considering Python and > Java as possible platforms. > > I'm conserned by performance. Most benchmarks report that Java is > about 10-15 times faster than Python, Benchmarking is difficult, and most benchmarks are easily 'oriented'.

Re: Python IDE

2007-11-04 Thread Bruno Desthuilliers
Simon Pickles a écrit : > Hi, > > I have recently moved from Windows XP to Ubuntu Gutsy. > > I need a Python IDE and debugger, but have yet to find one as good as > Pyscripter for Windows. Can anyone recommend anything? What are you all > using? I'm not sure we're all using the same solutions.

Re: Is pyparsing really a recursive descent parser?

2007-11-04 Thread Just Another Victim of the Ambient Morality
"Neil Cerutti" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On 2007-11-04, Just Another Victim of the Ambient Morality > <[EMAIL PROTECTED]> wrote: >>> Consider writing a recursive decent parser by hand to parse >>> the language '[ab]+b'. >>> >>> goal --> ab_list 'b' >>> ab_lis

cgi undefined?

2007-11-04 Thread Tyler Smith
Hi, I'm trying to learn how to use python for cgi scripting. I've got apache set up on my laptop, and it appears to be working correctly. I can run a basic cgi script that just outputs a new html page, without reading in any form data, so I know that the basics are ok. But when I try and use cgi.F

Re: Copy database with python..

2007-11-04 Thread Bruno Desthuilliers
Abandoned a écrit : > Hi. > I want to copy my database but python give me error when i use this > command. > cursor.execute("pg_dump mydata > old.dump") > What is the problem ? Could it have to do with the fact that cursor.execute expects a valid SQL query - not a bash command line ? > And how

Re: (MAC) CoreGraphics module???

2007-11-04 Thread Robert Kern
David C. Ullrich wrote: > On Fri, 02 Nov 2007 14:09:25 -0500, Robert Kern > <[EMAIL PROTECTED]> wrote: > >> David C. Ullrich wrote: >>> [???] >> Okay, which version of OS X do you have? In 10.3 and 10.4 it used to be here: >> /System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/p

Re: simple question on dictionary usage

2007-11-04 Thread Bruno Desthuilliers
[EMAIL PROTECTED] a écrit : > On Oct 27, 6:42 am, Karthik Gurusamy <[EMAIL PROTECTED]> wrote: > >>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'

Re: cgi undefined?

2007-11-04 Thread Bruno Desthuilliers
Tyler Smith a écrit : > Hi, > > I'm trying to learn how to use python for cgi scripting. I've got > apache set up on my laptop, and it appears to be working correctly. > I can run a basic cgi script that just outputs a new html page, > without reading in any form data, so I know that the basics ar

Re: python newbie

2007-11-04 Thread Steven D'Aprano
On Sun, 04 Nov 2007 12:05:35 -0800, Paul Rubin wrote: > Bruno Desthuilliers <[EMAIL PROTECTED]> writes: >> > from random import random >> > x = random() >> > y = random.choice((1,2,3)) # oops >> >> from random import random, choice >> >> x = random() >> y = choice((1, 2, 3)) > > Really,

[ANN] Scope_Plot, another plot library for real time signals.

2007-11-04 Thread Stef Mientki
hello, I justed finished, another plot library, called Scope_Plot, based on wxPython. Scope_Plot is special meant for displaying real time signals, and therefor has some new functionalities: - signal selection - each signal has it's own scale, - moving erase block - measurement cursor ans should

Re: cgi undefined?

2007-11-04 Thread Tyler Smith
On 2007-11-04, Dennis Lee Bieber <[EMAIL PROTECTED]> wrote: > > '/home/tyler/public_html/cgi-bin/cgi.py' > ^^ > > Very simple -- you named YOUR handler "cgi". So when it does "import > cgi" it is importing itself... > Of course. I knew it must be somethin

Re: Is pyparsing really a recursive descent parser?

2007-11-04 Thread Neil Cerutti
On 2007-11-04, Just Another Victim of the Ambient Morality <[EMAIL PROTECTED]> wrote: > "Neil Cerutti" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] >> I believe there's no cure for the confusion you're having except >> for implementing a parser for your proposed grammar. >> Altern

Re: Low-overhead GUI toolkit for Linux w/o X11?

2007-11-04 Thread Nick Craig-Wood
Grant Edwards <[EMAIL PROTECTED]> wrote: > I'm looking for GUI toolkits that work with directly with the > Linux frambuffer (no X11). It's an embedded device with > limited resources, and getting X out of the picture would be a > big plus. > > The toolkit needs to be free and open-source. >

Re: Low-overhead GUI toolkit for Linux w/o X11?

2007-11-04 Thread Grant Edwards
On 2007-11-04, Nick Craig-Wood <[EMAIL PROTECTED]> wrote: >> So far, I've found two options that will work without X11: >> >> 1) QTopia (nee QT/Embedded). I assume that I can probably get >> PyQT to work with the embedded version of QT? >> >> 2) PySDL or PyGame. > > We did a similar p

Re: python at command prompt

2007-11-04 Thread [david]
Tim Roberts wrote: > Ton van Vliet <[EMAIL PROTECTED]> wrote: >> There's could also be an issue with entering 'python' at the command >> line, and not 'python.exe'. Once the PATH is setup correctly, try to >> enter 'python.exe', and check whether that works. >> >> IMHO, to get any 'program-name' (w

Re: __file__ vs __FILE__

2007-11-04 Thread Giampaolo Rodola'
On 3 Nov, 15:46, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: > En Sat, 03 Nov 2007 10:07:10 -0300, Giampaolo Rodola' <[EMAIL PROTECTED]> > escribió: > > > On 3 Nov, 04:21, klenwell <[EMAIL PROTECTED]> wrote: > >> In PHP you have the __FILE__ constant which gives you the value of the > >> absol

Re: Is pyparsing really a recursive descent parser?

2007-11-04 Thread Just Another Victim of the Ambient Morality
"Neil Cerutti" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On 2007-11-04, Just Another Victim of the Ambient Morality > <[EMAIL PROTECTED]> wrote: >> "Neil Cerutti" <[EMAIL PROTECTED]> wrote in message >> news:[EMAIL PROTECTED] >>> I believe there's no cure for the confusion you

Re: Is pyparsing really a recursive descent parser?

2007-11-04 Thread Kay Schluehr
On Nov 4, 10:44 pm, "Just Another Victim of the Ambient Morality" <[EMAIL PROTECTED]> > I believe there is a cure and it's called recursive descent parsing. > It's slow, obviously, but it's correct and, sometimes (arguably, often), > that's more important the execution speed. Recursive decendent

Re: Is pyparsing really a recursive descent parser?

2007-11-04 Thread Just Another Victim of the Ambient Morality
"Kay Schluehr" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Nov 4, 10:44 pm, "Just Another Victim of the Ambient Morality" > <[EMAIL PROTECTED]> > >> I believe there is a cure and it's called recursive descent parsing. >> It's slow, obviously, but it's correct and, sometimes (

Re: Is pyparsing really a recursive descent parser?

2007-11-04 Thread Neil Cerutti
On 2007-11-05, Just Another Victim of the Ambient Morality <[EMAIL PROTECTED]> wrote: > > "Neil Cerutti" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] >> On 2007-11-04, Just Another Victim of the Ambient Morality >> <[EMAIL PROTECTED]> wrote: >>> "Neil Cerutti" <[EMAIL PROTECTED]>

Re: IDLE

2007-11-04 Thread Russ P.
On Nov 3, 1:43 am, [EMAIL PROTECTED] wrote: > Just curious: What makes you wish to move from emacs to idle? I don't necessarily want to move from xemacs to idle. I'm just getting tired of using print statements to debug, and I figure I'm well past the stage where I should still be doing that. If I

Re: Is pyparsing really a recursive descent parser?

2007-11-04 Thread Neil Cerutti
On 2007-11-05, Just Another Victim of the Ambient Morality <[EMAIL PROTECTED]> wrote: > > "Kay Schluehr" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] >> On Nov 4, 10:44 pm, "Just Another Victim of the Ambient Morality" >> <[EMAIL PROTECTED]> >> >>> I believe there is a cure and i

Re: Is pyparsing really a recursive descent parser?

2007-11-04 Thread Neil Cerutti
On 2007-11-05, Neil Cerutti <[EMAIL PROTECTED]> wrote: > def Ack(x, y): > """ The Ackermann function. Creates a humongous mess even > with quite tiny numbers. """ > if x < 0 or y < 0: > raise ValueError('non-negative integer') > elif x == 0: > return y + 1 > elif y

Re: IDLE

2007-11-04 Thread Russ P.
Thanks for the information on IDLE. > As for your question, I couldn't quite understand what you're trying > to do. In general, you can have the script use os.chdir() to go to the > relevant directory and then open() the file, or you can use open() > directly with a relative/full path to it. (This

Re: Python good for data mining?

2007-11-04 Thread D.Hering
On Nov 3, 9:02 pm, Jens <[EMAIL PROTECTED]> wrote: > I'm starting a project indatamining, and I'm considering Python and > Java as possible platforms. > > I'm conserned by performance. Most benchmarks report that Java is > about 10-15 times faster than Python, and my own experiments confirms > this

Re: Is pyparsing really a recursive descent parser?

2007-11-04 Thread Just Another Victim of the Ambient Morality
"Neil Cerutti" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On 2007-11-05, Just Another Victim of the Ambient Morality > <[EMAIL PROTECTED]> wrote: >> >> "Kay Schluehr" <[EMAIL PROTECTED]> wrote in message >> news:[EMAIL PROTECTED] >>> On Nov 4, 10:44 pm, "Just Another Victim of

Funny quote

2007-11-04 Thread John Salerno
Hi all. Thought you might get a kick out of this if you haven't heard it before. I have to admit, not being either, I don't quite fully understand it, but intuitively I do. :) --- André Bensoussan once explained to me the difference between a programmer and a designer: "If you make

Re: bsddb in python 2.5.1

2007-11-04 Thread Martin v. Löwis
> I have two versions of bsddb3 installed (only one is active) this is > from /usr/lib/python2.5/site-packages: > drwxr-xr-x 3 root root 4096 2007-11-03 15:01 bsddb3 > -rw-r--r-- 1 root root905 2007-11-03 15:39 bsddb3-4.4.2.egg-info > -rw-r--r-- 1 root root905 2007-11-03 15:49 bsddb3-4

achieving performance using C/C++

2007-11-04 Thread sandipm
I did fair amount of programming in python but never used c/c++ as mentioned below. any good tutorials for using C/C++ to optimize python codebase for performance? how widely do they use such kind of mixed coding practices? sandip -- Forwarded message -- From: "D.Hering" . . . . P

Re: opinion - file.readlines blemish

2007-11-04 Thread Gabriel Genellina
En Sat, 03 Nov 2007 15:00:46 -0300, Ken Seehart <[EMAIL PROTECTED]> escribi�: > *newlines* > > If Python was built with the *---with-universal-newlines* option to > *configure* (the default) this read-only attribute exists, and for > files opened in universal newline read mode it k

PyObjC with Xcode 3.0 Leopard

2007-11-04 Thread flyfree
I got an error during making a python application with xcode 3.0 in OS X Leopard. (KeyError: 'NSUnknownKeyException - [ valueForUndefinedKey:]: this class is not key value coding-compliant for the key calculatedMean.') The application is a simple example of how to use the PyObjC with xcode 2.0. h

Descriptors and side effects

2007-11-04 Thread mrkafk
Hello everyone, I'm trying to do seemingly trivial thing with descriptors: have another attribute updated on dot access in object defined using descriptors. For example, let's take a simple example where you set an attribute s to a string and have another attribute l set automatically to its leng

Re: Is pyparsing really a recursive descent parser?

2007-11-04 Thread Kay Schluehr
On Nov 5, 3:05 am, "Just Another Victim of the Ambient Morality" <[EMAIL PROTECTED]> wrote: > "Kay Schluehr" <[EMAIL PROTECTED]> wrote in message > > news:[EMAIL PROTECTED] > > > On Nov 4, 10:44 pm, "Just Another Victim of the Ambient Morality" > > <[EMAIL PROTECTED]> > > >> I believe there is a cu