path
stringlengths
14
112
content
stringlengths
0
6.32M
size
int64
0
6.32M
max_lines
int64
1
100k
repo_name
stringclasses
2 values
autogenerated
bool
1 class
cosmopolitan/third_party/python/Lib/xmlrpc/client.py
# # XML-RPC CLIENT LIBRARY # $Id$ # # an XML-RPC client interface for Python. # # the marshalling and response parser code can also be used to # implement XML-RPC servers. # # Notes: # this version is designed to work with Python 2.1 or newer. # # History: # 1999-01-14 fl Created # 1999-01-15 fl Changed dateTime to u...
48,988
1,519
jart/cosmopolitan
false
cosmopolitan/third_party/python/Lib/xmlrpc/server.py
r"""XML-RPC Servers. This module can be used to create simple XML-RPC servers by creating a server and either installing functions, a class instance, or by extending the SimpleXMLRPCServer class. It can also be used to handle XML-RPC requests in a CGI environment using CGIXMLRPCRequestHandler. The Doc* classes can b...
37,195
1,004
jart/cosmopolitan
false
cosmopolitan/third_party/python/Lib/xmlrpc/__init__.py
# This directory is a Python package.
38
2
jart/cosmopolitan
false
cosmopolitan/third_party/python/Lib/curses/ascii.py
"""Constants and membership tests for ASCII characters""" NUL = 0x00 # ^@ SOH = 0x01 # ^A STX = 0x02 # ^B ETX = 0x03 # ^C EOT = 0x04 # ^D ENQ = 0x05 # ^E ACK = 0x06 # ^F BEL = 0x07 # ^G BS = 0x08 # ^H TAB = 0x09 # ^I HT = 0x09 # ^I LF = 0x0a # ^J NL =...
2,547
100
jart/cosmopolitan
false
cosmopolitan/third_party/python/Lib/curses/has_key.py
# # Emulation of has_key() function for platforms that don't use ncurses # import _curses # Table mapping curses keys to the terminfo capability name _capability_names = { _curses.KEY_A1: 'ka1', _curses.KEY_A3: 'ka3', _curses.KEY_B2: 'kb2', _curses.KEY_BACKSPACE: 'kbs', _curses.KEY_BEG: 'kbeg', ...
5,634
193
jart/cosmopolitan
false
cosmopolitan/third_party/python/Lib/curses/panel.py
"""curses.panel Module for using panels with curses. """ from _curses_panel import *
87
7
jart/cosmopolitan
false
cosmopolitan/third_party/python/Lib/curses/textpad.py
"""Simple textbox editing widget with Emacs-like keybindings.""" import curses import curses.ascii def rectangle(win, uly, ulx, lry, lrx): """Draw a rectangle with corners at the provided upper-left and lower-right coordinates. """ win.vline(uly+1, ulx, curses.ACS_VLINE, lry - uly - 1) win.hline(u...
7,657
202
jart/cosmopolitan
false
cosmopolitan/third_party/python/Lib/curses/__init__.py
"""curses The main package for curses support for Python. Normally used by importing the package, and perhaps a particular module inside it. import curses from curses import textpad curses.initscr() ... """ from _curses import * import os as _os import sys as _sys # Some constants, most notably the AC...
3,366
102
jart/cosmopolitan
false
cosmopolitan/third_party/python/Lib/tkinter/tix.py
# Tix.py -- Tix widget wrappers. # # For Tix, see http://tix.sourceforge.net # # - Sudhir Shenoy (sshenoy@gol.com), Dec. 1995. # based on an idea of Jean-Marc Lugrin (lugrin@ms.com) # # NOTE: In order to minimize changes to Tkinter.py, some of the code here # (TixWidget.__init__) has been take...
77,088
1,947
jart/cosmopolitan
false
cosmopolitan/third_party/python/Lib/tkinter/scrolledtext.py
"""A ScrolledText widget feels like a text widget but also has a vertical scroll bar on its right. (Later, options may be added to add a horizontal bar as well, to make the bars disappear automatically when not needed, to move them to the other side of the window, etc.) Configuration options are passed to the Text wi...
1,814
55
jart/cosmopolitan
false
cosmopolitan/third_party/python/Lib/tkinter/simpledialog.py
# # An Introduction to Tkinter # # Copyright (c) 1997 by Fredrik Lundh # # This copyright applies to Dialog, askinteger, askfloat and asktring # # fredrik@pythonware.com # http://www.pythonware.com # """This modules handles dialog boxes. It contains the following public symbols: SimpleDialog -- A simple but flexible ...
11,424
424
jart/cosmopolitan
false
cosmopolitan/third_party/python/Lib/tkinter/dialog.py
# dialog.py -- Tkinter interface to the tk_dialog script. from tkinter import * from tkinter import _cnfmerge DIALOG_ICON = 'questhead' class Dialog(Widget): def __init__(self, master=None, cnf={}, **kw): cnf = _cnfmerge((cnf, kw)) self.widgetName = '__dialog__' Widget._setup(self, maste...
1,509
47
jart/cosmopolitan
false
cosmopolitan/third_party/python/Lib/tkinter/commondialog.py
# base class for tk common dialogues # # this module provides a base class for accessing the common # dialogues available in Tk 4.2 and newer. use filedialog, # colorchooser, and messagebox to access the individual # dialogs. # # written by Fredrik Lundh, May 1997 # from tkinter import * class Dialog: command ...
1,247
56
jart/cosmopolitan
false
cosmopolitan/third_party/python/Lib/tkinter/dnd.py
"""Drag-and-drop support for Tkinter. This is very preliminary. I currently only support dnd *within* one application, between different windows (or within the same window). I am trying to make this as generic as possible -- not dependent on the use of a particular widget or icon type, etc. I also hope that this wi...
11,488
322
jart/cosmopolitan
false
cosmopolitan/third_party/python/Lib/tkinter/constants.py
# Symbolic constants for Tk # Booleans NO=FALSE=OFF=0 YES=TRUE=ON=1 # -anchor and -sticky N='n' S='s' W='w' E='e' NW='nw' SW='sw' NE='ne' SE='se' NS='ns' EW='ew' NSEW='nsew' CENTER='center' # -fill NONE='none' X='x' Y='y' BOTH='both' # -side LEFT='left' TOP='top' RIGHT='right' BOTTOM='bottom' # -relief RAISED='rai...
1,493
111
jart/cosmopolitan
false
cosmopolitan/third_party/python/Lib/tkinter/__main__.py
"""Main entry point""" import sys if sys.argv[0].endswith("__main__.py"): sys.argv[0] = "python -m tkinter" from . import _test as main main()
148
8
jart/cosmopolitan
false
cosmopolitan/third_party/python/Lib/tkinter/colorchooser.py
# tk common color chooser dialogue # # this module provides an interface to the native color dialogue # available in Tk 4.2 and newer. # # written by Fredrik Lundh, May 1997 # # fixed initialcolor handling in August 1998 # # # options (all have default values): # # - initialcolor: color to mark as selected when dialog...
1,791
73
jart/cosmopolitan
false
cosmopolitan/third_party/python/Lib/tkinter/font.py
# Tkinter font wrapper # # written by Fredrik Lundh, February 1998 # __version__ = "0.9" import itertools import tkinter # weight/slant NORMAL = "normal" ROMAN = "roman" BOLD = "bold" ITALIC = "italic" def nametofont(name): """Given the name of a tk named font, returns a Font representation. """ ret...
6,581
233
jart/cosmopolitan
false
cosmopolitan/third_party/python/Lib/tkinter/filedialog.py
"""File selection dialog classes. Classes: - FileDialog - LoadFileDialog - SaveFileDialog This module also presents tk common file dialogues, it provides interfaces to the native file dialogues available in Tk 4.2 and newer, and the directory dialogue available in Tk 8.3 and newer. These interfaces were written by F...
14,502
480
jart/cosmopolitan
false
cosmopolitan/third_party/python/Lib/tkinter/ttk.py
"""Ttk wrapper. This module provides classes to allow using Tk themed widget set. Ttk is based on a revised and enhanced version of TIP #48 (http://tip.tcl.tk/48) specified style engine. Its basic idea is to separate, to the extent possible, the code implementing a widget's behavior from the code implementing its ap...
57,090
1,656
jart/cosmopolitan
false
cosmopolitan/third_party/python/Lib/tkinter/messagebox.py
# tk common message boxes # # this module provides an interface to the native message boxes # available in Tk 4.2 and newer. # # written by Fredrik Lundh, May 1997 # # # options (all have default values): # # - default: which button to make default (one of the reply codes) # # - icon: which icon to display (see below)...
3,701
135
jart/cosmopolitan
false
cosmopolitan/third_party/python/Lib/tkinter/__init__.py
"""Wrapper functions for Tcl/Tk. Tkinter provides classes which allow the display, positioning and control of widgets. Toplevel widgets are Tk and Toplevel. Other widgets are Frame, Label, Entry, Text, Canvas, Button, Radiobutton, Checkbutton, Scale, Listbox, Scrollbar, OptionMenu, Spinbox LabelFrame and PanedWindow. ...
166,971
4,009
jart/cosmopolitan
false
cosmopolitan/third_party/python/Lib/tkinter/test/runtktests.py
""" Use this module to get and run all tk tests. tkinter tests should live in a package inside the directory where this file lives, like test_tkinter. Extensions also should live in packages following the same rule as above. """ import os import importlib import test.support this_dir_path = os.path.abspath(os.path.d...
2,230
70
jart/cosmopolitan
false
cosmopolitan/third_party/python/Lib/tkinter/test/README
Writing new tests ================= Precaution ---------- New tests should always use only one Tk window at once, like all the current tests do. This means that you have to destroy the current window before creating another one, and clean up after the test. The motivation behind this is that some test...
566
15
jart/cosmopolitan
false
cosmopolitan/third_party/python/Lib/tkinter/test/support.py
import functools import re import tkinter import unittest class AbstractTkTest: @classmethod def setUpClass(cls): cls._old_support_default_root = tkinter._support_default_root destroy_default_root() tkinter.NoDefaultRoot() cls.root = tkinter.Tk() cls.wantobjects = cls.r...
3,722
118
jart/cosmopolitan
false
cosmopolitan/third_party/python/Lib/tkinter/test/widget_tests.py
# Common tests for test_tkinter/test_widgets.py and test_ttk/test_widgets.py import unittest import sys import tkinter from tkinter.ttk import Scale from tkinter.test.support import (AbstractTkTest, tcl_version, requires_tcl, get_tk_patchlevel, pixels_conv, tcl_obj_eq) import test.sup...
20,069
549
jart/cosmopolitan
false
cosmopolitan/third_party/python/Lib/tkinter/test/__init__.py
0
1
jart/cosmopolitan
false
cosmopolitan/third_party/python/Lib/tkinter/test/test_ttk/test_functions.py
# -*- encoding: utf-8 -*- import unittest from tkinter import ttk class MockTkApp: def splitlist(self, arg): if isinstance(arg, tuple): return arg return arg.split(':') def wantobjects(self): return True class MockTclObj(object): typename = 'test' def __init__(s...
17,129
462
jart/cosmopolitan
false
cosmopolitan/third_party/python/Lib/tkinter/test/test_ttk/test_widgets.py
import unittest import tkinter from tkinter import ttk, TclError from test.support import requires import sys from tkinter.test.test_ttk.test_functions import MockTclObj from tkinter.test.support import (AbstractTkTest, tcl_version, get_tk_patchlevel, simulate_mouse_click) from tkinte...
62,539
1,722
jart/cosmopolitan
false
cosmopolitan/third_party/python/Lib/tkinter/test/test_ttk/test_extensions.py
import sys import unittest import tkinter from tkinter import ttk from test.support import requires, run_unittest, swap_attr from tkinter.test.support import AbstractTkTest, destroy_default_root requires('gui') class LabeledScaleTest(AbstractTkTest, unittest.TestCase): def tearDown(self): self.root.updat...
11,717
324
jart/cosmopolitan
false
cosmopolitan/third_party/python/Lib/tkinter/test/test_ttk/test_style.py
import unittest import tkinter from tkinter import ttk from test.support import requires, run_unittest from tkinter.test.support import AbstractTkTest requires('gui') class StyleTest(AbstractTkTest, unittest.TestCase): def setUp(self): super().setUp() self.style = ttk.Style(self.root) def t...
2,900
93
jart/cosmopolitan
false
cosmopolitan/third_party/python/Lib/tkinter/test/test_ttk/__init__.py
0
1
jart/cosmopolitan
false
cosmopolitan/third_party/python/Lib/tkinter/test/test_tkinter/test_loadtk.py
import os import sys import unittest import test.support as test_support from tkinter import Tcl, TclError test_support.requires('gui') class TkLoadTest(unittest.TestCase): @unittest.skipIf('DISPLAY' not in os.environ, 'No $DISPLAY set.') def testLoadTk(self): tcl = Tcl() self.assertRaises(Tc...
1,503
47
jart/cosmopolitan
false
cosmopolitan/third_party/python/Lib/tkinter/test/test_tkinter/test_font.py
import unittest import tkinter from tkinter import font from test.support import requires, run_unittest from tkinter.test.support import AbstractTkTest requires('gui') fontname = "TkDefaultFont" class FontTest(AbstractTkTest, unittest.TestCase): @classmethod def setUpClass(cls): AbstractTkTest.setUp...
3,633
97
jart/cosmopolitan
false
cosmopolitan/third_party/python/Lib/tkinter/test/test_tkinter/test_images.py
import unittest import tkinter from test import support from tkinter.test.support import AbstractTkTest, requires_tcl support.requires('gui') class MiscTest(AbstractTkTest, unittest.TestCase): def test_image_types(self): image_types = self.root.image_types() self.assertIsInstance(image_types, tu...
13,355
328
jart/cosmopolitan
false
cosmopolitan/third_party/python/Lib/tkinter/test/test_tkinter/test_variables.py
import unittest import gc from tkinter import (Variable, StringVar, IntVar, DoubleVar, BooleanVar, Tcl, TclError) class Var(Variable): _default = "default" side_effect = False def set(self, value): self.side_effect = True super().set(value) class TestBase(unittest....
9,821
311
jart/cosmopolitan
false
cosmopolitan/third_party/python/Lib/tkinter/test/test_tkinter/test_text.py
import unittest import tkinter from test.support import requires, run_unittest from tkinter.test.support import AbstractTkTest requires('gui') class TextTest(AbstractTkTest, unittest.TestCase): def setUp(self): super().setUp() self.text = tkinter.Text(self.root) def test_debug(self): ...
1,442
48
jart/cosmopolitan
false
cosmopolitan/third_party/python/Lib/tkinter/test/test_tkinter/test_widgets.py
import unittest import tkinter from tkinter import TclError import os import sys from test.support import requires from tkinter.test.support import (tcl_version, requires_tcl, get_tk_patchlevel, widget_eq) from tkinter.test.widget_tests import ( add_standard_options, noconv, pixel...
47,210
1,234
jart/cosmopolitan
false
cosmopolitan/third_party/python/Lib/tkinter/test/test_tkinter/test_misc.py
import unittest import tkinter from test import support from tkinter.test.support import AbstractTkTest support.requires('gui') class MiscTest(AbstractTkTest, unittest.TestCase): def test_repr(self): t = tkinter.Toplevel(self.root, name='top') f = tkinter.Frame(t, name='child') self.asser...
5,787
164
jart/cosmopolitan
false
cosmopolitan/third_party/python/Lib/tkinter/test/test_tkinter/test_geometry_managers.py
import unittest import re import tkinter from tkinter import TclError from test.support import requires from tkinter.test.support import pixels_conv, tcl_version, requires_tcl from tkinter.test.widget_tests import AbstractWidgetTest requires('gui') class PackTest(AbstractWidgetTest, unittest.TestCase): test_ke...
41,015
907
jart/cosmopolitan
false
cosmopolitan/third_party/python/Lib/tkinter/test/test_tkinter/__init__.py
0
1
jart/cosmopolitan
false
cosmopolitan/third_party/python/Lib/logging/handlers.py
# Copyright 2001-2016 by Vinay Sajip. All Rights Reserved. # # Permission to use, copy, modify, and distribute this software and its # documentation for any purpose and without fee is hereby granted, # provided that the above copyright notice appear in all copies and that # both that copyright notice and this permissio...
58,054
1,506
jart/cosmopolitan
false
cosmopolitan/third_party/python/Lib/logging/config.py
# Copyright 2001-2014 by Vinay Sajip. All Rights Reserved. # # Permission to use, copy, modify, and distribute this software and its # documentation for any purpose and without fee is hereby granted, # provided that the above copyright notice appear in all copies and that # both that copyright notice and this permissio...
36,048
941
jart/cosmopolitan
false
cosmopolitan/third_party/python/Lib/logging/__init__.py
# Copyright 2001-2016 by Vinay Sajip. All Rights Reserved. # # Permission to use, copy, modify, and distribute this software and its # documentation for any purpose and without fee is hereby granted, # provided that the above copyright notice appear in all copies and that # both that copyright notice and this permissio...
71,269
2,022
jart/cosmopolitan
false
cosmopolitan/third_party/python/Objects/cellobject.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:4;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=4 sts=4 sw=4 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
5,920
189
jart/cosmopolitan
false
cosmopolitan/third_party/python/Objects/capsule.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:4;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=4 sts=4 sw=4 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
8,541
337
jart/cosmopolitan
false
cosmopolitan/third_party/python/Objects/sliceobject.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:4;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=4 sts=4 sw=4 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
21,135
690
jart/cosmopolitan
false
cosmopolitan/third_party/python/Objects/typeslots.py
#!/usr/bin/python # Usage: typeslots.py < Include/typeslots.h typeslots.inc import sys, re def generate_typeslots(out=sys.stdout): out.write("/* Generated by typeslots.py */\n") res = {} for line in sys.stdin: m = re.match("#define Py_([a-z_]+) ([0-9]+)", line) if not m: contin...
1,246
44
jart/cosmopolitan
false
cosmopolitan/third_party/python/Objects/structseq.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:4;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=4 sts=4 sw=4 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
14,374
437
jart/cosmopolitan
false
cosmopolitan/third_party/python/Objects/funcobject.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:4;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=4 sts=4 sw=4 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
32,589
1,047
jart/cosmopolitan
false
cosmopolitan/third_party/python/Objects/typeobject.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:4;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=4 sts=4 sw=4 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
242,312
7,714
jart/cosmopolitan
false
cosmopolitan/third_party/python/Objects/typeslots.inc
/* clang-format off */ /* Generated by typeslots.py */ 0, 0, offsetof(PyHeapTypeObject, as_mapping.mp_ass_subscript), offsetof(PyHeapTypeObject, as_mapping.mp_length), offsetof(PyHeapTypeObject, as_mapping.mp_subscript), offsetof(PyHeapTypeObject, as_number.nb_absolute), offsetof(PyHeapTypeObject, as_number.nb_add), of...
3,991
83
jart/cosmopolitan
false
cosmopolitan/third_party/python/Objects/unicodeobject.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:4;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=4 sts=4 sw=4 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
446,319
14,700
jart/cosmopolitan
false
cosmopolitan/third_party/python/Objects/codeobject.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:4;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=4 sts=4 sw=4 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
30,539
962
jart/cosmopolitan
false
cosmopolitan/third_party/python/Objects/exceptions.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:4;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=4 sts=4 sw=4 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
89,536
3,026
jart/cosmopolitan
false
cosmopolitan/third_party/python/Objects/memoryobject.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:4;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=4 sts=4 sw=4 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
92,589
3,134
jart/cosmopolitan
false
cosmopolitan/third_party/python/Objects/unicodeobject-deadcode.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:4;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=4 sts=4 sw=4 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
12,073
432
jart/cosmopolitan
false
cosmopolitan/third_party/python/Objects/weakrefobject.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:4;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=4 sts=4 sw=4 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
31,402
974
jart/cosmopolitan
false
cosmopolitan/third_party/python/Objects/unicodectype.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:4;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=4 sts=4 sw=4 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
8,062
246
jart/cosmopolitan
false
cosmopolitan/third_party/python/Objects/frameobject.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:4;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=4 sts=4 sw=4 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
36,360
1,063
jart/cosmopolitan
false
cosmopolitan/third_party/python/Objects/bytes_methods.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:4;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=4 sts=4 sw=4 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
22,751
835
jart/cosmopolitan
false
cosmopolitan/third_party/python/Objects/README
Source files for various builtin objects
41
2
jart/cosmopolitan
false
cosmopolitan/third_party/python/Objects/descrobject.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:4;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=4 sts=4 sw=4 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
57,904
1,693
jart/cosmopolitan
false
cosmopolitan/third_party/python/Objects/obmalloc.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:4;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=4 sts=4 sw=4 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
86,008
2,523
jart/cosmopolitan
false
cosmopolitan/third_party/python/Objects/longobject.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:4;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=4 sts=4 sw=4 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
174,010
5,590
jart/cosmopolitan
false
cosmopolitan/third_party/python/Objects/setobject.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:4;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=4 sts=4 sw=4 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
76,184
2,592
jart/cosmopolitan
false
cosmopolitan/third_party/python/Objects/enumobject.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:4;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=4 sts=4 sw=4 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
14,698
446
jart/cosmopolitan
false
cosmopolitan/third_party/python/Objects/fromfd.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:4;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=4 sts=4 sw=4 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
1,767
35
jart/cosmopolitan
false
cosmopolitan/third_party/python/Objects/namespaceobject.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:4;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=4 sts=4 sw=4 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
8,988
282
jart/cosmopolitan
false
cosmopolitan/third_party/python/Objects/rangeobject.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:4;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=4 sts=4 sw=4 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
39,280
1,312
jart/cosmopolitan
false
cosmopolitan/third_party/python/Objects/odictobject.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:4;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=4 sts=4 sw=4 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
79,119
2,406
jart/cosmopolitan
false
cosmopolitan/third_party/python/Objects/tupleobject.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:4;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=4 sts=4 sw=4 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
32,165
1,096
jart/cosmopolitan
false
cosmopolitan/third_party/python/Objects/abstract.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:4;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=4 sts=4 sw=4 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
68,527
2,605
jart/cosmopolitan
false
cosmopolitan/third_party/python/Objects/dict-common.h
#ifndef Py_DICT_COMMON_H #define Py_DICT_COMMON_H #include "third_party/python/Include/dictobject.h" #include "third_party/python/Include/object.h" /* clang-format off */ typedef struct { /* Cached hash code of me_key. */ Py_hash_t me_hash; PyObject *me_key; PyObject *me_value; /* This field is only me...
2,413
74
jart/cosmopolitan
false
cosmopolitan/third_party/python/Objects/boolobject.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:4;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=4 sts=4 sw=4 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
7,695
194
jart/cosmopolitan
false
cosmopolitan/third_party/python/Objects/call.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:4;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=4 sts=4 sw=4 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
39,381
1,432
jart/cosmopolitan
false
cosmopolitan/third_party/python/Objects/listobject.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:4;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=4 sts=4 sw=4 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
89,586
3,005
jart/cosmopolitan
false
cosmopolitan/third_party/python/Objects/complexobject.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:4;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=4 sts=4 sw=4 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
33,944
1,160
jart/cosmopolitan
false
cosmopolitan/third_party/python/Objects/floatobject.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:4;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=4 sts=4 sw=4 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
74,329
2,603
jart/cosmopolitan
false
cosmopolitan/third_party/python/Objects/bytearrayobject.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:4;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=4 sts=4 sw=4 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
72,854
2,457
jart/cosmopolitan
false
cosmopolitan/third_party/python/Objects/methodobject.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:4;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=4 sts=4 sw=4 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
10,616
348
jart/cosmopolitan
false
cosmopolitan/third_party/python/Objects/moduleobject.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:4;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=4 sts=4 sw=4 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
24,584
819
jart/cosmopolitan
false
cosmopolitan/third_party/python/Objects/classobject.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:4;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=4 sts=4 sw=4 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
19,931
663
jart/cosmopolitan
false
cosmopolitan/third_party/python/Objects/genobject.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:4;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=4 sts=4 sw=4 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
70,888
2,094
jart/cosmopolitan
false
cosmopolitan/third_party/python/Objects/iterobject.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:4;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=4 sts=4 sw=4 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
10,326
300
jart/cosmopolitan
false
cosmopolitan/third_party/python/Objects/object.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:4;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=4 sts=4 sw=4 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
63,810
2,191
jart/cosmopolitan
false
cosmopolitan/third_party/python/Objects/accu.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:4;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=4 sts=4 sw=4 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
3,391
123
jart/cosmopolitan
false
cosmopolitan/third_party/python/Objects/bytesobject.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:4;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=4 sts=4 sw=4 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
103,463
3,483
jart/cosmopolitan
false
cosmopolitan/third_party/python/Objects/fileobject.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:4;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=4 sts=4 sw=4 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
16,640
527
jart/cosmopolitan
false
cosmopolitan/third_party/python/Objects/dictobject.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:4;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=4 sts=4 sw=4 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
139,158
4,561
jart/cosmopolitan
false
cosmopolitan/third_party/python/Objects/clinic/unicodeobject.inc
/* clang-format off */ /*[clinic input] preserve [clinic start generated code]*/ PyDoc_STRVAR(unicode_maketrans__doc__, "maketrans(x, y=None, z=None, /)\n" "--\n" "\n" "Return a translation table usable for str.translate().\n" "\n" "If there is only one argument, it must be a dictionary mapping Unicode\n" "ordinals (i...
1,426
44
jart/cosmopolitan
false
cosmopolitan/third_party/python/Objects/clinic/bytearrayobject.inc
/* clang-format off */ /*[clinic input] preserve [clinic start generated code]*/ PyDoc_STRVAR(bytearray_clear__doc__, "clear($self, /)\n" "--\n" "\n" "Remove all items from the bytearray."); #define BYTEARRAY_CLEAR_METHODDEF \ {"clear", (PyCFunction)bytearray_clear, METH_NOARGS, bytearray_clear__doc__}, stati...
20,430
717
jart/cosmopolitan
false
cosmopolitan/third_party/python/Objects/clinic/bytesobject.inc
/* clang-format off */ /*[clinic input] preserve [clinic start generated code]*/ PyDoc_STRVAR(bytes_split__doc__, "split($self, /, sep=None, maxsplit=-1)\n" "--\n" "\n" "Return a list of the sections in the bytes, using sep as the delimiter.\n" "\n" " sep\n" " The delimiter according which to split the bytes.\n" "...
14,390
504
jart/cosmopolitan
false
cosmopolitan/third_party/python/Objects/clinic/dictobject.inc
/* clang-format off */ /*[clinic input] preserve [clinic start generated code]*/ PyDoc_STRVAR(dict_fromkeys__doc__, "fromkeys($type, iterable, value=None, /)\n" "--\n" "\n" "Returns a new dict with keys from iterable and values equal to value."); #define DICT_FROMKEYS_METHODDEF \ {"fromkeys", (PyCFunction)dict...
1,221
45
jart/cosmopolitan
false
cosmopolitan/third_party/python/Objects/stringlib/eq.inc
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:4;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=4 sts=4 sw=4 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
1,736
33
jart/cosmopolitan
false
cosmopolitan/third_party/python/Objects/stringlib/README.txt
bits shared by the bytesobject and unicodeobject implementations (and possibly other modules, in a not too distant future). the stuff in here is included into relevant places; see the individual source files for details. -------------------------------------------------------------------- the following defines used b...
1,147
41
jart/cosmopolitan
false
cosmopolitan/third_party/python/Objects/stringlib/undef.inc
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:4;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=4 sts=4 sw=4 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
1,055
18
jart/cosmopolitan
false
cosmopolitan/third_party/python/Objects/stringlib/transmogrify.inc
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:4;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=4 sts=4 sw=4 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
19,780
710
jart/cosmopolitan
false
cosmopolitan/third_party/python/Objects/stringlib/ctype.inc
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:4;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=4 sts=4 sw=4 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
3,459
119
jart/cosmopolitan
false
cosmopolitan/third_party/python/Objects/stringlib/unicodedefs.inc
#ifndef STRINGLIB_UNICODEDEFS_H #define STRINGLIB_UNICODEDEFS_H /* this is sort of a hack. there's at least one place (formatting floats) where some stringlib code takes a different path if it's compiled as unicode. */ #define STRINGLIB_IS_UNICODE 1 #define FASTSEARCH fastsearch #define STRINGLIB(F)...
1,200
33
jart/cosmopolitan
false