summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorVinay Sajip <vinay_sajip@yahoo.co.uk>2020-02-14 22:02:13 (GMT)
committerGitHub <noreply@github.com>2020-02-14 22:02:13 (GMT)
commit1ed61617a4a6632905ad6a0b440cd2cafb8b6414 (patch)
treebfe15c8f526f05a0c214d409bb94e64e750442a4 /Misc
parent9aeb0ef9309384099e2f23bcee2240fbc096568e (diff)
downloadcpython-1ed61617a4a6632905ad6a0b440cd2cafb8b6414.zip
cpython-1ed61617a4a6632905ad6a0b440cd2cafb8b6414.tar.gz
cpython-1ed61617a4a6632905ad6a0b440cd2cafb8b6414.tar.bz2
bpo-12915: Add pkgutil.resolve_name (GH-18310)
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/Library/2020-02-02-10-08-25.bpo-12915.d6r50-.rst4
1 files changed, 4 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2020-02-02-10-08-25.bpo-12915.d6r50-.rst b/Misc/NEWS.d/next/Library/2020-02-02-10-08-25.bpo-12915.d6r50-.rst
new file mode 100644
index 0000000..90ee0bc
--- /dev/null
+++ b/Misc/NEWS.d/next/Library/2020-02-02-10-08-25.bpo-12915.d6r50-.rst
@@ -0,0 +1,4 @@
+A new function ``resolve_name`` has been added to the ``pkgutil`` module.
+This resolves a string of the form ``'a.b.c.d'`` or ``'a.b:c.d'`` to an
+object. In the example, ``a.b`` is a package/module and ``c.d`` is an object
+within that package/module reached via recursive attribute access.