On Thu, 26 Feb 2009 23:32:13 +0100, jkv wrote:
Jean-Paul Calderone wrote:
sys.stdout.write('Password: ');
#IAC DO ECHO sys.stdout.write('\xFF\xFB\x01')
password = raw_input()
If the client sends 'qwerty\r\n' everything is fine and the password get
stored in the variable. But som
Jean-Paul Calderone wrote:
sys.stdout.write('Password: ');
#IAC DO ECHO sys.stdout.write('\xFF\xFB\x01')
password = raw_input()
If the client sends 'qwerty\r\n' everything is fine and the password
get stored in the variable. But sometimes, depending on how broken
the telnet clien
On Thu, 26 Feb 2009 11:46:24 +0100, jkv wrote:
Hi,
Are there any way to change the EOL character for sys.stdin.readline() and
raw_input()?
My problem is that i cannot rely on that the clients connection to my
application will end all lines with \n or \r\n. Sometimes they will use
\r\000 as E
Terry Reedy wrote:
jkv wrote:
Hi,
Are there any way to change the EOL character for
sys.stdin.readline() and raw_input()?
My problem is that i cannot rely on that the clients connection to my
application will end all lines with \n or \r\n. Sometimes they will
use \r\000 as EOL.
Example fro
What is it about with statements that makes you want to so frequently embed
them in try/except statements?
Skip
--
http://mail.python.org/mailman/listinfo/python-list
jkv wrote:
Hi,
Are there any way to change the EOL character for sys.stdin.readline()
and raw_input()?
My problem is that i cannot rely on that the clients connection to my
application will end all lines with \n or \r\n. Sometimes they will use
\r\000 as EOL.
Example from my code:
sys.s
jkv wrote:
Hi,
Are there any way to change the EOL character for sys.stdin.readline()
and raw_input()?
My problem is that i cannot rely on that the clients connection to my
application will end all lines with \n or \r\n. Sometimes they will use
\r\000 as EOL.
Example from my code:
sys.s
Hi,
Are there any way to change the EOL character for sys.stdin.readline()
and raw_input()?
My problem is that i cannot rely on that the clients connection to my
application will end all lines with \n or \r\n. Sometimes they will use
\r\000 as EOL.
Example from my code:
sys.stdout.write(