You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Treat properties with private setters as read-only from Python
Python assignment to a CLR property resolved the setter with nonPublic: true,
so a property declared { get; private set; } was silently writable from
Python: the read-only guard in tp_descr_set never fired and reflection
invoked the private setter, mutating state the class never exposed.
Align property setter binding with the accessibility policy in
ClassManager.ShouldBindMethod (public, protected, protected internal):
CacheAccessors now discards a resolved setter that fails that check, so
assignment raises TypeError 'property is read-only'. Protected setters
remain writable from Python subclasses.
0 commit comments