On Tue, 14 Dec 2004 23:16:43 -0700, Michael McGarry
<[EMAIL PROTECTED]> wrote:
> Hi,
>
> I am horrible with Regular Expressions, can anyone recommend a book on it?
>
> Also I am trying to parse the following string to extract the number
> after load average.
>
> " load average: 0.04, 0.02, 0
<[EMAIL PROTECTED]> wrote:
> Is anyone here familiar with ElementTree by effbot?
>
> With hello how is "hello" stored in the
> element tree? Which node is it under? Similarly, with:
> foo blah bar, how is bar stored? Which node is
> it in?
reposting the reply I just posted to the discussion boa
Michael McGarry wrote:
Also I am trying to parse the following string to extract the number
after load average.
" load average: 0.04, 0.02, 0.01"
In Python 2.4:
>>> uptime='12:12:05 up 21 days, 16:31, 10 users, load average: 0.01,
0.02, 0.04'
>>> _, avg_str = uptime.rsplit(':', 1)
>>> avg_
Hi,
I am horrible with Regular Expressions, can anyone recommend a book on it?
Also I am trying to parse the following string to extract the number
after load average.
" load average: 0.04, 0.02, 0.01"
how can I extract this number with RE or otherwise?
Michael
--
http://mail.python.org/mailm
Binu K S wrote:
You can do this without regular expressions if you like
uptime='12:12:05 up 21 days, 16:31, 10 users, load average:
0.01, 0.02, 0.04'
load = uptime[uptime.find('load average:'):]
load
'load average: 0.01, 0.02, 0.04'
load = load.split(':')
load
['load average', ' 0.01, 0.02, 0.04
Michael McGarry wrote:
Hi,
I am horrible with Regular Expressions, can anyone recommend a book on it?
Also I am trying to parse the following string to extract the number
after load average.
" load average: 0.04, 0.02, 0.01"
how can I extract this number with RE or otherwise?
This particular
You can do this without regular expressions if you like
>>> uptime='12:12:05 up 21 days, 16:31, 10 users, load average:
0.01, 0.02, 0.04'
>>> load = uptime[uptime.find('load average:'):]
>>> load
'load average: 0.01, 0.02, 0.04'
>>> load = load.split(':')
>>> load
['load average', ' 0.01, 0.02,
Simon Brunning <[EMAIL PROTECTED]> writes:
> On Tue, 14 Dec 2004 10:40:56 -0500, Peter Hansen <[EMAIL PROTECTED]> wrote:
>> Keith Dart wrote:
>> > Sigh, this reminds me of a discussion I had at my work once... It seems
>> > to write optimal Python code one must understand various probabilites of
>
Hello newsgroup,
I work with omniORB for python and I what to log the calls, does anyone in
this group know how I can do this?
I use the command to initialize the ORB
ORB = CORBA.ORB_init(sys.argv + ["-ORBtraceLevel", "40"], CORBA.ORB_ID)
but I dont get a log file or a message in pythonwin output
"[EMAIL PROTECTED]" <[EMAIL PROTECTED]> writes:
> Instead of copy and paste, I use functions for code reuse. I didn't see
> the light of OOP, yet. I use Python but never did anything with OOP. I
> just can't see what can be done with OOP taht can't be done with
> standart procedural programing.
Lucas Hofman wrote:
A 7% speed DECREASE??? According to the documentation it should be a 5% increase?
I also see an 8-10% speed decrease in 2.4 (I built) from 2.3.3 (shipped
w/Fedora2) in the program I'm writing (best of 3 trials each). Memory
use seems to be about the same.
2.4: real2m44
Hi,
Is anyone here familiar with ElementTree by effbot?
With hello how is "hello" stored in the
element tree? Which node is it under? Similarly, with:
foo blah bar, how is bar stored? Which node is
it in?
Cheers,
Ming
--
http://mail.python.org/mailman/listinfo/python-list
"Robin Becker" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Cameron Laird wrote:
> There was no rational reason
> for me to upgrade to VC 7.x, but now I'm forced to by my preferred
language.
> --
> Robin Becker
That's the way I feel about it too. Actually, I'm getting pushed to
Jeff Shannon wrote:
zhao wrote:
python 2.4 is released, but the gui package wxpython now is only for
2.3, how long can it can released for 2.4?
This has been asked numerous times on the wxPython list in recent
weeks. :) Robin Dunn is reportedly working now on updating his build
environment and
Everyone keep moving. There is nothing to see here. Move along.
--
http://mail.python.org/mailman/listinfo/python-list
Tom Haddon wrote:
Hi Folks,
Newbie question here. I'm trying to set up some unit testing for a database abstraction class, and the first thing I want to test is the connection parameters. So, my question is, how do I dynamically pass the variables from a list, for example to the unittest module so
Hi Folks,
Newbie question here. I'm trying to set up some unit testing for a database
abstraction class, and the first thing I want to test is the connection
parameters. So, my question is, how do I dynamically pass the variables from a
list, for example to the unittest module so I can maintain
projecktzero wrote:
> He thinks that OOP has more overhead
I think he's just confusing programming with marriage.
--
CARL BANKS
--
http://mail.python.org/mailman/listinfo/python-list
"Paul McGuire" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I was just reacting mostly to the OP's statement that "by '86 the Joy of
OOP
> was widely known".
I (Jive Dadson) said that. I guess I figured that if I knew about it, it
was widely known. But in retrospect, I had an i
[EMAIL PROTECTED] writes:
> If OOP is so beneficial for large projects, why are the Linux kernel,
> the interpreters for Perl and Python, and most compilers I know written
> in C rather than C++?
Because C++ combines the worst features of C and OO programming. It
also makes some defaults go the w
"Martijn Faassen" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Paul McGuire wrote:
> [snip]
> > I would characterize the 80's as the transitional decade from structured
> > programming (which really started to hit its stride when Djikstra
published
> > "Use of GOTO Considered Harmf
Martin v. Löwis wrote:
>> which might be great if you know how things work, but is bloody confusing
>> if you don't. most importantly, how do you set properties?
>
> How do you know they are called properties?-) I would have thought that
> "Additional parameters can be passed at the end of this c
"Roy Smith" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I think the real reason Python is a better teaching language for
> teaching OO concepts is because it just gives you the real core of OO:
> inheritence, encapsulation, and association of functions with the data
> they act on.
Markus Zeindl wrote:
I have got a string from the user, for example "Hi!".
Now I get every character with a loop:
buffer = ""
for i in range(len(message)):
ch = message[i-1:i]
for ch in message:
...
is simpler and more idiomatic.
Kent
--
http://mail.python.org/mailman/listinfo/python-list
[EMAIL PROTECTED] wrote:
A paper finding that OOP can lead to more buggy software is at
http://www.leshatton.org/IEEE_Soft_98a.html
[snip description of paper that compares C++ versus Pascal or C]
What papers have scientific evidence for OOP?
That's of course a good question. I'm sure also that com
Paul McGuire wrote:
[snip]
I would characterize the 80's as the transitional decade from structured
programming (which really started to hit its stride when Djikstra published
"Use of GOTO Considered Harmful") to OOP, and that OOP wasn't really
"joyful" until the early-to-mid 90's.
IMMEDIATE NOTICE
Terry Reedy <[EMAIL PROTECTED]> wrote:
> I did not really 'get' OOP until after learning Python. The
> relatively simple but powerful user class model made more sense to
> me than C++. So introducing someone to Python, where OOP is a
> choice, not a mandate, is how *I* would introduce a procedura
Hi,
Try WingIDE if you have some money (about 35 E/$ for the personal
version) to spend, it's worth every (euro)cent. But please try SPE
first, maybe that's enough for you.
Dimitri
On Tue, 14 Dec 2004 11:36:34 -0500, Chris
<[EMAIL PROTECTED]> wrote:
> What IDE's do y'all recommend for Python? I
Cameron Laird wrote:
Part of the trick is that it demands deep understanding
to detect the antisynergies that arise from the interac-
tions of the DLL, registry, and filesystem schemes. I
know it was only this year that I realized the whole
installation-requires-reboot absurdity is a consequence
o
Jive wrote:
But it makes no difference, no? The problem is that both Python.exe and the
extensions are *compiled* to link with a *particular* crt.
No, that is not (really) the case. They are compiled to link with
msvcrt.lib, which could, at link time, then become msvcrt.dll,
msvcrt40.dll, or msvc
Markus Zeindl <[EMAIL PROTECTED]> writes:
> Now I get every character with a loop:
>
> buffer = ""
> for i in range(len(message)):
>ch = message[i-1:i]
You mean
ch = message[i]
what you have does the wrong thing when i = 0.
> Here is the problem. I got a string with one character and I
>
Fredrik Lundh wrote:
http://www.python.org/2.4/msi.html
which might be great if you know how things work, but is bloody confusing
if you don't. most importantly, how do you set properties?
How do you know they are called properties?-) I would have thought that
"Additional parameters can be passe
Grant Edwards wrote:
On 2004-12-14, Markus Zeindl <[EMAIL PROTECTED]> wrote:
I want to write a simple encrypter, but I've got a problem:
How can I convert characters into integers?
$ python
Python 2.3.4 (#2, Aug 19 2004, 15:49:40)
[GCC 3.4.1 (Mandrakelinux (Alpha 3.4.1-3mdk)] on linux2
Type "hel
I did not really 'get' OOP until after learning Python. The relatively
simple but powerful user class model made more sense to me than C++. So
introducing someone to Python, where OOP is a choice, not a mandate, is how
*I* would introduce a procedural programmer to the subject. YMMV.
Terry
On 2004-12-14, Markus Zeindl <[EMAIL PROTECTED]> wrote:
> I want to write a simple encrypter, but I've got a problem:
> How can I convert characters into integers?
$ python
Python 2.3.4 (#2, Aug 19 2004, 15:49:40)
[GCC 3.4.1 (Mandrakelinux (Alpha 3.4.1-3mdk)] on linux2
Type "help", "copyright",
<[EMAIL PROTECTED]> wrote:
> Does Python have any internal facility for creating recursive archives
> of a directory? I'd like to avoid reliance on extenal tools
> (winzip,tar,etc).
import os, sys, zipfile
directory = sys.argv[1]
zip = zipfile. ZipFile(directory + ".zip", "w")
for path, dirs,
"Fuzzyman" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> If you're willing to pay for one, Komodo is very good. Especially for
> projects.
I would recomend Wing IDE over Komodo. My experience is that Wing IDE has
far better code completion. And the Source Assistant feature of the
projecktzero wrote:
> A co-worker considers himself "old school" in that he hasn't seen the
> light of OOP ... He thinks that OOP has more overhead and is slower
> than programs written the procedural way.
He may be right, but consider the alternatives.
Think of an integer. An integer is an objec
Hello,
I want to write a simple encrypter, but I've got a problem:
How can I convert characters into integers?
I have got a string from the user, for example "Hi!".
Now I get every character with a loop:
buffer = ""
for i in range(len(message)):
ch = message[i-1:i]
...
The character is saved
Does Python have any internal facility for creating recursive archives
of a directory? I'd like to avoid reliance on extenal tools
(winzip,tar,etc).
Thanks!
--
http://mail.python.org/mailman/listinfo/python-list
Allan Irvine wrote:
> Hope you can help - any thoughts welcome
Here is the best place you can get help for your problem:
http://www.catb.org/~esr/faqs/smart-questions.html
Tim Delaney
--
http://mail.python.org/mailman/listinfo/python-list
Martin Bless wrote:
> On my Windows machine this command line switch really makes my life so
> much easier.
if you use windows, chances are that what you really want is exemaker...
--
http://mail.python.org/mailman/listinfo/python-list
It works fine here.
--
It's me
"Chris" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I'm working on a program in PythonWin. The problem I'm running into is
> that after I make a code change, PythonWin doesn't always see it. Has
> anyone else had this problem?
>
> Chris
--
htt
projecktzero wrote:
A co-worker considers himself "old school" in that he hasn't seen the
light of OOP.(It might be because he's in love with Perl...but that's
another story.) He thinks that OOP has more overhead and is slower than
programs written the procedural way. I poked around google, but I d
Robert Brewer wrote:
Chris wrote:
I'm working on a program in PythonWin. The problem I'm
running into is that after I make a code change,
PythonWin doesn't always see it. Has anyone else
had this problem?
"See it" in the interactive session? Use reload():
http://docs.python.org/lib/built-in-fun
Chris wrote:
> I'm working on a program in PythonWin. The problem I'm
> running into is that after I make a code change,
> PythonWin doesn't always see it. Has anyone else
> had this problem?
"See it" in the interactive session? Use reload():
http://docs.python.org/lib/built-in-funcs.html
Oth
Sounds like a generic html based information kiosk.
Anyone can do this pretty easily using embedded IE or Mozilla ActiveX
control wrapped up in Venster. Just run an internal http server in another
thread.. I've done this for desktop apps. Though, full-screen windows I
haven't tried, but should be
[Nick Coghlan <[EMAIL PROTECTED]>]
>Python 2.4's -m command line switch only works for modules directly on
>sys.path.
On my Windows machine this command line switch really makes my life so
much easier. I appreciate -m very much. Going further as proposed in
PEP 338 sounds good to me.
One thing
There's sample code in PyOpenGL and OpenGLContext for saving canvases to
PNG or JPEG formats using PIL. Saving to Postscript requires
considerably more work (if you're implying saving as triangles, lines
and the like). There is a GPL library which lets you do this, and I
have an old SWIG wrap
Chris wrote:
What IDE's do y'all recommend for Python? I'm using PythonWin atm, but
I'd like something with more functionality.
On Linux, Eric3 is really worth recommending. On Windows, if you don't
mind spending some $$$, buy Komodo. These programs "have it all" (Eric3
"has more", though).
--
"Berteun Damman" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> On Tue, 14 Dec 2004 18:39:19 GMT, Paul McGuire
> <[EMAIL PROTECTED]> wrote:
> >> If I try however to parse the String "if test; testagain; fi;", it does
> >> not work, because the fi is interpreted as an expr, not as the
+1
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Edward C. Jones wrote:
> You are not dumb. Many search phrases are obvious if and only if you have
> already seen them.
or typed them, in this case (did you read the subject before posting? ;-)
--
http://mail.python.org/mailman/listinfo/python-list
Chris wrote:
Okay, color me stupid, but what is everyone referencing when they
mention Python 3.0? I didn't see any mention of it on the Python site.
http://www.python.org/peps/pep-3000.html
(which happens to be the first hit if you search for "python 3.0" in the
search box on python.org...)
Oka
dMichael McGarry <[EMAIL PROTECTED]> wrote:
> > You must use pythonw for graphics application =)
> > So launch the script with pythonw instead of python ;-)
> >
> Thanks using pythonw did the trick.
>
> I appreciate everyone's help.
;-) Happy programming with your mac and python
--
Whamoo ww
Chris wrote:
Okay, color me stupid, but what is everyone referencing when they
mention Python 3.0? I didn't see any mention of it on the Python site.
http://www.python.org/moin/Python3.0
has more information than the PEP 3000, plus you can contribute to the page.
--
http://mail.python.org/mailman
Paul McGuire wrote:
"Steve Holden" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
[some stuff]
Good points all. And yes, I recall the BYTE article on Smalltalk. I guess
I was just reacting mostly to the OP's statement that "by '86 the Joy of OOP
was widely known". He didn't say "OO
Paul McGuire wrote:
"Steve Holden" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
[some stuff]
Good points all. And yes, I recall the BYTE article on Smalltalk. I guess
I was just reacting mostly to the OP's statement that "by '86 the Joy of OOP
was widely known". He didn't say "OO
"Berteun Damman" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hello,
>
> I'm having some problems with pyparsing, I could not find how to tell
> it to view certain words as keywords, i.e. not as a possible variable
> name (in an elegant way),
> for example, I have this little gramm
On Tue, 14 Dec 2004 18:39:19 GMT, Paul McGuire
<[EMAIL PROTECTED]> wrote:
>> If I try however to parse the String "if test; testagain; fi;", it does
>> not work, because the fi is interpreted as an expr, not as the end of
>> the if statement, and of course, adding another fi doesn't solve this
>> e
Klaus Neuner wrote:
Yet, I have got 43 such files. Together they are 4,1M
large. In the future, they will probably become much larger.
At the moment, the process takes several hours. As it is a process
that I have to run very often, I would like it to be faster.
Others have shown how you can m
Petr Prikryl wrote:
Hi,
Summary: In my opinion, the C-like prefix
increment and decrement operators (++i and --i)
should be marked as "syntax error".
We have a patch for increment and decrement operators in boo (
http://boo.codehaus.org/ ), along with an operator overloading syntax
like below. S
"Chris" <[EMAIL PROTECTED]> wrote:
> Okay, color me stupid, but what is everyone referencing when they mention
> Python 3.0? I didn't
> see any mention of it on the Python site.
http://www.python.org/peps/pep-3000.html
(which happens to be the first hit if you search for "python 3.0" in the
s
"Steve Holden" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Paul McGuire wrote:
>
> > "Jive" <[EMAIL PROTECTED]> wrote in message
> > news:[EMAIL PROTECTED]
> >
> >
> >
> >>But by '86, the Joy of OOP was widely known.
> >>
> >
> >
> > "Widely known"? Errr? In 1986, "object-orien
zhao wrote:
python 2.4 is released, but the gui package wxpython now is only for
2.3, how long can it can released for 2.4?
This has been asked numerous times on the wxPython list in recent
weeks. :) Robin Dunn is reportedly working now on updating his build
environment and scripts to use VS
[EMAIL PROTECTED] wrote:
[EMAIL PROTECTED] wrote:
import re
s='abcdatraataza'
r=re.compile('(?
Oops, tested this time:
import re
def index_letters(s,l):
regexp='(?
print index_letters('abcdatraataza','a')
Just comparing Fredrik Lundh's method:
r=re.compile("a+")
[m.
Klaus Neuner wrote:
The straightforward way to solve this problem is to create a
dictionary. Like so:
[...]
a, b = get_information(line)
if a in dict.keys():
dict[a].append(b)
else:
dict[a] = [b]
So I timed the three suggestions with a few different datasets:
> cat builddict.py
def askpermi
Donn Cave wrote:
Keith Dart <[EMAIL PROTECTED]> wrote:
|>> if exitstatus:
|>> print "good result (errorlevel of zero)"
|>> else:
|>> print exitstatus # prints message with exit value
This is indeed how the shell works, though the actual failure value
is rarely of any interest. It's also
A paper finding that OOP can lead to more buggy software is at
http://www.leshatton.org/IEEE_Soft_98a.html
Les Hatton "Does OO sync with the way we think?", IEEE Software, 15(3),
p.46-54
"This paper argues from real data that OO based systems written in C++
appear to increase the cost of fixing de
Steve Holden wrote:
# Pre 2.2.1 compat.
try: True, False
except NameError: True = 1==1; False = 1==0
I believe this should work for all versions up to 2.4, and would also
work with a 2.5 that made True and False constants. But if anyone can
prove me wrong it would be you ... :-)
Seems like it mig
Timothy Babytch wrote:
Will Stuyvesant wrote:
data = [['foo','bar','baz'],['my','your'],['holy','grail']]
sum(data, [])
['foo', 'bar', 'baz', 'my', 'your', 'holy', 'grail']
The second parameter passed to sum is just to overrride default
initial value "zero".
It's worth keeping in mind that this so
Great class for making this very easy located here:
http://motion.sourceforge.net/related/send_jpg.py
And is supports list of binary attachments that is
pretty tricky by hand.
Larry Bates
Syscon, Inc.
Philippe Reynolds wrote:
Hi,
I'm learning python...one of my tasks is to send out emails...
I can
Steven Bethard wrote:
> > python -m timeit -s "data = [range(10) for _ in range(1000)]"
> "sum(data, [])"
> 10 loops, best of 3: 54.2 msec per loop
>
> > python -m timeit -s "data = [range(10) for _ in range(1000)]" "[w for
> d in data for w in d]"
> 100 loops, best of 3: 1.75 msec per loop
>
> Th
Why didn't you like Eclipse? Was it that the Python modules were bad,
or just Eclipse in general? I use it for my Java developement and
haven't had any problems with it.
Just the python stuff really, I've used it for some java stuff and know
plenty of people that do every day and they all love
[EMAIL PROTECTED] wrote:
import re
s='abcdatraataza'
r=re.compile('(?
Oops, tested this time:
import re
def index_letters(s,l):
regexp='(?
print index_letters('abcdatraataza','a')
--
Pádraig Brady - http://www.pixelbeat.org
--
--
http://mail.python.org/mailman/listi
Title: RE: Python IDE
[Chris]
#- -chuckle- Hopefully I don't start off a full fledged war.-grin-
Too late, :p
#- Why didn't you like Eclipse? Was it that the Python modules
#- were bad,
#- or just Eclipse in general? I use it for my Java developement and
#- haven't had any problem
Franz Steinhaeusler wrote:
given a string:
st="abcdatraataza"
^ ^ ^ ^ (these should be found)
I want to get the positions of all single 'a' characters.
(Without another 'a' neighbour)
You could also try negative lookahead/lookbehind assertions:
>>> st="abcdatraataza"
>>> for m in re.findi
I'm working on a program in PythonWin. The problem I'm running into is
that after I make a code change, PythonWin doesn't always see it. Has
anyone else had this problem?
Chris
--
http://mail.python.org/mailman/listinfo/python-list
Franz Steinhaeusler wrote:
given a string:
st="abcdatraataza"
^ ^ ^ ^ (these should be found)
I want to get the positions of all single 'a' characters.
(Without another 'a' neighbour)
So I tried:
r=re.compile('[^a]a([^a]')
but this applies only for
the a's, which has neighbours.
So I
Steve Holden wrote:
Interestingly the same error occurs even when attempting sideways access:
Python 2.4 (#60, Nov 30 2004, 11:49:19) [MSC v.1310 32 bit (Intel)] on
win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import __builtin__
>>> __builtin__.None = "Rhubarb
What IDE's do y'all recommend for Python? I'm using PythonWin atm, but
I'd like something with more functionality.
Chris
--
http://mail.python.org/mailman/listinfo/python-list
read the orginal poster's SPECIFIC question he make only reference to a
FILE or STDIN which can't be destructively read, either way he don't
not requre the look-ahead to do what he wants. So my advice is still
valid. Think about it in a different way.
--
http://mail.python.org/mailman/listinfo/py
In article <[EMAIL PROTECTED]>,
Axel Straschil <[EMAIL PROTECTED]> wrote:
>Hello!
>
>Sorry Cameron, I was replying, now my folloup ;-):
>
>> Are you trying to convert one document in particular, or automate the
>> process of conveting arbitrary HTML documents?
>
>I have an small CMS System where t
Peter Otten wrote:
Fredrik Lundh wrote:
Steve Holden wrote:
It was unfortunate that so many people chose to use that for
compatibility, when if they'd used the same code that the win32all
extensions did they could have retained backward compatibility even
across a change to constants:
try:
Tru
Well sort of...
More a request for comments really - to see if anyone is interested in
this.
http://www.voidspace.org.uk/atlantibots/pythonutils.html#testenv
I've created a script that will build a 'test environment'. Windoze(tm)
only as it uses py2exe.
It scans your Python\Lib folder and b
Hello,
I'm having some problems with pyparsing, I could not find how to tell
it to view certain words as keywords, i.e. not as a possible variable
name (in an elegant way),
for example, I have this little grammar:
terminator = Literal(";")
expr = Word(alphas)
body = Forward();
ifstat = "if" + bod
Okay, color me stupid, but what is everyone referencing when they mention Python 3.0? I didn't
see any mention of it on the Python site.
http://www.python.org/peps/pep-3000.html
(which happens to be the first hit if you search for "python 3.0" in the
search box on python.org...)
Okay, I feel dumb
What IDE's do y'all recommend for Python? I'm using PythonWin atm,
but I'd like something with more functionality.
Oh god we're all going to die.
-chuckle- Hopefully I don't start off a full fledged war.-grin-
But er, ActiveState Komodo is quite nice IIRC (can't use it anymore as
all my coding
># convert to byte string, via the array module
>import array, struct
>a = array.array("B", [int(c, 16) for c in x])
>v = struct.unpack("!f", )
eh? should be:
# convert to byte string, via the array module
import array, struct
a = array.array("B", [int(c, 16) for c in
If you're willing to pay for one, Komodo is very good. Especially for
projects.
Regards,
Fuzzy
http://www.voidspace.org.uk/atlantibots/pythonutils.html
--
http://mail.python.org/mailman/listinfo/python-list
Chris wrote:
What IDE's do y'all recommend for Python? I'm using PythonWin atm, but
I'd like something with more functionality.
Chris
Oh god we're all going to die.
But er, ActiveState Komodo is quite nice IIRC (can't use it anymore as
all my coding is commercial and I don't need it enough to s
On Tue, 14 Dec 2004 10:40:56 -0500, Peter Hansen <[EMAIL PROTECTED]> wrote:
> Keith Dart wrote:
> > Sigh, this reminds me of a discussion I had at my work once... It seems
> > to write optimal Python code one must understand various probabilites of
> > your data, and code according to the likely sc
If you want to spend the $35 I can recommend WingIDE.
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Chris
Sent: 14 December 2004 16:37
To: [EMAIL PROTECTED]
Subject: Python IDE
What IDE's do y'all recommend for Python? I'm using PythonWin atm, but
I'
Keith Dart <[EMAIL PROTECTED]> wrote:
|>> Oh, I forgot to mention that it also has a more user- and
|>> programmer-friendly ExitStatus object that processess can return. This
|>> is directly testable in Python:
|>>
|>> proc = proctools.spawn("somecommand")
|>> exitstatus = proc.wait()
|>>
|>> if
Okay, color me stupid, but what is everyone referencing when they
mention Python 3.0? I didn't see any mention of it on the Python site.
Chris
--
http://mail.python.org/mailman/listinfo/python-list
Max M wrote:
> Oh, programmers loves this kind stuff. You should get tons of answers.
data = '80 00 00 00'
import Image
v = Image.fromstring("F", (1, 1), data, "hex", "F;32BF").getpixel((0, 0))
--
http://mail.python.org/mailman/listinfo/python-list
Hi,
I have a problem which I believe is seen before:
Finding the correct pattern to use, in order to split a line correctly,
using the split function in the re module.
I'm new to regexp, and it isn't always easy to comprehend for a newbie :)
The lines I want to split are like this:
(The followin
Philippe Reynolds wrote:
> I'm learning python...one of my tasks is to send out emails...
> I can send emails to one person at a time but not as groups
>
> Do you think you can help.
>
> Cheers
> Philippe Reynolds
>
> Here is the section of code:
> # me == the sender's email address
> me = '[E
Fredrik Lundh wrote:
Steve Holden wrote:
It was unfortunate that so many people chose to use that for compatibility, when if they'd used
the same code that the win32all extensions did they could have retained backward compatibility
even across a change to constants:
try:
True
except Attribut
[EMAIL PROTECTED] wrote:
Each of these numbers is a Hex byte making up a four byte (32 bit
Big-Endian) IEEE float. I have read this data into Python using
readlines and then line.split(). This gives me:
['80', '00', '00', '00']
Oh, programmers loves this kind stuff. You should get tons of answers.
1 - 100 of 164 matches
Mail list logo