Chris Monsanto added the comment:

> Unfortunately, I don't have backwards-compatible proposal to fix this. Trying 
> to account for a bit more syntax will help in the short term but not fix the 
> underlying issue.

aaugustin -- the patch by torsen made 3 years ago is backwards compatible. It 
adds a hook that you can use to disable autocommits, but you have to opt-in. I 
think that is good enough for now. We can worry about how to transition people 
away from the broken transaction model in the future.

Let's treat this as any other backwards compatibility problem in Python. We 
have a flag, that when enabled, removes the shitty behavior. In a future 
release, you get a warning for relying on the shitty behavior. In a release 
after that, we kill the old behavior. Then we deprecate the flag. In other 
words, it literally doesn't matter what the flag is. torsen's is fine. We just 
need some way to enable transactional DDL.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue10740>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to