Re: Looking for assignement operator

2006-10-18 Thread Tommi
Could the "traits" package be of help?

http://code.enthought.com/traits/



Alexander Eisenhuth wrote:
> Hello,
>
> is there a assignement operator, that i can overwrite?
>
> class MyInt:
>   def __init__(self, val):
>   assert(isinstance(val, int))
>   self._val = val
>
> a = MyInt(10)
>
> # Here i need to overwrite the assignement operator
> a = 12
> 
> 
> Thanks
> Alexander

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Looking for assignement operator

2006-10-20 Thread Tommi

Bruno Desthuilliers wrote:

> (please don't top-post - corrected)

(sorry)


> How could it help ?

To me they just looked a bit alike:

--- op's example ---
a = MyInt(10)
# Here i need to overwrite the assignement operator
a = 12

--- traits' example ---
moe = Child()
# NOTIFICATION in action
moe.age = 10

-- 
http://mail.python.org/mailman/listinfo/python-list


RE: Installing Python 3.2.3 on Win 7

2012-08-16 Thread Tommi Helander
Hi Johan,

-Are you trying to install 32 or 64-bit Python?
-Is your Win7 32 or 64-bits?
-Have you tried running the Python installer from the command line to see if it 
generates any helpful output?

-Tommi Helander

> Date: Thu, 16 Aug 2012 09:17:43 +0200
> Subject: Installing Python 3.2.3 on Win 7
> From: jo...@jvz.co.za
> To: python-list@python.org
> 
> Hi
> 
> I installed Python 3.2.3 successfully on my work laptop (XP) but
> cannot seem to do it on my home PC (Win7)
> I click the button to install and the window just disappears o the screen.
> So how do I in fact install Python 3.2.3 on Win 7?
> 
> -- 
> Johan van Zyl
> PMB - Box 21673, Mayors Walk, 3208
> Pretoria - Box 2667, Brooklyn Square, 0075
> FAX: 086 622 9554
> The answer my friend is blowin in the wind...
> If you forward messages, Please use the BCC area, and Please REMOVE
> all email addresses and all the useless info at the bottom of the
> message, before you send it on. ONLY send out CLEAN and TIDY emails.
> Thank you.
> -- 
> http://mail.python.org/mailman/listinfo/python-list
  -- 
http://mail.python.org/mailman/listinfo/python-list