Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
Pyston
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
Boxiang Sun
Pyston
Commits
4c7c0a05
Commit
4c7c0a05
authored
Mar 04, 2015
by
Kevin Modzelewski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add 'buffer' and reenable _abcoll
'buffer' is currently just an empty class.
parent
01ff3e39
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
5 deletions
+6
-5
from_cpython/Lib/_abcoll.py
from_cpython/Lib/_abcoll.py
+0
-3
from_cpython/Lib/collections.py
from_cpython/Lib/collections.py
+2
-2
src/runtime/builtin_modules/builtins.cpp
src/runtime/builtin_modules/builtins.cpp
+3
-0
test/tests/userlist_test.py
test/tests/userlist_test.py
+1
-0
No files found.
from_cpython/Lib/_abcoll.py
View file @
4c7c0a05
# Copyright 2007 Google, Inc. All Rights Reserved.
# Licensed to PSF under a Contributor Agreement.
# Pyston change: disable using the _abcoll module for now.
raise
NotImplementedError
()
"""Abstract Base Classes (ABCs) for collections, according to PEP 3119.
DON'T USE THIS MODULE DIRECTLY! The classes here should be imported
...
...
from_cpython/Lib/collections.py
View file @
4c7c0a05
...
...
@@ -2,8 +2,8 @@ __all__ = ['Counter', 'deque', 'defaultdict', 'namedtuple', 'OrderedDict']
# For bootstrapping reasons, the collection ABCs are defined in _abcoll.py.
# They should however be considered an integral part of collections.py.
# Pyston change: disable using the _abcoll module for now.
#
from _abcoll import *
#
import _abcoll
from
_abcoll
import
*
import
_abcoll
# __all__ += _abcoll.__all__
from
_collections
import
deque
,
defaultdict
...
...
src/runtime/builtin_modules/builtins.cpp
View file @
4c7c0a05
...
...
@@ -1138,5 +1138,8 @@ void setupBuiltins() {
builtins_module
->
giveAttr
(
"classmethod"
,
classmethod_cls
);
builtins_module
->
giveAttr
(
"eval"
,
new
BoxedBuiltinFunctionOrMethod
(
boxRTFunction
((
void
*
)
eval
,
UNKNOWN
,
1
,
0
,
false
,
false
),
"eval"
));
BoxedClass
*
buffer_cls
=
BoxedHeapClass
::
create
(
type_cls
,
object_cls
,
NULL
,
0
,
0
,
sizeof
(
Box
),
false
,
"buffer"
);
builtins_module
->
giveAttr
(
"buffer"
,
buffer_cls
);
}
}
test/tests/userlist_test.py
0 → 100644
View file @
4c7c0a05
import
UserList
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