diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-01-04 07:22:37 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-01-04 07:22:37 +0400 |
commit | 9a0bf1ffa41c9fc3193c975e1f99282837d41e67 (patch) | |
tree | e6dcb5008c58e976bf806739132a967554d0428a /doc/python_api/rst/info_best_practice.rst | |
parent | 3b8404ac53af970559ec9224d76da0d7a06f084d (diff) |
Correct use of your vs you're in py api docs
Diffstat (limited to 'doc/python_api/rst/info_best_practice.rst')
-rw-r--r-- | doc/python_api/rst/info_best_practice.rst | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/doc/python_api/rst/info_best_practice.rst b/doc/python_api/rst/info_best_practice.rst index f4daed9ad9f..9e310711bf3 100644 --- a/doc/python_api/rst/info_best_practice.rst +++ b/doc/python_api/rst/info_best_practice.rst @@ -2,9 +2,9 @@ Best Practice ************* -When writing you're own scripts python is great for new developers to pick up and become productive, but you can also pick up odd habits or at least write scripts that are not easy for others to understand. +When writing your own scripts python is great for new developers to pick up and become productive, but you can also pick up odd habits or at least write scripts that are not easy for others to understand. -For you're own work this is of course fine, but if you want to collaborate with others or have you're work included with blender there are practices we encourage. +For your own work this is of course fine, but if you want to collaborate with others or have your work included with blender there are practices we encourage. Style Conventions @@ -244,7 +244,7 @@ Use ``float(string)`` rather than ``eval(string)``, if you know the value will b Checking String Start/End ^^^^^^^^^^^^^^^^^^^^^^^^^ -If your checking the start of a string for a keyword, rather than... +If you're checking the start of a string for a keyword, rather than... >>> if line[0:5] == "vert ": ... @@ -279,8 +279,8 @@ Python has two ways to compare values ``a == b`` and ``a is b``, The difference In cases where you know you are checking for the same value which is referenced from multiple places, ``is`` is faster. -Time You're Code ----------------- +Time Your Code +-------------- While developing a script its good to time it to be aware of any changes in performance, this can be done simply. |