AR added the comment:
There is no good solution to this. Either a move to all-in-one solution and ORM
at the end, or limited scope hack that allow for a convenient "just insert". I
do not insist due to this controversy
I just didn't realize the difference until I've noticed tha
New submission from AR :
I propose to add an insert method to a SQLite cursor object, believe this could
greatly improve readability of python code when you have to do a lot of insert
operations to a different tables.
Currently we have to create a dictionary with SQL's for each table
AR Kareem added the comment:
Shouldn't the behaviour for _thread.interrupt_main() be always to interrupt the
main thread.
I would expect that if a child thread uses _thread.interrupt_main() that the
main thread be interrupted regardless of how the python script was invoked.
Wouldn't
AR Kareem added the comment:
My apologies, I meant to flag it as 3.6 instead of 3.7.
I see what's happening now, and thanks for providing the correct way to raise a
KeyboardInterrupt.
Correctly flagged as 3.6 and closed.
Thanks.
--
resolution: -> duplicate
versions: +Python
New submission from Yon Ar Chall :
Hi there !
I was trying to use importlib.util.spec_from_file_location() to import a nested
package containing a 3-dot relative import.
$ tree ~/myproj
/home/yon/myproj
└── mypkg
├── __init__.py
└── subpkg
├── __init__.py