代码搜索结果
找到约 10,000 项符合
Python 的代码
latin_1.py
""" Python 'latin-1' Codec
Written by Marc-Andre Lemburg (mal@lemburg.com).
(c) Copyright CNRI, All Rights Reserved. NO WARRANTY.
"""
import codecs
### Codec APIs
class Codec(codecs.
utf_16.py
""" Python 'utf-16' Codec
Written by Marc-Andre Lemburg (mal@lemburg.com).
(c) Copyright CNRI, All Rights Reserved. NO WARRANTY.
"""
import codecs, sys
### Codec APIs
class Codec(cod
errnomodule.c
/* Portions Copyright (c) 2005 Nokia Corporation */
/* Errno module */
#include "Python.h"
/* Mac with GUSI has more errors than those in errno.h */
#ifdef USE_GUSI
#include
resource.c
#include "Python.h"
#include
#include
#include
#include
/* On some systems, these aren't in any header file.
On others they are, with in
xxsubtype.c
#include "Python.h"
#include "structmember.h"
static char xxsubtype__doc__[] =
"xxsubtype is an example module showing how to subtype builtin types from C.\n"
"test_descr.py in the standard test
timingmodule.c
/*
* Author: George V. Neville-Neil
*/
#include "Python.h"
/* Our stuff... */
#include "timing.h"
static PyObject *
start_timing(PyObject *self, PyObject *args)
{
if (!PyArg_Parse(ar
signalmodule.c
/* Signal module -- many thanks to Lance Ellinghaus */
/* XXX Signals should be recorded per thread, now we have thread state. */
#include "Python.h"
#include "intrcheck.h"
#ifdef MS_WIN32
imageop.c
/* imageopmodule - Various operations on pictures */
#ifdef sun
#define signed
#endif
#include "Python.h"
#if SIZEOF_INT == 4
typedef int Py_Int32;
typedef unsigned int Py_UInt32;
#els
ccpython.cc
/* Minimal main program -- everything is loaded from the library */
#include "Python.h"
extern "C"
DL_EXPORT(int) Py_Main( int argc, char *argv[] );
int main( int argc, char *argv[] )
{
r
node.c
/* Portions Copyright (c) 2005 Nokia Corporation */
/* Parse tree node implementation */
#include "Python.h"
#include "node.h"
#include "errcode.h"
DL_EXPORT(node *)
PyNode_New(int type)
{