I won't presume to dictate policy on this matter but since this is C API you do have to go through some effort in order to use it. I already have the following in cx_Oracle #if (PY_VERSION_HEX >= 0x02040000) ....do stuff.... #endif I am assuming that I could (if this patch is accepted) simply change it to #if (PY_VERSION_HEX >= 0x02030500) ....do stuff.... #endif Whether or not this makes it acceptable or not I leave that to the release manager to decide.... Martin v. Löwis wrote: > Guido van Rossum wrote: > >>> Now if some platform header file has macros with names like >>> >>> PyDateTime_FromTimestamp >>> or >>> PyDelta_FromDSU >>> >>> then adding these macros to datetime.h could cause new problems. But >>> platform header files don't have macros with names like those (if they >>> did, we would have bumped into it while developing 2.4). >> >> >> >> Hm, Anthony, what do you think now? > > > I'm not Anthony (neither, actually), but I do think this is a new > feature, not a bug fix - assuming we are talking about the changes > between datetime.h in 2.3 and 2.4. > > This introduces datetime.datetime_CAPI, which is a C object > allowing cross-module datetime calls at the C level. > > This change is very unlikely to break existing code, as existing > code just won't use that new API. This is good for a backport. > > At the same time, this also clearly shows it is a new feature: > only new code can use it. > > Channelling Anthony (Baxter), this cannot be accepted for 2.3. > It would allow for code that works on 2.3.5, but fails on 2.3.4. > What's worse, the extension module can be built on 2.3.5, and > the binary module will fail when run on 2.3.4, as importing the > CAPI object would fail. > > People who rely on that feature should get a compile time > error on 2.3.x, instead of compilation succeeding for some x. > People who need to support 2.3 as well should use the Python > API to the datetime module, not the C API. > > Regards, > Martin > -- Anthony Tuininga anthony at computronix.com Computronix Distinctive Software. Real People. Suite 200, 10216 - 124 Street NW Edmonton, AB, Canada T5N 4A3 Phone: (780) 454-3700 Fax: (780) 454-3838 http://www.computronix.com
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4