pylint-bot / test

0 stars 0 forks source link

Understand assignment and modifications to __dict__ #130

Open pylint-bot opened 9 years ago

pylint-bot commented 9 years ago

Originally reported by: Claudiu Popa (BitBucket: PCManticore, GitHub: @PCManticore?)


We could understand these cases:

#!python

self.__dict__ = some_dict # the members of the class are the values from the dictionary
self.__dict__[key] = something # instance.key should return something

pylint-bot commented 8 years ago

Original comment by BitBucket: ceridwenv, GitHub: @ceridwen?:


Along the same lines, it would be nice if vars, object.__get__, and similar ways to circumvent the usual assignment/access procedures were handled. I use these patterns quite often when building certain kinds of immutable objects.

pylint-bot commented 8 years ago

Original comment by Claudiu Popa (BitBucket: PCManticore, GitHub: @PCManticore?):


Right, I was planning to support vars as well, while understanding descriptors will be pretty hard at first, I guess. Anyway, it will take some time before starting to implement this.