← Back
Editing: execution.cpython-311.pyc
� �@�c�� � � � d Z ddlZddlZddlZddlZddlZddlZddl Z ddl Z ddlZddlZddl Z ddlZddlZddlZddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ dd lmZmZmZ dd l m!Z! ddl"m#Z# ddl$m%Z%m&Z&m'Z'm(Z(m)Z)m*Z*m+Z+m,Z, dd l-m.Z. ddl/m0Z0 ddl1m2Z2 ddl3m4Z4 ddl5m6Z6 ddl7m8Z8m9Z9 ddl:m;Z;m<Z< G d� de=� � Z> G d� dej? � � Z@ G d� dejA � � ZAe) G d� de%� � � � ZBd� ZCdd�ZDdS ) z4Implementation of execution-related magic functions.� N)�Module)�StringIO)�error)�Path)�Restart)�warn)�magic_arguments�oinspect�page)� UsageError)�Macro)�Magics� cell_magic�line_cell_magic� line_magic�magics_class�needs_local_scope� no_var_expand�on_off)�skip_doctest)�capture_output)� preserve_keys)�Struct)�find_mod)�get_py_filename� shellglob)�clock�clock2c �P � e Zd ZdZd� Zed� � � Zed� � � Zd� Zd� Z dS )�TimeitResulta� Object returned by the timeit magic with info about the run. Contains the following attributes : loops: (int) number of loops done per measurement repeat: (int) number of times the measurement has been repeated best: (float) best execution time / number all_runs: (list of float) execution time of each run (in s) compile_time: (float) time of statement compilation (s) c � � � |� _ |� _ |� _ |� _ |� _ |� _ |� _ � fd�|D � � � _ d S )Nc �$ �� g | ]}|�j z �� S � )�loops)�.0�dt�selfs ��?/usr/lib/python3/dist-packages/IPython/core/magics/execution.py� <listcomp>z)TimeitResult.__init__.<locals>.<listcomp>L s �� �<�<�<�R��d�j��<�<�<� )r$ �repeat�best�worst�all_runs�compile_time� _precision�timings)r'