On Tue, 1 Nov 2005, James Stroud wrote:
> Why do my posts get held for suspcious headers and troll Xha Lee gets to post
> all sorts of profanity and ranting without any problem?
>
I like many others have had the same experience.
I recently choose to respond to one of Xha Lee's post and my
Re (
Hello Kees,
> Thanks :), I'll give both of your hints a try. What I basically want to
> do is have something like an "old style" button in win xp that's either
> "up" or "down", since I couldn't find a more straightforward method I
> thought taking a text widget and adjusting the border at mouse c
Thanks :), I'll give both of your hints a try. What I basically want to
do is have something like an "old style" button in win xp that's either
"up" or "down", since I couldn't find a more straightforward method I
thought taking a text widget and adjusting the border at mouse click
would be the bes
On 2005-11-01, James Stroud <[EMAIL PROTECTED]> wrote:
> On Tuesday 01 November 2005 14:26, Grant Edwards wrote:
>> On 2005-11-01, James Stroud <[EMAIL PROTECTED]> wrote:
>> > Why do my posts get held for suspcious headers
> ...
>> Held? It's not a moderated group...
>
> And I quoteth (that's King
Nevermind my previous reply: I've been fixing up the code and
understand it. I'm at a nifty 80 lines where I am at now rather than
209 lines in the previous version! The changes are immense!
The only problem I have is whenever player two goes, it says the cell
is filled. But the code:
if gameb
happens to me too.
--
http://mail.python.org/mailman/listinfo/python-list
Erik Max Francis <[EMAIL PROTECTED]> wrote:
> Ben Finney wrote:
> > If I want to implement a __repr__ that's reasonably "nice" to the
> > programmer, what's the Right Way? Are there recipes I should look
> > at?
>
> I tend to use:
>
> def __repr__(self):
> if hasattr(self, '__str__'
Hello Kees,
> and via the even handler I try to give StaticText a different style:
In general you *can not* change in runtime the style of a widget. Only a
very limited subset of the wxPython widgets supports style changes in
runtime. I would suggest you 2 alternatives:
1) Use wx.lib.stattext ==
"""
I am trying to write some classes representing the quaternion number.
I wrote a base class, which implements only the numerical interface,
and a few subclasses, which provide methods for their specific domain.
Since the operator methods will be the same for all these classes,
the base class op
Marc 'BlackJack' Rintsch <[EMAIL PROTECTED]> wrote:
> In <[EMAIL PROTECTED]>, Ben Finney wrote:
>
> > class Human_Sex(str):
> > def __repr__(self):
> > repr_str = "%s(name=%s)" % (
> > self.__class__.__name__,
> > str.__repr__(self)
> >
On 2005-11-01, Benjamin Niemann <[EMAIL PROTECTED]> wrote:
> Steven D'Aprano wrote:
>
>> http://www.python.com/ perhaps?
>
> Yep, let's make this the new official python site ;)
Well, I have to admit that I think the scheme they use to get
you load the large flash chunk is pretty clever. Most sit
Hi all,
I'm pretty new to (wx)Python so plz. don't shoot me if I've missed
something obvious ;). I have a panel inside a frame, on which a Button
and a StaticText is placed:
self.panel = wx.Panel(self,-1)
self.button = wx.Button(self.panel,-1,"Klikkerdeklik")
self.button.SetPosition((200,40))
sel
So is there a way I have to set up the string OX in the beginning? Is
this where it houses the location of the Xs and Os to determine whether
or not a letter is already there?
--
http://mail.python.org/mailman/listinfo/python-list
On Tuesday 01 November 2005 14:26, Grant Edwards wrote:
> On 2005-11-01, James Stroud <[EMAIL PROTECTED]> wrote:
> > Why do my posts get held for suspcious headers
...
> Held? It's not a moderated group...
And I quoteth (that's King James for "cuteth-and-pasteth"):
> Your mail to 'Python-list' w
Steven D'Aprano wrote:
> http://www.python.com/ perhaps?
Yep, let's make this the new official python site ;)
--
Benjamin Niemann
Email: pink at odahoda dot de
WWW: http://www.odahoda.de/
--
http://mail.python.org/mailman/listinfo/python-list
[EMAIL PROTECTED] writes:
> Thank you. It seems I didn't understand logic statements as much as I
> thought I did!
>
> The one remaining question I have deals with this:
>
> if gameboard[cell] not in 'OX':
> gameboard[cell] = 'O'
> else:
> print "This cell is already filled."
Jo Schambach wrote:
> I want to build an array of entry widgets in python with Tkinter that
> all have similar textvariables. I was hoping that I could use an array
> of StringVar variables to attach to these widgets, so that I can loop
> through the widget creation. But my simple minded approach
"CppNewB" <[EMAIL PROTECTED]> writes:
> My thoughts weren't to add a flash demo or develop some 500K logo or fixing
> the font size. But the logos look like they were done in Paint and maybe a
> readable default font is in order.
So what's wrong with the fonts they use - where they didn't let yo
I didn't want to replicate any more, expecially
because the last replies (Jorgen Grahn,
Sybren Stuvel and Mike Meyer) have taken a
direction that doesn't interest me (GUI or not GUI?),
but I must thank gmi for his contribution.
gmi wrote:
> This may be of some use for you:
>- http://www.idyll.
On 2005-11-01, James Stroud <[EMAIL PROTECTED]> wrote:
> Why do my posts get held for suspcious headers and troll Xha
> Lee gets to post all sorts of profanity and ranting without
> any problem?
Held? It's not a moderated group...
--
Grant Edwards grante Yow! I'm
On 11/1/05, James Stroud <[EMAIL PROTECTED]> wrote:
Why do my posts get held for suspcious headers and troll Xha Lee gets to postall sorts of profanity and ranting without any problem?--James StroudUCLA-DOE Institute for Genomics and ProteomicsBox 951570
Los Angeles, CA 90095http://www.jamesstroud.
I want to build an array of entry widgets in python with Tkinter that
all have similar textvariables. I was hoping that I could use an array
of StringVar variables to attach to these widgets, so that I can loop
through the widget creation. But my simple minded approach failed:
for i in ran
Thank you. It seems I didn't understand logic statements as much as I
thought I did!
The one remaining question I have deals with this:
if gameboard[cell] not in 'OX':
gameboard[cell] = 'O'
else:
print "This cell is already filled."
turnnumber -= 1
(gameboard[cell]
Why do my posts get held for suspcious headers and troll Xha Lee gets to post
all sorts of profanity and ranting without any problem?
--
James Stroud
UCLA-DOE Institute for Genomics and Proteomics
Box 951570
Los Angeles, CA 90095
http://www.jamesstroud.com/
--
http://mail.python.org/mailman/lis
[EMAIL PROTECTED] writes:
> Greetings! I am trying to make a multiplayer (no AI, 2 person) game of
> tic tac toe in Python. So far it has been pretty simple. My only
> concern is with the win checking to see if a person has won. At first
> it looked like it was working, but now it sometimes as
On Tue, 01 Nov 2005 17:45:11 +, CppNewB wrote:
> I was trying to advocate using Python for an upcoming prototype, so my boss
> went out to take a look at the documentation and try and get a feel for what
> the language is all about.
>
> First comment; "I hope the language is designed better
A.M. Kuchling enlightened us with:
> I suspect this is teething problems related to the move to a new
> server. I've bumped up the number of Apache processes, so we'll see
> if that alleviates the problem.
Thanks! I hope it helps!
Sybren
--
The problem with the world is stupidity. Not saying th
Hi,
if you enjoyed Hibernate or got intrigued by it, go and look into
SQLOject (http://www.sqlobject.org/). And you will be less intrigued by
Hibernate, but will start to really like SQLObject. :)
Best regards,
Oliver
-- Oliver Andrich <[EMAIL PROTECTED]> --- http://roughbook.de/
--
http://mail.
<[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> CppNewB>and maybe a readable default font is in order.<
>
> That font looks fine to me, maybe there's a problem in the default font
> of your browser, you can probably fix your problem...
>
"Explicit is better than implicit"
I know ho
CppNewB>and maybe a readable default font is in order.<
That font looks fine to me, maybe there's a problem in the default font
of your browser, you can probably fix your problem...
Bye,
bearophile
--
http://mail.python.org/mailman/listinfo/python-list
On Nov 01, Mike Meyer wrote:
> Kristina Kudriaðova <[EMAIL PROTECTED]> writes:
>
> > 1 Nov 2005 09:19:45 -0800, [EMAIL PROTECTED] <[EMAIL PROTECTED]>:
> >> Hi, I have a file with this content:
> >>
> >> z zzz z
> >> ...
> >> xxx xx x 34.215
> >> zzz zz
> >> ..
Steve Holden wrote:
>
> [Thinks: wonder if it's time to release a sneak preview].
>
It is! It is!
/David
--
http://mail.python.org/mailman/listinfo/python-list
On 2005-11-01, Aquarius <[EMAIL PROTECTED]> wrote:
> I explored Java's Hibernate a bit and I was intrigued by how you can
> map entity objects to database tables, preserving all the relations and
> constraits. I am interested if there is something like this for Python
> - I noticed some APIs in th
"John J. Lee" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Robert Boyd <[EMAIL PROTECTED]> writes:
> [...]
>> rounded corners. The Python site is clean and to-the-point. I guess I
>> could
>> admin that the various Python logos look dated, but that's about it. Oh,
>> and
> [...]
> Without researching it, I would guess that you have to override __new__
> so as not to pass through the myName arg to the otherwise inherited and
> called-with-all-arguments __new__ of the base class.
> Regards,
> Bengt Richter
Bengt,
Thanks as always! Python's rabbit holes always go a lit
"Fredrik Lundh" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> [EMAIL PROTECTED] wrote:
>
> to post a "can we round up a couple of designers?" message with an in-
> flammatory subject line. that algorithm is rather simplistic, and can be
If it's any consolation, I did check Google
[EMAIL PROTECTED] (=?utf-8?Q?Bj=C3=B6rn_Lindstr=C3=B6m?=) wrote in
news:[EMAIL PROTECTED]:
> If you need it to be SQL-like, SQLite seems to be the right thing.
Tried that one, but had some problems setting things up. On the other
hand, BerkeleyDB + Pybsddb worked like a charm, with no setting u
This site will help you get a useful answer:
http://www.catb.org/~esr/faqs/smart-questions.html
Tim Delaney
--
http://mail.python.org/mailman/listinfo/python-list
Thanks!
At this moment I can see the first python generated Tk window on my
screen. It's great ;-)))
--
http://mail.python.org/mailman/listinfo/python-list
Greetings! I am trying to make a multiplayer (no AI, 2 person) game of
tic tac toe in Python. So far it has been pretty simple. My only
concern is with the win checking to see if a person has won. At first
it looked like it was working, but now it sometimes assigns a win when
you enter an X or
On 1 Nov 2005 11:22:23 -0800, Aquarius <[EMAIL PROTECTED]> wrote:
I explored Java's Hibernate a bit and I was intrigued by how you canmap entity objects to database tables, preserving all the relations andconstraits. I am interested if there is something like this for Python
- I noticed some APIs i
On 11/1/05, Jarek Zgoda <[EMAIL PROTECTED]> wrote:
> Things didn't change, as last update to adodbapi was long time ago... I
> had no problems with stored procedures accessed using cursor's execute()
> method (i.e. execute('exec sp_someproc, param')), but I never tried to
> get any results, just c
Kristina Kudriaðova <[EMAIL PROTECTED]> writes:
> 1 Nov 2005 09:19:45 -0800, [EMAIL PROTECTED] <[EMAIL PROTECTED]>:
>> Hi, I have a file with this content:
>>
>> z zzz z
>> ...
>> xxx xx x 34.215
>> zzz zz
>> ...
>>
>
> Hi,
>
> I'd suggest doing this:
>
> f =
[EMAIL PROTECTED] writes:
> Interesting opinions this man has, I must say. A Sith of Computing he
> may be?
No. Sith are competent but evil. Xah Leh is incompetent, but
apparently well-intentioned. Some of his opinions are correct, but
that appears to be more by accident than anything else, and t
Robert Boyd <[EMAIL PROTECTED]> writes:
[...]
> rounded corners. The Python site is clean and to-the-point. I guess I could
> admin that the various Python logos look dated, but that's about it. Oh, and
[...]
I love the logos!
python.org looks simple to me, not amateurish. But that just goes to
In <[EMAIL PROTECTED]>, Ben Finney wrote:
> class Human_Sex(str):
> def __repr__(self):
> repr_str = "%s(name=%s)" % (
> self.__class__.__name__,
> str.__repr__(self)
> )
> return repr_str
I'm a bit surprised that `Hu
James Hu wrote:
> Hi, gurus,
>
> I would like to use ctypes to implement callback function for QImage
> Camera to capture image asynchronously, and I have the c++ code of
> callback, but I am totally in the dark, the ctypes tutorial is not good
> enough for me to do that, does someone know where t
James Hu wrote:
> Hi, gurus,
>
> I would like to use ctypes to implement callback function for QImage
> Camera to capture image asynchronously, and I have the c++ code of
> callback, but I am totally in the dark, the ctypes tutorial is not good
> enough for me to do that, does someone know where t
[EMAIL PROTECTED] wrote:
> So the first thing you do when you go to a web page is to google if
> they are going to redesign it?
I think the implication was "The first thing to do before *suggesting
that a redesign is nessasary* is to Google to see if such a redesign is
taking place."
--
http://
[EMAIL PROTECTED] wrote:
> Grant Edwards wrote:
>> May God save us from "professional" looking web sites.
>> I like the Python web site. It's simple, easy to read, and easy to
>> use.
>
> I strongly agree with you, the web is full of web sites that are nice
> "looking" but have microscopic fixed
[EMAIL PROTECTED] wrote:
> So the first thing you do when you go to a web page is to google if
> they are going to redesign it?
the first thing he did was to go to the page, the next thing he did was
to post a "can we round up a couple of designers?" message with an in-
flammatory subject line.
On Tuesday 01 November 2005 01:32 pm, [EMAIL PROTECTED] wrote:
> So the first thing you do when you go to a web page is to google if
> they are going to redesign it?
No, but it might be wise before posting a potentially inflammatory and
insulting comment about in on the mailing list. ;-)
Seriousl
[EMAIL PROTECTED] wrote:
> So the first thing you do when you go to a web page is to google if
> they are going to redesign it?
No one is suggesting that it should be. However, Googling before coming
to a newsgroup to complain about anything is usually a good idea.
--
Robert Kern
[EMAIL PROTECTE
Steve Horsley wrote:
> Kristina Kudriašova wrote:
>
>> 1 Nov 2005 09:19:45 -0800, [EMAIL PROTECTED] <[EMAIL PROTECTED]>:
>>
>>> Hi, I have a file with this content:
>>>
>>> z zzz z
>>> ...
>>> xxx xx x 34.215
>>> zzz zz
>>> ...
>>>
>>
>> Hi,
>>
>> I'd suggest
sIl 2005-11-01, Aquarius <[EMAIL PROTECTED]> ha scritto:
> I explored Java's Hibernate a bit and I was intrigued by how you can
> map entity objects to database tables, preserving all the relations and
> constraits. I am interested if there is something like this for Python
> - I noticed some APIs
This looks like something, but I have to introspect myself to accept
fink on my mac. Thanks for the pointer.
--
Svenn
--
http://mail.python.org/mailman/listinfo/python-list
I was originally thinking of piping the output of trace.py into a text
file and then have python massage that text file into a dot file for
graphviz to visualize.
Some formatting is possible with graphviz, but I would expect the graph
to be very dependent on how the program under test runs so I ha
Kristina Kudriašova wrote:
> 1 Nov 2005 09:19:45 -0800, [EMAIL PROTECTED] <[EMAIL PROTECTED]>:
>> Hi, I have a file with this content:
>>
>> z zzz z
>> ...
>> xxx xx x 34.215
>> zzz zz
>> ...
>>
>
> Hi,
>
> I'd suggest doing this:
>
> f = file('...')
> for l
Dan Bishop wrote:
> That's A source of error, but it's only part of the story. The
> double-precision binary representation of 0.039 is 5620492334958379 *
> 2**(-57), which is in error by 1/18014398509481984000. By contrast,
> Johnny Lee's answer is in error by 9/262144000, which is more than 61
Interesting opinions this man has, I must say. A Sith of Computing he
may be?
--
Svenn
--
http://mail.python.org/mailman/listinfo/python-list
On Tue, 1 Nov 2005 18:18:06 +0100,
Sybren Stuvel <[EMAIL PROTECTED]> wrote:
> Yes, I can read. My question is: does anyone know why this happens so
> often lately?
I suspect this is teething problems related to the move to a new
server. I've bumped up the number of Apache processes, so w
Steven D'Aprano wrote:
>
> However, there may be a simpler solution *fingers crossed* -- you are
> searching for a sub-string "\x00\x00\x01\x00", which is hex 0x100.
> Surely you don't want any old substring of "\x00\x00\x01\x00", but only
> the ones which align on word boundaries?
>
Nope, so
Bengt Richter wrote:
>
> Good point, but perhaps the bit pattern the OP is looking for is guaranteed
> (e.g. by some kind of HDLC-like bit or byte stuffing or escaping) not to occur
> except as frame marker (which might make sense re the problem of re-synching
> to frames in a glitched video strea
Lasse Vågsæther Karlsen wrote:
> David Rasmussen wrote:
>
>
>> If you must know, the above one-liner actually counts the number of
>> frames in an MPEG2 file. I want to know this number for a number of
>> files for various reasons. I don't want it to take forever.
>
> Don't you risk getting mo
So the first thing you do when you go to a web page is to google if
they are going to redesign it?
--
Svenn
--
http://mail.python.org/mailman/listinfo/python-list
os.path.expanduser('~') is a bit cryptic for non-unix people.
os.path.gethome() or something like that would be nicer. expanduser()
should then call gethome() so the logic is in one place.
It looks like the existing logic in expanduser() is out of date anyway.
It should be updated to use %USERPROF
On 1 Nov 2005 11:09:10 -0800, PyPK <[EMAIL PROTECTED]> wrote:
How do I add a new attribute to the existing xml Document tree???
Add an attribute of an element, or add a new element?
I hope I've understood your question correctly...this demonstrates both
adding a brand new element (tag) and an att
[EMAIL PROTECTED] enlightened us with:
> I strongly agree with you, the web is full of web sites that are
> nice "looking" but have microscopic fixed fonts (against the very
> spirit of Html), are full of useless flash, have lots of html
> structures nested inside other ones (PHP sites are often li
Does Windows 98 have a %USERPROFILE% environment variable?
--
http://mail.python.org/mailman/listinfo/python-list
I explored Java's Hibernate a bit and I was intrigued by how you can
map entity objects to database tables, preserving all the relations and
constraits. I am interested if there is something like this for Python
- I noticed some APIs in the "Cheeseshop", but most of them were alpha,
better, or seem
[EMAIL PROTECTED] enlightened us with:
> Works fine for me, and I check it pretty frequently. Perhaps it's a
> problem with your ISP's communication with the Python.org ISP?
I doubt it, since they are one and the same ;-)
Sybren
--
The problem with the world is stupidity. Not saying there shoul
Steve Holden enlightened us with:
> Possibly real maintenance occasioned by a recent move to a new
> server, in preparation for the new-look web site.
Makes sense. Thanks for the info!
Sybren
--
The problem with the world is stupidity. Not saying there should be a
capital punishment for stupidit
How do I add a new attribute to the existing xml Document tree???
--
http://mail.python.org/mailman/listinfo/python-list
I'm a python nubie, so be gental. I've been setting up functionality
by managing my Perforce clientspec with python (since it seems all of
P4's commands are avaliable at the prompt), and I'd love to get access
to DevTrack in the same way, but it's looking like it's off limits, UI
only. Does anyon
Hi, gurus,
I would like to use ctypes to implement callback function for QImage
Camera to capture image asynchronously, and I have the c++ code of
callback, but I am totally in the dark, the ctypes tutorial is not good
enough for me to do that, does someone know where to dig more info for
ctypes c
Dear all,
referring to www.snakecard.com/WordPress:
As I am _very_ much struggling with xpcom and pyxpcom, I have put on
www.snakecard.com/SCWEB:
1) the cgi scripts
2) a firefox plugin which simulates the xpcom (ie: access to the external
device ... smart card) and talks to the cgi scripts
The
message = message.replace("you're", "your")
--
http://mail.python.org/mailman/listinfo/python-list
Grant Edwards wrote:
> May God save us from "professional" looking web sites.
> I like the Python web site. It's simple, easy to read, and easy to
> use.
I strongly agree with you, the web is full of web sites that are nice
"looking" but have microscopic fixed fonts (against the very spirit of
Ht
On 11/1/05, CppNewB <[EMAIL PROTECTED]> wrote:
...First comment; "I hope the language is designed better than the site." Thesite is readable, but is amateurish. If I had an ounce of design skills inme, I would take a stab at it.
Does boss have a problem with java.sun.com as well? The main visual
"CppNewB" wrote:
> I was trying to advocate using Python for an upcoming prototype, so my boss
> went out to take a look at the documentation and try and get a feel for what
> the language is all about.
>
> First comment; "I hope the language is designed better than the site."
so your boss is a t
On Nov 01, CppNewB wrote:
> First comment; "I hope the language is designed better than the
> site." The site is readable, but is amateurish.
That's flaim bait if I ever saw it!
I find the site quite lovely: very readable, no ads, well organized,
nice colors, simple, easy to maintain (uses ht2ht
Good news Steve.
It's definitely time for a sneak preview. Let's see it!
"Steve Holden" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> CppNewB wrote:
>> I was trying to advocate using Python for an upcoming prototype, so my
>> boss went out to take a look at the documentation an
In article <[EMAIL PROTECTED]>,
Alex Martelli <[EMAIL PROTECTED]> wrote:
>Aahz <[EMAIL PROTECTED]> wrote:
>> In article <[EMAIL PROTECTED]>,
>> Alex Martelli <[EMAIL PROTECTED]> wrote:
>>>
>>>the canonical idiom when you need such distinction is:
>>>
>>>_not_there = object()
>>>def foo(bar=_not_the
CppNewB wrote:
> I was trying to advocate using Python for an upcoming prototype, so my boss
> went out to take a look at the documentation and try and get a feel for what
> the language is all about.
>
> First comment; "I hope the language is designed better than the site." The
> site is read
Works fine for me, and I check it pretty frequently. Perhaps it's a
problem with your ISP's communication with the Python.org ISP?
Sybren Stuvel wrote:
> Hi all,
>
> In the past weeks, I often got this message from the python.org
> webserver:
>
> ---
On 2005-11-01, CppNewB <[EMAIL PROTECTED]> wrote:
> I was trying to advocate using Python for an upcoming
> prototype, so my boss went out to take a look at the
> documentation and try and get a feel for what the language is
> all about.
>
> First comment; "I hope the language is designed better t
On Nov 01, Karlo Lozovina wrote:
> I've been Googling around for _small_, flat file (no server
> processes), SQL-like database which can be easily access from
> Python. Speed and perforamnce are of no issue, most important is
> that all data is contained within single file and no server binary
> ha
Sybren Stuvel wrote:
> dcrespo enlightened us with:
>
>>"The server is temporarily unable to service your request due to
>>maintenance downtime or capacity problems."
>
>
> Yes, I can read. My question is: does anyone know why this happens so
> often lately?
>
Possibly real maintenance occasion
Karlo Lozovina wrote:
> I've been Googling around for _small_, flat file (no server processes),
> SQL-like database which can be easily access from Python. Speed and
> perforamnce are of no issue, most important is that all data is contained
> within single file and no server binary has to run i
Karlo Lozovina <[EMAIL PROTECTED]> writes:
> I've been Googling around for _small_, flat file (no server
> processes), SQL-like database which can be easily access from Python.
If you need it to be SQL-like, SQLite seems to be the right thing.
It's not clear to me what you mean by "flat" file he
I was trying to advocate using Python for an upcoming prototype, so my boss
went out to take a look at the documentation and try and get a feel for what
the language is all about.
First comment; "I hope the language is designed better than the site." The
site is readable, but is amateurish. I
I've been Googling around for _small_, flat file (no server processes),
SQL-like database which can be easily access from Python. Speed and
perforamnce are of no issue, most important is that all data is contained
within single file and no server binary has to run in order to use the
dbase. Oh,
1 Nov 2005 09:19:45 -0800, [EMAIL PROTECTED] <[EMAIL PROTECTED]>:
> Hi, I have a file with this content:
>
> z zzz z
> ...
> xxx xx x 34.215
> zzz zz
> ...
>
Hi,
I'd suggest doing this:
f = file('...')
for line in f:
if 'xxx xx x' in line
"could ildg" wrote:
> > so how can I do the binary stuff?
>
> 8-bit strings contain bytes.
>
> > I want a encrypt function like below:
> > def encrypt(filename,n):
>
> f = open(filename,"rb+")
>
> > a=f.read(n)
>
> b = encrypt(a)
Thank you~~,but where is the encrypt defined?
oh, I though
Stefan Arentz wrote:
> Howdy.
>
> I'm looking at embedding python in a little embedded system. The device
> (a linksys wrt54g router, popular hack object since it runs linux), has
> limited resources. Just 4MB flash and 16MB memory.
>
> I'm interested in Python because I need to be more agile wit
Hi, I have a file with this content:
z zzz z
...
xxx xx x 34.215
zzz zz
...
"x" and "z" are letters.
The lines with "z" are trash, and only the lines with "x" are
important. I want to extract the number (34.215 in this case) behind
the letters x, and store i
dcrespo enlightened us with:
> "The server is temporarily unable to service your request due to
> maintenance downtime or capacity problems."
Yes, I can read. My question is: does anyone know why this happens so
often lately?
Sybren
--
The problem with the world is stupidity. Not saying there s
The best free app I've found for this is MusicBrainz [www.musicbrainz.com].
This has a huge database of obsessively correct details of albums
which can be formatted in anyway you choose. It can automatically
recognise which song an MP3 is!
This is a similar script I wrote to renumber files in se
> Apart from that: what harm does the connection to the smpt do? If it
> works - keep it that way.
I worry about being banned from the server.
--
damjan
--
http://mail.python.org/mailman/listinfo/python-list
Howdy.
I'm looking at embedding python in a little embedded system. The device
(a linksys wrt54g router, popular hack object since it runs linux), has
limited resources. Just 4MB flash and 16MB memory.
I'm interested in Python because I need to be more agile with developing
an application for th
1 - 100 of 159 matches
Mail list logo