|
int
|
_cutcount(l,
max)
How many elements to cut away from something with len l, when we want
restlen+len(decimal-digit-of-cut-count) < max? |
source code
|
|
|
ASCII str or None
|
lu2a(unistr,
max=50,
errorstr='~~~')
Limited Unicode To Ascii (limited: the result length is limited)
Intended for ASCII-logging of untrusted (e.g.user input) unicode
strings. |
source code
|
|
|
|
lu2a_de(unistr,
max=50,
errorstr='~~~')
Note: In case of unistr containing non-ascii characters, this method
gets slow (because it does a python loop over each character.) |
source code
|
|
|
|
|
|
|
traceToShortStr(maxLines=3,
exc_info=None,
use_cr=True)
Returns:
short str describing the current ex.stacktrace (end-first),
"" if there is no current ex.traceback. |
source code
|
|
|
|
mail_smtp(server,
serverpw,
to_address,
from_address,
subject,
content,
charset='latin-1')
Sendet subject/content als latin-1. |
source code
|
|