代码搜索结果
找到约 10,000 项符合
Python 的代码
test_errno.py
#! /usr/bin/env python
"""Test the errno module
Roger E. Masse
"""
import errno
from test_support import verbose
errors = ['E2BIG', 'EACCES', 'EADDRINUSE', 'EADDRNOTAVAIL', 'EADV',
'EAF
mailer-tweak.py
#!/usr/bin/env python2
#
# mailer-tweak.py: tweak the svn:date properties on all revisions
#
# We need constant dates for the revisions so that we can consistently
# compare an output against a k
pycheck.py
import sys
if sys.hexversion < 0x2000000:
print "pycheck: WARNING, Python 2.X or newer is required to run tests."
sys.exit(1)
sys.exit(0)
basic_tests.py
#!/usr/bin/env python
#
# basic_tests.py: testing working-copy interactions with ra_local
#
# Subversion is a tool for revision control.
# See http://subversion.tigris.org for more informati
lexpython.cxx
// Scintilla source code edit control
/** @file LexPython.cxx
** Lexer for Python.
**/
// Copyright 1998-2002 by Neil Hodgson
// The License.txt file describes the conditions u
process.py
#!/usr/bin/env python
# Copyright (c) 2002-2003 ActiveState
# See LICENSE.txt for license details.
""" Contents of LICENSE.txt:
Permission is hereby granted, free of charge, to any person obtaining a
hello.py
#!/usr/bin/env python
"""Hello, wxPython! program."""
import wx
class Frame(wx.Frame):
"""Frame class that displays an image."""
def __init__(self, image, parent=None, id=-1,
goodexample.py
#!/usr/bin/env python
import wx
class RefactorExample(wx.Frame):
def __init__(self, parent, id):
wx.Frame.__init__(self, parent, id, 'Refactor Example',
size=(340, 200))
badexample.py
#!/usr/bin/env python
import wx
class RefactorExample(wx.Frame):
def __init__(self, parent, id):
wx.Frame.__init__(self, parent, id, 'Refactor Example',
size=(340, 200))
insert.py
#!/usr/bin/env python
import wx
class InsertFrame(wx.Frame):
def __init__(self, parent, id):
wx.Frame.__init__(self, parent, id, 'Frame With Button',
size=(300, 100))