En Tue, 20 Oct 2009 00:59:12 -0300, Mick Krippendorf
escribió:
Gabriel Genellina schrieb:
__special__ methods are searched in the type, not in the instance
directly. x*y looks for type(x).__mul__ (among other things)
So I thought too, but:
class meta(type):
def __mul__(*args):
On Tue, Oct 20, 2009 at 2:06 AM, Robert Kern wrote:
> Steven D'Aprano wrote:
>>
>> 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
On Oct 19, 5:56 pm, "Gabriel Genellina"
wrote:
> 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
On Oct 19, 4:14 pm, Grant Edwards wrote:
> 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. Ex
On Oct 19, 3:48 pm, Ethan Furman wrote:
> 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
Steven D'Aprano wrote:
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?
Well, let's let the OP off the hook immediately. H
i am brand new to the python and programming world just finished
reading byte out of python which is an excellent book. As i am new to
the programming world im kind of at a lose as to where to go from
here? i am just learning so im not as experienced as most of you but i
would like to get my feet w
For me, it's more a question of clarity than anything else. I don't
like very much using break, continue or more than one return per
function on C/C++, but sometimes it's much clearer to use them.
Also, in Python I use them often, as usually the code is cleaner this
way.
for example, I will wrote
Sean DiZazzo wrote:
>
>I'm trying to connect to an ftp site from a windows machine with two
>nics going to two different networks, but I keep getting the below
>exception:
>
>Traceback (most recent call last):
> File "ftp.pyo", line 70, in connect
> File "ftp.pyo", line 17, in __init__
> File "
Sean DiZazzo writes:
> On Oct 16, 4:51 pm, Sean DiZazzo wrote:
>> Hi all,
>>
>> I'm trying to connect to an ftp site from a windows machine with two
>> nics going to two different networks, but I keep getting the below
>> exception:
>>
>> Traceback (most recent call last):
>> File "ftp.pyo", l
"George Trojan" wrote in message
news:hbidd7$i9...@news.nems.noaa.gov...
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
"George Trojan" wrote in message
news:hbidd7$i9...@news.nems.noaa.gov...
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
Gabriel Genellina schrieb:
> __special__ methods are searched in the type, not in the instance
> directly. x*y looks for type(x).__mul__ (among other things)
So I thought too, but:
class meta(type):
def __mul__(*args):
return 123
class boo(object):
__metaclass__ = meta
print boo
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
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
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
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 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.
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 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()
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
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
> 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 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
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 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
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 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
> >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):
>
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
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.
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
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
> 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 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
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 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
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
> 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
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.
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
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
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 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
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
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
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
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
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
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
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
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
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)
>
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=
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
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
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
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
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
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
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
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
>>
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 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
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
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
"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
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
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
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
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
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
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
Dave Angel wrote:
It was intended to be understood, not copied.
+1 QOTW
--
http://mail.python.org/mailman/listinfo/python-list
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
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.
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
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
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
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
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 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 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
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
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
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
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, 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 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
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
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
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
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, 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
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?
>
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
> 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
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
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))
1 - 100 of 113 matches
Mail list logo