Skip to content

Commit 097b993

Browse files
authored
Getting started ...
Let's DO this 'thing?
1 parent a67268d commit 097b993

8 files changed

+97
-2
lines changed

3.10.11_WIN32.eval

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
['ArithmeticError', 'AssertionError', 'AttributeError', 'BaseException', 'BlockingIOError', 'BrokenPipeError', 'BufferError', 'BytesWarning', 'ChildProcessError', 'ConnectionAbortedError', 'ConnectionError', 'ConnectionRefusedError', 'ConnectionResetError', 'DeprecationWarning', 'EOFError', 'Ellipsis', 'EncodingWarning', 'EnvironmentError', 'Exception', 'False', 'FileExistsError', 'FileNotFoundError', 'FloatingPointError', 'FutureWarning', 'GeneratorExit', 'IOError', 'ImportError', 'ImportWarning', 'IndentationError', 'IndexError', 'InterruptedError', 'IsADirectoryError', 'KeyError', 'KeyboardInterrupt', 'LookupError', 'MemoryError', 'ModuleNotFoundError', 'NameError', 'None', 'NotADirectoryError', 'NotImplemented', 'NotImplementedError', 'OSError', 'OverflowError', 'PendingDeprecationWarning', 'PermissionError', 'ProcessLookupError', 'RecursionError', 'ReferenceError', 'ResourceWarning', 'RuntimeError', 'RuntimeWarning', 'StopAsyncIteration', 'StopIteration', 'SyntaxError', 'SyntaxWarning', 'SystemError', 'SystemExit', 'TabError', 'TimeoutError', 'True', 'TypeError', 'UnboundLocalError', 'UnicodeDecodeError', 'UnicodeEncodeError', 'UnicodeError', 'UnicodeTranslateError', 'UnicodeWarning', 'UserWarning', 'ValueError', 'Warning', 'WindowsError', 'ZeroDivisionError', '__build_class__', '__debug__', '__doc__', '__import__', '__loader__', '__name__', '__package__', '__spec__', 'abs', 'aiter', 'all', 'anext', 'any', 'ascii', 'bin', 'bool', 'breakpoint', 'bytearray', 'bytes', 'callable', 'chr', 'classmethod', 'compile', 'complex', 'copyright', 'credits', 'delattr', 'dict', 'dir', 'divmod', 'enumerate', 'eval', 'exec', 'exit', 'filter', 'float', 'format', 'frozenset', 'getattr', 'globals', 'hasattr', 'hash', 'help', 'hex', 'id', 'input', 'int', 'isinstance', 'issubclass', 'iter', 'len', 'license', 'list', 'locals', 'map', 'max', 'memoryview', 'min', 'next', 'object', 'oct', 'open', 'ord', 'pow', 'print', 'property', 'quit', 'range', 'repr', 'reversed', 'round', 'set', 'setattr', 'slice', 'sorted', 'staticmethod', 'str', 'sum', 'super', 'tuple', 'type', 'vars', 'zip']

3.9.2_LINUX.eval

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
['ArithmeticError', 'AssertionError', 'AttributeError', 'BaseException', 'BlockingIOError', 'BrokenPipeError', 'BufferError', 'BytesWarning', 'ChildProcessError', 'ConnectionAbortedError', 'ConnectionError', 'ConnectionRefusedError', 'ConnectionResetError', 'DeprecationWarning', 'EOFError', 'Ellipsis', 'EnvironmentError', 'Exception', 'False', 'FileExistsError', 'FileNotFoundError', 'FloatingPointError', 'FutureWarning', 'GeneratorExit', 'IOError', 'ImportError', 'ImportWarning', 'IndentationError', 'IndexError', 'InterruptedError', 'IsADirectoryError', 'KeyError', 'KeyboardInterrupt', 'LookupError', 'MemoryError', 'ModuleNotFoundError', 'NameError', 'None', 'NotADirectoryError', 'NotImplemented', 'NotImplementedError', 'OSError', 'OverflowError', 'PendingDeprecationWarning', 'PermissionError', 'ProcessLookupError', 'RecursionError', 'ReferenceError', 'ResourceWarning', 'RuntimeError', 'RuntimeWarning', 'StopAsyncIteration', 'StopIteration', 'SyntaxError', 'SyntaxWarning', 'SystemError', 'SystemExit', 'TabError', 'TimeoutError', 'True', 'TypeError', 'UnboundLocalError', 'UnicodeDecodeError', 'UnicodeEncodeError', 'UnicodeError', 'UnicodeTranslateError', 'UnicodeWarning', 'UserWarning', 'ValueError', 'Warning', 'ZeroDivisionError', '__build_class__', '__debug__', '__doc__', '__import__', '__loader__', '__name__', '__package__', '__spec__', 'abs', 'all', 'any', 'ascii', 'bin', 'bool', 'breakpoint', 'bytearray', 'bytes', 'callable', 'chr', 'classmethod', 'compile', 'complex', 'copyright', 'credits', 'delattr', 'dict', 'dir', 'divmod', 'enumerate', 'eval', 'exec', 'exit', 'filter', 'float', 'format', 'frozenset', 'getattr', 'globals', 'hasattr', 'hash', 'help', 'hex', 'id', 'input', 'int', 'isinstance', 'issubclass', 'iter', 'len', 'license', 'list', 'locals', 'map', 'max', 'memoryview', 'min', 'next', 'object', 'oct', 'open', 'ord', 'pow', 'print', 'property', 'quit', 'range', 'repr', 'reversed', 'round', 'set', 'setattr', 'slice', 'sorted', 'staticmethod', 'str', 'sum', 'super', 'tuple', 'type', 'vars', 'zip']

3.9.7_WIN32.eval

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
['ArithmeticError', 'AssertionError', 'AttributeError', 'BaseException', 'BlockingIOError', 'BrokenPipeError', 'BufferError', 'BytesWarning', 'ChildProcessError', 'ConnectionAbortedError', 'ConnectionError', 'ConnectionRefusedError', 'ConnectionResetError', 'DeprecationWarning', 'EOFError', 'Ellipsis', 'EnvironmentError', 'Exception', 'False', 'FileExistsError', 'FileNotFoundError', 'FloatingPointError', 'FutureWarning', 'GeneratorExit', 'IOError', 'ImportError', 'ImportWarning', 'IndentationError', 'IndexError', 'InterruptedError', 'IsADirectoryError', 'KeyError', 'KeyboardInterrupt', 'LookupError', 'MemoryError', 'ModuleNotFoundError', 'NameError', 'None', 'NotADirectoryError', 'NotImplemented', 'NotImplementedError', 'OSError', 'OverflowError', 'PendingDeprecationWarning', 'PermissionError', 'ProcessLookupError', 'RecursionError', 'ReferenceError', 'ResourceWarning', 'RuntimeError', 'RuntimeWarning', 'StopAsyncIteration', 'StopIteration', 'SyntaxError', 'SyntaxWarning', 'SystemError', 'SystemExit', 'TabError', 'TimeoutError', 'True', 'TypeError', 'UnboundLocalError', 'UnicodeDecodeError', 'UnicodeEncodeError', 'UnicodeError', 'UnicodeTranslateError', 'UnicodeWarning', 'UserWarning', 'ValueError', 'Warning', 'WindowsError', 'ZeroDivisionError', '__build_class__', '__debug__', '__doc__', '__import__', '__loader__', '__name__', '__package__', '__spec__', 'abs', 'all', 'any', 'ascii', 'bin', 'bool', 'breakpoint', 'bytearray', 'bytes', 'callable', 'chr', 'classmethod', 'compile', 'complex', 'copyright', 'credits', 'delattr', 'dict', 'dir', 'divmod', 'enumerate', 'eval', 'exec', 'exit', 'filter', 'float', 'format', 'frozenset', 'getattr', 'globals', 'hasattr', 'hash', 'help', 'hex', 'id', 'input', 'int', 'isinstance', 'issubclass', 'iter', 'len', 'license', 'list', 'locals', 'map', 'max', 'memoryview', 'min', 'next', 'object', 'oct', 'open', 'ord', 'pow', 'print', 'property', 'quit', 'range', 'repr', 'reversed', 'round', 'set', 'setattr', 'slice', 'sorted', 'staticmethod', 'str', 'sum', 'super', 'tuple', 'type', 'vars', 'zip']

BltReport.py

+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
#!/usr/bin/env python3
2+
# Mission: Keep track of Builtins.
3+
4+
import sys
5+
version = sys.version.split(' ')[0] + '_'
6+
version += sys.platform.upper()
7+
8+
covered = ['False', 'None', 'True', 'bool']
9+
10+
def report(a_list, a_mod):
11+
for ss, item in enumerate(a_list,1):
12+
disp = chr(0x25b7)
13+
if item in covered:
14+
disp = chr(0x25b6)
15+
print(f"{disp:<2}{item:<13}", end='')
16+
if ss % a_mod == 0:
17+
print()
18+
print()
19+
20+
21+
others = list()
22+
common = ['False', 'None', 'True']
23+
uncommon = []
24+
sigma = dir(__builtins__)
25+
with open(version + '.eval', 'w') as fh:
26+
print(sigma, file=fh)
27+
# sigma = sorted(dir(__builtins__), key=lambda a: len(a))
28+
for ss, item in enumerate(sigma,1):
29+
if item.startswith('_'):
30+
uncommon.append(item)
31+
continue
32+
if not item.islower():
33+
others.append(item)
34+
continue
35+
common.append(item)
36+
37+
for the_list in [uncommon,2], [others,1], [common,4]:
38+
report(the_list[0],the_list[1])
39+
40+
sigma = 0
41+
for a_list in uncommon, common, others:
42+
sigma += len(a_list)
43+
44+
print(f'\nVersion {version}, Total = {sigma:>03}')

EvalDiffReport.py

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
#!/usr/bin/env python3
2+
# Mission: Show what has changed.
3+
4+
def report(a_list, a_mod):
5+
for ss, item in enumerate(a_list,1):
6+
disp = chr(0x25b7)
7+
if item in covered:
8+
disp = chr(0x25b6)
9+
print(f"{disp:<2}{item:<13}", end='')
10+
if ss % a_mod == 0:
11+
print()
12+
print()
13+
14+
15+
import os
16+
items = {}
17+
for item in os.listdir():
18+
if not item.endswith('.eval'):
19+
continue
20+
with open(item) as fh:
21+
items[item] = set(eval(fh.read()))
22+
23+
gotcha = []
24+
for ka in items:
25+
for kb in items:
26+
if ka is kb:
27+
continue
28+
print(ka, kb)
29+
difa = items[ka] - items[kb]
30+
difb = items[kb] - items[ka]
31+
if difa == difb:
32+
gotcha.append(difa)
33+
print('\t',difa)
34+
else:
35+
a_union = difa.union(difb)
36+
if a_union in gotcha:
37+
print('\tmeh... ', end = '')
38+
gotcha.append(a_union)
39+
print('\t', *a_union)
40+
print()
41+

README.md

+8-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,8 @@
1-
# The-Built-In-Report
2-
Tracking to Python's Features &amp; Functions
1+
![The BLT Report](https://github.com/soft9000/Blog9000/blob/master/Python3/2300_Builtin_Review/sandwich.png "The Built-In Report")
2+
3+
## Welcome to the BLT Report
4+
5+
Also known as the "**Built-In Report**," the mascot for this project is the **B**acon, **L**ettuce and **T**omato Sandwich.
6+
7+
The mission of this project is to review each and every one of Python's built-in's.
8+

logger.log

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
2023/10/31: 06.42.29 (LOCAL) Started.

sandwich.png

57.8 KB
Loading

0 commit comments

Comments
 (0)