-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pythonstartup.py
More file actions
77 lines (73 loc) · 1.55 KB
/
.pythonstartup.py
File metadata and controls
77 lines (73 loc) · 1.55 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
import contextlib
import platform
# On Linux, the basic Python REPL reads my GNU Readline configuration file and
# uses coloured completion prefixes, so I prefer it to the PyREPL. On macOS and
# Windows, the configuration is not read. Hence, I prefer IPython, which
# provides similar completions (though without coloured prefixes).
if any(map(platform.platform(terse=True).startswith, ["macOS", "Windows"])):
with contextlib.suppress(ImportError):
import IPython
if not IPython.get_ipython():
IPython.start_ipython()
raise SystemExit
import base64
import builtins
import calendar
import cmath
import collections
import copy
import csv
import ctypes
import datetime
import difflib
import dis
import enum
import errno
import filecmp
import fileinput
import fractions
import functools
import gc
import glob
import gzip
import hashlib
import http
import importlib
import io
import ipaddress
import itertools
import json
import locale
import logging
import math
import multiprocessing
import numbers
import os
import pickle
import pprint
import random
import re
import secrets
import shutil
import signal
import ssl
import string
import subprocess
import sys
import sysconfig
import tarfile
import tempfile
import textwrap
import threading
import time
import timeit
import types
import typing
import uuid
import zipfile
import zoneinfo
from decimal import Decimal
from pathlib import Path, PosixPath, PurePath, PurePosixPath, PureWindowsPath, WindowsPath
with contextlib.suppress(ImportError):
import tkinter as tk
from tkinter import ttk