RestrictedPython 8.2__py3-none-any.whl → 8.3__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- RestrictedPython/transformer.py +3 -0
- {restrictedpython-8.2.dist-info → restrictedpython-8.3.dist-info}/METADATA +19 -2
- {restrictedpython-8.2.dist-info → restrictedpython-8.3.dist-info}/RECORD +6 -6
- {restrictedpython-8.2.dist-info → restrictedpython-8.3.dist-info}/WHEEL +0 -0
- {restrictedpython-8.2.dist-info → restrictedpython-8.3.dist-info}/licenses/LICENSE.txt +0 -0
- {restrictedpython-8.2.dist-info → restrictedpython-8.3.dist-info}/top_level.txt +0 -0
RestrictedPython/transformer.py
CHANGED
|
@@ -387,6 +387,9 @@ class RestrictingNodeTransformer(ast.NodeTransformer):
|
|
|
387
387
|
self.error(node, f'"{name}" is a reserved name.')
|
|
388
388
|
|
|
389
389
|
def check_function_argument_names(self, node):
|
|
390
|
+
for arg in node.args.posonlyargs:
|
|
391
|
+
self.check_name(node, arg.arg)
|
|
392
|
+
|
|
390
393
|
for arg in node.args.args:
|
|
391
394
|
self.check_name(node, arg.arg)
|
|
392
395
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: RestrictedPython
|
|
3
|
-
Version: 8.
|
|
3
|
+
Version: 8.3
|
|
4
4
|
Summary: RestrictedPython is a defined subset of the Python language which allows to provide a program input into a trusted environment.
|
|
5
5
|
Author-email: Zope Foundation and contributors <zope-dev@zope.dev>
|
|
6
6
|
Maintainer-email: Plone Foundation and contributors <zope-dev@zope.dev>
|
|
@@ -21,7 +21,7 @@ Classifier: Programming Language :: Python :: 3.13
|
|
|
21
21
|
Classifier: Programming Language :: Python :: 3.14
|
|
22
22
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
23
23
|
Classifier: Topic :: Security
|
|
24
|
-
Requires-Python: <3.
|
|
24
|
+
Requires-Python: <3.16,>=3.10
|
|
25
25
|
Description-Content-Type: text/x-rst
|
|
26
26
|
License-File: LICENSE.txt
|
|
27
27
|
Provides-Extra: test
|
|
@@ -123,6 +123,23 @@ the documentation `Contributing page
|
|
|
123
123
|
Changes
|
|
124
124
|
=======
|
|
125
125
|
|
|
126
|
+
8.3 (2026-06-16)
|
|
127
|
+
----------------
|
|
128
|
+
|
|
129
|
+
- Switch to PyPI Trusted Publishing for the package release process
|
|
130
|
+
|
|
131
|
+
- Also validate positional-only argument names (parameters before ``/``) so
|
|
132
|
+
they cannot start with an underscore, closing a sandbox escape where a
|
|
133
|
+
positional-only parameter could shadow an injected protected name such as
|
|
134
|
+
``_getattr_``, ``_getitem_``, ``_write_`` or ``_print_``.
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
8.3a1.dev0 (2026-05-29)
|
|
138
|
+
-----------------------
|
|
139
|
+
|
|
140
|
+
- Allow to use the package with Python 3.15 -- Caution: No security audit has been done so far.
|
|
141
|
+
|
|
142
|
+
|
|
126
143
|
8.2 (2026-05-29)
|
|
127
144
|
----------------
|
|
128
145
|
|
|
@@ -6,9 +6,9 @@ RestrictedPython/Utilities.py,sha256=u4HUdyjGawaeHyXSakyt4gRT17BZietXnF5WqicujjE
|
|
|
6
6
|
RestrictedPython/__init__.py,sha256=qB_s6zDxuXPAGMoKYKBMc-xZ0gTnQ0ZvtY5FxdAG3aM,1862
|
|
7
7
|
RestrictedPython/_compat.py,sha256=eGzz9dyKpYrhyytUV1Ul860zu5GZq9Ew9EQ3CqjVl0Y,385
|
|
8
8
|
RestrictedPython/compile.py,sha256=IhcF733t-bkPcvfQ2_NyBeCbSIPtHYxR-GQNNHnaMHM,6727
|
|
9
|
-
RestrictedPython/transformer.py,sha256
|
|
10
|
-
restrictedpython-8.
|
|
11
|
-
restrictedpython-8.
|
|
12
|
-
restrictedpython-8.
|
|
13
|
-
restrictedpython-8.
|
|
14
|
-
restrictedpython-8.
|
|
9
|
+
RestrictedPython/transformer.py,sha256=-3ga3rf6jtO6C23tpFgtszXKlcwoOPyZqK65ev3_I3Y,40267
|
|
10
|
+
restrictedpython-8.3.dist-info/licenses/LICENSE.txt,sha256=PmcdsR32h1FswdtbPWXkqjg-rKPCDOo_r1Og9zNdCjw,2070
|
|
11
|
+
restrictedpython-8.3.dist-info/METADATA,sha256=Kjj7EG2D8HejxlGqC_khj_HzUWAOom35RxWFd0L7QUQ,14997
|
|
12
|
+
restrictedpython-8.3.dist-info/WHEEL,sha256=YLJXdYXQ2FQ0Uqn2J-6iEIC-3iOey8lH3xCtvFLkd8Q,91
|
|
13
|
+
restrictedpython-8.3.dist-info/top_level.txt,sha256=E1-3ARWcduVJnQAScms0FgqnBx_PovrzYsNMYuLGwa0,17
|
|
14
|
+
restrictedpython-8.3.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|