the shortest description in regex way
--
http://mail.python.org/mailman/listinfo/python-list
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
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
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):
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
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
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
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
[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
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,
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
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,
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
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
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
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
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
>
>--
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
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
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
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
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
>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
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.
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
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
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
201 - 227 of 227 matches
Mail list logo