unittest.mock.Mock.
  • References/Python/Python/Development Tools

_get_child_mock(**kw) Create the child mocks for attributes and return value. By default child mocks will be the same type as

2025-01-10 15:47:30
db.models.ImageField.width_field
  • References/Python/Django/API/Models/Model field reference

ImageField.width_field Name of a model field which will be auto-populated with the width of the image each time the model instance

2025-01-10 15:47:30
auth.mixins.AccessMixin.raise_exception
  • References/Python/Django/Guides

raise_exception If this attribute is set to True, a PermissionDenied exception will be raised instead

2025-01-10 15:47:30
gis.gdal.Feature.num_fields
  • References/Python/Django/API/GDAL API

num_fields Returns the number of fields of data associated with the feature. This will be the same for all features in a given

2025-01-10 15:47:30
operator.iadd()
  • References/Python/Python/Functional Programming

operator.iadd(a, b) operator.__iadd__(a, b) a = iadd(a, b) is equivalent to a += b.

2025-01-10 15:47:30
telnetlib.Telnet.set_option_negotiation_callback()
  • References/Python/Python/Internet

Telnet.set_option_negotiation_callback(callback) Each time a telnet option is read on the input flow, this callback

2025-01-10 15:47:30
str.rsplit()
  • References/Python/Python/Built-in Types

str.rsplit(sep=None, maxsplit=-1) Return a list of the words in the string, using sep as the delimiter string. If maxsplit

2025-01-10 15:47:30
datetime.time.isoformat()
  • References/Python/Python/Data Types

time.isoformat() Return a string representing the time in ISO 8601 format, HH:MM:SS.mmmmmm or, if self.microsecond is 0, HH:MM:SS

2025-01-10 15:47:30
types.FrameType
  • References/Python/Python/Data Types

types.FrameType The type of frame objects such as found in tb.tb_frame if tb is a traceback object

2025-01-10 15:47:30
email.parser.FeedParser.feed()
  • References/Python/Python/Internet Data

feed(data) Feed the FeedParser some more data. data should be a string containing one or more lines. The

2025-01-10 15:47:30