| Server IP : 217.160.0.135 / Your IP : 216.73.217.85 Web Server : Apache System : Linux www 6.18.52-i1-ampere #1203 SMP Mon Sep 14 18:29:59 CEST 2026 aarch64 User : sws1074145052 ( 1074145052) PHP Version : 8.3.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /lib/python3/dist-packages/zmq/__pycache__/ |
Upload File : |
�
mc�c� � � � d Z dZddlmZ ddlZ G d� d� � Z G d� de� � Z G d � d
e� � Zd� Zd� Z dS )
ai Decorators for running functions with context/sockets.
.. versionadded:: 15.3
Like using Contexts and Sockets as context managers, but with decorator syntax.
Context and sockets are closed at the end of the function.
For example::
from zmq.decorators import context, socket
@context()
@socket(zmq.PUSH)
def work(ctx, push):
...
)�context�socket� ��wrapsNc �, � e Zd ZdZdd�Zd� Zd� Zd� ZdS )�
_DecoratorzThe mini decorator factoryNc � � || _ d S �N��_target)�self�targets �0/usr/lib/python3/dist-packages/zmq/decorators.py�__init__z_Decorator.__init__"