| Server IP : 54.37.205.81 / Your IP : 216.73.216.76 Web Server : nginx/1.22.1 System : Linux vps-249481fa 6.1.0-50-cloud-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.176-1 (2026-07-02) x86_64 User : debian ( 1000) PHP Version : 8.2.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /proc/1006325/cwd/lib/python3.11/lib2to3/fixes/__pycache__/ |
Upload File : |
�
ZQd� � � � 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 �5/usr/lib/python3.11/lib2to3/fixes/fix_tuple_params.py�is_docstringr s/ � ��d�F�K�(�(� 1��=��� �E�L�0�1� c �&