mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-27 15:14:31 +00:00
Minor cleanup on PythonDataObject constructors.
Added a constructor that takes list_size for `PythonList`. Made all single-argument constructors explicit. Re-ordered constructors to be consistent with other classes. llvm-svn: 250304
This commit is contained in:
1 parent
60c24f70fe
commit
87f4772985
2 files changed
+13
-5
No files matched your search
@@ -378,6 +378,12 @@ PythonList::PythonList(PyInitialValue value)
|
||||
Reset(PyRefType::Owned, PyList_New(0));
|
||||
}
|
||||
|
||||
PythonList::PythonList(int list_size)
|
||||
: PythonObject()
|
||||
{
|
||||
Reset(PyRefType::Owned, PyList_New(list_size));
|
||||
}
|
||||
|
||||
PythonList::PythonList(PyRefType type, PyObject *py_obj)
|
||||
: PythonObject()
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user