Seems like the expected behavior to me. pntOld= shap.Point(0) creates no copy of point, you reference internally stored point. In the second case you assign values to your own point instance which is correct way to go for your scenario. Also when Shapefile.FastMode is set to true, shape.Point(0) will create a new instance on each call, so there won't be this first behavior.
↧