New submission from lesmana:
Python should have a builtin method `isempty()` which calls the special method
name `__isempty__()` for explicit emptiness check.
The special method `__isempty__()` should return `True` if the object is
"empty" and `False` if the object is "not e
Changes by lesmana :
--
nosy: +lesmana
versions: +Python 3.3
___
Python tracker
<http://bugs.python.org/issue519227>
___
___
Python-bugs-list mailing list
Unsub
Changes by lesmana :
--
nosy: +lesmana
___
Python tracker
<http://bugs.python.org/issue12458>
___
___
Python-bugs-list mailing list
Unsubscribe:
http://mail.pyth
lesmana added the comment:
yes the quotes prevented the tilde to be expanded by the shell. somehow i
failed to check that. i also failed to check that there is $HOME. somehow i
failed to see the forest because of the many trees (a german saying).
technically my original description is still
lesmana added the comment:
the .pythonrc.py file is not deprecated. only the user module is deprecated.
the problem i have with the PYTHONSTARTUP variable is that i find it is an
unecessary intermediate step to set up an initialization file.
let me elaborate: every single time you want to
New submission from lesmana :
for example, this should be legal:
PYTHONSTARTUP="~/.pythonrc.py"
workaround (in bash)
PYTHONSTARTUP=$(echo ~)"/.pythonrc.py"
--
messages: 107198
nosy: lesmana
priority: normal
severity: normal
status: open
title: PYTHONSTARTUP sh
New submission from lesmana :
if started as an interactive session python should check for and read
~/.pythonrc.py by default.
furthermore there should be two options added:
--rcfile filename
this will read filename instead of ~/.pythonrc
--norc
this will prevent reading ~/.pythonrc
(this is
Changes by lesmana :
--
nosy: +lesmana
___
Python tracker
<http://bugs.python.org/issue7898>
___
___
Python-bugs-list mailing list
Unsubscribe:
http://mail.pyth
Changes by lesmana :
--
nosy: +lesmana
___
Python tracker
<http://bugs.python.org/issue5845>
___
___
Python-bugs-list mailing list
Unsubscribe:
http://mail.pyth