Blender Git Commit Log

Git Commits -> Revision 8022bd7

Revision 8022bd7 by Sybren A. Stüvel (master)
May 23, 2019, 08:29 (GMT)
Depsgraph examples: don't assign to names of built-in Python objects

`object` is the superclass of all objects. Old-style code could still be
using `class SomeClass(object)` and assigning something else to `object`
could have unexpected results.

This is now also documented in the
[Python style guide](https://wiki.blender.org/wiki/Style_Guide/Python)
on the wiki.

Differential Revision: https://developer.blender.org/D4922

Reviewed by: sergey

Commit Details:

Full Hash: 8022bd705908a0e0bfd615a4e64d5140f326a8d1
Parent Commit: 58c4b10
Lines Changed: +20, -20

5 Modified Paths:

/doc/python_api/examples/bpy.types.Depsgraph.1.py (+3, -3) (Diff)
/doc/python_api/examples/bpy.types.Depsgraph.2.py (+4, -4) (Diff)
/doc/python_api/examples/bpy.types.Depsgraph.3.py (+3, -3) (Diff)
/doc/python_api/examples/bpy.types.Depsgraph.4.py (+6, -6) (Diff)
/doc/python_api/examples/bpy.types.Depsgraph.5.py (+4, -4) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021