This repository has been archived by the owner on Jan 10, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfaq3.html
132 lines (130 loc) · 8.96 KB
/
faq3.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="Docutils 0.12: http://docutils.sourceforge.net/" />
<title>What Modules are Supported</title>
<link rel="stylesheet" href="../cssold/html4css1.css" type="text/css" />
<link type="text/css" href="css/newstyle.css" rel="stylesheet">
<!--[if lt IE 7]>
<script defer type="text/javascript" src="css/pngfix.js"></script>
<![endif]-->
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
<script type="text/javascript" src="css/ddaccordion.js">
/***********************************************
* Accordion Content script- (c) Dynamic Drive DHTML code library (www.dynamicdrive.com)
* Visit http://www.dynamicDrive.com for hundreds of DHTML scripts
* This notice must stay intact for legal use
***********************************************/
</script>
<script type="text/javascript">
ddaccordion.init({
headerclass: "silverheader", //Shared CSS class name of headers group
contentclass: "submenu", //Shared CSS class name of contents group
revealtype: "mouseover", //Reveal content when user clicks or onmouseover the header? Valid value: "click", "clickgo", or "mouseover"
mouseoverdelay: 200, //if revealtype="mouseover", set delay in milliseconds before header expands onMouseover
collapseprev: true, //Collapse previous content (so only one open at any time)? true/false
defaultexpanded: [0], //index of content(s) open by default [index1, index2, etc] [] denotes no content
onemustopen: true, //Specify whether at least one header should be open always (so never all headers closed)
animatedefault: false, //Should contents open by default be animated into view?
persiststate: true, //persist state of opened contents within browser session?
toggleclass: ["", "selected"], //Two CSS classes to be applied to the header when it's collapsed and expanded, respectively ["class1", "class2"]
togglehtml: ["", "", ""], //Additional HTML added to the header when it's collapsed and expanded, respectively ["position", "html1", "html2"] (see docs)
animatespeed: "fast", //speed of animation: integer in milliseconds (ie: 200), or keywords "fast", "normal", or "slow"
oninit:function(headers, expandedindices){ //custom code to run when headers have initalized
//do nothing
},
onopenclose:function(header, index, state, isuseractivated){ //custom code to run whenever a header is opened or closed
//do nothing
}
})
</script>
</head>
<body>
<div id="container">
<div id="top">
<div id="header">
<div id="grouplogo">
<a href="./" ><img class="logoImage" alt="Jython" style="border: 0px; padding-top: 20px; position:absolute; left: 35px" src="css/jython.png" title="Jython"></a>
</div>
<div class="latest_release" style="position:absolute; color:#000; width:180px; top: 15px; right: 30px; padding:0px 10px 10px 30px; font-size:11px; background:url('css/latest_release_bg.png') no-repeat">
<p style="top: 25px; color:#000">Latest release - 2.5.4rc1<br/>
<a style="color:#000" href="latest.html">View Release Notes</a><br/>
Download: <a style="color:#000" href="http://search.maven.org/remotecontent?filepath=org/python/jython-installer/2.5.4-rc1/jython-installer-2.5.4-rc1.jar">.jar</a>
</div>
<div class="searchbox">
<form action="http://www.google.com/search" method="get" class="roundtopsmall">
<input value="www.jython.org" name="sitesearch" type="hidden"><input size="25" id="searchbox" name="q" id="query" type="text">
<input name="Search" value="Search" type="submit">
</form></p>
</div>
</div></div>
<h2 id="topper">Jython: Python for the Java Platform</h2>
<div id="wrapper">
<div id="content"><div class="document" id="what-modules-are-supported">
<h1 class="title">What Modules are Supported</h1>
<p>We support most modules, certainly pure Python modules (w/o some dependency on something unsupported) and core modules. Of the builtin types, the only one we do not support is buffer. Having said that, here's the lengthier exposition:</p>
<p>Currently we rely on the standard CPython (soon to be core Python) test suite, as patched for a number of minor problems (reliance on garbage collection/ref counting semantics, specific orderings due to hash codes, execution orderings in tracing, etc.). For your question, the problem with this test suite is that it doesn't necessarily directly map to a given module; still there might be something automated we could do.</p>
<p>We have some modules where this is partial support; this is seen in the os and signals module for example, and their functionality may not be available under a given security context and would be OS platform dependent. We do plan to add more as we have time, such as perhaps os.fork. expat is another such module, it's complete enough that elementtree passes its unit tests.</p>
<p>We do plan to support bz2, ctypes, sqlite3, flesh out unicodedata, and support cjk codecs in 2.5.1.</p>
<p>Modules that we don't support, and perhaps won't, include bsddb3, curses, dbm, gdbm, ioctl, mmap, pty, Tkinter, and win32reg. Some of these might be readily doable, like mapping the curses module against CHARVA, but given limited resources, are not likely to be worked on. (Contributions welcome!)</p>
<p>We will not support modules related to the obsolete syntax tree for CPython (parser), the related pure-Python compiler (compiler). I'm not certain about the feasibility of symtable, but incidentally we do support 2.6's ast.</p>
<p>Finally, there are modules that are very much platform specific, likely not too interesting, generally obsolete, and I'm sure will never be supported in Jython, such as macostools, MacOS, sunaudiodev, winsound, etc. In this list, all but winsound were removed in Python 3.0.</p>
<p>If someone wanted to write a missing module, I'd take a look at our implementations of modules like threading and expat (not complete). Both demonstrate that it's feasible to write modules that would have to be written at least in part in C in CPython, but can be completely written in "pure Jython" (that is code that imports in Java libraries).</p>
</div>
<div class="footer">
<hr class="footer" />
<a class="reference external" href="faq3.txt">View document source</a>.
</div>
</div>
</div>
<div id="navigation"><div class="navcontainer"><ul class="navlist">
<li class="menutitle">About</li>
<li class="menupageitem"><a href="index.html">Welcome</a></li>
<li class="menupageitem"><a href="downloads.html">Download</a></li>
<li class="menupageitem"><a href="http://wiki.python.org/jython/InstallationInstructions">Installation</a></li>
<li class="menupageitem"><a href="http://sourceforge.net/mail/?group_id=12867">Mailing Lists</a></li>
<li class="menupageitem"><a href="license.html">License</a></li>
<li class="menupageitem"><a href="http://www.python.org/psf/">Foundation</a></li>
<li class="menupageitem"><a href="oldsites.html">Archived Sites</a></li>
<li class="menupageitem"><a href="acknowledgments.html">Acknowledgments</a></li>
<li class="menutitle">Documentation</li>
<li class="menupageitem"><a href="currentdocs.html">Current Docs</a></li>
<li class="menupageitem"><a href="http://www.jython.org/devguide/">Core Development</a></li>
<li class="menupageitem"><a href="http://www.jython.org/jythonbook/en/1.0">Jython Book</a></li>
<li class="menutitle">Wiki links</li>
<li class="menupageitem"><a href="http://wiki.python.org/jython/">Front page/News</a></li>
<li class="menupageitem"><a href="http://wiki.python.org/jython/JythonFaq">FAQ</a></li>
<li class="menupageitem"><a href="http://wiki.python.org/jython/WhyJython">Why Jython?</a></li>
<li class="menupageitem"><a href="http://wiki.python.org/jython/UserGuide">User Guide</a></li>
<li class="menupageitem"><a href="http://wiki.python.org/jython/JythonBibliography">Books and Articles</a></li>
<li class="menupageitem"><a href="http://wiki.python.org/jython/JythonMonthly/Newsletters">Jython Monthly</a></li>
<li class="menupageitem"><a href="http://wiki.python.org/jython/ReportingBugs">Reporting Bugs</a></li>
</ul>
</div>
</div>
<div id="extra">
<div class="applemenu">
<div class="silverheader"><a>Using Jython</a></div>
<div class="submenu">
<iframe src="faq.htm" style="border: 0px; width:100%;height:100%"></iframe>
</div>
<div class="silverheader"><a>IRC Chat</a></div>
<div class="submenu">
<iframe style="border: 0px; width: 100%; height: 100%" src="JythonIrcLogin.html"></iframe>
</div>
<div class="silverheader"><a>Developer Information</a></div>
<div class="submenu">
<iframe src="developer.htm" style="border: 0px; width:100%; height:100%"></iframe>
</div>
</div>
<br/><br/>
</div>
<div id="footer">
<ul><li><a href="http://wiki.python.org/jython/JythonFaq">About</a></li>
<li><a href="http://www.jython.org/jythonpodcast/">Jython Podcast</a></li>
<li><a href="license.html">License</a>
</ul>
</div>
</div></body>