"RonnyM" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> e.g. y = [ 1, 2, 3, 4, 5, 6 ,7 ,8, 9 ]
> ybar = [ 1, (1 + 3)*.5,(2 + 4)*.5,(3 + 5)*.5,..., (n-1 + n+1)*.5 ], n =
> 1,...len(y) -1
> How do I make a vectorized version of this, I will prefer not to
> utilize Map or similar funct
"Diez B. Roggisch" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> it's considered bad style to use range if all you want is a
> enumeration of indices, as it will actually create a list of the size you
> specified. Use xrange in such cases.
I'm pretty sure this distinction goes away
"John Salerno" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Is there a way to assign multiple variables to the same value, but so
> that an identity test still evaluates to False?
Make sure the value is not a singleton.
Assign them one at a time.
>>> w=1000
>>> x=1000
>>> w==x
Tr
> Andy Sy wrote:
> >Don't be evil - always configure your editor to
> >convert tabs to true spaces.
"achates" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Yet another space-indenter demonstrates that problem actually lies with
> people who think that tab == some spaces.
Exactl
1. "Without a __dict__ variable,
instances cannot be assigned new variables not listed in the __slots__
definition."
So this seemed an interesting restriction to impose in some instances,
but I've noticed that this behavior is being called by some a side effect
the reliance on which is considered
"Ziga Seilnacht" <[EMAIL PROTECTED]> wrote:
> If you want to restrict attribute asignment, you should use the
> __setattr__ special method, see:
> http://docs.python.org/ref/attribute-access.html
That "should" is what I am asking about. If I understand,
in the simplest case, you want me to say so
"Aahz" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Because __slots__ breaks with inheritance.
I believe that was the point of Ziga's example,
which I acknowledged as a good one in my reply.
So there still appears to be this single reason, which
applies if your class may be subcla
"Ziga Seilnacht" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> >>> a = 1
> >>> b = 1
> >>> a == b
> True
> >>> a is b
> False
Two follow up questions:
1. I wondered about your example,
and noticed
>>> a = 10
>>> b = 10
>>> a is b
True
Why the difference?
2. If I really w
Alan asked:
> > 2. If I really want a value True will I ever go astray with the test:
> > if a is True:
> > >>> a = True
> > >>> b = 1.
> > >>> c = 1
> > >>> a is True, b is True, c is True
> > (True, False, False)
"Ziga Seilnacht" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I th
Should I be able to access mail messages in Mahogany mail's mbx
format using the Python mailbox module? If so, can someone
please post a working example? If not, can you please
point me to documentation of the file format or better yet
Python code to parse it?
Thanks,
Alan Isaac
--
http://
"Alan Isaac" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Should I be able to access mail messages in Mahogany mail's mbx
> format using the Python mailbox module? If so, can someone
> please post a working example? If not, can you please
> point me to documentation of the file for
Donn Cave, [EMAIL PROTECTED]
> I suppose it isn't supported by the mailbox module basically because
> it isn't all that commonly encountered. It may be more common on mail
> servers, but there it's email net protocol data, POP or IMAP. If
> Mahogany has been using this format for `local' folders
"Ralph H. Stoos Jr." <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> HELP PLEASE: What is wrong with this?File "autotp.py", line 21
> ready = raw_input("Ready to proceed ? TYPE (y)es or (n)o: ")
> ^
Probably the parenthesis you forgot to close on the preceding line ...
C
101 - 113 of 113 matches
Mail list logo