#python - Fri 13 Apr 2007 between 15:48 and 15:56

NY Lost Funds



pyguyyhmmm
>>> dir(sys.stdin)
['_RPCProxy__attributes', '_RPCProxy__getattributes', '_RPCProxy__getmethods', '_RPCProxy__methods', '__class__', '__delattr__', '__dict__', '__doc__', '__getattr__', '__getattribute__', '__hash__', '__init__', '__module__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__str__', '__weakref__', 'encoding', 'oid', 'sockio']
BlueAidan_workpyguyy: print sys.version
joedjpyguyy: that isn't a normal sys.stdin file object, something is overriding it
pyguyyhmm
Zalamanderpyguyy how about dir(sys.__stdin__) ?
shawn_workanyone good with optparse?
pyguyy>>> print sys.stdin
<idlelib.rpc.RPCProxy object at 0x00D37C50>
>>> dir(sys.stdin)
['_RPCProxy__attributes', '_RPCProxy__getattributes', '_RPCProxy__getmethods', '_RPCProxy__methods', '__class__', '__delattr__', '__dict__', '__doc__', '__getattr__', '__getattribute__', '__hash__', '__init__', '__module__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__str__', '__weakref__', 'encoding', 'oid', 'sockio']
shawn_workif you use add_option with store, if one does --foobar --goo why is '--goo' being considered apart of the --foobar command?
pyguyyv
>>> dir (sys.__stdin__)
['__class__', '__delattr__', '__doc__', '__enter__', '__exit__', '__getattribute__', '__hash__', '__init__', '__iter__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__str__', 'close', 'closed', 'encoding', 'fileno', 'flush', 'isatty', 'mode', 'name', 'newlines', 'next', 'read', 'readinto', 'readline', 'readlines', 'seek', 'softspace', 'tell', 'truncate', 'write', 'writelines', 'xreadlines
']
shawn_workhow can I tell optparse to throw an error if you do --foobar -goo and but NOT throw an error if you do --foobar something --goo
pyguyyzalamander you were right
exarkunpyguyy: Are you using idle?
pyguyyye
sys.__stdin__.readline() isn't blocking
exarkunpyguyy: Don't expect it to behave identically to the command line interactive interpreter, and don't expect either of those to behave identically to a program run with Python.
pyguyyit's coming back empty
then how the hell are you supposed to develop a program
;|
brb
exarkunpyguyy: Specifically, don't expect stdin to have any meaningful value in a GUI.
pyguyyoh right
the idle gui might screw that up
of course
brb
synxpyguyy: You aren't by any chance using RPC are you?
exarkunsynx: idle internally runs user code in a separate process automatically.
synxSo I see.
exarkunWhat is lifetime of trace functions?
glickwhats a good and fast stream cipher i can use in python code
to encrypt streaming media
pyguyyi doubt it
but i didn't configure this system

Page: 2 9 16 23 30 37 44 51 58 65 72 79 

IrcArchive

NY Lost Funds