[EMAIL PROTECTED] writes:
http://www.xfeedme.com/nucular/gut.py/go?FREETEXT=w
(w for web) we get 6294 entries which takes about 500ms on
a cold index and about 150ms on a warm index. This is on a very
active shared hosting machine.
That's reasonable speed, but is that just to do the set
Oh, by the way -- I apologize for the poor formatting of this post,
I guess my linewrap setting is wrong for nntp.
--
http://mail.python.org/mailman/listinfo/python-list
On Oct 11, 11:50 pm, John Nagle [EMAIL PROTECTED] wrote:
If anyone has a first-rate address parser in Python that will cover
most of the developed world, I'd like to talk to them.
John Nagle
SiteTruth
The pyparsing examples
Hello i use under linux cx-freeze
My python program import a small module were i set the encoding to iso
8859-1.
When i make the executable with cxfreeze and i run it i get this
error:
Traceback (most recent call last):
File /home/luca72/Desktop/Luca/python/cx_Freeze-3.0.3/initscripts/
On Thu, 11 Oct 2007 22:52:55 +, RyanL wrote:
I'm a newbie with a large number of data files in multiple
directories. I want to uncompress, read, and copy the contents of
each file into one master data file. The code below seems to be doing
this perfectly. The problem is each of the
I am writing a GTalkBot which provides a webservice
http://xxx.com/services/sendmessage.html
If someone POST some text to http://xxx.com/services/sendmessage.html
it will transfer the text to some friends on GTalk.
I tried using django's __init__.py function to build this service but
it seemed
lol :) another one on baseball : 90% of the game is physical, the
other half is mental.
GS
[EMAIL PROTECTED]
On Oct 11, 7:32 pm, willshak [EMAIL PROTECTED] wrote:
on 10/11/2007 10:14 PM Audio expert said the following:
Now I know where NOT to go.
TOO crowded for me.
No one goes there
On Oct 9, 10:33 pm, Anurag [EMAIL PROTECTED] wrote:
Hi,
Have any one faced such problem, I assume it must be common if it can
be replicated so easily , or something wrong with my system
Also if I use tar.members instead of tar.getmembers() it works
so what is the diff. between tar.members
George Sakkis wrote:
By now you must have been convinced that default getters/setters is
not a very useful idea in Python but this does not mean you can't do
it;
It's a perfect summary of my thoughts after reading this thread. I
will use public attributes (with access customizable with
Dan Stromberg a écrit :
On Thu, 11 Oct 2007 13:46:12 +, Marc 'BlackJack' Rintsch wrote:
On Thu, 11 Oct 2007 13:04:53 +, Artur Siekielski wrote:
On Oct 11, 2:27 pm, Marc 'BlackJack' Rintsch [EMAIL PROTECTED] wrote:
But why? Default getters and setters are unnecessary and if you need
Artur Siekielski a écrit :
George Sakkis wrote:
By now you must have been convinced that default getters/setters is
not a very useful idea in Python but this does not mean you can't do
it;
It's a perfect summary of my thoughts after reading this thread. I
will use public attributes (with
I've been programming in Python for 5 or more years now and whenever I
want a quick-n-dirty GUI, I use Tkinter. This is partly because it's
the first toolkit I learnt, but also because it's part of the standard
Python distribution and therefore easy to get Python apps to work
cross platform - it
Mark Summerfield [EMAIL PROTECTED] writes:
Below is a PEP proposal for a sorteddict. ...
Is this proposal dead? I'd been meaning to post some thoughts which I
still haven't gotten around to writing up, and am wondering whether to
keep it on my todo list.
--
[KDawg44]
I am frustrated with my users who send large files around the office
instead of using the network shares.
[Tim Golden]
I have something v. similar, ...
It's a while since they were last run to they're probably quite
dusty but it sounds like the kind of thing you're after.
Well,
On Oct 12, 10:13 am, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
I've been programming in Python for 5 or more years now and whenever I
want a quick-n-dirty GUI, I use Tkinter. This is partly because it's
the first toolkit I learnt, but also because it's part of the standard
Python distribution
Sells, Fred wrote:
I'm using ActiveState python on a windows box to talk to ACtive Directory.
I'm running a Pyro Server on the same box.
The client is Linux running std Python 2.4.
It works just fine until the server codes calls some
win32com.client api; then I get
Traceback
[EMAIL PROTECTED] wrote:
On Oct 12, 12:19 pm, James Stroud [EMAIL PROTECTED] wrote:
[EMAIL PROTECTED] wrote:
I have a container class A and I want to add functionality to it by
using a decorator class B, as follows:
class A(object):
def __len__(self):
return 5
class B(object):
On 10/12/07, Ben Finney [EMAIL PROTECTED] wrote:
BlueBird [EMAIL PROTECTED] writes:
This means that the Mock object automatically supports any number of
attributes and methods by any reasonable names; the only setup needed
beyond creating the instance is to seed it with anything you *don't*
(Please don't send me personal copies of messages that are sent to the
forum; I read via the newsgroup, and it's annoying to also get replies
in email when I didn't send an email message.)
Simon Brunning [EMAIL PROTECTED] writes:
On 10/12/07, Ben Finney [EMAIL PROTECTED] wrote:
This means
Carsten Haese wrote:
On Thu, 2007-10-11 at 15:14 +0200, Florian Lindner wrote:
Hello,
I have a function that executes a SQL statement with MySQLdb:
def executeSQL(sql, *args):
print sql % args
cursor = conn.cursor()
cursor.execute(sql, args)
cursor.close()
it's
On 10/12/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
My question is if Tix is old hat, what is the GUI toolkit I *should*
be using for quick-n-dirty cross platform GUI development?
I would heartily recommend Dabo (http://dabodev.com). It wraps the
wxPython toolkit, but eliminates 99% of the
Hi,
I am using Python 2.5.1
I have an application that reads a file and generates a key in a
dictionary for each line it reads. I have managed to read a 1GB file and
generate more than 8 million keys on an Windows XP machine with only 1GB
of memory and all works as expected. When I use the
Diez B. Roggisch wrote:
Florian Lindner wrote:
can I determine somehow if the iteration on a list of values is the
last iteration?
def last_iter(iterable):
it = iter(iterable)
buffer = [it.next()]
for i in it:
buffer.append(i)
old, buffer = buffer[0],
Hello everyone, I keep obtaining an error message whenever I execute some
very simple routines; the error that follows says that I am calling
certain functions that, in reality, I am not calling from any of the
routines that I wrote:
error:
python fwrite_mat.py
0, 0, 0, 0 , 0, 1, 2, 3 , 0,
On Fri, 12 Oct 2007 14:59:13 -, Christoph Krammer [EMAIL PROTECTED] wrote:
Hello everybody,
I am using a python script to extract images from email messages. This
works fine for some messages, but not all attached images can be
decoded. I use the following code to decode the image and save it
Hello everybody,
I am using a python script to extract images from email messages. This
works fine for some messages, but not all attached images can be
decoded. I use the following code to decode the image and save it to a
database:
try:
imagedec = base64.b64decode(imageenc)
imagehash =
On Fri, 12 Oct 2007 11:33:11 -0500, Erik Jones [EMAIL PROTECTED] wrote:
[snip]
This got me thinking about building a module that could be included
by projects that creates a socket and responds to messages on that
socket in a separate thread from the main app so that you can connect
to the app
My Python script makes a bunch of images that I want to use as frames
in a movie. I've tried searching for a module that will take these
images and put them together in a Quicktime or mpeg movie, but haven't
found anything. My images are currently pdfs, but I could make them
into just about
The great thing about CPython is that it comes with the batteries
included. The problem with IronPython is that some of these batteries
just don't fit - in particular, most of the the C extensions don't
work. We'd like to help fix at least some of this problem, to help
people who use
On Oct 12, 8:19 am, John Machin [EMAIL PROTECTED] wrote:
... most of the developed world was the [very optimistic] request.
How does it go with JAPAN 112-0001 TOKYO Bunkyo-Ku Hakusan 4-Chome 3-
2 and will it give the same result for 4-3-2 HAKUSAN BUNKYO-KU TOKYO
112-1 JAPAN? OK, a little
Tim Chase wrote:
I have a file containing following data. But the dimension can be
different.
A B C D E F G
3 4 1 5 6 2 4
7 2 4 1 6 9 3
3 4 1 5 6 2 4
7 2 4 1 6 9 3
.
.
.
.
What is the best approach to make a column vector with the name such
as A B, etc?
There are a couple
Hi, everyone, I am using beej's flickr api in Python. For some reason
I have to bypass the firewall using a proxy. I read the urllib
reference and set http_proxy=my proxy. But it didn't work. I can't
even get authenticated. Is there anyway that we can set the proxy?
--
On Oct 12, 2007, at 12:10 PM, Jean-Paul Calderone wrote:
On Fri, 12 Oct 2007 11:33:11 -0500, Erik Jones [EMAIL PROTECTED]
wrote:
[snip]
This got me thinking about building a module that could be included
by projects that creates a socket and responds to messages on that
socket in a
Sean Davis wrote:
I would like to parse some OWL files, but I haven't dealt with OWL in
python or any other language for that matter. Some quick google
searches do not turn up much in the way of possibilities for doing so
in python. Any suggestions of available code or using existing
On Fri, 12 Oct 2007 05:30:13 -0500, Nick Craig-Wood wrote:
3) Isn't a pain to install on windows (GTK)
pygtk is easy to install on windows if you use cygwin.
I started developing a little ssh GUI frontend on a windows laptop using
cygwin pygtk and cygwin openssh. When I moved it over to a
From: Tor Erik Sønvisen
Date: October 8th 2007
I've tried locating some code that can recreate an object from
it's string representation...
On a related note I've wondered about this:
class Foo(object): pass
f = Foo()
s = repr(f)
s
'__main__.Foo object at 0x007CBAB0'
So how do I get f
Irmen de Jong schrieb:
Diez B. Roggisch wrote:
Go install cygwin (but not it's included python-interpreter, or at least
make sure you have your python path properly under control) and then
simply
start the script from the command-line. And hit C-c if you need it to
stop,
and restart it.
On Oct 12, 2007, at 10:09 AM, Christopher Nelson wrote:
I was looking at adding dtrace-like dynamic tracing to Python.
Note that this isn't dtrace itself. The basic rationale:
1. A lot of enterprise-level software is written in Python. It is
difficult to impossible to reproduce the
I have a file containing following data. But the dimension can be
different.
A B C D E F G
3 4 1 5 6 2 4
7 2 4 1 6 9 3
3 4 1 5 6 2 4
7 2 4 1 6 9 3
.
.
.
.
What is the best approach to make a column vector with the name such
as A B, etc?
There are a couple different ways to go
[EMAIL PROTECTED] wrote:
lol :) another one on baseball : 90% of the game is physical, the
other half is mental.
GS
[EMAIL PROTECTED]
On Oct 11, 7:32 pm, willshak [EMAIL PROTECTED] wrote:
on 10/11/2007 10:14 PM Audio expert said the following:
Now I know where NOT to go.
TOO crowded
On Oct 12, 11:32 am, [EMAIL PROTECTED] [EMAIL PROTECTED]
wrote:
I have a file containing following data. But the dimension can be
different.
A B C D E F G
3 4 1 5 6 2 4
7 2 4 1 6 9 3
3 4 1 5 6 2 4
7 2 4 1 6 9 3
.
.
.
.
What is the best approach to make a column vector with the name
On 2007-10-12, Grant Edwards [EMAIL PROTECTED] wrote:
I use wxPython, because it uses Gtk on Linux, and Gtk is
native for both me and for my Windows users.
I didn't state that very well.
What I meant was that wxPython uses Gtk under Linux (which is
native for me) so wxPython looks native
On 2007-10-12, BlueBird [EMAIL PROTECTED] wrote:
I'd recommend wxPython over those becase
1) native look and feel on all platforms
Not true for KDE or other non-Gtk desktops.
You get it with PyQt as well.
Not true for Gnome or other non-Qt desktops.
There is no single native look and feel
On 2007-10-12, Alexandre Badez [EMAIL PROTECTED] wrote:
Personnaly, I use PyQt simply because I prefere Qt to Gtk,
witch is much more integrated with all desktop than Gtk.
So you're claiming Qt is much more integrated with Gnome than
Gtk? The mind wobbles. The Gnome and XFCE desktops are
On 2007-10-12, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
Hi,
I am trying to use virtual serial ports to develop/test my serial
communication program. Running in to trouble...
I am using com0com to create the virtual ports. The virtual ports
seem to be working fine when I test it with
I have a file containing following data. But the dimension can be
different.
A B C D E F G
3 4 1 5 6 2 4
7 2 4 1 6 9 3
3 4 1 5 6 2 4
7 2 4 1 6 9 3
.
.
.
.
What is the best approach to make a column vector with the name such
as A B, etc?
--
http://mail.python.org/mailman/listinfo/python-list
I was looking at adding dtrace-like dynamic tracing to Python. Note that
this isn't dtrace itself. The basic rationale:
1. A lot of enterprise-level software is written in Python. It is difficult
to impossible to reproduce the customer environment in a test lab.
Sometimes applications hang
On Oct 11, 4:17 pm, Tim Golden [EMAIL PROTECTED] wrote:
jeremito wrote:
On Oct 11, 10:43 am, Diez B. Roggisch [EMAIL PROTECTED] wrote:
jeremito wrote:
My Python script makes a bunch of images that I want to use as frames
in a movie. I've tried searching for a module that will take these
amdescombes wrote:
Hi,
I am using Python 2.5.1
I have an application that reads a file and generates a key in a
dictionary for each line it reads. I have managed to read a 1GB file and
generate more than 8 million keys on an Windows XP machine with only 1GB
of memory and all works as
amdescombes wrote:
Hi,
I am using Python 2.5.1
I have an application that reads a file and generates a key in a
dictionary for each line it reads. I have managed to read a 1GB file and
generate more than 8 million keys on an Windows XP machine with only 1GB
of memory and all works as
Hello Guys,
I'm looking for a little advice on spawning a sub process to run a command
line application for transferring a file over Bluetooth. Now the spawned
process runs from start to finish exactly as I would expect it too, however
its very slow.
Now the main reason this is so odd, is
smarras wrote:
Hello everyone, I keep obtaining an error message whenever I execute some
very simple routines; the error that follows says that I am calling
certain functions that, in reality, I am not calling from any of the
routines that I wrote:
error:
python fwrite_mat.py
0, 0,
On Oct 12, 4:07 pm, Paul McGuire [EMAIL PROTECTED] wrote:
On Oct 11, 11:50 pm, John Nagle [EMAIL PROTECTED] wrote:
If anyone has a first-rate address parser in Python that will cover
most of the developed world, I'd like to talk to them.
John Nagle
On Thu, 11 Oct 2007 18:58:44 +0200, Bruno Desthuilliers wrote:
[snip]
Your implementation seems particularly broken. You do not return anything
from `name()`, hereby removing name as an attribute (or: replacing it
with its return value -- None). You should return ``property(**locals())
`` (or
On Oct 12, 2:40 pm, [EMAIL PROTECTED] wrote:
Hi, everyone, I am using beej's flickr api in Python. For some reason
I have to bypass the firewall using a proxy. I read the urllib
reference and set http_proxy=my proxy. But it didn't work. I can't
even get authenticated. Is there anyway that we
On Fri, 2007-10-12 at 13:12 +0200, Florian Lindner wrote:
Carsten Haese wrote:
sql = INSERT INTO +DOMAIN_TABLE+(+DOMAIN_FIELD+) VALUES (%s)
executeSQL(sql, domainname)
Ok, I understand it and now it works, but why is limitation? Why can't I
just the string interpolation in any playes and
On Oct 12, 11:58 am, Florian Lindner [EMAIL PROTECTED] wrote:
Hello,
can I determine somehow if the iteration on a list of values is the last
iteration?
Example:
for i in [1, 2, 3]:
if last_iteration:
print i*i
else:
print i
that would print
1
2
9
Can this be
On Fri, 12 Oct 2007 10:13:29 +0200, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
I've been programming in Python for 5 or more years now and whenever I
want a quick-n-dirty GUI, I use Tkinter. This is partly because it's
the first toolkit I learnt, but also because it's part of the standard
On Oct 12, 11:58 am, Florian Lindner [EMAIL PROTECTED] wrote:
Hello,
can I determine somehow if the iteration on a list of values is the last
iteration?
Example:
for i in [1, 2, 3]:
if last_iteration:
print i*i
else:
print i
Yes, either use enumerate or just stop the
Florian Lindner wrote:
Hello,
can I determine somehow if the iteration on a list of values is the last
iteration?
Example:
for i in [1, 2, 3]:
if last_iteration:
print i*i
else:
print i
that would print
1
2
9
Can this be acomplished somehow?
def
On 2007-10-12, Paul McGuire [EMAIL PROTECTED] wrote:
I've been to Japan and Europe too, and I can't even figure out
how many digits a phone number is supposed to have!
I was shocked at utterly foreign and lost I felt looking at
phone numbers in various places overseas. I could deal with
phone
Hello,
can I determine somehow if the iteration on a list of values is the last
iteration?
Example:
for i in [1, 2, 3]:
if last_iteration:
print i*i
else:
print i
that would print
1
2
9
Can this be acomplished somehow?
Thanks,
Florian
--
On Oct 11, 4:26 pm, Simon Brunning [EMAIL PROTECTED] wrote:
On 10/10/07, BlueBird [EMAIL PROTECTED] wrote:
Does anybody know where to find a library like EasyMock for python ? I
searched quickly but could not find anything.
I found python-mocks on sourceforge but form quickly reading the
ashish [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]
Hi All,
I wanted to know how to handle events like 'logoff' in the main thread
so that any process which is being run by svcDoRun method of service
does not get 'interrupted function call' exception.
I am posting a very simple
Alexandre Badez [EMAIL PROTECTED] wrote:
On Oct 12, 10:13 am, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
My question is if Tix is old hat, what is the GUI toolkit I *should*
be using for quick-n-dirty cross platform GUI development? I guess
this is tangentially related to:
Hello,
I have a little problem with the global statement.
def executeSQL(sql, *args):
try:
import pdb; pdb.set_trace()
cursor = db.cursor() # db is type 'NoneType'.
[...]
except:
print Problem contacting MySQL database. Please contact root.
Tim Golden wrote:
[KDawg44]
I am frustrated with my users who send large files around the office
instead of using the network shares.
[Tim Golden]
I have something v. similar, ...
It's a while since they were last run to they're probably quite
dusty but it sounds like the kind of thing
On Oct 12, 12:30 pm, Nick Craig-Wood [EMAIL PROTECTED] wrote:
My question is if Tix is old hat, what is the GUI toolkit I *should*
be using for quick-n-dirty cross platform GUI development? I guess
this is tangentially related to:
Hello,
can I determine somehow if the iteration on a list of values
is the last
iteration?
Example:
for i in [1, 2, 3]:
if last_iteration:
print i*i
else:
print i
that would print
1
2
9
Something like:
myList = [1, 2, 3]
for i, j in enumerate(myList):
Florian Lindner wrote:
can I determine somehow if the iteration on a list of values is the last
iteration?
Example:
for i in [1, 2, 3]:
if last_iteration:
print i*i
else:
print i
that would print
1
2
9
Can this be acomplished somehow?
You could do this:
On 12 Oct, 09:17, Paul Rubin http://[EMAIL PROTECTED] wrote:
Mark Summerfield [EMAIL PROTECTED] writes:
Below is a PEP proposal for a sorteddict. ...
Is this proposal dead? I'd been meaning to post some thoughts which I
still haven't gotten around to writing up, and am wondering whether to
On Fri, 12 Oct 2007 01:00:47 -0400, Zhu Wayne wrote
Hi,
I have a short code which gives me strange results, the code is as follows:
f = [lambda x: None]*5
for j in range(0, 5):
f[j] = lambda x: float(j)*x
[...]
It seems only when I use the index j (which is declear with the
On Oct 12, 8:19 am, John Machin [EMAIL PROTECTED] wrote:
... most of the developed world was the [very optimistic] request.
How does it go with JAPAN 112-0001 TOKYO Bunkyo-Ku Hakusan 4-Chome 3-
2 and will it give the same result for 4-3-2 HAKUSAN BUNKYO-KU TOKYO
112-1 JAPAN? OK, a little
On Oct 11, 5:42 pm, [EMAIL PROTECTED] wrote:
Hi,
I have a container class A and I want to add functionality to it by
using a decorator class B, as follows:
class A(object):
def __len__(self):
return 5
class B(object):
def __init__(self, a):
self._a = a
def
Florian Lindner wrote:
Carsten Haese wrote:
On Thu, 2007-10-11 at 15:14 +0200, Florian Lindner wrote:
Hello,
I have a function that executes a SQL statement with MySQLdb:
def executeSQL(sql, *args):
print sql % args
cursor = conn.cursor()
cursor.execute(sql, args)
none wrote:
wxGlade created a simple Frame with a panel a sizer and 3 wxControls ,
saticText, TextCtrl, and a Button.
The resulting code works fine.
Now the problem.
I wish to make a separate class derrived from wxPanel that has the sized
and controls as above. It jusst won't work
On Oct 11, 4:01 pm, Chris Mellon [EMAIL PROTECTED] wrote:
On 10/11/07, @bag.python.org none wrote: wxGlade created a simple Frame
with a panel a sizer and 3 wxControls ,
saticText, TextCtrl, and a Button.
snip
It seems as though the complaint is that a 'wxWindow *' is expected,
On Oct 12, 1:07 am, Paul McGuire [EMAIL PROTECTED] wrote:
On Oct 11, 11:50 pm, John Nagle [EMAIL PROTECTED] wrote:
If anyone has a first-rate address parser in Python that will cover
most of the developed world, I'd like to talk to them.
John Nagle
On 2007-10-12, Paul McGuire [EMAIL PROTECTED] wrote:
If you've got an re that can handle everything from 123 Main to
221B Baker Street to Hollywood and Vine to Lot 123, Hundred of
Foughbarre, now THAT would be something.
Don't forget street addresses like:
The Low Cowsheds
Green Cottage
On Oct 12, 1:53 pm, 7stud [EMAIL PROTECTED] wrote:
s = 'A\xcc\x88' #capital A with umlaut
print s #displays capital A with umlaut
s = raw_input('Enter: ') #A\xcc\x88
print s#displays A\xcc\x88
print len(input) #9
It looks like every character of
On Fri, 2007-10-12 at 12:58 +0200, Florian Lindner wrote:
Hello,
can I determine somehow if the iteration on a list of values is the last
iteration?
Example:
for i in [1, 2, 3]:
if last_iteration:
print i*i
else:
print i
that would print
1
2
9
Here's another
On Oct 12, 2:18 pm, Carsten Haese [EMAIL PROTECTED] wrote:
On Fri, 2007-10-12 at 12:58 +0200, Florian Lindner wrote:
Hello,
can I determine somehow if the iteration on a list of values is the last
iteration?
Example:
for i in [1, 2, 3]:
if last_iteration:
print i*i
Hello everyone, I keep obtaining an error message whenever I execute some
very simple routines; the error that follows says that I am calling
certain functions that, in reality, I am not calling from any of the
routines that I wrote:
error:
python fwrite_mat.py
0, 0, 0, 0 , 0, 1, 2, 3 , 0,
I have tried to make a Tkinter program make a rectangle move down the window,
but did not succeed. All it does is make a rectangle trail.
What am I doing wrong?
from Tkinter import*
root = Tk()
RectangleColor='orange'
Background=tk_rgb = #%02x%02x%02x % (100, 255, 100)
On 2007-10-12, Grant Edwards [EMAIL PROTECTED] wrote:
On 2007-10-12, Paul McGuire [EMAIL PROTECTED] wrote:
If you've got an re that can handle everything from 123 Main to
221B Baker Street to Hollywood and Vine to Lot 123, Hundred of
Foughbarre, now THAT would be something.
Don't forget
George Neuner gneuner2/@/comcast.net writes:
Yes and no. General continuations, as you describe, are not the
only form continuations take. Nor are they the most common form
used. The most common continuations are function calls and returns.
Upward one-shot continuations (exceptions or
[EMAIL PROTECTED] wrote:
My question is if Tix is old hat, what is the GUI toolkit I *should*
be using for quick-n-dirty cross platform GUI development? I guess
this is tangentially related to:
What widgets are you using in Tix? They may be available in BWidgets,
Tablelist, or other
On Fri, 12 Oct 2007 09:42:28 +0200, Bruno Desthuilliers wrote:
So what? Otherwise you carry *always* the baggage of a public
property and a private attribute whether you need this or not. At
least for me it would be unnecessary in most cases.
That baggage of carrying around unneeded
s = 'A\xcc\x88' #capital A with umlaut
print s #displays capital A with umlaut
s = raw_input('Enter: ') #A\xcc\x88
print s#displays A\xcc\x88
print len(input) #9
It looks like every character of the string I enter in utf-8 is being
interpreted
On Fri, 2007-10-12 at 17:41 +0100, English, Mark wrote:
From: Tor Erik Sønvisen
Date: October 8th 2007
I've tried locating some code that can recreate an object from
it's string representation...
On a related note I've wondered about this:
class Foo(object): pass
f = Foo()
s =
Carsten Haese wrote:
On Fri, 2007-10-12 at 13:12 +0200, Florian Lindner wrote:
Carsten Haese wrote:
sql = INSERT INTO +DOMAIN_TABLE+(+DOMAIN_FIELD+) VALUES (%s)
executeSQL(sql, domainname)
Ok, I understand it and now it works, but why is limitation? Why can't I
just the string
Hello,
is there a function in the Python stdlib to test if a string is a valid
email address?
Thanks,
florian
--
http://mail.python.org/mailman/listinfo/python-list
On Oct 12, 1:18 pm, [EMAIL PROTECTED] wrote:
On Oct 12, 1:53 pm, 7stud [EMAIL PROTECTED] wrote:
s = 'A\xcc\x88' #capital A with umlaut
print s #displays capital A with umlaut
s = raw_input('Enter: ') #A\xcc\x88
print s#displays A\xcc\x88
print
On Thu, 11 Oct 2007 18:42:16 +, Marc 'BlackJack' Rintsch wrote:
The baggage of possibly fixing (AKA generalizing) how your attributes
are accessed is something you lug around while your deadline looms.
Sorry I don't get it. If I want to customize the access to a normal
attribute I
On Oct 12, 2:55 pm, Florian Lindner [EMAIL PROTECTED] wrote:
Hello,
is there a function in the Python stdlib to test if a string is a valid
email address?
Thanks,
florian
What do you mean? If you're just testing the construction of the email
address string, then it's pretty easy. If you
On Oct 12, 10:37 am, TYR [EMAIL PROTECTED] wrote:
On Oct 11, 4:17 pm, Tim Golden [EMAIL PROTECTED] wrote:
jeremito wrote:
On Oct 11, 10:43 am, Diez B. Roggisch [EMAIL PROTECTED] wrote:
jeremito wrote:
My Python script makes a bunch of images that I want to use as frames
in a
On 10/12/07, Evjen Halverson [EMAIL PROTECTED] wrote:
I have tried to make a Tkinter program make a rectangle move down the
window, but did not succeed. All it does is make a rectangle trail.
What am I doing wrong?
from Tkinter import*
root = Tk()
RectangleColor='orange'
On Oct 12, 2:55 pm, Dan Stromberg [EMAIL PROTECTED] wrote:
If you have a program that needs to perform well, you're much better off
coding your classes the best way you know how from a Software Engineering
perspective, and using pysco or shedskin or pypy or similar to
improve performance.
On 12/10/2007, brad [EMAIL PROTECTED] wrote:
Florian Lindner wrote:
Hello,
is there a function in the Python stdlib to test if a string is a valid
email address?
Nope, most any string with an @ in it could be a valid email addy. Send
a message to the addy, if it doesn't bounce, then it's
On 12/10/2007, Florian Lindner [EMAIL PROTECTED] wrote:
Hello,
is there a function in the Python stdlib to test if a string is a valid
email address?
You mean a valid SMTP email address?
In reality, there isn't a way of doing this. But a good rule of thumb
is if it hasn't got at least one
1 - 100 of 169 matches
Mail list logo