Skip to content

Commit c825ea0

Browse files
committed
about to upgrade pickleSocket
1 parent dbbb8b9 commit c825ea0

21 files changed

+57
-33
lines changed

book.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
'''
2-
sys.argv[1] in ('sun', 'pad')
2+
A file system.
33
'''
44
print('Importing...')
55
import platform

cache_no_hash.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
'''
2+
Inefficiently cache and lookup function returns.
3+
'''
14
class cache:
25
def __init__(self, func):
36
self.func = func

console.py renamed to console/__init__.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,3 @@ def console(namespace = {}, prompt = '>>> ', use_input = False, fixer = None):
166166
next(kernal)
167167
if result is not None:
168168
print(result)
169-
170-
if __name__ == '__main__':
171-
console({})

console/__main__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
from console import console
2+
console({})
File renamed without changes.

forcemap.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
'''
2-
Like dummy.Pool.map, but no limit of thread number.
2+
Like dummy.Pool.map, but no limit of number of threads.
33
'''
44
from threading import Thread, Lock, Condition
55
from queue import Queue

formula.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
'''
2-
Evaluate beautiful formulas like √(2×3÷4)
2+
Evaluate beautiful formulas like √(2×3÷4)
33
'''
44
from console import console
55
from math import sqrt

friendly_time.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
'''
2+
Formatting time data in a friendly manner.
3+
'''
14
import time
25

36
def friendlyTime(raw_time=None):

lab.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
'''
2+
This is for me only.
3+
You won't get why this code is here.
4+
Give up.
5+
'''
16
from pickle_socket import PickleSocket
27
from io import BytesIO as IO
38
import socket

moretk.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
'''
2-
by Daniel
2+
More tkinter gadgets
33
'''
44
import tkinter as tk
55
import threading
@@ -207,6 +207,9 @@ def insert(self, index, chars, *args):
207207
super(__class__,self).insert(index, chunk, *args)
208208

209209
def bilingualStringLen(string, fontsize = 18):
210+
'''
211+
counts a chinese character as length of 2.
212+
'''
210213
length = 0
211214
for char in string:
212215
if len(char.encode()) > 1:

0 commit comments

Comments
 (0)