Hi, a program of mine is being terminated by the OS as it uses too
much memory. I guess this is due to static memory allocation
I've also tried to use "del" but in vain. Is there any other function
that performs the above operation and frees the allocated memory??
Pls reply
--
http://mail.python
(Sorry if this shows up twice.)
Can someone think of an easy way to calculate the number of weekdays
between two calendar dates (in Python)?
Thankee.
--
http://mail.python.org/mailman/listinfo/python-list
I'm using weekdays as a proxy for days when the US stock market is open.
(I'll miss holidays.) The application is pricing CALL and PUT
options. Speed is not a problem. The number of days will typically be
between 1 and 254.
--
http://mail.python.org/mailman/listinfo/python-list
==
CALL FOR PAPERS
(Deadline: January 22, 2010)
TOOLS EUROPE 2010
48th International Conference
Objects, Models, Component
On Oct 16, 6:53 pm, ryles wrote:
> Then you probably haven't read through these discussions:
>
> sum and
> strings:http://mail.python.org/pipermail/python-list/2006-August/subject.html
> summing a bunch of
> numbers:http://mail.python.org/pipermail/python-dev/2003-April/subj
You meant:
sum and
On Mon, 19 Oct 2009 08:51:44 +0200, Hendrik van Rooyen wrote:
> The point I was trying to make
> subliminally, was that there is a relative cost of double lookup for all
> cases versus exceptions for some cases. - Depending on the frequency of
> "some", I would expect a breakeven point.
There is,
hello everyone,
I am using smtplib to send email, and i meet such a problem:
my email smtp server hostname can be parsed to 5 ips, for example:
**
my email smtp server hostname: email-my.local.com
ips through d
Ok I see your point that C is ambiguous concerning compiler
implementation. I think #pragma pack should work out the padding issue
but I'm not sure if the floating point issue is solvable.
I don't have an idea for solving that one...
On Sun, Oct 18, 2009 at 11:14 PM, Erik Max Francis wrote:
> Yu
On Mon, 19 Oct 2009 00:30:30 -0700, dheeraj wrote:
> Hi, a program of mine is being terminated by the OS as it uses too much
> memory. I guess this is due to static memory allocation
>
> I've also tried to use "del" but in vain. Is there any other function
> that performs the above operation and
Gabriel Genellina wrote:
but the new str.format() originally suggested by Dave Angel is better:
s = "{0:03.02f}% done".format(100.0-100.0*(size/tot))
(BTW, why 03.02f? The output will always have at least 4 chars, so 03
doesn't mean anything... Maybe you want {0:06.2f} (three places before
Paul Rubin:
> If you want to peel off digits from an int one by one without string
> conversions, it's easiest to do that in reverse order:
>
> n = 961
> digits = []
> while n > 0:
> n,d = divmod(n, 10)
> digits.append(d)
>
> Look up the docs for "divmod" for an explanation of that h
flebber a écrit :
Hi
I have been searching through the vast array of python frameworks
http://wiki.python.org/moin/WebFrameworks and its quite astounding the
choice available.
I am looking at using a web framework for my personal project which
isn't actually aimed at developing a website as suc
juno
http://github.com/breily/juno
it's very easy, uses sqlalchemy as ORM and jinja2 (others can be used
if you want) for templates.
On Mon, Oct 19, 2009 at 10:24 AM, Bruno Desthuilliers
wrote:
> flebber a écrit :
>>
>> Hi
>>
>> I have been searching through the vast array of python frameworks
>
Sebastian Bassi, this is an piece from the #5:
ProtSeq = raw_input("Protein sequence: ").upper()
ProtDeg = {"A":4,"C":2,"D":2,"E":2,"F":2,"G":4,"H":2,
"I":3,"K":2,"L":6,"M":1,"N":2,"P":4,"Q":2,
"R":6,"S":6,"T":4,"V":4,"W":1,"Y":2}
SegsValues = []
for aa in range(len(ProtSeq))
Yuvgoog Greenle wrote:
Ok I see your point that C is ambiguous concerning compiler
implementation. I think #pragma pack should work out the padding issue
but I'm not sure if the floating point issue is solvable.
I don't have an idea for solving that one...
#pragma is implementation defined and
> David <71da...@libero.it> (D) wrote:
>D> Il Sat, 17 Oct 2009 23:43:36 -0700 (PDT), StarWing ha scritto:
>>> I got a idea, use a try...except statement. there are another way to
>>> do it ?
>>>
>>> (I just curious now, because I solve my problem in another way :-)
>D> locals().has_key(mynam
Carl Banks wrote:
Consider this thought experiment:
class Something(object):
def __radd__(self,other):
return other + "q"
x = ["a","b","c",Something()]
If x were passed to "".join(), it would throw an exception; but if
passed to a sum() without any special casing, it would successf
2009/10/18 Steven D'Aprano :
> That confuses me. If I call:
>
> y = mydict[x]
>
> how does my knowledge of what to do if x is not a key relate to whether
> the language raises an exception, returns an error code, dumps core, or
> prints "He's not the Messiah, he's a very naughty boy" to stderr?
>
On Oct 19, 3:24 am, Tim Chase wrote:
> Carl Banks wrote:
> > Consider this thought experiment:
>
> > class Something(object):
> > def __radd__(self,other):
> > return other + "q"
>
> > x = ["a","b","c",Something()]
>
> > If x were passed to "".join(), it would throw an exception; but i
Hi
I thought that file objects were supposed to be garbage-collected and
automatically closed once they go out of scope, at least that's what
I've been told by more merited Python programmers. I'm also quite sure
that this is quite a common assumption in various programs, at least
given what opens
On Oct 19, 7:40 pm, Javier Santana wrote:
> junohttp://github.com/breily/juno
>
> it's very easy, uses sqlalchemy as ORM and jinja2 (others can be used
> if you want) for templates.
>
> On Mon, Oct 19, 2009 at 10:24 AM, Bruno Desthuilliers
>
> wrote:
> > flebber a écrit :
>
> >> Hi
>
> >> I have
hello all,
i am relatively new to python and i am trying to convert a php app i
have over to it using googleapps.
anyway here is the problem. i poll ebay API which has in its XML "http://www.ebay.com/marketplace/search/v1/services";> "
however it fails to create the string UNLESS i remove
khany wrote:
> hello all,
>
> i am relatively new to python and i am trying to convert a php app i
> have over to it using googleapps.
>
> anyway here is the problem. i poll ebay API which has in its XML " xml version="1.0" encoding="utf-8"?> xmlns="http://www.ebay.com/marketplace/search/v1/serv
On Mon, Oct 19, 2009 at 05:44 -0700, khany wrote:
> i am relatively new to python and i am trying to convert a php app i
> have over to it using googleapps.
Welcome!
> anyway here is the problem. i poll ebay API which has in its XML " xml version="1.0" encoding="utf-8"?> xmlns="http://www.ebay.co
On Oct 19, 10:51 pm, flebber wrote:
> On Oct 19, 7:40 pm, Javier Santana wrote:
>
>
>
> > junohttp://github.com/breily/juno
>
> > it's very easy, uses sqlalchemy as ORM and jinja2 (others can be used
> > if you want) for templates.
>
> > On Mon, Oct 19, 2009 at 10:24 AM, Bruno Desthuilliers
>
> >
On 19 Oct, 13:44, khany wrote:
> hello all,
>
> i am relatively new to python and i am trying to convert a php app i
> have over to it using googleapps.
>
> anyway here is the problem. i poll ebay API which has in its XML " xml version="1.0" encoding="utf-8"?> xmlns="http://www.ebay.com/marketplac
On Oct 19, 9:15 pm, khany wrote:
> On 19 Oct, 13:44, khany wrote:
>
> > hello all,
>
> > i am relatively new to python and i am trying to convert a php app i
> > have over to it using googleapps.
>
> > anyway here is the problem. i poll ebay API which has in its XML " > xml version="1.0" encoding
arve.knud...@gmail.com wrote:
Hi
I thought that file objects were supposed to be garbage-collected and
automatically closed once they go out of scope, at least that's what
I've been told by more merited Python programmers. I'm also quite sure
that this is quite a common assumption in various pro
Diez B. Roggisch wrote:
I don't read that out of the post, and it almost certainly is wrong, at
least on a general level. There isn't much above SQLAlchemy regarding
flexibility & power, so while simple cases might be simpler with other
ORMs, they often make more complicated ones impossible.
Bu
On 19 Oct, 14:44, StarWing wrote:
> On Oct 19, 9:15 pm, khany wrote:
>
>
>
>
>
> > On 19 Oct, 13:44, khany wrote:
>
> > > hello all,
>
> > > i am relatively new to python and i am trying to convert a php app i
> > > have over to it using googleapps.
>
> > > anyway here is the problem. i poll eba
On 17.10.09 08:28, Mark Tolonen wrote:
>
> "Kee Nethery" wrote in message
> news:aaab63c6-6e44-4c07-b119-972d4f49e...@kagi.com...
>>
>> On Oct 16, 2009, at 5:49 PM, Stephen Hansen wrote:
>>
>>> On Fri, Oct 16, 2009 at 5:07 PM, Stef Mientki
>>> wrote:
>>
>> snip
>>
>>> The thing is, I'd be VERY
On Oct 20, 12:32 am, "Diez B. Roggisch" wrote:
> > web2py is interesting the author appears to be implying(I could be
> > misunderstanding this) that the web2py db ORM is equal to if not
> > superior to SQLAlchemy - From
> >http://www.web2py.com/AlterEgo/default/show/150
>
> I don't read that out
On 2009-10-19, arve.knud...@gmail.com wrote:
> I thought that file objects were supposed to be
> garbage-collected and automatically closed once they go out of
> scope,
At some point after they go out of scope, they will be.
Eventually. Exactly when is an implementation detail.
> at least that
Dear Users,
=
?? I would like to announce libmsgque 3.6 and PLMK 1.1
?? libmsgque is an infrastructure to write programming language
?? independent software using the :
?? ?? > Programming Language Micro Kernel
?? architecture. Never was it so easy to write an application server
?? by
Folks,
approximate medians -- would you settle for 49 - 51 % ? --
open up new possibilities, and there's quite a lot of work on that,
for huuuge datasets.
A class of problems:
from a data stream X1 X2 ... you want, every so often,
a histogram / quantile summary / distribution estimator such tha
On Mon, Oct 19, 2009 at 2:25 AM, Tim Roberts wrote:
> You wrote:
>>
>>For the love of baby kittens, please, please, please tell me that
>>you do not believe this securely encrypts your data.
>
> The original poster asked to have two C++ functions converted to Python.
> That's what I did, using t
En Mon, 19 Oct 2009 05:44:14 -0200, 星星
escribió:
my email smtp server hostname can be parsed to 5 ips, for example:
**
my email smtp server hostname: email-my.local.com
ips through dns parse:
1.1.1.1
1.
khany wrote:
On 19 Oct, 14:44, StarWing wrote:
On Oct 19, 9:15 pm, khany wrote:
On 19 Oct, 13:44, khany wrote:
however it fails to create the string UNLESS i remove the colon (:) in
the http section. i tried to substitute it with chr(58) but it errors
the same
Dave Angel wrote:
It was intended to be understood, not copied.
+1 QOTW
--
http://mail.python.org/mailman/listinfo/python-list
On Oct 18, 5:56 pm, Gary Herron wrote:
> Benjamin Middaugh wrote:
> > Thanks to everyone who helped with my query on reversing integers. I
> > have one more simple problem I'm having trouble solving. I want to
> > check a number for palindromic behavior (reading the same backwards
> > and forwards
Steven D'Aprano wrote:
On Mon, 19 Oct 2009 00:30:30 -0700, dheeraj wrote:
Hi, a program of mine is being terminated by the OS as it uses too much
memory. I guess this is due to static memory allocation
I've also tried to use "del" but in vain. Is there any other function
that performs the abov
En Mon, 19 Oct 2009 09:45:49 -0200, arve.knud...@gmail.com
escribió:
I thought that file objects were supposed to be garbage-collected and
automatically closed once they go out of scope, at least that's what
I've been told by more merited Python programmers.
An object (any object) is destro
Hello,
Just to clarify. I did not make any statement about "web2py is
superior to SQLAlchemy" since that is somewhat subjective.
SQLALchemy for example does a much better job at accessing legacy
databases. web2py is more limited in that respect and we are working
on removing those limitatio
Anyone have python 3.1.1 installed on Solaris 10 ? (sparc or x86)
I've tried several times on sparc, I keep getting:
gcc -lintl -o python \
Modules/python.o \
libpython3.1.a -lsocket -lnsl -lintl -lrt -ldl -lm
Undefined first referenced
symbol in file
libintl_bind_textdomain_codeset libpython3.1
Can somebody clear this up for me?
--
Class B(A): def __init__(self, a) A.__init__(a) self.a = a a = A() ba = B(a)
bc = B(a) bd = B(a) -- I'm not sure what A.__init__ here does. I would
think its __init__ is designed specifically to run once for any given
object.. so i'm not sure what happ
"Mark Tolonen" said :
> Yes, welcome to Microsoft's solution to DLL Hell...Side-by-Side DLL
> Hell.
As always, it boils down to a philosophical choice : is it better to suffer
through Hell alone, or in bad company ? :-)
--
http://mail.python.org/mailman/listinfo/python-list
I'm a python n00b and so pardon me in advance if this is really stupid
question.
I have my suspicions but why does the following not work the way I'm
anticipating it will?
(python 2.4.4)
>>> import os
>>> if (os.system('echo test')):
...print 'success'
... else:
...print 'failed'
...
tes
Bryan Irvine wrote:
I'm a python n00b and so pardon me in advance if this is really stupid
question.
I have my suspicions but why does the following not work the way I'm
anticipating it will?
(python 2.4.4)
import os
if (os.system('echo test')):
...print 'success'
... else:
...prin
On Mon, Oct 19, 2009 at 11:14 AM, Bryan Irvine wrote:
> I'm a python n00b and so pardon me in advance if this is really stupid
> question.
>
> I have my suspicions but why does the following not work the way I'm
> anticipating it will?
>
> (python 2.4.4)
>
import os
if (os.system('echo
On Mon, Oct 19, 2009 at 1:55 PM, inhahe wrote:
>
>
> On Sat, Oct 10, 2009 at 6:34 PM, Mensanator wrote:
>
>> On Oct 10, 5:02�pm, kj wrote:
>> > In <01ccc46d-5ea9-4dfe-ba22-699c6b859...@v36g2000yqv.googlegroups.com>
>> Mensanator writes:
>> >
>> > In fact, if it were up to me, I would have made
On Oct 18, 11:54 pm, alex23 wrote:
> ru...@yahoo.com wrote:
>> One, it was suggested without any evidence the the OP was
>> "probably" asking about homework. My observation over
>> several years is that this group has a very poor record
>> of identifying homework problems. And if someone can
>>
gslindstrom wrote:
On Oct 18, 5:56 pm, Gary Herron wrote:
Benjamin Middaugh wrote:
Thanks to everyone who helped with my query on reversing integers. I
have one more simple problem I'm having trouble solving. I want to
check a number for palindromic behavior (reading the same backwards
and f
Hi;
Now that we know for sure that my code isn't to blame for not being able to
download/access images from MySQL I have contacted my hosting service to see
if they will do anything about it. Presuming they won't, I need to find a
work-around.
What I am looking for is a way to upload data into MyS
The official elementtree docs:
http://docs.python.org/library/xml.etree.elementtree.html
do not appear to contain examples for each object, interface or
function. Where would I find examples that use each elementtree
function, interface and object?
I assume there is some kind of regression
Yeah, I know, but if I use CGI then I have to pass variables in the URL, and
I was trying to avoid that.
Thanks,
V
On Mon, Oct 19, 2009 at 12:50 PM, geremy condra wrote:
> On Mon, Oct 19, 2009 at 11:41 AM, Victor Subervi
> wrote:
> > Hey, that's great! Can do it in python? Fantastic! How? How d
On Mon, 19 Oct 2009 11:51:04 -0700, Victor Subervi
wrote:
What I am looking for is a way to upload data into MySQL *and*
simultaneously, in the same form (to make it easy for the user), ftp
images
into a directory.
Could you let us know why you want to do this -- what you're trying to
On Mon, Oct 19, 2009 at 2:14 PM, Bryan Irvine wrote:
> I'm a python n00b and so pardon me in advance if this is really stupid
> question.
>
> I have my suspicions but why does the following not work the way I'm
> anticipating it will?
>
> (python 2.4.4)
>
import os
if (os.system('echo t
Kee Nethery writes:
> do not appear to contain examples for each object, interface or
> function. Where would I find examples that use each elementtree
> function, interface and object?
effbot.org has a few.
--
http://mail.python.org/mailman/listinfo/python-list
A trivial one, this is the first time I have to deal with Unicode. I am
trying to parse a string s='''48° 13' 16.80" N'''. I know the charset is
"iso-8859-1". To get the degrees I did
>>> encoding='iso-8859-1'
>>> q=s.decode(encoding)
>>> q.split()
[u'48\xc2\xb0', u"13'", u'16.80"', u'N']
>>> r=
On Oct 14, 5:59 pm, Jorgen Grahn wrote:
> But this sentence on the home page
>
> The documentation is sadly outdated, but may be
> a starting point:
>
> made me stop looking. As far as I can tell, you cannot even find out
> what's so advanced about it (or why "advanced" is a good thing)
>
Summary:
It is not straightforward to avoid memory leaks/consumption in pylab.
If we define
x = arange(1e6) # adjust size to make the increment visible, yet
fast enough to plot
# then repetition of
plot(x,hold=0) # consumes increasing memory according to ubuntu
system monitor
Details:
#vers
Mark Tolonen wrote:
"Samir aluko...@work" wrote in message
news:ab6475d0-133c-478d-8f08-eafea0733...@j39g2000yqh.googlegroups.com...
I am making a simple program in Croatian. In the beginning I set "# -
*- coding: cp1250 -*-" code and when i run it in Python shell it comes
out fine, but when
Mark Tolonen wrote:
"Samir aluko...@work" wrote in message
news:ab6475d0-133c-478d-8f08-eafea0733...@j39g2000yqh.googlegroups.com...
I am making a simple program in Croatian. In the beginning I set "# -
*- coding: cp1250 -*-" code and when i run it in Python shell it comes
out fine, but when
George Trojan schrieb:
A trivial one, this is the first time I have to deal with Unicode. I am
trying to parse a string s='''48° 13' 16.80" N'''. I know the charset is
"iso-8859-1". To get the degrees I did
>>> encoding='iso-8859-1'
>>> q=s.decode(encoding)
>>> q.split()
[u'48\xc2\xb0', u"13
In article ,
John O'Hagan wrote:
>
>I'm getting input for a program while it's running by using raw_input in a
>loop in separate thread. This works except for the inconvenience of not having
>a command history or the use of backspace etc.
>
>That can be solved by loading the readline module; ho
On 19 Okt, 21:07, George Trojan wrote:
> A trivial one, this is the first time I have to deal with Unicode. I am
> trying to parse a string s='''48° 13' 16.80" N'''. I know the charset is
> "iso-8859-1". To get the degrees I did
> >>> encoding='iso-8859-1'
> >>> q=s.decode(encoding)
> >>> q.spl
On Oct 19, 2009, at 12:06 PM, Paul Rubin wrote:
Kee Nethery writes:
do not appear to contain examples for each object, interface or
function. Where would I find examples that use each elementtree
function, interface and object?
effbot.org has a few.
yes I agree it has a few. It's not anyw
inhahe wrote:
Can somebody clear this up for me?
--
Class B(A): def __init__(self, a) A.__init__(a) self.a = a a = A() ba = B(a)
bc = B(a) bd = B(a) -- I'm not sure what A.__init__ here does. I would
think its __init__ is designed specifically to run once for any given
object.. so i'm no
Of course.
1) I need to upload data: images and other fields (mainly varchar, int).
2) I want to upload the "other fields" to a MySQL database.
3) Since it is so problematic, I now want to upload the images to
*anything but* a MySQL database (presumably ftp)
4) I want to make this easy (tra
On Oct 19, 12:41 pm, Ethan Furman wrote:
> gslindstrom wrote:
> > On Oct 18, 5:56 pm, Gary Herron wrote:
>
> >>Benjamin Middaugh wrote:
>
> >>>Thanks to everyone who helped with my query on reversing integers. I
> >>>have one more simple problem I'm having trouble solving. I want to
> >>>check a
On 2009-10-19 14:50 PM, Kee Nethery wrote:
Am looking for that level of documentation for each function, interface
and object listed in the official docs for elementtree.
Does it exist?
No.
--
Robert Kern
"I have come to believe that the whole world is an enigma, a harmless enigma
that is
On Mon, 19 Oct 2009 12:56:19 -0700, Victor Subervi
wrote:
Of course.
1) I need to upload data: images and other fields (mainly varchar, int).
2) I want to upload the "other fields" to a MySQL database.
3) Since it is so problematic, I now want to upload the images to
*anything but* a
ru...@yahoo.com wrote:
On Oct 19, 12:41 pm, Ethan Furman wrote:
gslindstrom wrote:
On Oct 18, 5:56 pm, Gary Herron wrote:
Benjamin Middaugh wrote:
Thanks to everyone who helped with my query on reversing integers. I
have one more simple problem I'm having trouble solving. I want to
ch
Victor Subervi wrote:
> It doesn't work. What I want is to capture winX and winY and use them in
> python. How?
Since you're still not heeding the advice from this article, please
allow me to refer you to it again:
http://catb.org/~esr/faqs/smart-questions.html
--
Carsten Haese
http://informixdb.
> wrote in message
>news:63dea9e7-97af-4b20-aa0a-c762d9944...@a21g2000yqc.googlegroups.com...
>On Oct 18, 4:20 pm, MRAB wrote:
>> Benjamin Middaugh wrote:
>> > Thanks to everyone who helped with my query on reversing integers. I
>> > have one more simple problem I'm having trouble solving. I want
Hello-
I'm trying to find out if there is a way to share a sqlite database
connection between python and an extension module written in C or C+
+.
My setup is that I have some pretty intensive OpenGL rendering code
that gets its values from a largish sqlite database, performs a fair
bit of computat
On Sun, 18 Oct 2009 23:04:36 -0700 (PDT),
alex23 wrote:
> On Oct 19, 3:53 pm, Jabba Laci wrote:
>> Would someone explain how str[::-1] work? I'm new to Python and I only
>> saw so far the str[begin:end] notation. What is the second colon?
>
> Slice notation is of the form [start:stop:step
Can you give me an example of this?
V
On Mon, Oct 19, 2009 at 4:03 PM, Rami Chowdhury wrote:
> On Mon, 19 Oct 2009 12:56:19 -0700, Victor Subervi <
> victorsube...@gmail.com> wrote:
>
> Of course.
>> 1) I need to upload data: images and other fields (mainly varchar, int).
>> 2) I want to upload
On Oct 18, 4:56 pm, Gary Herron wrote:
> Benjamin Middaugh wrote:
> > Thanks to everyone who helped with my query on reversing integers. I
> > have one more simple problem I'm having trouble solving. I want to
> > check a number for palindromic behavior (reading the same backwards
> > and forwards
> Django : very strong integration, excellent documentation and support,
> huge community, really easy to get started with. And possibly a bit more
> mature and stable...
One strong point in favour of Django: it follows Python's philosophy of
"batteries included", and features a large array of pl
On Mon, 19 Oct 2009 14:20:38 -0700, Victor Subervi
wrote:
Can you give me an example of this?
V
An example of an online upload form? Sure -- Gmail's "Basic HTML"
interface for attachments is a good example. I'd advise doing a web search
or two for HTTP file uploads, multipart forms, and
Hi,
I wanted to use smtplib to send a bunch of files. All good, except I
cant monitor the upload progress as far as I can see.
So I monkey patched the SMTP.sendall method, which chops up the data
and keeps calling a provided callback for every chunk of data sent.
This feels kind of dirty and I w
Following closely on the heels of the whole sum()ing strings debate, I
think I found an error -- at least, it's not documented to behave this
way...
def uncompress_job(job_num,
save_path='z:\\old_jobs',
restore_path='z:\\orders'):
destination = os.path.
Ethan Furman wrote:
Following closely on the heels of the whole sum()ing strings debate, I
think I found an error -- at least, it's not documented to behave this
way...
def uncompress_job(job_num,
save_path='z:\\old_jobs',
restore_path='z:\\orders'):
d
> >def is_palidrome (n):
> > return str(n) == ''.join (reversed (str(n)))
>
> >which will return True if integer n is a palidromic or False
> >otherwise.
>
> I wouldn't normally provide a direct solution to this type of request; but
> since you have, may I suggest:
>
> def is_palindrome (n):
>
On Oct 19, 2009, at 1:02 PM, Robert Kern wrote:
On 2009-10-19 14:50 PM, Kee Nethery wrote:
Am looking for that level of documentation for each function,
interface
and object listed in the official docs for elementtree.
Does it exist?
No.
Thank you.
Kee
--
http://mail.python.org/mailma
Hello,
My company is seeking beta testers for a new cloud-computing platform
that is built for the Python programming language. The platform allows
Python developers to leverage the computational power of a cluster of
servers with only a couple lines of code. If you have a need for
distributed com
On Oct 20, 3:31 am, Massimo Di Pierro wrote:
> Hello,
>
> Just to clarify. I did not make any statement about "web2py is
> superior to SQLAlchemy" since that is somewhat subjective.
> SQLALchemy for example does a much better job at accessing legacy
> databases. web2py is more limited in that
Hi everyone,
I was having a go at a simple implementation of Maybe in Python when I
stumbled on a case where x.__mul__(y) is defined while x*y is not.
The class defining x is:
class Maybe(object):
def __init__(self, obj):
self.o = obj
def __repr__(self):
return 'Maybe(%s)
On Oct 15, 4:30 pm, bukzor wrote:
> On Oct 13, 3:20 pm, "Gabriel Genellina"
> wrote:
>
>
>
>
>
> > En Tue, 13 Oct 2009 17:38:44 -0300, Buck escribió:
>
> > > The only way to get your packages on the PYTHONPATH currently is to:
> > > * install the packages to site-packages (I don't have acces
> web2py is interesting the author appears to be implying(I could be
> misunderstanding this) that the web2py db ORM is equal to if not
> superior to SQLAlchemy - From
> http://www.web2py.com/AlterEgo/default/show/150
I don't read that out of the post, and it almost certainly is wrong, at
least o
On Sat, 17 Oct 2009 19:48:46 -0400, geremy condra wrote:
> For the love of baby kittens, please, please, please tell me that you do
> not believe this securely encrypts your data.
Surely that depends on your threat model?
If you think that the NSA is interested in your data, then no, obviously
Muhammad Alkarouri wrote:
Hi everyone,
I was having a go at a simple implementation of Maybe in Python when I
stumbled on a case where x.__mul__(y) is defined while x*y is not.
The class defining x is:
class Maybe(object):
def __init__(self, obj):
self.o = obj
def __repr__(self
En Sun, 18 Oct 2009 21:50:55 -0300, Carl Banks
escribió:
Consider this thought experiment:
class Something(object):
def __radd__(self,other):
return other + "q"
x = ["a","b","c",Something()]
If x were passed to "".join(), it would throw an exception; but if
passed to a sum()
On 10月19日, 下午11时05分, "Gabriel Genellina"
wrote:
> En Mon, 19 Oct 2009 05:44:14 -0200, 星星
> escribió:
>
> > my email smtp server hostname can be parsed to 5 ips, for example:
> > **
> > my email smtp server hostname: e
En Mon, 19 Oct 2009 17:02:44 -0300, Robert Kern
escribió:
On 2009-10-19 14:50 PM, Kee Nethery wrote:
Am looking for that level of documentation for each function, interface
and object listed in the official docs for elementtree.
Does it exist?
No.
Well, not so detailed, but the selftest.
Victor Subervi wrote:
> Can you give me an example of this?
That depends. How much of your client's money are you offering us for
doing your work?
--
Carsten Haese
http://informixdb.sourceforge.net
--
http://mail.python.org/mailman/listinfo/python-list
En Mon, 19 Oct 2009 19:33:50 -0300, Guyon Morée
escribió:
I wanted to use smtplib to send a bunch of files. All good, except I
cant monitor the upload progress as far as I can see.
So I monkey patched the SMTP.sendall method, which chops up the data
and keeps calling a provided callback for
En Mon, 19 Oct 2009 21:31:44 -0300, Muhammad Alkarouri
escribió:
I was having a go at a simple implementation of Maybe in Python when I
stumbled on a case where x.__mul__(y) is defined while x*y is not.
__special__ methods are searched in the type, not in the instance
directly. x*y looks
Muhammad Alkarouri schrieb:
> Traceback (most recent call last):
> File "", line 1, in
> x*7
> TypeError: unsupported operand type(s) for *: 'Maybe' and 'int'
>
> The farthest I can go in this is that I presume that __mul__ (as
> called by operator *) is supposed to be a bound method while
1 - 100 of 113 matches
Mail list logo