This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Changing the preferences mechanism
Type: Stage:
Components: macOS Versions:
process
Status: closed Resolution: wont fix
Dependencies: Superseder:
Assigned To: jackjansen Nosy List: aubonbeurre, jackjansen
Priority: normal Keywords: patch

Created on 2001-10-18 22:34 by aubonbeurre, last changed 2022-04-10 16:04 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
patch.sit aubonbeurre, 2001-10-18 22:34 The patch + a py sample
Messages (2)
msg37888 - (view) Author: Alexandre Parenteau (aubonbeurre) Date: 2001-10-18 22:34
Proposal to enhance MacPython preferences:
------------------------------------------

- Motivation : when embedding MacPython in MacCvs, I 
realized the way MacPython is storing the preferences 
in a solid Mac handle is a serious problem for MacCvs 
in order to use several versions of MacPython, and 
still being able to control the MacPython resources.

- The patch : it is not complete, it is *only* a 
proposal for an under mechanism which stores 
individually "Persistent" values, or values which have 
the ability to be retained/loaded/saved accross 
several MacPython sessions.

- The C side: example: defining a new persistent value 
is as simple as:

static CPersistentInt version("version", 
POPT_VERSION_CURRENT);

The value gets automatically linked to all the other 
persistent values so they can be loaded and stored all 
together. There are a set of pre-defined types of 
persistent values (int, bool, string)

- The Python side : I have included a sample 
testpersistent.py which illustrates how the script can 
access, load, store the values.

Note : the C++ implementation is just for convenience 
and RTTI is not used.
msg37889 - (view) Author: Jack Jansen (jackjansen) * (Python committer) Date: 2002-08-15 22:23
Logged In: YES 
user_id=45365

Alexandre,
I think that I won't fix this. OS9-based MacPython is quickly becoming a thing of the past, especially for developers (and 99% of the users of MacCVS will be developers, methinks).

If you disagree reopen the report and convince me:-)
History
Date User Action Args
2022-04-10 16:04:32adminsetgithub: 35352
2001-10-18 22:34:42aubonbeurrecreate