Sk.builtin.object.html 26 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>JSDoc: Class: object</title>
  6. <script src="scripts/prettify/prettify.js"> </script>
  7. <script src="scripts/prettify/lang-css.js"> </script>
  8. <!--[if lt IE 9]>
  9. <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
  10. <![endif]-->
  11. <link type="text/css" rel="stylesheet" href="styles/prettify-tomorrow.css">
  12. <link type="text/css" rel="stylesheet" href="styles/jsdoc-default.css">
  13. </head>
  14. <body>
  15. <div id="main">
  16. <h1 class="page-title">Class: object</h1>
  17. <section>
  18. <header>
  19. <h2>
  20. <span class="ancestors"><a href="Sk.html">Sk</a><a href="Sk.builtin.html">.builtin</a>.</span>
  21. object
  22. </h2>
  23. </header>
  24. <article>
  25. <div class="container-overview">
  26. <h4 class="name" id="object"><span class="type-signature"></span>new object<span class="signature">()</span><span class="type-signature"> &rarr; {<a href="Sk.builtin.object.html">Sk.builtin.object</a>}</span></h4>
  27. <div class="description">
  28. <p>Constructor for Python object. All Python classes (builtin and user-defined)
  29. should inherit from this class.</p>
  30. </div>
  31. <dl class="details">
  32. <dt class="tag-source">Source:</dt>
  33. <dd class="tag-source"><ul class="dummy"><li>
  34. <a href="object.js.html">object.js</a>, <a href="object.js.html#line1">line 1</a>
  35. </li></ul></dd>
  36. </dl>
  37. <h5>Returns:</h5>
  38. <div class="param-desc">
  39. <p>Python object</p>
  40. </div>
  41. <dl>
  42. <dt>
  43. Type
  44. </dt>
  45. <dd>
  46. <span class="param-type"><a href="Sk.builtin.object.html">Sk.builtin.object</a></span>
  47. </dd>
  48. </dl>
  49. </div>
  50. <h3 class="subsection-title">Members</h3>
  51. <h4 class="name" id=".pythonFunctions"><span class="type-signature">(static) </span>pythonFunctions<span class="type-signature"> :Array</span></h4>
  52. <div class="description">
  53. <p>Array of all the Python functions which are methods of this class.</p>
  54. </div>
  55. <h5>Type:</h5>
  56. <ul>
  57. <li>
  58. <span class="param-type">Array</span>
  59. </li>
  60. </ul>
  61. <dl class="details">
  62. <dt class="tag-source">Source:</dt>
  63. <dd class="tag-source"><ul class="dummy"><li>
  64. <a href="object.js.html">object.js</a>, <a href="object.js.html#line380">line 380</a>
  65. </li></ul></dd>
  66. </dl>
  67. <h4 class="name" id="$r"><span class="type-signature"></span>$r<span class="type-signature"></span></h4>
  68. <div class="description">
  69. <p>Return the string representation of this instance.</p>
  70. <p>Javascript function, returns Python object.</p>
  71. </div>
  72. <dl class="details">
  73. <dt class="tag-source">Source:</dt>
  74. <dd class="tag-source"><ul class="dummy"><li>
  75. <a href="object.js.html">object.js</a>, <a href="object.js.html#line253">line 253</a>
  76. </li></ul></dd>
  77. </dl>
  78. <h4 class="name" id="__eq__"><span class="type-signature"></span>__eq__<span class="type-signature"></span></h4>
  79. <div class="description">
  80. <p>Python wrapper for <code>__eq__</code> method.</p>
  81. </div>
  82. <dl class="details">
  83. <dt class="tag-source">Source:</dt>
  84. <dd class="tag-source"><ul class="dummy"><li>
  85. <a href="object.js.html">object.js</a>, <a href="object.js.html#line179">line 179</a>
  86. </li></ul></dd>
  87. </dl>
  88. <h4 class="name" id="__ge__"><span class="type-signature"></span>__ge__<span class="type-signature"></span></h4>
  89. <div class="description">
  90. <p>Python wrapper for <code>__ge__</code> method.</p>
  91. </div>
  92. <dl class="details">
  93. <dt class="tag-source">Source:</dt>
  94. <dd class="tag-source"><ul class="dummy"><li>
  95. <a href="object.js.html">object.js</a>, <a href="object.js.html#line239">line 239</a>
  96. </li></ul></dd>
  97. </dl>
  98. <h4 class="name" id="__gt__"><span class="type-signature"></span>__gt__<span class="type-signature"></span></h4>
  99. <div class="description">
  100. <p>Python wrapper for <code>__gt__</code> method.</p>
  101. </div>
  102. <dl class="details">
  103. <dt class="tag-source">Source:</dt>
  104. <dd class="tag-source"><ul class="dummy"><li>
  105. <a href="object.js.html">object.js</a>, <a href="object.js.html#line227">line 227</a>
  106. </li></ul></dd>
  107. </dl>
  108. <h4 class="name" id="__hash__"><span class="type-signature"></span>__hash__<span class="type-signature"></span></h4>
  109. <div class="description">
  110. <p>Python wrapper for <code>__hash__</code> method.</p>
  111. </div>
  112. <dl class="details">
  113. <dt class="tag-source">Source:</dt>
  114. <dd class="tag-source"><ul class="dummy"><li>
  115. <a href="object.js.html">object.js</a>, <a href="object.js.html#line167">line 167</a>
  116. </li></ul></dd>
  117. </dl>
  118. <h4 class="name" id="__le__"><span class="type-signature"></span>__le__<span class="type-signature"></span></h4>
  119. <div class="description">
  120. <p>Python wrapper for <code>__le__</code> method.</p>
  121. </div>
  122. <dl class="details">
  123. <dt class="tag-source">Source:</dt>
  124. <dd class="tag-source"><ul class="dummy"><li>
  125. <a href="object.js.html">object.js</a>, <a href="object.js.html#line215">line 215</a>
  126. </li></ul></dd>
  127. </dl>
  128. <h4 class="name" id="__lt__"><span class="type-signature"></span>__lt__<span class="type-signature"></span></h4>
  129. <div class="description">
  130. <p>Python wrapper for <code>__lt__</code> method.</p>
  131. </div>
  132. <dl class="details">
  133. <dt class="tag-source">Source:</dt>
  134. <dd class="tag-source"><ul class="dummy"><li>
  135. <a href="object.js.html">object.js</a>, <a href="object.js.html#line203">line 203</a>
  136. </li></ul></dd>
  137. </dl>
  138. <h4 class="name" id="__ne__"><span class="type-signature"></span>__ne__<span class="type-signature"></span></h4>
  139. <div class="description">
  140. <p>Python wrapper for <code>__ne__</code> method.</p>
  141. </div>
  142. <dl class="details">
  143. <dt class="tag-source">Source:</dt>
  144. <dd class="tag-source"><ul class="dummy"><li>
  145. <a href="object.js.html">object.js</a>, <a href="object.js.html#line191">line 191</a>
  146. </li></ul></dd>
  147. </dl>
  148. <h4 class="name" id="__repr__"><span class="type-signature"></span>__repr__<span class="type-signature"></span></h4>
  149. <div class="description">
  150. <p>Python wrapper for <code>__repr__</code> method.</p>
  151. </div>
  152. <dl class="details">
  153. <dt class="tag-source">Source:</dt>
  154. <dd class="tag-source"><ul class="dummy"><li>
  155. <a href="object.js.html">object.js</a>, <a href="object.js.html#line143">line 143</a>
  156. </li></ul></dd>
  157. </dl>
  158. <h4 class="name" id="__str__"><span class="type-signature"></span>__str__<span class="type-signature"></span></h4>
  159. <div class="description">
  160. <p>Python wrapper for <code>__str__</code> method.</p>
  161. </div>
  162. <dl class="details">
  163. <dt class="tag-source">Source:</dt>
  164. <dd class="tag-source"><ul class="dummy"><li>
  165. <a href="object.js.html">object.js</a>, <a href="object.js.html#line155">line 155</a>
  166. </li></ul></dd>
  167. </dl>
  168. <h4 class="name" id="ob$type"><span class="type-signature"></span>ob$type<span class="type-signature"> :Sk.builtin.type</span></h4>
  169. <div class="description">
  170. <p>The type object of this class.</p>
  171. </div>
  172. <h5>Type:</h5>
  173. <ul>
  174. <li>
  175. <span class="param-type">Sk.builtin.type</span>
  176. </li>
  177. </ul>
  178. <dl class="details">
  179. <dt class="tag-source">Source:</dt>
  180. <dd class="tag-source"><ul class="dummy"><li>
  181. <a href="object.js.html">object.js</a>, <a href="object.js.html#line138">line 138</a>
  182. </li></ul></dd>
  183. </dl>
  184. <h4 class="name" id="tp$name"><span class="type-signature"></span>tp$name<span class="type-signature"> :string</span></h4>
  185. <div class="description">
  186. <p>The name of this class.</p>
  187. </div>
  188. <h5>Type:</h5>
  189. <ul>
  190. <li>
  191. <span class="param-type">string</span>
  192. </li>
  193. </ul>
  194. <dl class="details">
  195. <dt class="tag-source">Source:</dt>
  196. <dd class="tag-source"><ul class="dummy"><li>
  197. <a href="object.js.html">object.js</a>, <a href="object.js.html#line132">line 132</a>
  198. </li></ul></dd>
  199. </dl>
  200. <h3 class="subsection-title">Methods</h3>
  201. <h4 class="name" id="GenericGetAttr"><span class="type-signature"></span>GenericGetAttr<span class="signature">()</span><span class="type-signature"> &rarr; {undefined}</span></h4>
  202. <dl class="details">
  203. <dt class="tag-source">Source:</dt>
  204. <dd class="tag-source"><ul class="dummy"><li>
  205. <a href="object.js.html">object.js</a>, <a href="object.js.html#line26">line 26</a>
  206. </li></ul></dd>
  207. </dl>
  208. <h5>Returns:</h5>
  209. <dl>
  210. <dt>
  211. Type
  212. </dt>
  213. <dd>
  214. <span class="param-type">undefined</span>
  215. </dd>
  216. </dl>
  217. <h4 class="name" id="ob$eq"><span class="type-signature"></span>ob$eq<span class="signature">(other)</span><span class="type-signature"> &rarr; {<a href="Sk.builtin.bool.html">Sk.builtin.bool</a>|<a href="Sk.builtin.NotImplemented.html">Sk.builtin.NotImplemented</a>}</span></h4>
  218. <div class="description">
  219. <p>Perform equality check between this instance and a Python object (i.e. this == other).</p>
  220. <p>Implements <code>__eq__</code> dunder method.</p>
  221. <p>Javascript function, returns Python object.</p>
  222. </div>
  223. <h5>Parameters:</h5>
  224. <table class="params">
  225. <thead>
  226. <tr>
  227. <th>Name</th>
  228. <th>Type</th>
  229. <th class="last">Description</th>
  230. </tr>
  231. </thead>
  232. <tbody>
  233. <tr>
  234. <td class="name"><code>other</code></td>
  235. <td class="type">
  236. <span class="param-type">Object</span>
  237. </td>
  238. <td class="description last"><p>The Python object to check for equality.</p></td>
  239. </tr>
  240. </tbody>
  241. </table>
  242. <dl class="details">
  243. <dt class="tag-source">Source:</dt>
  244. <dd class="tag-source"><ul class="dummy"><li>
  245. <a href="object.js.html">object.js</a>, <a href="object.js.html#line293">line 293</a>
  246. </li></ul></dd>
  247. </dl>
  248. <h5>Returns:</h5>
  249. <div class="param-desc">
  250. <p>true if equal, false otherwise</p>
  251. </div>
  252. <dl>
  253. <dt>
  254. Type
  255. </dt>
  256. <dd>
  257. <span class="param-type"><a href="Sk.builtin.bool.html">Sk.builtin.bool</a></span>
  258. |
  259. <span class="param-type"><a href="Sk.builtin.NotImplemented.html">Sk.builtin.NotImplemented</a></span>
  260. </dd>
  261. </dl>
  262. <h4 class="name" id="ob$ge"><span class="type-signature"></span>ob$ge<span class="signature">(other)</span><span class="type-signature"> &rarr; {<a href="Sk.builtin.bool.html">Sk.builtin.bool</a>|<a href="Sk.builtin.NotImplemented.html">Sk.builtin.NotImplemented</a>}</span></h4>
  263. <div class="description">
  264. <p>Determine if this instance is greater than or equal to a Python object (i.e. this &gt;= other).</p>
  265. <p>Implements <code>__ge__</code> dunder method.</p>
  266. <p>Javascript function, returns Python object.</p>
  267. </div>
  268. <h5>Parameters:</h5>
  269. <table class="params">
  270. <thead>
  271. <tr>
  272. <th>Name</th>
  273. <th>Type</th>
  274. <th class="last">Description</th>
  275. </tr>
  276. </thead>
  277. <tbody>
  278. <tr>
  279. <td class="name"><code>other</code></td>
  280. <td class="type">
  281. <span class="param-type">Object</span>
  282. </td>
  283. <td class="description last"><p>The Python object to compare.</p></td>
  284. </tr>
  285. </tbody>
  286. </table>
  287. <dl class="details">
  288. <dt class="tag-source">Source:</dt>
  289. <dd class="tag-source"><ul class="dummy"><li>
  290. <a href="object.js.html">object.js</a>, <a href="object.js.html#line371">line 371</a>
  291. </li></ul></dd>
  292. </dl>
  293. <h5>Returns:</h5>
  294. <div class="param-desc">
  295. <p>true if this &gt;= other, false otherwise</p>
  296. </div>
  297. <dl>
  298. <dt>
  299. Type
  300. </dt>
  301. <dd>
  302. <span class="param-type"><a href="Sk.builtin.bool.html">Sk.builtin.bool</a></span>
  303. |
  304. <span class="param-type"><a href="Sk.builtin.NotImplemented.html">Sk.builtin.NotImplemented</a></span>
  305. </dd>
  306. </dl>
  307. <h4 class="name" id="ob$gt"><span class="type-signature"></span>ob$gt<span class="signature">(other)</span><span class="type-signature"> &rarr; {<a href="Sk.builtin.bool.html">Sk.builtin.bool</a>|<a href="Sk.builtin.NotImplemented.html">Sk.builtin.NotImplemented</a>}</span></h4>
  308. <div class="description">
  309. <p>Determine if this instance is greater than a Python object (i.e. this &gt; other).</p>
  310. <p>Implements <code>__gt__</code> dunder method.</p>
  311. <p>Javascript function, returns Python object.</p>
  312. </div>
  313. <h5>Parameters:</h5>
  314. <table class="params">
  315. <thead>
  316. <tr>
  317. <th>Name</th>
  318. <th>Type</th>
  319. <th class="last">Description</th>
  320. </tr>
  321. </thead>
  322. <tbody>
  323. <tr>
  324. <td class="name"><code>other</code></td>
  325. <td class="type">
  326. <span class="param-type">Object</span>
  327. </td>
  328. <td class="description last"><p>The Python object to compare.</p></td>
  329. </tr>
  330. </tbody>
  331. </table>
  332. <dl class="details">
  333. <dt class="tag-source">Source:</dt>
  334. <dd class="tag-source"><ul class="dummy"><li>
  335. <a href="object.js.html">object.js</a>, <a href="object.js.html#line357">line 357</a>
  336. </li></ul></dd>
  337. </dl>
  338. <h5>Returns:</h5>
  339. <div class="param-desc">
  340. <p>true if this &gt; other, false otherwise</p>
  341. </div>
  342. <dl>
  343. <dt>
  344. Type
  345. </dt>
  346. <dd>
  347. <span class="param-type"><a href="Sk.builtin.bool.html">Sk.builtin.bool</a></span>
  348. |
  349. <span class="param-type"><a href="Sk.builtin.NotImplemented.html">Sk.builtin.NotImplemented</a></span>
  350. </dd>
  351. </dl>
  352. <h4 class="name" id="ob$le"><span class="type-signature"></span>ob$le<span class="signature">(other)</span><span class="type-signature"> &rarr; {<a href="Sk.builtin.bool.html">Sk.builtin.bool</a>|<a href="Sk.builtin.NotImplemented.html">Sk.builtin.NotImplemented</a>}</span></h4>
  353. <div class="description">
  354. <p>Determine if this instance is less than or equal to a Python object (i.e. this &lt;= other).</p>
  355. <p>Implements <code>__le__</code> dunder method.</p>
  356. <p>Javascript function, returns Python object.</p>
  357. </div>
  358. <h5>Parameters:</h5>
  359. <table class="params">
  360. <thead>
  361. <tr>
  362. <th>Name</th>
  363. <th>Type</th>
  364. <th class="last">Description</th>
  365. </tr>
  366. </thead>
  367. <tbody>
  368. <tr>
  369. <td class="name"><code>other</code></td>
  370. <td class="type">
  371. <span class="param-type">Object</span>
  372. </td>
  373. <td class="description last"><p>The Python object to compare.</p></td>
  374. </tr>
  375. </tbody>
  376. </table>
  377. <dl class="details">
  378. <dt class="tag-source">Source:</dt>
  379. <dd class="tag-source"><ul class="dummy"><li>
  380. <a href="object.js.html">object.js</a>, <a href="object.js.html#line343">line 343</a>
  381. </li></ul></dd>
  382. </dl>
  383. <h5>Returns:</h5>
  384. <div class="param-desc">
  385. <p>true if this &lt;= other, false otherwise</p>
  386. </div>
  387. <dl>
  388. <dt>
  389. Type
  390. </dt>
  391. <dd>
  392. <span class="param-type"><a href="Sk.builtin.bool.html">Sk.builtin.bool</a></span>
  393. |
  394. <span class="param-type"><a href="Sk.builtin.NotImplemented.html">Sk.builtin.NotImplemented</a></span>
  395. </dd>
  396. </dl>
  397. <h4 class="name" id="ob$lt"><span class="type-signature"></span>ob$lt<span class="signature">(other)</span><span class="type-signature"> &rarr; {<a href="Sk.builtin.bool.html">Sk.builtin.bool</a>|<a href="Sk.builtin.NotImplemented.html">Sk.builtin.NotImplemented</a>}</span></h4>
  398. <div class="description">
  399. <p>Determine if this instance is less than a Python object (i.e. this &lt; other).</p>
  400. <p>Implements <code>__lt__</code> dunder method.</p>
  401. <p>Javascript function, returns Python object.</p>
  402. </div>
  403. <h5>Parameters:</h5>
  404. <table class="params">
  405. <thead>
  406. <tr>
  407. <th>Name</th>
  408. <th>Type</th>
  409. <th class="last">Description</th>
  410. </tr>
  411. </thead>
  412. <tbody>
  413. <tr>
  414. <td class="name"><code>other</code></td>
  415. <td class="type">
  416. <span class="param-type">Object</span>
  417. </td>
  418. <td class="description last"><p>The Python object to compare.</p></td>
  419. </tr>
  420. </tbody>
  421. </table>
  422. <dl class="details">
  423. <dt class="tag-source">Source:</dt>
  424. <dd class="tag-source"><ul class="dummy"><li>
  425. <a href="object.js.html">object.js</a>, <a href="object.js.html#line329">line 329</a>
  426. </li></ul></dd>
  427. </dl>
  428. <h5>Returns:</h5>
  429. <div class="param-desc">
  430. <p>true if this &lt; other, false otherwise</p>
  431. </div>
  432. <dl>
  433. <dt>
  434. Type
  435. </dt>
  436. <dd>
  437. <span class="param-type"><a href="Sk.builtin.bool.html">Sk.builtin.bool</a></span>
  438. |
  439. <span class="param-type"><a href="Sk.builtin.NotImplemented.html">Sk.builtin.NotImplemented</a></span>
  440. </dd>
  441. </dl>
  442. <h4 class="name" id="ob$ne"><span class="type-signature"></span>ob$ne<span class="signature">(other)</span><span class="type-signature"> &rarr; {<a href="Sk.builtin.bool.html">Sk.builtin.bool</a>|<a href="Sk.builtin.NotImplemented.html">Sk.builtin.NotImplemented</a>}</span></h4>
  443. <div class="description">
  444. <p>Perform non-equality check between this instance and a Python object (i.e. this != other).</p>
  445. <p>Implements <code>__ne__</code> dunder method.</p>
  446. <p>Javascript function, returns Python object.</p>
  447. </div>
  448. <h5>Parameters:</h5>
  449. <table class="params">
  450. <thead>
  451. <tr>
  452. <th>Name</th>
  453. <th>Type</th>
  454. <th class="last">Description</th>
  455. </tr>
  456. </thead>
  457. <tbody>
  458. <tr>
  459. <td class="name"><code>other</code></td>
  460. <td class="type">
  461. <span class="param-type">Object</span>
  462. </td>
  463. <td class="description last"><p>The Python object to check for non-equality.</p></td>
  464. </tr>
  465. </tbody>
  466. </table>
  467. <dl class="details">
  468. <dt class="tag-source">Source:</dt>
  469. <dd class="tag-source"><ul class="dummy"><li>
  470. <a href="object.js.html">object.js</a>, <a href="object.js.html#line311">line 311</a>
  471. </li></ul></dd>
  472. </dl>
  473. <h5>Returns:</h5>
  474. <div class="param-desc">
  475. <p>true if not equal, false otherwise</p>
  476. </div>
  477. <dl>
  478. <dt>
  479. Type
  480. </dt>
  481. <dd>
  482. <span class="param-type"><a href="Sk.builtin.bool.html">Sk.builtin.bool</a></span>
  483. |
  484. <span class="param-type"><a href="Sk.builtin.NotImplemented.html">Sk.builtin.NotImplemented</a></span>
  485. </dd>
  486. </dl>
  487. <h4 class="name" id="tp$hash"><span class="type-signature"></span>tp$hash<span class="signature">()</span><span class="type-signature"> &rarr; {<a href="Sk.builtin.int_.html">Sk.builtin.int_</a>}</span></h4>
  488. <div class="description">
  489. <p>Return the hash value of this instance.</p>
  490. <p>Javascript function, returns Python object.</p>
  491. </div>
  492. <dl class="details">
  493. <dt class="tag-source">Source:</dt>
  494. <dd class="tag-source"><ul class="dummy"><li>
  495. <a href="object.js.html">object.js</a>, <a href="object.js.html#line275">line 275</a>
  496. </li></ul></dd>
  497. </dl>
  498. <h5>Returns:</h5>
  499. <div class="param-desc">
  500. <p>The hash value</p>
  501. </div>
  502. <dl>
  503. <dt>
  504. Type
  505. </dt>
  506. <dd>
  507. <span class="param-type"><a href="Sk.builtin.int_.html">Sk.builtin.int_</a></span>
  508. </dd>
  509. </dl>
  510. </article>
  511. </section>
  512. </div>
  513. <nav>
  514. <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>
  515. </nav>
  516. <br class="clear">
  517. <footer>
  518. 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)
  519. </footer>
  520. <script> prettyPrint(); </script>
  521. <script src="scripts/linenumber.js"> </script>
  522. </body>
  523. </html>