with it if entered directly:
lstValues
[[Decimal(1), Decimal(47.0)]]
agg = [0,1]
print list([sum(v[i] for i in range(len(agg))) for v in lstValues])
[Decimal(48.0)]
There seems to be some sort of scope problem in PDB.
--
Dale Strickland-Clark
--
http://mail.python.org/mailman/listinfo
Tim Roberts wrote:
Dale Strickland-Clark [EMAIL PROTECTED] wrote:
The email module's mimetext handling isn't what you might expect from
something that appears to behave like a dictionary.
...
Having apparently REPLACED my recipient, what I've ended up with is both
of them.
This behavior
Having apparently REPLACED my recipient, what I've ended up with is both of
them.
--
Dale Strickland-Clark
Riverhall Systems - www.riverhall.co.uk
--
http://mail.python.org/mailman/listinfo/python-list
Steve wrote:
I'm trying to create a list range of floats and running into problems.
I've been trying something like:
a = 0.0
b = 10.0
flts = range(a, b)
fltlst.append(flts)
When I run it I get the following DeprecationWarning: integer argument
expected, got float. How can I store
Thanks for the answers. I am informed but I don't feel enlightened.
It does strike me as odd that an apparently empty subclass should add extra
function to the base class.
Not at all obvious.
--
Dale Strickland-Clark
We are recruiting Python programmers. Please see the web site.
Riverhall
no attribute 'spam'
class b(object):
...pass
...
a = b()
a
__main__.b object at 0xb7b4dcac
a.spam = 1
What is subclassing adding to the class here? Why can't I assign to
attributes of an instance of object?
--
Dale Strickland-Clark
Riverhall Systems - www.riverhall.co.uk
--
http
C extensions, which is fine. I just want to
be able to detect the most common use cases. Any other suggestions are
appreciated.
-Farshid
--
Dale Strickland-Clark
Riverhall Systems - www.riverhall.co.uk
--
http://mail.python.org/mailman/listinfo/python-list
Thanks for the info. I didn't know about that module. I'll take a look.
Fredrik Lundh wrote:
Dale Strickland-Clark wrote:
We have a system we're developing which runs as a server. It has an
xml-rpc interface which I've extended to provide some debugging
facilities. This has already proved
.)
Thanks
--
Dale Strickland-Clark
Riverhall Systems - www.riverhall.co.uk
--
http://mail.python.org/mailman/listinfo/python-list
To paraphrase an applicant for a job vacancy we're currently filling when
asked to give an example of their problem solving skills:
A client had a problem with Windows XP on his laptop. I reformatted his hard
disk and installed Red Hat. Problem solved.
--
Dale Strickland-Clark
Riverhall Systems
I'll keep this brief. Please see the web site for details
Thanks.
--
Dale Strickland-Clark
We are recruiting Python programmers. Please see the web site.
Riverhall Systems www.riverhall.co.uk
--
http://mail.python.org/mailman/listinfo/python-list
.
--
Dale Strickland-Clark
Riverhall Systems - www.riverhall.co.uk
--
http://mail.python.org/mailman/listinfo/python-list
Hi Harald
Thanks for that, somewhat comprehensive, answer.
--
Dale Strickland-Clark
Riverhall Systems - www.riverhall.co.uk
--
http://mail.python.org/mailman/listinfo/python-list
Tim N. van der Leeuw wrote:
Hi,
select lastval();
Thanks, that was useful.
--
Dale Strickland-Clark
Riverhall Systems - www.riverhall.co.uk
--
http://mail.python.org/mailman/listinfo/python-list
()
Thanks. We'll look into those.
--
Dale Strickland-Clark
Riverhall Systems - www.riverhall.co.uk
--
http://mail.python.org/mailman/listinfo/python-list
Duncan Booth wrote:
Dale Strickland-Clark [EMAIL PROTECTED] wrote:
In Linux this is easy with 'signal' and 'kill' but how can I get one
Python process to signal another (possibly running as a service)?
All I need is a simple prod with no other data being sent and none
being returned
don't see that mentioned
in the text. If that is so, include the two commented statements.
--
Dale Strickland-Clark
Riverhall Systems - www.riverhall.co.uk
--
http://mail.python.org/mailman/listinfo/python-list
an interrupt. I'm not looking for a
solution the involves polling.
Thanks
--
Dale Strickland-Clark
Riverhall Systems www.riverhall.co.uk
--
http://mail.python.org/mailman/listinfo/python-list
Dale Strickland-Clark wrote:
In Linux this is easy with 'signal' and 'kill' but how can I get one
Python process to signal another (possibly running as a service)?
All I need is a simple prod with no other data being sent and none being
returned - except that the signal was delivered
(www.amazon.co.uk)
--
Dale Strickland-Clark
Riverhall Systems - www.riverhall.co.uk
--
http://mail.python.org/mailman/listinfo/python-list
manuhack wrote:
Then is there any way to create a directory under XP using Python?
import os
os.mkdir(C:\\myosisbroken)
--
Dale Strickland-Clark
Riverhall Systems www.riverhall.co.uk
--
http://mail.python.org/mailman/listinfo/python-list
I've missed something):
You lose the encoding at the top of the output, but since the output is
entirely ascii I don't think that matters.
--
Dale Strickland-Clark
Riverhall Systems www.riverhall.co.uk
--
http://mail.python.org/mailman/listinfo/python-list
it to remain as
#8364; so that the resulting HTML can render properly in a browser. Is
there a way to make the parser not convert the entity references? Or is
there a convenient post processing function that will do the conversion?
--
Dale Strickland-Clark
Riverhall Systems www.riverhall.co.uk
, rogered type of lock which is not voluntary and
rather more frequent.
--
Dale Strickland-Clark
Riverhall Systems www.riverhall.co.uk
We're recruiting. See the web site for details.
--
http://mail.python.org/mailman/listinfo/python-list
return GetObject(strFilePath).Sheets(1).UsedRange.Value
N/A wrote:
Hi,
Is it possible to import data from Excel for doing numerical analysis in
Python? If so how? Thank u!
--
Dale Strickland-Clark
Riverhall Systems - www.riverhall.co.uk
--
http://mail.python.org/mailman/listinfo/python-list
that allows you to enumerate all the
strings a particular regular expression describes?
Cheers,
-Blair
--
Dale Strickland-Clark
Riverhall Systems - www.riverhall.co.uk
--
http://mail.python.org/mailman/listinfo/python-list
,
Davy
--
Dale Strickland-Clark
Riverhall Systems - www.riverhall.co.uk
--
http://mail.python.org/mailman/listinfo/python-list
Vim.
Everything else is Notepad.
DeepBlue wrote:
Hi all,
Can any one please recommend me an editor for coding Python. Thank u.
I have Komodo (www.activestate.com) in my mind. Is the editor any good?
regards.
--
Dale Strickland-Clark
Riverhall Systems www.riverhall.co.uk
We're
or idioms
to use. Thanks a lot!
--
Dale Strickland-Clark
Riverhall Systems - www.riverhall.co.uk
--
http://mail.python.org/mailman/listinfo/python-list
how to scan to
see if their entry has numerals and print 'please do not use numbers' if
they did.
Thanks for your help.
--
Dale Strickland-Clark
Riverhall Systems - www.riverhall.co.uk
We're recruiting programmers. Please see the web site.
--
http://mail.python.org/mailman/listinfo/python
to terminate it in python?
thanks
Isn't SIGINT the same as ctrl-c?
So something like
import os
os.kill(1234, 2)
would send ctrl-c to process 1234.
If you just want the process to quit, you could probably just send it a
SIGTERM, which is signal 15.
--
Dale Strickland-Clark
Riverhall Systems
rtilley wrote:
Psychology is important. Just as important as good design. I think this
fact doesn't sink in to the Python community.
You speak of fluff and ribbons and glitter.
I think most people here are less concerned with psychology and more
interested in pychology.
--
Dale Strickland
Steve Holden wrote:
Any suggestions for improvement?
regards
Steve
Get rid of the scarey face?
:-)
--
Dale Strickland-Clark
Riverhall Systems www.riverhall.co.uk
We're recruiting. See the web site for details.
--
http://mail.python.org/mailman/listinfo/python-list
Sutra.
The new site, however is very nice. Top marks for that.
--
Dale Strickland-Clark
Riverhall Systems www.riverhall.co.uk
--
http://mail.python.org/mailman/listinfo/python-list
away after an upgrade. I'm not sure.
But we're running live web sites with it right now, as far as I know.
--
Dale Strickland-Clark
Riverhall Systems - www.riverhall.co.uk
--
http://mail.python.org/mailman/listinfo/python-list
for help
L.
Like this, you mean?
import os.path
os.path.splitext(c:\\pictures\\mydocs\\test.txt)
('c:\\pictures\\mydocs\\test', '.txt')
--
Dale Strickland-Clark
Riverhall Systems www.riverhall.co.uk
--
http://mail.python.org/mailman/listinfo/python-list
like
this:
win32api.ShellExecute(0, copy, file.ps prn, None, ., 0)
It has been a long time since I used Windows, especially 98, but if 'prn'
doesn't work, you might try one of: 'lpt', 'lpt1', 'lpt:', 'lpt1:'.
--
Dale Strickland-Clark
Riverhall Systems - www.riverhall.co.uk
--
http
Andy Leszczynski leszczynscyATnospam.yahoo.com.nospam wrote:
Any idea how to do that the way ActiveX would be used on M$?
A.
http://udk.openoffice.org/python/python-bridge.html
--
Dale Strickland-Clark
Riverhall Systems - www.riverhall.co.uk
--
http://mail.python.org/mailman/listinfo
changing them to python. (I feel perl regex combination is very easy to
learn and very powerfull)
Any information will be appreciated.
-jiro
--
Dale Strickland-Clark
Riverhall Systems www.riverhall.co.uk
We're recruiting Python programmers. See web site.
--
http://mail.python.org/mailman
there are a few DTD validating parsers but that's all.
I'm not concerned about speed so much as a reasonably sound implementation.
What's out there? Have I missed something?
Thanks.
--
Dale Strickland-Clark
Riverhall Systems - www.riverhall.co.uk
--
http://mail.python.org/mailman/listinfo/python-list
40 matches
Mail list logo