[python-uk] Library advice + anyone built a real time bidder?
Hansel Dunlop
hansel at interpretthis.org
Fri Mar 27 11:47:13 CET 2015
Happy Friday Python People! (yes, you're happy, because it's Friday)
Two questions for you:
1. I'm releasing a library. That I wrote in 2.7. But I want it to make it
compatible with 2.7+. What's the best approach for this? Especially
when a bit of code for 2.7 is a SyntaxError in 3+
raise test_exception, None, test_traceback # Syntax error in 3+
raise test_exception.with_traceback(test_traceback) # 3+ api
So, do I write a convoluted bit of code that detects if I'm in 2.7 and
wraps the exception in something that emulates the 3+ api?
Do I have two similar modules, and decide which one to import based
on Python version? Do I have two different versions?
That seems like an obviously daft idea... but?
URL for the library is http://keteparaha.aychedee.com/ if anyone wants
to have a look.
2. I'm building a real time bidder (a system that places bids on ad
impressions in real time) and I was wondering if anyone else on
this list has built anything similar? Other implementations are VERY
stateful and I want to take a much more functional approach.
So, if anyone has built one and will let me buy them a beer and
chat about it?
xox
--
Hansel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-uk/attachments/20150327/e59f268c/attachment.html>
More information about the python-uk
mailing list