> are you sure you know how Python's object model work ? if you do, please
> explain your proposal in terms of what needs to be changed, rather than in
> terms of wishful thinking.
No, I do not know. As stated in my first post, I am quite newbie in
Python and miss a simple and intuitive mechanism
Yes, I know that "constant" A will also be modified as the b[0] points
to A. Obviously the [] should be marked as immutable, as A is declared
to be constant thus immutable. If somebody tries to modify this
immutable object an error would occur.
When I further thought about this problem with consta
Bruno Desthuilliers wrote:
> [EMAIL PROTECTED] a écrit :
> > Hi Pythonians,
> >
> > To begin with I'd like to apologize that I am not very experienced
> > Python programmer so please forgive me if the following text does not
> > make any sense.
> >
> > I have been missing constants in Python langua
Hi Pythonians,
To begin with I'd like to apologize that I am not very experienced
Python programmer so please forgive me if the following text does not
make any sense.
I have been missing constants in Python language. There are some
workarounds available, for example the const-module. To me, this