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
_______________________________________________
python-uk mailing list
[email protected]
https://mail.python.org/mailman/listinfo/python-uk