[New-bugs-announce] [issue38370] An array as attribute of an object is shared between instances
plugin nieulq
report at bugs.python.org
Fri Oct 4 07:47:21 EDT 2019
New submission from plugin nieulq <plu9in at gmail.com>:
I am using this version on Windows :
Python 3.7.4 (tags/v3.7.4:e09359112e, Jul 8 2019, 20:34:20) [MSC v.1916 64 bit (AMD64)].
When an attribute of an object is an array, the array is shared between instances as shown in my example.
When executed, the output generated by the script is:
Value1
Value2
Value3
Value4
--------------------------------
Value1
Value2
Value3
Value4
It should be :
Value1
Value2
--------------------------------
Value3
Value4
----------
components: Windows
messages: 353928
nosy: paul.moore, plugin nieulq, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: An array as attribute of an object is shared between instances
type: behavior
versions: Python 3.7
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue38370>
_______________________________________
More information about the New-bugs-announce
mailing list