Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
06399dc6
Commit
06399dc6
authored
Mar 10, 2000
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Marc-Andre Lemburg: add calls to initialize and finalize Unicode and
Codec registry.
parent
074f3793
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
Python/pythonrun.c
Python/pythonrun.c
+18
-0
No files found.
Python/pythonrun.c
View file @
06399dc6
...
...
@@ -76,6 +76,12 @@ static void call_ll_exitfuncs Py_PROTO((void));
int
_Py_AskYesNo
(
char
*
prompt
);
#endif
extern
void
_PyUnicode_Init
();
extern
void
_PyUnicode_Fini
();
extern
void
_PyCodecRegistry_Init
();
extern
void
_PyCodecRegistry_Fini
();
int
Py_DebugFlag
;
/* Needed by parser.c */
int
Py_VerboseFlag
;
/* Needed by import.c */
int
Py_InteractiveFlag
;
/* Needed by Py_FdIsInteractive() below */
...
...
@@ -137,6 +143,12 @@ Py_Initialize()
if
(
interp
->
modules
==
NULL
)
Py_FatalError
(
"Py_Initialize: can't make modules dictionary"
);
/* Init codec registry */
_PyCodecRegistry_Init
();
/* Init Unicode implementation; relies on the codec registry */
_PyUnicode_Init
();
bimod
=
_PyBuiltin_Init_1
();
if
(
bimod
==
NULL
)
Py_FatalError
(
"Py_Initialize: can't initialize __builtin__"
);
...
...
@@ -206,6 +218,12 @@ Py_Finalize()
/* Destroy PyExc_MemoryErrorInst */
_PyBuiltin_Fini_1
();
/* Cleanup Unicode implementation */
_PyUnicode_Fini
();
/* Cleanup Codec registry */
_PyCodecRegistry_Fini
();
/* Destroy all modules */
PyImport_Cleanup
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment