[tor-bugs] #9022 [Pluggable transport]: Create an XMPP pluggable transport
Tor Bug Tracker & Wiki
blackhole at torproject.org
Thu Jun 27 13:52:50 UTC 2013
#9022: Create an XMPP pluggable transport
---------------------------------+------------------------------------------
Reporter: asn | Owner: feynman
Type: task | Status: accepted
Priority: normal | Milestone:
Component: Pluggable transport | Version:
Keywords: | Parent:
Points: | Actualpoints:
---------------------------------+------------------------------------------
Comment(by asn):
(cont):
argparse will make your CLI parsing much simpler and readable. It will
also give you a usage() function for free. For example, check this
tutorial: http://pymotw.com/2/argparse/
BTW, I like the client_socket and server_socket separation. I also like
how you splitted your code into more functions. It's easier to understand
now. Next step would be to split into multiple files. 650 lines of code in
a single file are a lot for a python project.
Cheers.
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/9022#comment:60>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
More information about the tor-bugs
mailing list