Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions from_cpython/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,8 @@ add_custom_command(OUTPUT ${STDMODULES}
Modules/termios.c
Modules/_cursesmodule.c
Modules/mmapmodule.c
Modules/_localemodule.c
Modules/cPickle.c
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})
add_custom_target(sharedmods ALL DEPENDS ${CMAKE_BINARY_DIR}/from_cpython/Lib/_multiprocessing.pyston.so)

Expand Down
4 changes: 4 additions & 0 deletions from_cpython/Include/classobject.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@ PyAPI_DATA(PyTypeObject*) instancemethod_cls;
#define PyMethod_Check(op) (Py_TYPE(op) == &PyMethod_Type)

PyAPI_FUNC(PyObject *) PyClass_New(PyObject *, PyObject *, PyObject *) PYSTON_NOEXCEPT;

// Pyston change: pyston addition returns PyClassObject->cl_name
PyAPI_FUNC(PyObject *) PyClass_Name(PyObject *) PYSTON_NOEXCEPT;

PyAPI_FUNC(PyObject *) PyInstance_New(PyObject *, PyObject *,
PyObject *) PYSTON_NOEXCEPT;
PyAPI_FUNC(PyObject *) PyInstance_NewRaw(PyObject *, PyObject *) PYSTON_NOEXCEPT;
Expand Down
2 changes: 2 additions & 0 deletions from_cpython/Include/dictobject.h
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,8 @@ PyAPI_DATA(PyTypeObject) PyDictValues_Type;

PyAPI_DATA(PyTypeObject*) dict_cls;
#define PyDict_Type (*dict_cls)
PyAPI_DATA(PyTypeObject*) attrwrapper_cls;
#define PyAttrWrapper_Type (*attrwrapper_cls)
PyAPI_DATA(PyTypeObject*) dictiterkey_cls;
#define PyDictIterKey_Type (*dictiterkey_cls)
PyAPI_DATA(PyTypeObject*) dictitervalue_cls;
Expand Down
4 changes: 4 additions & 0 deletions from_cpython/Include/methodobject.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ PyAPI_DATA(PyTypeObject*) capifunc_cls;

#define PyCFunction_Check(op) (Py_TYPE(op) == &PyCFunction_Type)

// Pyston change: expose our builtin_function_or_method type
PyAPI_DATA(PyTypeObject*) builtin_function_or_method_cls;
#define PyBuiltinFunction_Type (*builtin_function_or_method_cls)

typedef PyObject *(*PyCFunction)(PyObject *, PyObject *);
typedef PyObject *(*PyCFunctionWithKeywords)(PyObject *, PyObject *,
PyObject *);
Expand Down
2 changes: 2 additions & 0 deletions from_cpython/Lib/test/pickletester.py
Original file line number Diff line number Diff line change
Expand Up @@ -1123,6 +1123,8 @@ def test_incomplete_input(self):
s = StringIO.StringIO("X''.")
self.assertRaises(EOFError, self.module.load, s)

# Pyston change:
@unittest.skip("pyston does not support this currently")
def test_restricted(self):
# issue7128: cPickle failed in restricted mode
builtins = {self.module.__name__: self.module,
Expand Down
1 change: 0 additions & 1 deletion from_cpython/Lib/test/test__locale.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# expected: fail
from test.test_support import run_unittest
from _locale import (setlocale, LC_NUMERIC, localeconv, Error)
try:
Expand Down
1 change: 0 additions & 1 deletion from_cpython/Lib/test/test_cookie.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# expected: fail
# Simple test suite for Cookie.py

from test.test_support import run_unittest, run_doctest, check_warnings
Expand Down
1 change: 0 additions & 1 deletion from_cpython/Lib/test/test_cpickle.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# expected: fail
import cPickle
import cStringIO
import io
Expand Down
1 change: 0 additions & 1 deletion from_cpython/Lib/test/test_locale.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# expected: fail
from test.test_support import run_unittest, verbose
import unittest
import locale
Expand Down
1 change: 0 additions & 1 deletion from_cpython/Lib/test/test_pickle.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# expected: fail
import pickle
from cStringIO import StringIO

Expand Down
1 change: 0 additions & 1 deletion from_cpython/Lib/test/test_pickletools.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# expected: fail
import pickle
import pickletools
from test import test_support
Expand Down
1 change: 0 additions & 1 deletion from_cpython/Lib/test/test_sax.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# expected: fail
# regression test for SAX 2.0 -*- coding: utf-8 -*-
# $Id$

Expand Down
115 changes: 115 additions & 0 deletions from_cpython/Lib/test/xmltestdata/test.xml.out
Original file line number Diff line number Diff line change
@@ -0,0 +1,115 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<HTML xmlns:pp="http://www.isogen.com/paul/post-processor">
<TITLE>Introduction to XSL</TITLE>
<H1>Introduction to XSL</H1>



<HR></HR>
<H2>Overview
</H2>
<UL>

<LI>1.Intro</LI>

<LI>2.History</LI>

<LI>3.XSL Basics</LI>

<LI>Lunch</LI>

<LI>4.An XML Data Model</LI>

<LI>5.XSL Patterns</LI>

<LI>6.XSL Templates</LI>

<LI>7.XSL Formatting Model
</LI>

</UL>






<HR></HR>
<H2>Intro</H2>
<UL>

<LI>Who am I?</LI>

<LI>Who are you?</LI>

<LI>Why are we here?
</LI>

</UL>






<HR></HR>
<H2>History: XML and SGML</H2>
<UL>

<LI>XML is a subset of SGML.</LI>

<LI>SGML allows the separation of abstract content from formatting.</LI>

<LI>Also one of XML's primary virtues (in the doc publishing domain).
</LI>

</UL>






<HR></HR>
<H2>History: What are stylesheets?</H2>
<UL>

<LI>Stylesheets specify the formatting of SGML/XML documents.</LI>

<LI>Stylesheets put the "style" back into documents.</LI>

<LI>New York Times content+NYT Stylesheet = NYT paper
</LI>

</UL>






<HR></HR>
<H2>History: FOSI</H2>
<UL>

<LI>FOSI: "Formatted Output Specification Instance"
<UL>
<LI>MIL-STD-28001
</LI>

<LI>FOSI's are SGML documents
</LI>

<LI>A stylesheet for another document
</LI>
</UL></LI>

<LI>Obsolete but implemented...
</LI>

</UL>




</HTML>
Loading