RestrictedPython 7.0a1.dev1__py3-none-any.whl → 7.1__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.
@@ -768,8 +768,8 @@ class RestrictingNodeTransformer(ast.NodeTransformer):
768
768
  return self.node_contents_visit(node)
769
769
 
770
770
  def visit_MatMult(self, node):
771
- """Matrix multiplication (`@`) is currently not allowed."""
772
- self.not_allowed(node)
771
+ """Allow multiplication (`@`)."""
772
+ return self.node_contents_visit(node)
773
773
 
774
774
  def visit_BoolOp(self, node):
775
775
  """Allow bool operator without restrictions."""
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: RestrictedPython
3
- Version: 7.0a1.dev1
3
+ Version: 7.1
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
  Home-page: https://github.com/zopefoundation/RestrictedPython
6
6
  Author: Zope Foundation and Contributors
@@ -20,6 +20,7 @@ Classifier: Programming Language :: Python :: 3.8
20
20
  Classifier: Programming Language :: Python :: 3.9
21
21
  Classifier: Programming Language :: Python :: 3.10
22
22
  Classifier: Programming Language :: Python :: 3.11
23
+ Classifier: Programming Language :: Python :: 3.12
23
24
  Classifier: Programming Language :: Python :: Implementation :: CPython
24
25
  Classifier: Topic :: Security
25
26
  Requires-Python: >=3.7, <3.13
@@ -123,8 +124,14 @@ the documentation `Contributing page
123
124
  Changes
124
125
  =======
125
126
 
126
- 7.0a1.dev1 (2023-09-06)
127
- -----------------------
127
+ 7.1 (2024-03-14)
128
+ ----------------
129
+
130
+ - Add support for the matmul (``@``) operator.
131
+
132
+
133
+ 7.0 (2023-11-17)
134
+ ----------------
128
135
 
129
136
  Backwards incompatible changes
130
137
  ++++++++++++++++++++++++++++++
@@ -134,8 +141,7 @@ Backwards incompatible changes
134
141
  Features
135
142
  ++++++++
136
143
 
137
- - Allow to use the package with Python 3.12 -- Caution: No security audit has
138
- been done so far.
144
+ - Officially support Python 3.12.
139
145
 
140
146
  Fixes
141
147
  +++++
@@ -145,8 +151,7 @@ Fixes
145
151
  - Forbid using some attributes providing access to restricted Python internals.
146
152
  (CVE-2023-37271)
147
153
 
148
- - Fix information disclosure problems through
149
- Python's "format" functionality
154
+ - Fix information disclosure problems through Python's "format" functionality
150
155
  (``format`` and ``format_map`` methods on ``str`` and its instances,
151
156
  ``string.Formatter``). (CVE-2023-41039)
152
157
 
@@ -6,9 +6,9 @@ RestrictedPython/Utilities.py,sha256=7R6Op1Oqw9-fSxy_eWVa6ioZPx-SAxa7OolDObTWRkU
6
6
  RestrictedPython/__init__.py,sha256=qB_s6zDxuXPAGMoKYKBMc-xZ0gTnQ0ZvtY5FxdAG3aM,1862
7
7
  RestrictedPython/_compat.py,sha256=nacdAJi4E8GKhkR99_BAxMA0AtK2FQnvrqZbG8hGofc,383
8
8
  RestrictedPython/compile.py,sha256=IhcF733t-bkPcvfQ2_NyBeCbSIPtHYxR-GQNNHnaMHM,6727
9
- RestrictedPython/transformer.py,sha256=r1J-3qnS2sOHcbSR15-PBQSh5w3Wf1uzoLb_XmGSYUM,42777
10
- RestrictedPython-7.0a1.dev1.dist-info/LICENSE.txt,sha256=PmcdsR32h1FswdtbPWXkqjg-rKPCDOo_r1Og9zNdCjw,2070
11
- RestrictedPython-7.0a1.dev1.dist-info/METADATA,sha256=GIlMmlbrTgEeO03kTIkZP1lsV8E-Pe89vuei4ynaCVQ,12193
12
- RestrictedPython-7.0a1.dev1.dist-info/WHEEL,sha256=5sUXSg9e4bi7lTLOHcm6QEYwO5TIF1TNbTSVFVjcJcc,92
13
- RestrictedPython-7.0a1.dev1.dist-info/top_level.txt,sha256=E1-3ARWcduVJnQAScms0FgqnBx_PovrzYsNMYuLGwa0,17
14
- RestrictedPython-7.0a1.dev1.dist-info/RECORD,,
9
+ RestrictedPython/transformer.py,sha256=AsPDuEN42OrBZBDtDCOFcWssNZrvm8PBGku8IvREXFg,42766
10
+ RestrictedPython-7.1.dist-info/LICENSE.txt,sha256=PmcdsR32h1FswdtbPWXkqjg-rKPCDOo_r1Og9zNdCjw,2070
11
+ RestrictedPython-7.1.dist-info/METADATA,sha256=sCrmJOLu50Vs7tsf-NSieDbHaoyUdXc9gjTQeUgBoZw,12241
12
+ RestrictedPython-7.1.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
13
+ RestrictedPython-7.1.dist-info/top_level.txt,sha256=E1-3ARWcduVJnQAScms0FgqnBx_PovrzYsNMYuLGwa0,17
14
+ RestrictedPython-7.1.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: bdist_wheel (0.41.1)
2
+ Generator: bdist_wheel (0.42.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5