No, please don't. Those are reserved for different things.
What makes that better than just using strings?
Instead of if bla in [bla, blubb, bfoo]: return True return False you can write: return bla in [bla, blubb, foo]
Absolutely. I have not seen a factory pattern in use in ages. I think the last time was before http://dirtsimple.org/2004/12/python-is-not-java.html was around.
The idea of patenting it has roughly the same amount of hilarity.
That depends more on whether your algorithm is easily distributed. If it is, zeromq will be good for you. I am currently using it to transfer model parameters learned on machine #1 to machine #2 where real time…
> Only one will get there first, so only one will be able to arrest the person. Where do you buy them real world semaphores, eh?
No, please don't. Those are reserved for different things.
What makes that better than just using strings?
Instead of if bla in [bla, blubb, bfoo]: return True return False you can write: return bla in [bla, blubb, foo]
Absolutely. I have not seen a factory pattern in use in ages. I think the last time was before http://dirtsimple.org/2004/12/python-is-not-java.html was around.
The idea of patenting it has roughly the same amount of hilarity.
That depends more on whether your algorithm is easily distributed. If it is, zeromq will be good for you. I am currently using it to transfer model parameters learned on machine #1 to machine #2 where real time…
> Only one will get there first, so only one will be able to arrest the person. Where do you buy them real world semaphores, eh?