On Dec 30 2008, 4:30 pm, ibpe...@gmail.com wrote:
> how do i get along with this task of extracting multiples folder and
> generating their names individually in a their respective files as
> they were generated.
Hallo,
I hope, that I interpret your question in the right way.
You can use the follo
Hallo,
> users in this forum has been kind enough to point out. Only my
> implementations are often not that clean, and I may call things
> something different than the normal convention, which is a source of
> confusion for myself and others trying to communicate with me.
I think, you should start
Hello,
I'm a little confused about None in comparison.
>>> id ( None )
3086100672L
>>> id ( 1 )
134541104
>>> None < 1
True
>>>
I thought, the id of the object is the last comparison criterion.
Therefore, None must be greater then 1.
Where is the behaviour of the comparison defined?. In the __cmp
Hallo,
playing with the decorators from PEP 318 I found the elegant singleton
decorator.
def singleton(cls):
instances = {}
def getinstance():
if cls not in instances:
instances[cls] = cls()
return instances[cls]
return getinstance
@singleton
class A: pass
On Mar 19, 11:28 pm, Lee Sander <[EMAIL PROTECTED]> wrote:
> Hi,
> I have a float array ( eg [-1.3, 1.22, 9.2, None, 2.3] ) but there are
> many missing vlaues which are represented as None. I would like to
> remove all such instances in one go.
> There is a remove function but it removes only the
On Jan 6, 11:01 am, Fredrik Lundh <[EMAIL PROTECTED]> wrote:
> [EMAIL PROTECTED] wrote:
> > Interfaces are a extremly smart Design Principle in static typed
> > languages like Java and C++.
>
> that's somewhat questionable in itself, and even more questionable as an
> argument for interfaces in Pyt
On Jan 4, 6:01 pm, Sion Arrowsmith <[EMAIL PROTECTED]>
wrote:
> hyperboreean <[EMAIL PROTECTED]> wrote:
> >Why doesn't python provide interfaces trough its standard library?
>
> Because they're pointless. Java interfaces are a hack around the
> complexities of multiple inheritence. Python does mul
On Jan 4, 6:08 pm, Sion Arrowsmith <[EMAIL PROTECTED]>
wrote:
> Hrvoje Niksic <[EMAIL PROTECTED]> wrote:
>
> >BTW if you're using C++, why not simply use std::set?
>
> Because ... how to be polite about this? No, I can't. std::set is
> crap. The implementation is a sorted sequence -- if you're luc
On Jan 3, 5:43 pm, Matias Surdi <[EMAIL PROTECTED]> wrote:
> Hi,
>
> Could anybody tell me which is the easier way to do a SOAP call to a web
> service wich requires an http header to be present?
>
> I can't figure it out.
>
> Thanks a lot
>
> Some code I'm using:
>
> import SOAPpy
> s =
> SOAPpy.S
Hallo,
could you explaint me the difference between the two following
statements.
Python 2.5 (r25:51908, Oct 7 2006, 23:45:05)
[GCC 3.3.5 20050117 (prerelease) (SUSE Linux)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> (1).__cmp__(10)
-1
>>> 1.__cmp__(10)
On Oct 27, 6:42 am, Karthik Gurusamy <[EMAIL PROTECTED]> wrote:
> On Oct 26, 9:29 pm, Frank Stutzman <[EMAIL PROTECTED]> wrote:
>
>
>
> > My apologies in advance, I'm new to python
>
> > Say, I have a dictionary that looks like this:
>
> >record={'BAT': '14.4', 'USD': '24', 'DIF': '45', 'OAT': '16'
11 matches
Mail list logo