On Thu, May 24, 2018 at 10:39:17PM -0700, Danny Yoo wrote:
> Each value in Python has an associated numeric address associated to it.
No they don't :-)
Each object in Python has an arbitrary numeric ID associated with it.
The Python language has no supported way to get the address of an
object
Each value in Python has an associated numeric address associated to it.
We can probe for it:
https://docs.python.org/3/library/functions.html#id
For example:
#
>>> x = [1, 2, 3]
>>> y = x[:]
>>> id(x)
139718082542336
>>> id(y)
139718082556776
##
On Python-list Steve started a thread, "List replication operator"
(https://mail.python.org/pipermail/python-list/2018-May/733513.html)
and wrote the following:
Python has a sequence replication operator:
py> [1, 2]*3
[1, 2, 1, 2, 1, 2]
Unfortunately, it is prone to a common "gotcha":
py> x =
aishwarya selvaraj wrote:
> Dear all,
> I have created 2 classes in 2 separate files.File 1 named atcore_py.pyx
> with class andorCameraSDK3, and file 2 with name AndorCameraGUI making
> use of TKinter.
> I was able to import andorCameraSDK3 into AndorCameraGUI, but I was not
> able to do the