Re: minimalist regular expression

2005-08-26 Thread [EMAIL PROTECTED]
the shortest description in regex way -- http://mail.python.org/mailman/listinfo/python-list

Re: Should I move to Amsterdam?

2005-08-26 Thread Sybren Stuvel
Wouter van Ooijen (www.voti.nl) enlightened us with: >>True. Unless you have two proper locks. In that case your bike will >>last a very long time. > > Nope. You will probably retrieve your two locks from the fencing you > attached them to (if you did!), with your bike gone. That's not my experien

Re: Jargons of Info Tech industry

2005-08-26 Thread Denis Kasak
Mike Schilling wrote: > > Threaded mail-readers too, screen-based editors , spell-checkers, all > useless frills. Interestingly enough, I have explained my opinion in the part of the post you have trimmed. On the other hand, things you mentioned are far from being useless. They introduce no in

Re: classes and list as parameter, whats wrong?

2005-08-26 Thread James
No, the default paramter LL is only ever created once, not reinitialised every time the constructor is called - this is quite a common gotcha! You want to do something like: class cClass: """ Base class to handle playlists, i.e. the files, the name, etc. """ def __init__(self, LL=None):

Re: Bug in string.find; was: Re: Proposed PEP: New style indexing, was Re: Bug in slice type

2005-08-26 Thread Bryan Olson
Antoon Pardon wrote: > Bryan Olson schreef: > >>Steve Holden asked: >>>And what are you proposing that >>>find() should return if the substring isn't found at all? please don't >>>suggest it should raise an exception, as index() exists to provide that >>>functionality. >> >>There are a num

classes and list as parameter, whats wrong?

2005-08-26 Thread Dirk Zimmermann
Hi! I have a problem in a program. And I don't understand what is going on. I can code something, that the "error" doesn't occur anymore. But I still don't know the reason and this is unsatisfactory: Did I understood something wrong or is there a bug? To make it short, I boiled down the program to

Re: Better crypto hash functions, long, with code

2005-08-26 Thread Paul Rubin
Bryan Olson <[EMAIL PROTECTED]> writes: > The module provides classes and functions. The functions are: > > string_to_hex(str): Return a string with two hex digits for > each byte of str, representing the ord() of the byte. The > case of the hex digits A-F/a-f is up to Python's buil

Re: Better crypto hash functions, long, with code

2005-08-26 Thread Paul Rubin
Nice. Note that the Sourceforge bug for this issue indicates that something is already being done about it. It just happens to have been updated a day or so ago: https://sourceforge.net/tracker/?func=detail&atid=355470&aid=1123660&group_id=5470 Note to skeptics: the attacks are pretty seriou

Re: Limited XML tidy

2005-08-26 Thread Toby White
[EMAIL PROTECTED] writes: >> The problem is that when the sax handler raises an exception, > I can't see how to find out why. What I want to do is for > DodgyErrorHandler to do something different depending on > where we are in the course of parsing. Is there anyway > to get that information back

Re: Jargons of Info Tech industry

2005-08-26 Thread John Bokma
Chris Head <[EMAIL PROTECTED]> wrote: > John Bokma wrote: >>>Additionally, a user interface operating inside an HTML >>>renderer can NEVER be as fast as a native-code user interface with >>>only the e-mail message itself passed through the renderer. >> >> Nowadays, more then futile. > > Sorry,

Re: Setting the encoding in pysqlite2

2005-08-26 Thread Gerhard Haering
On Thu, Aug 25, 2005 at 01:15:55AM -0700, Michele Simionato wrote: > An easy question, but I don't find the answer in the docs :-( > I have a sqlite3 database containing accented characters (latin-1). > How do I set the right encoding? For instance if I do this: [...] You cannot set the encoding d

Re: Jargons of Info Tech industry

2005-08-26 Thread Ulrich Hobelmann
Mike Meyer wrote: > "Mike Schilling" <[EMAIL PROTECTED]> writes: >> Another advantage is that evewry internet-enabled computer today already >> comes with an HTML renderer (AKA browser) > > No, they don't. Minimalist Unix distributions don't include a browser > by default. I know the BSD's don't,

Re: Jargons of Info Tech industry

2005-08-26 Thread usenet
In comp.lang.perl.misc John Bokma <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > > In comp.lang.perl.misc John Bokma <[EMAIL PROTECTED]> wrote: > >> > >> > the argument that usenet should never change seems a little > >> > heavy-handed and anachronistic. > >> > >> No, simple since the

Re: Jargons of Info Tech industry

2005-08-26 Thread usenet
In comp.lang.perl.misc Ulrich Hobelmann <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > In comp.lang.perl.misc John Bokma <[EMAIL PROTECTED]> wrote: > >>> the argument that usenet should never change seems a little > >>> heavy-handed and anachronistic. > >> No, simple since there *are* al

Re: variable hell

2005-08-26 Thread Martin v. Löwis
Adriaan Renting wrote: > Not in my Python. > > for count in range(0, 10): > > ... value = count > ... exec("'a%s=%s' % (count, value)") > ... > dir() > > ['__builtins__', '__doc__', '__name__', 'count', 'value'] You did not copy the suggestion properly: >>> for count in rang

Re: Usenet, HTML (was Re: Jargons of Info Tech industry)

2005-08-26 Thread Ulrich Hobelmann
John Bokma wrote: > Ulrich Hobelmann <[EMAIL PROTECTED]> wrote: > >> On the information side (in contrast to the discussion side) RSS is >> replacing Usenet, > > LOL, how? I can't post to RSS feeds. Or do you mean for lurkers? I said "information side", meaning stuff like RSS is used for. >> T

Re: variable hell

2005-08-26 Thread Adriaan Renting
I was responding to rafi's suggestion, I had not received the "exec 'a%s = %s' % (count,count)" response yet at that time. The "exec 'a%s = %s' % (count,value)" works fine. >Not in my Python. > >---snip--- > >why using the eval? > >exec ('a%s=%s' % (count, value)) > >should be fine > >--

Language translation possible in python?

2005-08-26 Thread Jon Monteleone
I have a program that currently displays all of its messages and instructions in only English. My boss wants me to change it all to Korean. Is there a python module that will automatically translate my English to Korean? -Jon -- http://mail.python.org/mailman/listinfo/python-list

Re: file access dialog

2005-08-26 Thread Adriaan Renting
Well, I only know how to do it with Qt: Dialog = QFileDialog(self.filedir, 'Python files (*.py)', self, 'open file dialog') self.filename = str( Dialog.getOpenFileName()) I don't think PyQt is available for Qt4 on windows yet. You might be ablt to use this: http://www.quadgames.c

Re: Bug in string.find; was: Re: Proposed PEP: New style indexing, was Re: Bug in slice type

2005-08-26 Thread Antoon Pardon
Op 2005-08-25, Bryan Olson schreef <[EMAIL PROTECTED]>: > Steve Holden asked: > > Do you just go round looking for trouble? > > In the course of programming, yes, absolutly. > > > As far as position reporting goes, it seems pretty clear that find() > > will always report positive index values. In a

Re: Setting the encoding in pysqlite2

2005-08-26 Thread Martin v. Löwis
Michele Simionato wrote: > Well, the issue is not how to input text in the database from Python > (it is enough to use literal unicode strings); > in my case the database has been generated from a text file containing > accented chars, using .import, > and it seems I cannot read it from Python beca

file access dialog

2005-08-26 Thread Wouter van Ooijen (www.voti.nl)
I have a tool in Python to which I want to add a small GUI. The tools currently runs everywhere PySerial is supported. I need a file-access dialog. What is the preffered way to to this? Is there a platform-independent file-access dialog available, or should I use the windows native version when run

Re: Should I move to Amsterdam?

2005-08-26 Thread Wouter van Ooijen (www.voti.nl)
>True. Unless you have two proper locks. In that case your bike will >last a very long time. Nope. You will probably retrieve your two locks from the fencing you attached them to (if you did!), with your bike gone. Wouter van Ooijen -- http://www.voti.nl Web

Re: Setting the encoding in pysqlite2

2005-08-26 Thread Reinhold Birkenfeld
Michele Simionato wrote: > An easy question, but I don't find the answer in the docs :-( > I have a sqlite3 database containing accented characters (latin-1). > How do I set the right encoding? For instance if I do this: I think you should ask on the pysqlite-devel list. Reinhold -- http://mail.

Re: while c = f.read(1)

2005-08-26 Thread Antoon Pardon
Op 2005-08-25, Steve Holden schreef <[EMAIL PROTECTED]>: > Antoon Pardon wrote: >> Op 2005-08-24, Magnus Lycka schreef <[EMAIL PROTECTED]>: >> >>>Antoon Pardon wrote: >>> I think he did, because both expression are not equivallent unless some implicite constraints make them so. Values wher

Re: variable hell

2005-08-26 Thread rafi
Ron Garret wrote: >>Because eval() takes an expression as an argument, and assignment is a >>statement. > > And if you find this distinction annoying, try Lisp. that's were I come from :-) -- rafi "Imagination is more important than knowledge." (A

Re: Setting the encoding in pysqlite2

2005-08-26 Thread Michele Simionato
Well, the issue is not how to input text in the database from Python (it is enough to use literal unicode strings); in my case the database has been generated from a text file containing accented chars, using .import, and it seems I cannot read it from Python because of the unicode error :-( Mic

<    1   2   3