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
3a2acb50
Commit
3a2acb50
authored
Jun 05, 2010
by
Benjamin Peterson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove PyType_Ready call; float should be initialized in interpreter startup
parent
2aa6c382
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
6 deletions
+1
-6
Objects/abstract.c
Objects/abstract.c
+1
-6
No files found.
Objects/abstract.c
View file @
3a2acb50
...
...
@@ -752,11 +752,6 @@ PyObject_Format(PyObject* obj, PyObject *format_spec)
goto
done
;
}
/* Make sure the type is initialized. float gets initialized late */
if
(
Py_TYPE
(
obj
)
->
tp_dict
==
NULL
)
if
(
PyType_Ready
(
Py_TYPE
(
obj
))
<
0
)
goto
done
;
/* Check for a __format__ method and call it. */
if
(
PyInstance_Check
(
obj
))
{
/* We're an instance of a classic class */
...
...
@@ -826,7 +821,7 @@ done1:
}
else
{
/* Not an instance of a classic class, use the code
from py3k */
static
PyObject
*
format_cache
;
static
PyObject
*
format_cache
=
NULL
;
/* Find the (unbound!) __format__ method (a borrowed
reference) */
...
...
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