| Server IP : 66.29.146.62 / Your IP : 216.73.216.152 Web Server : LiteSpeed System : Linux premium231.web-hosting.com 4.18.0-553.45.1.lve.el8.x86_64 #1 SMP Wed Mar 26 12:08:09 UTC 2025 x86_64 User : dokkdzvi ( 925) PHP Version : 8.1.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /opt/alt/python311/lib64/python3.11/lib2to3/fixes/__pycache__/ |
Upload File : |
�
!A?h� � � � d Z ddlmZ ddlmZ ddlmZ ddlmZmZm Z m
Z
mZmZ d� Z
G d� dej � � Zd � Zd
� Zg dfd�Zd
� ZdS )a: Fixer for function definitions with tuple parameters.
def func(((a, b), c), d):
...
->
def func(x, d):
((a, b), c) = x
...
It will also support lambdas:
lambda (x, y): x + y -> lambda t: t[0] + t[1]
# The parens are a syntax error in Python 3
lambda (x): x + y -> lambda x: x + y
� )�pytree)�token)�
fixer_base)�Assign�Name�Newline�Number� Subscript�symsc �v � t | t j � � o| j d j t
j k S )N� )�
isinstancer �Node�children�typer �STRING)�stmts �E/opt/alt/python311/lib64/python3.11/lib2to3/fixes/fix_tuple_params.py�is_docstringr s/ � ��d�F�K�(�(� 1��=��� �E�L�0�1� c �&