[issue24464] "sqlite3_enable_shared_cache" deprecation warning when compiling with macOS system SQLite3

2021-01-09 Thread Berker Peksag


Berker Peksag  added the comment:


New changeset d16f6176abdecbb7ab231dc78beccfaa095beff6 by Erlend Egeberg 
Aasland in branch 'master':
bpo-24464: Fix sqlite3.enable_shared_cache() deprecation wrapper (GH-24170)
https://github.com/python/cpython/commit/d16f6176abdecbb7ab231dc78beccfaa095beff6


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue24464] "sqlite3_enable_shared_cache" deprecation warning when compiling with macOS system SQLite3

2021-01-08 Thread Erlend Egeberg Aasland


Change by Erlend Egeberg Aasland :


--
pull_requests: +22997
pull_request: https://github.com/python/cpython/pull/24170

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue24464] "sqlite3_enable_shared_cache" deprecation warning when compiling with macOS system SQLite3

2021-01-05 Thread Berker Peksag


Change by Berker Peksag :


--
components: +macOS

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue24464] "sqlite3_enable_shared_cache" deprecation warning when compiling with macOS system SQLite3

2021-01-05 Thread Berker Peksag


Berker Peksag  added the comment:

It's now deprecated in 3.10.

--
components: +Extension Modules -Build, macOS
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed
type:  -> enhancement
versions: +Python 3.10 -Python 3.9

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue24464] "sqlite3_enable_shared_cache" deprecation warning when compiling with macOS system SQLite3

2021-01-05 Thread Berker Peksag


Berker Peksag  added the comment:


New changeset ddb5e11683c8db9d2095f2f9406701443c4dc9b3 by Erlend Egeberg 
Aasland in branch 'master':
bpo-24464: Deprecate sqlite3.enable_shared_cache (GH-24008)
https://github.com/python/cpython/commit/ddb5e11683c8db9d2095f2f9406701443c4dc9b3


--
nosy: +berker.peksag

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue24464] "sqlite3_enable_shared_cache" deprecation warning when compiling with macOS system SQLite3

2020-12-30 Thread Erlend Egeberg Aasland


Change by Erlend Egeberg Aasland :


--
pull_requests: +22850
pull_request: https://github.com/python/cpython/pull/24008

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue24464] "sqlite3_enable_shared_cache" deprecation warning when compiling with macOS system SQLite3

2020-09-05 Thread Erlend Egeberg Aasland


Erlend Egeberg Aasland  added the comment:

The SQLite docs clearly states that using sqlite3_enable_shared_cache() is not 
recommended:

"Shared cache is disabled by default. It is recommended that it stay that way. 
In other words, do not use this routine. This interface continues to be 
provided for historical compatibility, but its use is discouraged. Any use of 
shared cache is discouraged."

If sqlite3.enable_shared_cache is not even documented, perhaps we could just 
deprecate and remove it?

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue24464] "sqlite3_enable_shared_cache" deprecation warning when compiling with macOS system SQLite3

2020-05-24 Thread Erlend Egeberg Aasland


Change by Erlend Egeberg Aasland :


--
nosy: +erlendaasland

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue24464] "sqlite3_enable_shared_cache" deprecation warning when compiling with macOS system SQLite3

2019-09-28 Thread Ned Deily


Ned Deily  added the comment:

Also, I notice that, while there is docstring help for 
sqlite3.enable_shared_cache, it does not seem to be mentioned in the sqlite3 
module doc page in the Library reference.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue24464] "sqlite3_enable_shared_cache" deprecation warning when compiling with macOS system SQLite3

2019-09-28 Thread Ned Deily


Ned Deily  added the comment:

Now that this has come up again, it's worth noting Ronald's comment in 
msg295954 from duplicate Issue30646:

"See also . Apple basically 
disabled this function starting at macOS 10.7, that's why there's a warning.

It is possible to suppress the warning, but I don't think its worth the trouble.

BTW. The python documentation for this function claims this changes a 
thread-local setting, but the SQLite documentation says this is a process 
global setting in SQLite 3.5.0 and later (released in 2007).  It is possible to 
make behaviour match the python documentation by making 
_sqlite3.enable_shared_cache store a flag that's used in the call to 
sqlite3_open_v2. That would be a backward compatibility concern (there's bound 
to be users that rely on the current behavior), but would also avoid this 
warning."

--
components: +Build
title: Got warning when compiling sqlite3 module on Mac OS X -> 
"sqlite3_enable_shared_cache" deprecation warning when compiling with macOS 
system SQLite3
versions: +Python 3.9 -Python 3.4, Python 3.5, Python 3.6

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com