[issue44927] [sqlite3] proposal: add sqlite3.Cursor.insert() method

2021-08-16 Thread AR
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

[issue44927] [sqlite3] insert

2021-08-16 Thread AR
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

[issue42730] TypeError/hang inside of Time.Sleep() when _thread.interrupt_main()

2020-12-25 Thread AR Kareem
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

[issue42730] TypeError/hang inside of Time.Sleep() when _thread.interrupt_main()

2020-12-25 Thread AR Kareem
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

[issue39905] Cannot load sub package having a 3-dot relative import

2020-03-08 Thread Yon Ar Chall
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