o
    `^h  ã                   @   sÄ   d Z ddlmZ ddlmZmZmZmZmZ er'ddl	m
Z
mZmZmZmZ nddlm
Z
mZmZmZmZ ddlmZmZmZmZmZmZmZmZmZmZmZ ddlmZ ejr^g d¢Zd	S g Zd	S )
a¹  
A resurrection of some old functions from Python 2 for use in Python 3. These
should be used sparingly, to help with porting efforts, since code using them
is no longer standard Python 3 code.

This module provides the following:

1. Implementations of these builtin functions which have no equivalent on Py3:

- apply
- chr
- cmp
- execfile

2. Aliases:

- intern <- sys.intern
- raw_input <- input
- reduce <- functools.reduce
- reload <- imp.reload
- unichr <- chr
- unicode <- str
- xrange <- range

3. List-producing versions of the corresponding Python 3 iterator-producing functions:

- filter
- map
- range
- zip

4. Forward-ported Py2 types:

- basestring
- dict
- str
- long
- unicode

é    )ÚPY3)ÚfilterÚmapÚrangeÚreduceÚzip)Ú
basestringÚolddictÚoldstrÚlongÚunicode)r   ÚdictÚstrr   r   )ÚapplyÚchrÚcmpÚexecfileÚinternÚoctÚ	raw_inputÚreloadÚunichrr   Úxrange)Úutils)r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   N) Ú__doc__Úfuture.utilsr   Úpast.builtins.noniteratorsr   r   r   r   r   Ú
past.typesr   r	   r   r
   r   r   r   Ú__builtin__Úpast.builtins.miscr   r   r   r   r   r   r   r   r   r   Úpastr   Ú__all__© r"   r"   úT/home/air/shanriGPT/back/venv/lib/python3.10/site-packages/past/builtins/__init__.pyÚ<module>   s    )4