Making every no-arg method a property?

2014-08-05 Thread Christian Calderon
I have been using python for 4 years now, and I just started learning ruby. I like that in ruby I don't have to type parenthesis at the end of each function call if I don't need to provide extra arguments. I just realized right now that I can do something similar in python, if I make all methods wi

joining thread hangs unexpectedly

2014-09-26 Thread Christian Calderon
I am working on a personal project that helps minecraft clients connect to minecraft servers using tor hidden services. I am handling the client connection in a separate thread, but when I try to join the threads they hang. The problem is in the file called hiddencraft.py, in the function main at t

Interesting socket behavior

2014-10-07 Thread Christian Calderon
I noticed that if I make a listening socket using SOCK_STREAM | SOCK_NONBLOCK, that the sockets I get after calling listener.accept() don't have the O_NONBLOCK flag set, but checking the result of gettimeout() on the same sockets gives me 0.0, which means they are non blocking. Why is this the case