sku-pg
Version:
Skulpt is a Javascript implementation of Python 2.x. Python that runs in your browser!
5,604 lines • 66.4 kB
HTML
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>JSDoc: Class: numtype</title>
<script src="scripts/prettify/prettify.js"> </script>
<script src="scripts/prettify/lang-css.js"> </script>
<!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<link type="text/css" rel="stylesheet" href="styles/prettify-tomorrow.css">
<link type="text/css" rel="stylesheet" href="styles/jsdoc-default.css">
</head>
<body>
<div id="main">
<h1 class="page-title">Class: numtype</h1>
<section>
<header>
<h2>
<span class="ancestors"><a href="Sk.html">Sk</a><a href="Sk.builtin.html">.builtin</a>.</span>
numtype
</h2>
</header>
<article>
<div class="container-overview">
<h4 class="name" id="numtype"><span class="type-signature"></span>new numtype<span class="signature">()</span><span class="type-signature"> → {undefined}</span></h4>
<div class="description">
<p>Abstract class for Python numeric types.</p>
</div>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="numtype.js.html">numtype.js</a>, <a href="numtype.js.html#line1">line 1</a>
</li></ul></dd>
</dl>
<h5>Returns:</h5>
<div class="param-desc">
<p>Cannot instantiate a Sk.builtin.numtype object</p>
</div>
<dl>
<dt>
Type
</dt>
<dd>
<span class="param-type">undefined</span>
</dd>
</dl>
</div>
<h3 class="subsection-title">Extends</h3>
<ul>
<li><a href="Sk.builtin.object.html">Sk.builtin.object</a></li>
</ul>
<h3 class="subsection-title">Members</h3>
<h4 class="name" id="$r"><span class="type-signature"></span>$r<span class="type-signature"></span></h4>
<div class="description">
<p>Return the string representation of this instance.</p>
<p>Javascript function, returns Python object.</p>
</div>
<dl class="details">
<dt class="inherited-from">Inherited From:</dt>
<dd class="inherited-from"><ul class="dummy"><li>
<a href="Sk.builtin.object.html#$r">Sk.builtin.object#$r</a>
</li></ul></dd>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="object.js.html">object.js</a>, <a href="object.js.html#line253">line 253</a>
</li></ul></dd>
</dl>
<h4 class="name" id="__abs__"><span class="type-signature"></span>__abs__<span class="type-signature"></span></h4>
<div class="description">
<p>Python wrapper of <code>__abs__</code> method.</p>
</div>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="numtype.js.html">numtype.js</a>, <a href="numtype.js.html#line22">line 22</a>
</li></ul></dd>
</dl>
<h4 class="name" id="__add__"><span class="type-signature"></span>__add__<span class="type-signature"></span></h4>
<div class="description">
<p>Python wrapper of <code>__add__</code> method.</p>
</div>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="numtype.js.html">numtype.js</a>, <a href="numtype.js.html#line130">line 130</a>
</li></ul></dd>
</dl>
<h4 class="name" id="__coerce__"><span class="type-signature"></span>__coerce__<span class="type-signature"></span></h4>
<div class="description">
<p>Python wrapper of <code>__coerce__</code> method.</p>
</div>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="numtype.js.html">numtype.js</a>, <a href="numtype.js.html#line418">line 418</a>
</li></ul></dd>
</dl>
<h4 class="name" id="__div__"><span class="type-signature"></span>__div__<span class="type-signature"></span></h4>
<div class="description">
<p>Python wrapper of <code>__div__</code> method.</p>
</div>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="numtype.js.html">numtype.js</a>, <a href="numtype.js.html#line238">line 238</a>
</li></ul></dd>
</dl>
<h4 class="name" id="__divmod__"><span class="type-signature"></span>__divmod__<span class="type-signature"></span></h4>
<div class="description">
<p>Python wrapper of <code>__divmod__</code> method.</p>
</div>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="numtype.js.html">numtype.js</a>, <a href="numtype.js.html#line346">line 346</a>
</li></ul></dd>
</dl>
<h4 class="name" id="__eq__"><span class="type-signature"></span>__eq__<span class="type-signature"></span></h4>
<div class="description">
<p>Python wrapper for <code>__eq__</code> method.</p>
</div>
<dl class="details">
<dt class="inherited-from">Inherited From:</dt>
<dd class="inherited-from"><ul class="dummy"><li>
<a href="Sk.builtin.object.html#__eq__">Sk.builtin.object#__eq__</a>
</li></ul></dd>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="object.js.html">object.js</a>, <a href="object.js.html#line179">line 179</a>
</li></ul></dd>
</dl>
<h4 class="name" id="__float__"><span class="type-signature"></span>__float__<span class="type-signature"></span></h4>
<div class="description">
<p>Python wrapper of <code>__float__</code> method.</p>
</div>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="numtype.js.html">numtype.js</a>, <a href="numtype.js.html#line112">line 112</a>
</li></ul></dd>
</dl>
<h4 class="name" id="__floordiv__"><span class="type-signature"></span>__floordiv__<span class="type-signature"></span></h4>
<div class="description">
<p>Python wrapper of <code>__floordiv__</code> method.</p>
</div>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="numtype.js.html">numtype.js</a>, <a href="numtype.js.html#line274">line 274</a>
</li></ul></dd>
</dl>
<h4 class="name" id="__ge__"><span class="type-signature"></span>__ge__<span class="type-signature"></span></h4>
<div class="description">
<p>Python wrapper for <code>__ge__</code> method.</p>
</div>
<dl class="details">
<dt class="inherited-from">Inherited From:</dt>
<dd class="inherited-from"><ul class="dummy"><li>
<a href="Sk.builtin.object.html#__ge__">Sk.builtin.object#__ge__</a>
</li></ul></dd>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="object.js.html">object.js</a>, <a href="object.js.html#line239">line 239</a>
</li></ul></dd>
</dl>
<h4 class="name" id="__gt__"><span class="type-signature"></span>__gt__<span class="type-signature"></span></h4>
<div class="description">
<p>Python wrapper for <code>__gt__</code> method.</p>
</div>
<dl class="details">
<dt class="inherited-from">Inherited From:</dt>
<dd class="inherited-from"><ul class="dummy"><li>
<a href="Sk.builtin.object.html#__gt__">Sk.builtin.object#__gt__</a>
</li></ul></dd>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="object.js.html">object.js</a>, <a href="object.js.html#line227">line 227</a>
</li></ul></dd>
</dl>
<h4 class="name" id="__hash__"><span class="type-signature"></span>__hash__<span class="type-signature"></span></h4>
<div class="description">
<p>Python wrapper for <code>__hash__</code> method.</p>
</div>
<dl class="details">
<dt class="inherited-from">Inherited From:</dt>
<dd class="inherited-from"><ul class="dummy"><li>
<a href="Sk.builtin.object.html#__hash__">Sk.builtin.object#__hash__</a>
</li></ul></dd>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="object.js.html">object.js</a>, <a href="object.js.html#line167">line 167</a>
</li></ul></dd>
</dl>
<h4 class="name" id="__int__"><span class="type-signature"></span>__int__<span class="type-signature"></span></h4>
<div class="description">
<p>Python wrapper of <code>__int__</code> method.</p>
</div>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="numtype.js.html">numtype.js</a>, <a href="numtype.js.html#line76">line 76</a>
</li></ul></dd>
</dl>
<h4 class="name" id="__le__"><span class="type-signature"></span>__le__<span class="type-signature"></span></h4>
<div class="description">
<p>Python wrapper for <code>__le__</code> method.</p>
</div>
<dl class="details">
<dt class="inherited-from">Inherited From:</dt>
<dd class="inherited-from"><ul class="dummy"><li>
<a href="Sk.builtin.object.html#__le__">Sk.builtin.object#__le__</a>
</li></ul></dd>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="object.js.html">object.js</a>, <a href="object.js.html#line215">line 215</a>
</li></ul></dd>
</dl>
<h4 class="name" id="__long__"><span class="type-signature"></span>__long__<span class="type-signature"></span></h4>
<div class="description">
<p>Python wrapper of <code>__long__</code> method.</p>
</div>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="numtype.js.html">numtype.js</a>, <a href="numtype.js.html#line94">line 94</a>
</li></ul></dd>
</dl>
<h4 class="name" id="__lt__"><span class="type-signature"></span>__lt__<span class="type-signature"></span></h4>
<div class="description">
<p>Python wrapper for <code>__lt__</code> method.</p>
</div>
<dl class="details">
<dt class="inherited-from">Inherited From:</dt>
<dd class="inherited-from"><ul class="dummy"><li>
<a href="Sk.builtin.object.html#__lt__">Sk.builtin.object#__lt__</a>
</li></ul></dd>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="object.js.html">object.js</a>, <a href="object.js.html#line203">line 203</a>
</li></ul></dd>
</dl>
<h4 class="name" id="__mod__"><span class="type-signature"></span>__mod__<span class="type-signature"></span></h4>
<div class="description">
<p>Python wrapper of <code>__mod__</code> method.</p>
</div>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="numtype.js.html">numtype.js</a>, <a href="numtype.js.html#line310">line 310</a>
</li></ul></dd>
</dl>
<h4 class="name" id="__mul__"><span class="type-signature"></span>__mul__<span class="type-signature"></span></h4>
<div class="description">
<p>Python wrapper of <code>__mul__</code> method.</p>
</div>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="numtype.js.html">numtype.js</a>, <a href="numtype.js.html#line202">line 202</a>
</li></ul></dd>
</dl>
<h4 class="name" id="__ne__"><span class="type-signature"></span>__ne__<span class="type-signature"></span></h4>
<div class="description">
<p>Python wrapper for <code>__ne__</code> method.</p>
</div>
<dl class="details">
<dt class="inherited-from">Inherited From:</dt>
<dd class="inherited-from"><ul class="dummy"><li>
<a href="Sk.builtin.object.html#__ne__">Sk.builtin.object#__ne__</a>
</li></ul></dd>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="object.js.html">object.js</a>, <a href="object.js.html#line191">line 191</a>
</li></ul></dd>
</dl>
<h4 class="name" id="__neg__"><span class="type-signature"></span>__neg__<span class="type-signature"></span></h4>
<div class="description">
<p>Python wrapper of <code>__neg__</code> method.</p>
</div>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="numtype.js.html">numtype.js</a>, <a href="numtype.js.html#line40">line 40</a>
</li></ul></dd>
</dl>
<h4 class="name" id="__pos__"><span class="type-signature"></span>__pos__<span class="type-signature"></span></h4>
<div class="description">
<p>Python wrapper of <code>__pos__</code> method.</p>
</div>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="numtype.js.html">numtype.js</a>, <a href="numtype.js.html#line58">line 58</a>
</li></ul></dd>
</dl>
<h4 class="name" id="__pow__"><span class="type-signature"></span>__pow__<span class="type-signature"></span></h4>
<div class="description">
<p>Python wrapper of <code>__pow__</code> method.</p>
</div>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="numtype.js.html">numtype.js</a>, <a href="numtype.js.html#line382">line 382</a>
</li></ul></dd>
</dl>
<h4 class="name" id="__radd__"><span class="type-signature"></span>__radd__<span class="type-signature"></span></h4>
<div class="description">
<p>Python wrapper of <code>__radd__</code> method.</p>
</div>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="numtype.js.html">numtype.js</a>, <a href="numtype.js.html#line148">line 148</a>
</li></ul></dd>
</dl>
<h4 class="name" id="__rdiv__"><span class="type-signature"></span>__rdiv__<span class="type-signature"></span></h4>
<div class="description">
<p>Python wrapper of <code>__rdiv__</code> method.</p>
</div>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="numtype.js.html">numtype.js</a>, <a href="numtype.js.html#line256">line 256</a>
</li></ul></dd>
</dl>
<h4 class="name" id="__rdivmod__"><span class="type-signature"></span>__rdivmod__<span class="type-signature"></span></h4>
<div class="description">
<p>Python wrapper of <code>__rdivmod__</code> method.</p>
</div>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="numtype.js.html">numtype.js</a>, <a href="numtype.js.html#line364">line 364</a>
</li></ul></dd>
</dl>
<h4 class="name" id="__repr__"><span class="type-signature"></span>__repr__<span class="type-signature"></span></h4>
<div class="description">
<p>Python wrapper for <code>__repr__</code> method.</p>
</div>
<dl class="details">
<dt class="inherited-from">Inherited From:</dt>
<dd class="inherited-from"><ul class="dummy"><li>
<a href="Sk.builtin.object.html#__repr__">Sk.builtin.object#__repr__</a>
</li></ul></dd>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="object.js.html">object.js</a>, <a href="object.js.html#line143">line 143</a>
</li></ul></dd>
</dl>
<h4 class="name" id="__rfloordiv__"><span class="type-signature"></span>__rfloordiv__<span class="type-signature"></span></h4>
<div class="description">
<p>Python wrapper of <code>__rfloordiv__</code> method.</p>
</div>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="numtype.js.html">numtype.js</a>, <a href="numtype.js.html#line292">line 292</a>
</li></ul></dd>
</dl>
<h4 class="name" id="__rmod__"><span class="type-signature"></span>__rmod__<span class="type-signature"></span></h4>
<div class="description">
<p>Python wrapper of <code>__rmod__</code> method.</p>
</div>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="numtype.js.html">numtype.js</a>, <a href="numtype.js.html#line328">line 328</a>
</li></ul></dd>
</dl>
<h4 class="name" id="__rmul__"><span class="type-signature"></span>__rmul__<span class="type-signature"></span></h4>
<div class="description">
<p>Python wrapper of <code>__rmul__</code> method.</p>
</div>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="numtype.js.html">numtype.js</a>, <a href="numtype.js.html#line220">line 220</a>
</li></ul></dd>
</dl>
<h4 class="name" id="__rpow__"><span class="type-signature"></span>__rpow__<span class="type-signature"></span></h4>
<div class="description">
<p>Python wrapper of <code>__rpow__</code> method.</p>
</div>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="numtype.js.html">numtype.js</a>, <a href="numtype.js.html#line400">line 400</a>
</li></ul></dd>
</dl>
<h4 class="name" id="__rsub__"><span class="type-signature"></span>__rsub__<span class="type-signature"></span></h4>
<div class="description">
<p>Python wrapper of <code>__rsub__</code> method.</p>
</div>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="numtype.js.html">numtype.js</a>, <a href="numtype.js.html#line184">line 184</a>
</li></ul></dd>
</dl>
<h4 class="name" id="__str__"><span class="type-signature"></span>__str__<span class="type-signature"></span></h4>
<div class="description">
<p>Python wrapper for <code>__str__</code> method.</p>
</div>
<dl class="details">
<dt class="inherited-from">Inherited From:</dt>
<dd class="inherited-from"><ul class="dummy"><li>
<a href="Sk.builtin.object.html#__str__">Sk.builtin.object#__str__</a>
</li></ul></dd>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="object.js.html">object.js</a>, <a href="object.js.html#line155">line 155</a>
</li></ul></dd>
</dl>
<h4 class="name" id="__sub__"><span class="type-signature"></span>__sub__<span class="type-signature"></span></h4>
<div class="description">
<p>Python wrapper of <code>__sub__</code> method.</p>
</div>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="numtype.js.html">numtype.js</a>, <a href="numtype.js.html#line166">line 166</a>
</li></ul></dd>
</dl>
<h4 class="name" id="ob$type"><span class="type-signature"></span>ob$type<span class="type-signature"> :Sk.builtin.type</span></h4>
<div class="description">
<p>The type object of this class.</p>
</div>
<h5>Type:</h5>
<ul>
<li>
<span class="param-type">Sk.builtin.type</span>
</li>
</ul>
<dl class="details">
<dt class="inherited-from">Inherited From:</dt>
<dd class="inherited-from"><ul class="dummy"><li>
<a href="Sk.builtin.object.html#ob$type">Sk.builtin.object#ob$type</a>
</li></ul></dd>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="object.js.html">object.js</a>, <a href="object.js.html#line138">line 138</a>
</li></ul></dd>
</dl>
<h4 class="name" id="tp$name"><span class="type-signature"></span>tp$name<span class="type-signature"> :string</span></h4>
<div class="description">
<p>The name of this class.</p>
</div>
<h5>Type:</h5>
<ul>
<li>
<span class="param-type">string</span>
</li>
</ul>
<dl class="details">
<dt class="inherited-from">Inherited From:</dt>
<dd class="inherited-from"><ul class="dummy"><li>
<a href="Sk.builtin.object.html#tp$name">Sk.builtin.object#tp$name</a>
</li></ul></dd>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="object.js.html">object.js</a>, <a href="object.js.html#line132">line 132</a>
</li></ul></dd>
</dl>
<h3 class="subsection-title">Methods</h3>
<h4 class="name" id="GenericGetAttr"><span class="type-signature"></span>GenericGetAttr<span class="signature">()</span><span class="type-signature"> → {undefined}</span></h4>
<dl class="details">
<dt class="inherited-from">Inherited From:</dt>
<dd class="inherited-from"><ul class="dummy"><li>
<a href="Sk.builtin.object.html#GenericGetAttr">Sk.builtin.object#GenericGetAttr</a>
</li></ul></dd>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="object.js.html">object.js</a>, <a href="object.js.html#line26">line 26</a>
</li></ul></dd>
</dl>
<h5>Returns:</h5>
<dl>
<dt>
Type
</dt>
<dd>
<span class="param-type">undefined</span>
</dd>
</dl>
<h4 class="name" id="nb$abs"><span class="type-signature"></span>nb$abs<span class="signature">()</span><span class="type-signature"> → {<a href="Sk.builtin.numtype.html">Sk.builtin.numtype</a>|<a href="Sk.builtin.NotImplemented.html">Sk.builtin.NotImplemented</a>}</span></h4>
<div class="description">
<p>Compute the absolute value of this instance and return.</p>
<p>Javascript function, returns Python object.</p>
</div>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="numtype.js.html">numtype.js</a>, <a href="numtype.js.html#line615">line 615</a>
</li></ul></dd>
</dl>
<h5>Returns:</h5>
<div class="param-desc">
<p>The absolute value</p>
</div>
<dl>
<dt>
Type
</dt>
<dd>
<span class="param-type"><a href="Sk.builtin.numtype.html">Sk.builtin.numtype</a></span>
|
<span class="param-type"><a href="Sk.builtin.NotImplemented.html">Sk.builtin.NotImplemented</a></span>
</dd>
</dl>
<h4 class="name" id="nb$add"><span class="type-signature"></span>nb$add<span class="signature">(other<span class="signature-attributes">non-null</span>)</span><span class="type-signature"> → {<a href="Sk.builtin.numtype.html">Sk.builtin.numtype</a>|<a href="Sk.builtin.NotImplemented.html">Sk.builtin.NotImplemented</a>}</span></h4>
<div class="description">
<p>Add a Python object to this instance and return the result (i.e. this + other).</p>
<p>Returns NotImplemented if addition between this type and other type is unsupported.</p>
<p>Javscript function, returns Python object.</p>
</div>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>other</code></td>
<td class="type">
<span class="param-type"><a href="Sk.builtin.object.html">Sk.builtin.object</a></span>
</td>
<td class="description last"><p>The Python object to add.</p></td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="numtype.js.html">numtype.js</a>, <a href="numtype.js.html#line441">line 441</a>
</li></ul></dd>
</dl>
<h5>Returns:</h5>
<div class="param-desc">
<p>The result of the addition.</p>
</div>
<dl>
<dt>
Type
</dt>
<dd>
<span class="param-type"><a href="Sk.builtin.numtype.html">Sk.builtin.numtype</a></span>
|
<span class="param-type"><a href="Sk.builtin.NotImplemented.html">Sk.builtin.NotImplemented</a></span>
</dd>
</dl>
<h4 class="name" id="nb$divide"><span class="type-signature"></span>nb$divide<span class="signature">(other<span class="signature-attributes">non-null</span>)</span><span class="type-signature"> → {<a href="Sk.builtin.numtype.html">Sk.builtin.numtype</a>|<a href="Sk.builtin.NotImplemented.html">Sk.builtin.NotImplemented</a>}</span></h4>
<div class="description">
<p>Divide this instance by a Python object and return the result (i.e this / other).</p>
<p>Returns NotImplemented if division between this type and other type is unsupported.</p>
<p>Javscript function, returns Python object.</p>
</div>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>other</code></td>
<td class="type">
<span class="param-type"><a href="Sk.builtin.object.html">Sk.builtin.object</a></span>
</td>
<td class="description last"><p>The divisor, which must be a Python object.</p></td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="numtype.js.html">numtype.js</a>, <a href="numtype.js.html#line508">line 508</a>
</li></ul></dd>
</dl>
<h5>Returns:</h5>
<div class="param-desc">
<p>The result of the division</p>
</div>
<dl>
<dt>
Type
</dt>
<dd>
<span class="param-type"><a href="Sk.builtin.numtype.html">Sk.builtin.numtype</a></span>
|
<span class="param-type"><a href="Sk.builtin.NotImplemented.html">Sk.builtin.NotImplemented</a></span>
</dd>
</dl>
<h4 class="name" id="nb$divmod"><span class="type-signature"></span>nb$divmod<span class="signature">(other<span class="signature-attributes">non-null</span>)</span><span class="type-signature"> → {Sk.builtin.tuple|<a href="Sk.builtin.NotImplemented.html">Sk.builtin.NotImplemented</a>}</span></h4>
<div class="description">
<p>Compute the quotient and the remainder of this instance and a given Python object and return the result.</p>
<p>Returns NotImplemented if division or modulo operations between this type and other type are unsupported.</p>
<p>Javscript function, returns Python object.</p>
</div>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>other</code></td>
<td class="type">
<span class="param-type"><a href="Sk.builtin.object.html">Sk.builtin.object</a></span>
</td>
<td class="description last"><p>The divisor, which must be a Python object.</p></td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="numtype.js.html">numtype.js</a>, <a href="numtype.js.html#line575">line 575</a>
</li></ul></dd>
</dl>
<h5>Returns:</h5>
<div class="param-desc">
<p>The result of the operation.
If both operations are supported, a Python tuple containing (quotient, remainder) in that order.</p>
</div>
<dl>
<dt>
Type
</dt>
<dd>
<span class="param-type">Sk.builtin.tuple</span>
|
<span class="param-type"><a href="Sk.builtin.NotImplemented.html">Sk.builtin.NotImplemented</a></span>
</dd>
</dl>
<h4 class="name" id="nb$floor_divide"><span class="type-signature"></span>nb$floor_divide<span class="signature">(other<span class="signature-attributes">non-null</span>)</span><span class="type-signature"> → {<a href="Sk.builtin.numtype.html">Sk.builtin.numtype</a>|<a href="Sk.builtin.NotImplemented.html">Sk.builtin.NotImplemented</a>}</span></h4>
<div class="description">
<p>Floor divide this instance by a Python object and return the result (i.e. this // other).</p>
<p>Returns NotImplemented if floor division between this type and other type is unsupported.</p>
<p>Javscript function, returns Python object.</p>
</div>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>other</code></td>
<td class="type">
<span class="param-type"><a href="Sk.builtin.object.html">Sk.builtin.object</a></span>
</td>
<td class="description last"><p>The divisor, which must be a Python object.</p></td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="numtype.js.html">numtype.js</a>, <a href="numtype.js.html#line530">line 530</a>
</li></ul></dd>
</dl>
<h5>Returns:</h5>
<div class="param-desc">
<p>The result of the floor division</p>
</div>
<dl>
<dt>
Type
</dt>
<dd>
<span class="param-type"><a href="Sk.builtin.numtype.html">Sk.builtin.numtype</a></span>
|
<span class="param-type"><a href="Sk.builtin.NotImplemented.html">Sk.builtin.NotImplemented</a></span>
</dd>
</dl>
<h4 class="name" id="nb$isnegative"><span class="type-signature"></span>nb$isnegative<span class="signature">()</span><span class="type-signature"> → {boolean|<a href="Sk.builtin.NotImplemented.html">Sk.builtin.NotImplemented</a>}</span></h4>
<div class="description">
<p>Determine if this instance is negative.</p>
<p>Javscript function, returns Javascript object or Sk.builtin.NotImplemented.</p>
</div>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="numtype.js.html">numtype.js</a>, <a href="numtype.js.html#line659">line 659</a>
</li></ul></dd>
</dl>
<h5>Returns:</h5>
<div class="param-desc">
<p>true if this instance is negative, false otherwise</p>
</div>
<dl>
<dt>
Type
</dt>
<dd>
<span class="param-type">boolean</span>
|
<span class="param-type"><a href="Sk.builtin.NotImplemented.html">Sk.builtin.NotImplemented</a></span>
</dd>
</dl>
<h4 class="name" id="nb$ispositive"><span class="type-signature"></span>nb$ispositive<span class="signature">()</span><span class="type-signature"> → {boolean|<a href="Sk.builtin.NotImplemented.html">Sk.builtin.NotImplemented</a>}</span></h4>
<div class="description">
<p>Determine if this instance is positive.</p>
<p>Javscript function, returns Javascript object or Sk.builtin.NotImplemented.</p>
</div>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="numtype.js.html">numtype.js</a>, <a href="numtype.js.html#line670">line 670</a>
</li></ul></dd>
</dl>
<h5>Returns:</h5>
<div class="param-desc">
<p>true if this instance is positive, false otherwise</p>
</div>
<dl>
<dt>
Type
</dt>
<dd>
<span class="param-type">boolean</span>
|
<span class="param-type"><a href="Sk.builtin.NotImplemented.html">Sk.builtin.NotImplemented</a></span>
</dd>
</dl>
<h4 class="name" id="nb$multiply"><span class="type-signature"></span>nb$multiply<span class="signature">(other<span class="signature-attributes">non-null</span>)</span><span class="type-signature"> → {<a href="Sk.builtin.numtype.html">Sk.builtin.numtype</a>|<a href="Sk.builtin.NotImplemented.html">Sk.builtin.NotImplemented</a>}</span></h4>
<div class="description">
<p>Multiply this instance by a Python object and return the result (i.e. this * other).</p>
<p>Returns NotImplemented if multiplication between this type and other type is unsupported.</p>
<p>Javscript function, returns Python object.</p>
</div>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>other</code></td>
<td class="type">
<span class="param-type"><a href="Sk.builtin.object.html">Sk.builtin.object</a></span>
</td>
<td class="description last"><p>The multiplier, which must be a Python object.</p></td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="numtype.js.html">numtype.js</a>, <a href="numtype.js.html#line485">line 485</a>
</li></ul></dd>
</dl>
<h5>Returns:</h5>
<div class="param-desc">
<p>The result of the multiplication</p>
</div>
<dl>
<dt>
Type
</dt>
<dd>
<span class="param-type"><a href="Sk.builtin.numtype.html">Sk.builtin.numtype</a></span>
|
<span class="param-type"><a href="Sk.builtin.NotImplemented.html">Sk.builtin.NotImplemented</a></span>
</dd>
</dl>
<h4 class="name" id="nb$negative"><span class="type-signature"></span>nb$negative<span class="signature">()</span><span class="type-signature"> → {<a href="Sk.builtin.numtype.html">Sk.builtin.numtype</a>|<a href="Sk.builtin.NotImplemented.html">Sk.builtin.NotImplemented</a>}</span></h4>
<div class="description">
<p>Compute the unary negative of this instance (i.e. -this).</p>
<p>Javscript function, returns Python object.</p>
</div>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="numtype.js.html">numtype.js</a>, <a href="numtype.js.html#line626">line 626</a>
</li></ul></dd>
</dl>
<h5>Returns:</h5>
<div class="param-desc">
<p>A copy of this instance with the value negated</p>
</div>
<dl>
<dt>
Type
</dt>
<dd>
<span class="param-type"><a href="Sk.builtin.numtype.html">Sk.builtin.numtype</a></span>
|
<span class="param-type"><a href="Sk.builtin.NotImplemented.html">Sk.builtin.NotImplemented</a></span>
</dd>
</dl>
<h4 class="name" id="nb$nonzero"><span class="type-signature"></span>nb$nonzero<span class="signature">()</span><span class="type-signature"> → {boolean|<a href="Sk.builtin.NotImplemented.html">Sk.builtin.NotImplemented</a>}</span></h4>
<div class="description">
<p>Determine if this instance is nonzero.</p>
<p>Javscript function, returns Javascript object or Sk.builtin.NotImplemented.</p>
</div>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="numtype.js.html">numtype.js</a>, <a href="numtype.js.html#line648">line 648</a>
</li></ul></dd>
</dl>
<h5>Returns:</h5>
<div class="param-desc">
<p>true if this instance is not equal to zero, false otherwise</p>
</div>
<dl>
<dt>
Type
</dt>
<dd>
<span class="param-type">boolean</span>
|
<span class="param-type"><a href="Sk.builtin.NotImplemented.html">Sk.builtin.NotImplemented</a></span>
</dd>
</dl>
<h4 class="name" id="nb$positive"><span class="type-signature"></span>nb$positive<span class="signature">()</span><span class="type-signature"> → {<a href="Sk.builtin.numtype.html">Sk.builtin.numtype</a>|<a href="Sk.builtin.NotImplemented.html">Sk.builtin.NotImplemented</a>}</span></h4>
<div class="description">
<p>Compute the unary positive of this instance (i.e. +this).</p>
<p>Javscript function, returns Python object.</p>
</div>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="numtype.js.html">numtype.js</a>, <a href="numtype.js.html#line637">line 637</a>
</li></ul></dd>
</dl>
<h5>Returns:</h5>
<div class="param-desc">
<p>A copy of this instance with the value unchanged</p>
</div>
<dl>
<dt>
Type
</dt>
<dd>
<span class="param-type"><a href="Sk.builtin.numtype.html">Sk.builtin.numtype</a></span>
|
<span class="param-type"><a href="Sk.builtin.NotImplemented.html">Sk.builtin.NotImplemented</a></span>
</dd>
</dl>
<h4 class="name" id="nb$power"><span class="type-signature"></span>nb$power<span class="signature">(other<span class="signature-attributes">non-null</span>, mod<span class="signature-attributes">opt, non-null</span>)</span><span class="type-signature"> → {<a href="Sk.builtin.numtype.html">Sk.builtin.numtype</a>|<a href="Sk.builtin.NotImplemented.html">Sk.builtin.NotImplemented</a>}</span></h4>
<div class="description">
<p>Raise this instance by a Python object, optionally modulo the exponent, and return the final result.</p>
<p>If mod is undefined, return this ** other. Else, return (this ** other) % mod.</p>
<p>Returns NotImplemented if exponentiation or modulation between this type and other type is unsupported.</p>
<p>Javscript function, returns Python object.</p>
</div>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th>Attributes</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>other</code></td>
<td class="type">
<span class="param-type"><a href="Sk.builtin.object.html">Sk.builtin.object</a></span>
</td>
<td class="attributes">
</td>
<td class="description last"><p>The exponent, which must be a Python object.</p></td>
</tr>
<tr>
<td class="name"><code>mod</code></td>
<td class="type">
<span class="param-type"><a href="Sk.builtin.object.html">Sk.builtin.object</a></span>
</td>
<td class="attributes">
<optional><br>
</td>
<td class="description last"><p>The optional divisor, which must be a Python object if defined.</p></td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="numtype.js.html">numtype.js</a>, <a href="numtype.js.html#line596">line 596</a>
</li></ul></dd>
</dl>
<h5>Returns:</h5>
<div class="param-desc">
<p>The result of the exponentiation.</p>
</div>
<dl>
<dt>
Type
</dt>
<dd>
<span class="param-type"><a href="Sk.builtin.numtype.html">Sk.builtin.numtype</a></span>
|
<span class="param-type"><a href="Sk.builtin.NotImplemented.html">Sk.builtin.NotImplemented</a></span>
</dd>
</dl>
<h4 class="name" id="nb$remainder"><span class="type-signature"></span>nb$remainder<span class="signature">(other<span class="signature-attributes">non-null</span>)</span><span class="type-signature"> → {<a href="Sk.builtin.numtype.html">Sk.builtin.numtype</a>|<a href="Sk.builtin.NotImplemented.html">Sk.builtin.NotImplemented</a>}</span></h4>
<div class="description">
<p>Modulo this instance by a Python object and return the result (i.e. this % other).</p>
<p>Returns NotImplemented if modulation between this type and other type is unsupported.</p>
<p>Javscript function, returns Python object.</p>
</div>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>other</code></td>
<td class="type">
<span class="param-type"><a href="Sk.builtin.object.html">Sk.builtin.object</a></span>
</td>
<td class="description last"><p>The divisor, which must be a Python object.</p></td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="numtype.js.html">numtype.js</a>, <a href="numtype.js.html#line552">line 552</a>
</li></ul></dd>
</dl>
<h5>Returns:</h5>
<div class="param-desc">
<p>The result of the modulation</p>
</div>
<dl>
<dt>
Type
</dt>
<dd>
<span class="param-type"><a href="Sk.builtin.numtype.html">Sk.builtin.numtype</a></span>
|
<span class="param-type"><a href="Sk.builtin.NotImplemented.html">Sk.builtin.NotImplemented</a></span>
</dd>
</dl>
<h4 class="name" id="nb$subtract"><span class="type-signature"></span>nb$subtract<span class="signature">(other<span class="signature-attributes">non-null</span>)</span><span class="type-signature"> → {<a href="Sk.builtin.numtype.html">Sk.builtin.numtype</a>|<a href="Sk.builtin.NotImplemented.html">Sk.builtin.NotImplemented</a>}</span></h4>
<div class="description">
<p>Subtract a Python object from this instance and return the result (i.e. this - other).</p>
<p>Returns NotImplemented if subtraction between this type and other type is unsupported.</p>
<p>Javscript function, returns Python object.</p>
</div>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>other</code></td>
<td class="type">
<span class="param-type"><a href="Sk.builtin.object.html">Sk.builtin.object</a></span>
</td>
<td class="description last"><p>The Python object to subtract.</p></td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="numtype.js.html">numtype.js</a>, <a href="numtype.js.html#line463">line 463</a>
</li></ul></dd>
</dl>
<h5>Returns:</h5>
<div class="param-desc">
<p>The result of the subtraction.</p>
</div>
<dl>
<dt>
Type
</dt>
<dd>
<span class="param-type"><a href="Sk.builtin.numtype.html">Sk.builtin.numtype</a></span>
|
<span class="param-type"><a href="Sk.builtin.NotImplemented.html">Sk.builtin.NotImplemented</a></span>
</dd>
</dl>
<h4 class="name" id="ob$eq"><span class="type-signature"></span>ob$eq<span class="signature">(other)</span><span class="type-signature"> → {<a href="Sk.builtin.bool.html">Sk.builtin.bool</a>|<a href="Sk.builtin.NotImplemented.html">Sk.builtin.NotImplemented</a>}</span></h4>
<div class="description">
<p>Perform equality check between this instance and a Python object (i.e. this == other).</p>
<p>Implements <code>__eq__</code> dunder method.</p>
<p>Javascript function, returns Python object.</p>
</div>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>other</code></td>
<td class="type">
<span class="param-type">Object</span>
</td>
<td class="description last"><p>The Python object to check for equality.</p></td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="inherited-from">Inherited From:</dt>
<dd class="inherited-from"><ul class="dummy"><li>
<a href="Sk.builtin.object.html#ob$eq">Sk.builtin.object#ob$eq</a>
</li></ul></dd>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="object.js.html">object.js</a>, <a href="object.js.html#line293">line 293</a>
</li></ul></dd>
</dl>
<h5>Returns:</h5>
<div class="param-desc">
<p>true if equal, false otherwise</p>
</div>
<dl>
<dt>
Type
</dt>
<dd>
<span class="param-type"><a href="Sk.builtin.bool.html">Sk.builtin.bool</a></span>
|
<span class="param-type"><a href="Sk.builtin.NotImplemented.html">Sk.builtin.NotImplemented</a></span>
</dd>
</dl>
<h4 class="name" id="ob$ge"><span class="type-signature"></span>ob$ge<span class="signature">(other)</span><span class="type-signature"> → {<a href="Sk.builtin.bool.html">Sk.builtin.bool</a>|<a href="Sk.builtin.NotImplemented.html">Sk.builtin.NotImplemented</a>}</span></h4>
<div class="description">
<p>Determine if this instance is greater than or equal to a Python object (i.e. this >= other).</p>
<p>Implements <code>__ge__</code> dunder method.</p>
<p>Javascript function, returns Python object.</p>
</div>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>other</code></td>
<td class="type">
<span class="param-type">Object</span>
</td>
<td class="description last"><p>The Python object to compare.</p></td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="inherited-from">Inherited From:</dt>
<dd class="inherited-from"><ul class="dummy"><li>
<a href="Sk.builtin.object.html#ob$ge">Sk.builtin.object#ob$ge</a>
</li></ul></dd>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="object.js.html">object.js</a>, <a href="object.js.html#line371">line 371</a>
</li></ul></dd>
</dl>
<h5>Returns:</h5>
<div class="param-desc">
<p>true if this >= other, false otherwise</p>
</div>
<dl>
<dt>
Type
</dt>
<dd>
<span class="param-type"><a href="Sk.builtin.bool.html">Sk.builtin.bool</a></span>
|
<span class="param-type"><a href="Sk.builtin.NotImplemented.html">Sk.builtin.NotImplemented</a></span>
</dd>
</dl>
<h4 class="name" id="ob$gt"><span class="type-signature"></span>ob$gt<span class="signature">(other)</span><span class="type-signature"> → {<a href="Sk.builtin.bool.html">Sk.builtin.bool</a>|<a href="Sk.builtin.NotImplemented.html">Sk.builtin.NotImplemented</a>}</span></h4>
<div class="description">
<p>Determine if this instance is greater than a Python object (i.e. this > other).</p>
<p>Implements <code>__gt__</code> dunder method.</p>
<p>Javascript function, returns Python object.</p>
</div>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>other</code></td>
<td class="type">
<span class="param-type">Object</span>
</td>
<td class="description last"><p>The Python object to compare.</p></td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="inherited-from">Inherited From:</dt>
<dd class="inherited-from"><ul class="dummy"><li>
<a href="Sk.builtin.object.html#ob$gt">Sk.builtin.object#ob$gt</a>
</li></ul></dd>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="object.js.html">object.js</a>, <a href="object.js.html#line357">line 357</a>
</li></ul></dd>
</dl>
<h5>Returns:</h5>
<div class="param-desc">
<p>true if this > other, false otherwise</p>
</div>
<dl>
<dt>
Type
</dt>
<dd>
<span class="param-type"><a href="Sk.builtin.bool.html">Sk.builtin.bool</a></span>
|
<span class="param-type"><a href="Sk.builtin.NotImplemented.html">Sk.builtin.NotImplemented</a></span>
</dd>
</dl>
<h4 class="name" id="ob$le"><span class="type-signature"></span>ob$le<span class="signature">(other)</span><span class="type-signature"> → {<a href="Sk.builtin.bool.html">Sk.builtin.bool</a>|<a href="Sk.builtin.NotImplemented.html">Sk.builtin.NotImplemented</a>}</span></h4>
<div class="description">
<p>Determine if this instance is less than or equal to a Python object (i.e. this <= other).</p>
<p>Implements <code>__le__</code> dunder method.</p>
<p>Javascript function, returns Python object.</p>
</div>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>other</code></td>
<td class="type">
<span class="param-type">Object</span>
</td>
<td class="description last"><p>The Python object to compare.</p></td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="inherited-from">Inherited From:</dt>
<dd class="inherited-from"><ul class="dummy"><li>
<a href="Sk.builtin.object.html#ob$le">Sk.builtin.object#ob$le</a>
</li></ul></dd>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="object.js.html">object.js</a>, <a href="object.js.html#line343">line 343</a>
</li></ul></dd>
</dl>
<h5>Returns:</h5>
<div class="param-desc">
<p>true if this <= other, false otherwise</p>
</div>
<dl>
<dt>
Type
</dt>
<dd>
<span class="param-type"><a href="Sk.builtin.bool.html">Sk.builtin.bool</a></span>
|
<span class="param-type"><a href="Sk.builtin.NotImplemented.html">Sk.builtin.NotImplemented</a></span>
</dd>
</dl>
<h4 class="name" id="ob$lt"><span class="type-signature"></span>ob$lt<span class="signature">(other)</span><span class="type-signature"> → {<a href="Sk.builtin.bool.html">Sk.builtin.bool</a>|<a href="Sk.builtin.NotImplemented.html">Sk.builtin.NotImplemented</a>}</span></h4>
<div class="description">
<p>Determine if this instance is less than a Python object (i.e. this < other).</p>
<p>Implements <code>__lt__</code> dunder method.</p>
<p>Javascript function, returns Python object.</p>
</div>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>other</code></td>
<td class="type">
<span class="param-type">Object</span>
</td>
<td class="description last"><p>The Python object to compare.</p></td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="inherited-from">Inherited From:</dt>
<dd class="inherited-from"><ul class="dummy"><li>
<a href="Sk.builtin.object.html#ob$lt">Sk.builtin.object#ob$lt</a>
</li></ul></dd>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="object.js.html">object.js</a>, <a href="object.js.html#line329">line 329</a>
</li></ul></dd>
</dl>
<h5>Returns:</h5>
<div class="param-desc">
<p>true if this < other, false otherwise</p>
</div>
<dl>
<dt>
Type
</dt>
<dd>
<span class="param-type"><a href="Sk.builtin.bool.html">Sk.builtin.bool</a></span>
|
<span class="param-type"><a href="Sk.builtin.NotImplemented.html">Sk.builtin.NotImplemented</a></span>
</dd>
</dl>
<h4 class="name" id="ob$ne"><span class="type-signature"></span>ob$ne<span class="signature">(other)</span><span class="type-signature"> → {<a href="Sk.builtin.bool.html">Sk.builtin.bool</a>|<a href="Sk.builtin.NotImplemented.html">Sk.builtin.NotImplemented</a>}</span></h4>
<div class="description">
<p>Perform non-equality check between this instance and a Python object (i.e. this != other).</p>
<p>Implements <code>__ne__</code> dunder method.</p>
<p>Javascript function, returns Python object.</p>
</div>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>other</code></td>
<td class="type">
<span class="param-type">Object</span>
</td>
<td class="description last"><p>The Python object to check for non-equality.</p></td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="inherited-from">Inherited From:</dt>
<dd class="inherited-from"><ul class="dummy"><li>
<a href="Sk.builtin.object.html#ob$ne">Sk.builtin.object#ob$ne</a>
</li></ul></dd>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="object.js.html">object.js</a>, <a href="object.js.html#line311">line 311</a>
</li></ul></dd>
</dl>
<h5>Returns:</h5>
<div class="param-desc">
<p>true if not equal, false otherwise</p>
</div>
<dl>
<dt>
Type
</dt>
<dd>
<span class="param-type"><a href="Sk.builtin.bool.html">Sk.builtin.bool</a></span>
|
<span class="param-type"><a href="Sk.builtin.NotImplemented.html">Sk.builtin.NotImplemented</a></span>
</dd>
</dl>
<h4 class="name" id="tp$hash"><span class="type-signature"></span>tp$hash<span class="signature">()</span><span class="type-signature"> → {<a href="Sk.builtin.int_.html">Sk.builtin.int_</a>}</span></h4>
<div class="description">
<p>Return the hash value of this instance.</p>
<p>Javascript function, returns Python object.</p>
</div>
<dl class="details">
<dt class="inherited-from">Inherited From:</dt>
<dd class="inherited-from"><ul class="dummy"><li>
<a href="Sk.builtin.object.html#tp$hash">Sk.builtin.object#tp$hash</a>
</li></ul></dd>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="object.js.html">object.js</a>, <a href="object.js.html#line275">line 275</a>
</li></ul></dd>
</dl>
<h5>Returns:</h5>
<div class="param-desc">
<p>The hash value</p>
</div>
<dl>
<dt>
Type
</dt>
<dd>
<span class="param-type"><a href="Sk.builtin.int_.html">Sk.builtin.int_</a></span>
</dd>
</dl>
</article>
</section>
</div>
<nav>
<h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="Sk.abstr.iter-seqIter.html">seqIter</a></li><li><a href="Sk.builtin.bool.html">bool</a></li><li><a href="Sk.builtin.float_.html">float_</a></li><li><a href="Sk.builtin.func.html">func</a></li><li><a href="Sk.builtin.int_.html">int_</a></li><li><a href="Sk.builtin.none.html">none</a></li><li><a href="Sk.builtin.NotImplemented.html">NotImplemented</a></li><li><a href="Sk.builtin.numtype.html">numtype</a></li><li><a href="Sk.builtin.object.html">object</a></li><li><a href="Sk.builtin.seqtype.html">seqtype</a></li><li><a href="Sk.misceval.Suspension.html">Suspension</a></li></ul><h3>Namespaces</h3><ul><li><a href="Sk.html">Sk</a></li><li><a href="Sk.abstr.html">abstr</a></li><li><a href="Sk.builtin.html">builtin</a></li><li><a href="Sk.ffi.html">ffi</a></li><li><a href="Sk.misceval.html">misceval</a></li></ul>
</nav>
<br class="clear">
<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.0</a> on Thu Aug 13 2015 08:14:27 GMT-0500 (CDT)
</footer>
<script> prettyPrint(); </script>
<script src="scripts/linenumber.js"> </script>
</body>
</html>