From ef3a83a74e2c5bc519ecffd8681dabfb29820104 Mon Sep 17 00:00:00 2001 From: Dave Halter Date: Sat, 26 Dec 2015 10:41:26 +0100 Subject: [PATCH] Add a link in the finder docstring on how to understand name resolution. --- jedi/evaluate/finder.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/jedi/evaluate/finder.py b/jedi/evaluate/finder.py index 31a76009..63123acc 100644 --- a/jedi/evaluate/finder.py +++ b/jedi/evaluate/finder.py @@ -3,6 +3,9 @@ Searching for names with given scope and name. This is very central in Jedi and Python. The name resolution is quite complicated with descripter, ``__getattribute__``, ``__getattr__``, ``global``, etc. +If you want to understand name resolution, please read the first few chapters +in http://blog.ionelmc.ro/2015/02/09/understanding-python-metaclasses/. + Flow checks +++++++++++ @@ -13,7 +16,7 @@ check for -> a is a string). There's big potential in these checks. """ from itertools import chain -from jedi._compatibility import unicode, u +from jedi._compatibility import unicode from jedi.parser import tree from jedi import debug from jedi import common