<h1><aclass="toc-backref"href="#id6"name="pycrust-is-dead-long-live-py">PyCrust is dead! Long live Py!</a></h1>
<p>This project began with a program I created called PyCrust - an
interactive, graphical Python shell, developed using the wxPython GUI
toolkit. For about two years, PyCrust was hosted on <aclass="reference"href="http://www.sf.net/projects/pycrust/">SourceForge</a>.
Shortly after I created PyCrust, the wxPython folks started including
it in their distribution. As the PyCrust project grew, it reached a
point where I thought the original PyCrust name was too confining. I
was using the PyCrust code base to develop programs that weren't just
Python shells any more.</p>
<p>Around that same time, the wxPython folks asked me if I'd be willing
to move all my wxPython-related projects into the <aclass="reference"href="http://cvs.wxwindows.org">wxPython CVS
repository</a>, and become part of the <aclass="reference"href="http://www.wxpython.org/">wxPython</a>/<aclass="reference"href="http://www.wxwindows.org/">wxWindows</a> developer team.
I decided the time was right to restructure the PyCrust project.
During the move, the PyCrust package was renamed to "py" (lowercase
"p") and the collection of programs and modules as a whole became
known as "Py" (with a capital "P").</p>
<p>The original goal of PyCrust was to be the best interactive, graphical
Python shell (of course, I claimed it was the "flakiest" Python
shell). And that was all I wanted it to be. But little by little I
found myself developing a wider variety of tools for wxPython
applications. Eventually I'll create a debugger (PySlice, perhaps)
and whatever else is needed to one day become a complete wxPython
application development environment (PyFactory?). In the mean time,
PyCrust is still the flakiest Python shell, and the other Py programs
are equally tasty.</p>
<p>At this point, Py has standalone programs that include Python code
editors (PyAlaCarte and PyAlaMode), interactive Python shells (PyCrust
and PyShell), and a runtime wrapper (PyWrap). The runtime wrapper
utility provides you with runtime introspection capabilities for your
wxPython programs without having to include PyCrust or PyShell in your
program, and without having to alter one line of your source code.</p>
<p>Py also contains a collection of modules that you can use in your own
wxPython applications to provide similar services, either for your own
use during development, or as an interface for users of your programs.
These modules are the same ones used by all the Py programs. In
addition, Py contains a set of decorator classes that enhance the
wxPython class library, by dynamically attaching docstrings and call
<h2><aclass="toc-backref"href="#id19"name="to-1-24-2004">0.9.3 (9/25/2003 to 1/24/2004)</a></h2>
<p>Fun and games with dynamic renaming. Details of any other changes
were lost in the confusion. I'll try to do better in the future.</p>
</div>
<divclass="section"id="to-9-25-2003">
<h2><aclass="toc-backref"href="#id20"name="to-9-25-2003">0.9.2 (5/3/2003 to 9/25/2003)</a></h2>
<p>Changed to the new prefix-less "wx" package:</p>
<preclass="literal-block">
import wx
</pre>
<p>instead of:</p>
<preclass="literal-block">
from wxPython import wx
</pre>
<p>Fixed typo in <ttclass="literal"><spanclass="pre">PyWrap.py</span></tt>:</p>
<preclass="literal-block">
if __name__ == '__main__':
main(sys.argv)
</pre>
<p>should have been:</p>
<preclass="literal-block">
if __name__ == '__main__':
main()
</pre>
<p>Added pretty-print Display tab to Crust, based on suggestion from
Jason Whitlark.</p>
<p>Improved <ttclass="literal"><spanclass="pre">Can*</span></tt> checks in <ttclass="literal"><spanclass="pre">EditWindow</span></tt>, since STC is too lenient,
particularly when it is set to read-only but returns True for
CanPaste() (seems like an STC bug to me):</p>
<preclass="literal-block">
def CanCopy(self):
"""Return True if text is selected and can be copied."""
"""Return True if text is selected and can be cut."""
return self.CanCopy() and self.CanEdit()
def CanEdit(self):
"""Return True if editing should succeed."""
return not self.GetReadOnly()
def CanPaste(self):
"""Return True if pasting should succeed."""
return stc.StyledTextCtrl.CanPaste(self) and self.CanEdit()
</pre>
</div>
<divclass="section"id="to-5-2-2003">
<h2><aclass="toc-backref"href="#id21"name="to-5-2-2003">0.9.1 (3/21/2003 to 5/2/2003)</a></h2>
<p>PyCrust is dead! Long live Py!</p>
<ulclass="simple">
<li>Renamed <ttclass="literal"><spanclass="pre">PyCrust</span></tt> package to <ttclass="literal"><spanclass="pre">py</span></tt>.</li>
<li>Moved code to wxPython's CVS repository.</li>
</ul>
<p>Fixed bug in <ttclass="literal"><spanclass="pre">introspect.py</span></tt> on introspecting objects occurring
immediately after a secondary prompt, like this:</p>
<preclass="literal-block">
>>> l = [1, 2, 3]
>>> for n in range(3):
... l. <-- failed to popup autocomplete list
</pre>
<p>Added documentation files:</p>
<ulclass="simple">
<li>PyManual.txt</li>
<li>wxPythonManual.txt</li>
<li>wxPythonPackage.txt</li>
<li>wxPythonExamples.txt</li>
</ul>
<p>Added PyAlaMode and PyAlaCarte code editors.</p>
<p>Major refactoring to support <ttclass="literal"><spanclass="pre">editor</span></tt> and <ttclass="literal"><spanclass="pre">shell</span></tt> from the same
base.</p>
<p>Renamed program files:</p>
<ulclass="simple">
<li><ttclass="literal"><spanclass="pre">PyCrustApp.py</span></tt> to <ttclass="literal"><spanclass="pre">PyCrust.py</span></tt></li>
<li><ttclass="literal"><spanclass="pre">PyFillingApp.py</span></tt> to <ttclass="literal"><spanclass="pre">PyFilling.py</span></tt></li>
<li><ttclass="literal"><spanclass="pre">PyShellApp.py</span></tt> to <ttclass="literal"><spanclass="pre">PyShell.py</span></tt></li>
<li><ttclass="literal"><spanclass="pre">wrap.py</span></tt> to <ttclass="literal"><spanclass="pre">PyWrap.py</span></tt></li>
</ul>
<p>Removed disabling of autocomplete for lists of 2000 items or more.
The current implementation of wxSTC can now handle lists this big.</p>
<p>Improved handling of <ttclass="literal"><spanclass="pre">sys.path</span></tt> to mimic the standard Python shell.</p>
</div>
<divclass="section"id="to-3-20-2003">
<h2><aclass="toc-backref"href="#id22"name="to-3-20-2003">0.9 (2/27/2003 to 3/20/2003)</a></h2>
<p>Added fontIncrease, fontDecrease, fontDefault signals, receivers and
keybindings:</p>
<preclass="literal-block">
Ctrl+] Increase font size.
Ctrl+[ Decrease font size.
Ctrl+= Default font size.
</pre>
<p>Continued enhancement of the decorator capability to provide better
documentation and docstrings for wxPython classes and functions.</p>
<p>Introduced new tabbed interface:</p>
<ulclass="simple">
<li>Namespace</li>
<li>Calltip</li>
<li>Session</li>
<li>Dispatcher</li>
<li>wxPython Docs</li>
<li>wxSTC Docs</li>
</ul>
<p><ttclass="literal"><spanclass="pre">Filling.tree</span></tt> now expands tuples as well as lists. (It should have
done this all along, I just never noticed this omission before.)</p>
<p>Added this True/False test to all modules:</p>
<preclass="literal-block">
try:
True
except NameError:
True = 1==1
False = 1==0
</pre>
<p>Added <ttclass="literal"><spanclass="pre">wxd</span></tt> directory with decoration classes.</p>
</div>
<divclass="section"id="to-2-26-2003">
<h2><aclass="toc-backref"href="#id23"name="to-2-26-2003">0.8.2 (1/5/2003 to 2/26/2003)</a></h2>
<p>Wrapped <ttclass="literal"><spanclass="pre">sys.ps1</span></tt>, <ttclass="literal"><spanclass="pre">sys.ps2</span></tt>, and <ttclass="literal"><spanclass="pre">sys.ps3</span></tt> in <ttclass="literal"><spanclass="pre">str()</span></tt>.
(Thanks, Kieran Holland.)</p>
<p>Fixed minor things found by PyChecker.</p>
<p>Changed locals to use <ttclass="literal"><spanclass="pre">__main__.__dict__</span></tt> and added code to clean up
the namespace, making it as close to the regular Python environment as
possible. This solves the problem of pickling and unpickling
instances of classes defined in the shell.</p>
<p>Made <ttclass="literal"><spanclass="pre">shell.PasteAndRun()</span></tt> a little more forgiving when it finds a
ps2 prompt line with no trailing space, such when you copy code from a
web page.</p>
<p>Improved autocomplete behavior by adding these to shell:</p>
<p>Added <ttclass="literal"><spanclass="pre">decor</span></tt> directory, <ttclass="literal"><spanclass="pre">decorator.py</span></tt>, <ttclass="literal"><spanclass="pre">stcDecor.py</span></tt>, and
<ttclass="literal"><spanclass="pre">stcConstants.py</span></tt>. These all serve the purpose of adding docstrings
to existing wxPython classes, in particular the <ttclass="literal"><spanclass="pre">wxStyledTextCtrl</span></tt>.</p>
<p>Added <ttclass="literal"><spanclass="pre">wrap.py</span></tt>, a command line utility for running a wxPython app
with additional runtime-tools loaded, such as PyCrust (the only tool
at this point).</p>
<p>Flushed the clipboard Cut/Copy operations so that selections will
exist in the clipboard even after PyCrust has been closed.</p>
<p>Improved the suppression of docstrings for simple data types appearing
in the namespace viewer.</p>
<p>Better handling of autocompletion with numeric types; no
autocompletion when typing a dot after an integer. If the
autocompletion is desired, type a space before the dot:</p>
<preclass="literal-block">
func = 3 .
</pre>
<p>More Filling!!! The namespace tree is now dynamically updated.</p>
</div>
<divclass="section"id="to-12-25-2002">
<h2><aclass="toc-backref"href="#id24"name="to-12-25-2002">0.8.1 (12/20/2002 to 12/25/2002)</a></h2>
<p>Improved keyboard handling with Autocomplete active. You can now use
Enter as well as Tab to select an item from the list.</p>
<p>Disabled autocomplete for lists of 2000 items or more. The current
implementation of wxSTC can't handle lists this big.</p>
<p>Changed <ttclass="literal"><spanclass="pre">filling</span></tt> to always display docstrings for objects. This is
useful for objects whose docstrings have been decorated, rather than
coming directly from the source code. (Hmmm. Sounds like someone is
doing some decorating. I wonder where that would be helpful? <wink>)</p>
<p>Fixed handling of icon. Added <ttclass="literal"><spanclass="pre">images.py</span></tt> file.</p>
</div>
<divclass="section"id="to-12-16-2002">
<h2><aclass="toc-backref"href="#id25"name="to-12-16-2002">0.8 (10/29/2002 to 12/16/2002)</a></h2>
<p>Added "help" to startup banner info.</p>
<p>Made all <ttclass="literal"><spanclass="pre">wx</span></tt> and <ttclass="literal"><spanclass="pre">stc</span></tt> imports explicit. No more <ttclass="literal"><spanclass="pre">import</span><spanclass="pre">*</span></tt>.</p>
<p>Replaced use of the <ttclass="literal"><spanclass="pre">wx</span></tt> module's <ttclass="literal"><spanclass="pre">true</span></tt> and <ttclass="literal"><spanclass="pre">false</span></tt> with
Python's <ttclass="literal"><spanclass="pre">True</span></tt> and <ttclass="literal"><spanclass="pre">False</span></tt>.</p>
<p>Changed <ttclass="literal"><spanclass="pre">introspect.getRoot()</span></tt> to use <ttclass="literal"><spanclass="pre">tokenize</span></tt> module. This
does a slightly better job than the previous parsing routine and the
code is clearer.</p>
<p>Improved handling of whitespace and empty types during introspection.</p>
<p>Fixed cut/copy clipboard problem under Linux. (Robin Dunn rocks!!!)</p>
<p>Added shell.about() which works like this:</p>
<preclass="literal-block">
>>> shell.about()
PyCrust Version: 0.8
Shell Revision: 1.80
Interpreter Revision: 1.15
Python Version: 2.2.2
wxPython Version: 2.3.3.1
Platform: linux2
</pre>
<p>Added copy plus and paste plus to shell menu.</p>
<p>Moved shell menu from <ttclass="literal"><spanclass="pre">shell.py</span></tt> to <ttclass="literal"><spanclass="pre">shellmenu.py</span></tt>.</p>
<p>Added <ttclass="literal"><spanclass="pre">time.sleep()</span></tt> in <ttclass="literal"><spanclass="pre">readline()</span></tt> and <ttclass="literal"><spanclass="pre">OnIdle()</span></tt> event
handler to free up the CPU.</p>
</div>
<divclass="section"id="to-8-27-2002">
<h2><aclass="toc-backref"href="#id26"name="to-8-27-2002">0.7.2 (2/22/2002 to 8/27/2002)</a></h2>
<p>Tweaked <ttclass="literal"><spanclass="pre">getAttributeNames()</span></tt> to pick up a few more attributes:</p>
<p>Improved support for empty types in the shell: <ttclass="literal"><spanclass="pre">[]</span></tt>, <ttclass="literal"><spanclass="pre">()</span></tt> and
<ttclass="literal"><spanclass="pre">{}</span></tt> as far as when call tips and autocompletion are available.</p>
<p>Added support for the other triple string - <ttclass="literal"><spanclass="pre">''''''</span></tt>.</p>
<p>Refactored <ttclass="literal"><spanclass="pre">introspect.py</span></tt> to improve testability.</p>
<p>Improved call tips for unbound methods by leaving the "self"
parameter, since unbound methods require an instance be passed.</p>
<p>Fixed call tip bug where a tip was displayed when a "(" was typed
after an object that wasn't callable.</p>
<p>Fixed <ttclass="literal"><spanclass="pre">getAllAttributeNames</span></tt> when <ttclass="literal"><spanclass="pre">str(object)</span></tt> fails.</p>
<p>Added brace highlighting. (Thank you, Kevin Altis.)</p>
<p>Fixed problem displaying unicode objects in <ttclass="literal"><spanclass="pre">PyFilling</span></tt>.</p>
<p>Changed how <ttclass="literal"><spanclass="pre">filling.py</span></tt> checks for expandable objects. Lists are
now expandable objects.</p>
<p>Made the key handling more robust when there is an active text
selection that includes text prior to the last primary prompt. Thanks
to Raul Cota for pointing this out.</p>
<p>Fixed wxSTC problem with brace highlighting and non-us keyboards.
(Thank you for the patch, Jean-Michel Fauth.)</p>
<p>Added <ttclass="literal"><spanclass="pre">busy</span><spanclass="pre">=</span><spanclass="pre">wxBusyCursor()</span></tt> to key points in <ttclass="literal"><spanclass="pre">shell</span></tt> and
<p>Added <ttclass="literal"><spanclass="pre">OnCloseWindow</span></tt> handler to <ttclass="literal"><spanclass="pre">ShellFrame</span></tt> and <ttclass="literal"><spanclass="pre">CrustFrame</span></tt>.</p>
<p>Default to <ttclass="literal"><spanclass="pre">SetWrapMode(1)</span></tt> for shell and namespace viewer.</p>
<p>Added <ttclass="literal"><spanclass="pre">shell.wrap()</span></tt> and <ttclass="literal"><spanclass="pre">shell.zoom()</span></tt>.</p>
<p>Added autoCompleteKeys hooks for Raul Cota.</p>
<p>Cleaned up various little key handling bugs.</p>
<p>Changed input methods to get values from shell, rather than dialog
boxes. Renamed <ttclass="literal"><spanclass="pre">readIn</span></tt> to <ttclass="literal"><spanclass="pre">readline</span></tt> and <ttclass="literal"><spanclass="pre">readRaw</span></tt> to
<h2><aclass="toc-backref"href="#id27"name="to-2-21-2002">0.7.1 (12/12/2001 to 2/21/2002)</a></h2>
<p>Fixed <ttclass="literal"><spanclass="pre">OnChar()</span></tt> issues effecting European keyboards, as reported by
Jean-Michel Fauth.</p>
<p>Fixed <ttclass="literal"><spanclass="pre">introspect.py</span></tt> issue with xmlrpc objects reported by Kevin
Altis.</p>
<p>Fixed some introspect/PyFilling issues with regard to Python 2.2.</p>
<p>Fixed font background color as reported by Keith J. Farmer. (Thanks)</p>
<p>Fixed problem with call tips and autocompletion inside multiline
commands as report by Kevin Altis.</p>
<p>Improved <ttclass="literal"><spanclass="pre">OnKeyDown</span></tt> handling of cut/copy/paste operations based on
feedback from Syver Enstad. (Thanks)</p>
<p>Added a <ttclass="literal"><spanclass="pre">shell.help()</span></tt> method to display some help info.</p>
<p>Changed sort of items in the namespace viewer to case insensitive.</p>
<p>Changed <ttclass="literal"><spanclass="pre">attributes.sort(lambda</span><spanclass="pre">x,</span><spanclass="pre">y:</span><spanclass="pre">cmp(x.upper(),</span><spanclass="pre">y.upper()))</span></tt> in
advance of an upcoming fix to an autocompletion matching bug in wxSTC.</p>
<p>Improved support for ZODB by allowing namespace drilldown into BTrees.</p>
<p>Added <ttclass="literal"><spanclass="pre">shell.PasteAndRun()</span></tt> to support pasting multiple commands into
the shell from the clipboard. Ctrl+Shift+V or v.</p>
<p>Enter now always processes a command (or copies down a previous one.)
To insert a line break, press Ctrl+Enter.</p>
<p>Escape key clears the current, unexecuted command.</p>
<p>History retrieval changed to replace current command. Added new keys
to insert from history - Shift+Up and Shift+Down.</p>
<p>Better call tips on objects with <ttclass="literal"><spanclass="pre">__call__</span></tt> methods.</p>
<p>Improved call tip positioning calculation.</p>
</div>
<divclass="section"id="to-12-11-2001">
<h2><aclass="toc-backref"href="#id28"name="to-12-11-2001">0.7 (10/15/2001 to 12/11/2001)</a></h2>
<p>Changed how command history retrieval functions work. Added Alt-P,
Alt-N as keybindings for Retrieve-Previous, Retrieve-Next.</p>
<p>Added full support for multi-line commands, similar to IDLE.</p>
<p>Changed <ttclass="literal"><spanclass="pre">introspect.getAttributeNames()</span></tt> to do a case insensitive
sort.</p>
<p>Changed Cut/Copy/Paste to deal with prompts intelligently. Cut and
Copy remove all prompts. Paste can handle prompted or not-prompted
text.</p>
<p>Added <ttclass="literal"><spanclass="pre">CopyWithPrompts()</span></tt> method attached to Ctrl-Shift-C for those
times when you really do want all the prompts left intact.</p>
<p>Improved handling of the shell's read-only zone.</p>
<p>Changed <ttclass="literal"><spanclass="pre">CrustFrame.__init__</span></tt> parameter spec to include all
parameters allowed by a <ttclass="literal"><spanclass="pre">wxFrame</span></tt>.</p>
<p>Changed <ttclass="literal"><spanclass="pre">FillingText</span></tt> to be read-only.</p>
<p>Renamed <ttclass="literal"><spanclass="pre">PyCrust.py</span></tt> to <ttclass="literal"><spanclass="pre">PyCrustApp.py</span></tt> to eliminate
package/module name conflicts that kept you from doing <ttclass="literal"><spanclass="pre">from</span><spanclass="pre">PyCrust</span>
<spanclass="pre">import</span><spanclass="pre">shell</span></tt> inside files located in the <ttclass="literal"><spanclass="pre">PyCrust</span></tt> directory.</p>
<p>Renamed <ttclass="literal"><spanclass="pre">PyFilling.py</span></tt> to <ttclass="literal"><spanclass="pre">PyFillingApp.py</span></tt> and <ttclass="literal"><spanclass="pre">PyShell.py</span></tt> to
<ttclass="literal"><spanclass="pre">PyShellApp.py</span></tt> to maintain consistency.</p>
<p>Removed the <ttclass="literal"><spanclass="pre">__date__</span></tt> property from all modules.</p>
<p>Fixed bug in <ttclass="literal"><spanclass="pre">introspect.getCallTip()</span></tt>, reported by Kevin Altis.</p>
</div>
<divclass="section"id="to-10-12-2001">
<h2><aclass="toc-backref"href="#id29"name="to-10-12-2001">0.6.1 (9/19/2001 to 10/12/2001)</a></h2>
<p>Changed <ttclass="literal"><spanclass="pre">Shell.run()</span></tt> to always position to the end of existing
text, as suggested by Raul Cota.</p>
<p>Changed <ttclass="literal"><spanclass="pre">introspect.getAllAttributeNames()</span></tt> to break circular
references in <ttclass="literal"><spanclass="pre">object.__class__</span></tt>, which occurs in Zope/ZODB
extension classes.</p>
<p>Changed <ttclass="literal"><spanclass="pre">filling.FillingTree.getChildren()</span></tt> to introspect extension
classes.</p>
<p>Fixed minor bugs in <ttclass="literal"><spanclass="pre">introspect.getCallTip()</span></tt> that were interfering
with call tips for Zope/ZODB extension class methods.</p>
<p>In preparation for wxPython 2.3.2, added code to fix a font sizing
problem. Versions of wxPython prior to 2.3.2 had a sizing bug on Win
platform where the font was 2 points larger than what was specified.</p>
<p>Added a hack to <ttclass="literal"><spanclass="pre">introspect.getAllAttributeNames()</span></tt> to "wake up"
ZODB objects that are asleep - in a "ghost" state. Otherwise it
returns incomplete info.</p>
</div>
<divclass="section"id="to-9-12-2001">
<h2><aclass="toc-backref"href="#id30"name="to-9-12-2001">0.6 (8/21/2001 to 9/12/2001)</a></h2>
<p>Added <ttclass="literal"><spanclass="pre">PyFilling.py</span></tt> and <ttclass="literal"><spanclass="pre">filling.py</span></tt>.</p>
<p><ttclass="literal"><spanclass="pre">PyShell.py</span></tt> and <ttclass="literal"><spanclass="pre">PyFilling.py</span></tt> can now be run standalone, as well
as <ttclass="literal"><spanclass="pre">PyCrust.py</span></tt>.</p>
<p>Added <ttclass="literal"><spanclass="pre">crust.py</span></tt> and moved some code from <ttclass="literal"><spanclass="pre">PyCrust.py</span></tt> to it.</p>
<p>Added command history retrieval features submitted by Richie Hindle.</p>
<p>Changed <ttclass="literal"><spanclass="pre">shell.write()</span></tt> to replace line endings with OS-specific
endings. Changed <ttclass="literal"><spanclass="pre">shell.py</span></tt> and <ttclass="literal"><spanclass="pre">interpreter.py</span></tt> to use
<ttclass="literal"><spanclass="pre">os.linesep</span></tt> in strings having hardcoded line endings.</p>
<p>Added <ttclass="literal"><spanclass="pre">shell.redirectStdin()</span></tt>, <ttclass="literal"><spanclass="pre">shell.redirectStdout()</span></tt> and
<ttclass="literal"><spanclass="pre">shell.redirectStderr()</span></tt> to allow the surrounding app to toggle
requests that the specified <ttclass="literal"><spanclass="pre">sys.std*</span></tt> be redirected to the shell.
These can also be run from within the shell itself, of course.</p>
<p>The shell now adds the current working directory "." to the search
path:</p>
<preclass="literal-block">
sys.path.insert(0, os.curdir)
</pre>
<p>Added support for distutils installations.</p>
</div>
<divclass="section"id="to-8-20-2001">
<h2><aclass="toc-backref"href="#id31"name="to-8-20-2001">0.5.4 (8/17/2001 to 8/20/2001)</a></h2>
<p>Changed default font size under Linux to:</p>
<preclass="literal-block">
'size' : 12,
'lnsize' : 10,
</pre>
<p>Changed <ttclass="literal"><spanclass="pre">Shell</span></tt> to expect a parameter referencing an Interpreter
class, rather than an intepreter instance, to facilitate subclassing
of Interpreter, which effectively broke when the Editor class was
eliminated.</p>
<p>Fixed <ttclass="literal"><spanclass="pre">PyCrustAlaCarte.py</span></tt>, which had been broken by previous
changes.</p>
<p>Created <ttclass="literal"><spanclass="pre">InterpreterAlaCarte</span></tt> class as an example for use in the
demo.</p>
<p>Split <ttclass="literal"><spanclass="pre">PyCrust.py</span></tt> into <ttclass="literal"><spanclass="pre">PyCrust.py</span></tt> and <ttclass="literal"><spanclass="pre">PyShell.py</span></tt> in
anticipation of <ttclass="literal"><spanclass="pre">PyFilling.py</span></tt>.</p>
<p>Added patch to <ttclass="literal"><spanclass="pre">PyCrust.py</span></tt> to fix wxPython bug:</p>
<preclass="literal-block">
wxID_SELECTALL = NewId() # This *should* be defined by wxPython.
</pre>
</div>
<divclass="section"id="to-8-15-2001">
<h2><aclass="toc-backref"href="#id33"name="to-8-15-2001">0.5.2 (8/14/2001 to 8/15/2001)</a></h2>
<p>Shortened module names by dropping "PyCrust" as a prefix.</p>
<p>Changed <ttclass="literal"><spanclass="pre">version</span></tt> to <ttclass="literal"><spanclass="pre">VERSION</span></tt> in <ttclass="literal"><spanclass="pre">version</span></tt> module.</p>
<p>Added Options menu to PyCrust application.</p>
<p>Eliminated the Editor class (and editor module) by merging with Shell.
This means that Shell "is a" wxStyledTextCtrl rather than "has a".
There just wasn't enough non-gui code to justify the separation.
Plus, Shell will be much easier for gui toolkits/designers to deal
with now.</p>
</div>
<divclass="section"id="to-8-14-2001">
<h2><aclass="toc-backref"href="#id34"name="to-8-14-2001">0.5.1 (8/10/2001 to 8/14/2001)</a></h2>
<p>Moved some functionality from <ttclass="literal"><spanclass="pre">PyCrustInterp</span></tt> to <ttclass="literal"><spanclass="pre">introspect</span></tt>.</p>
<p>Changed <ttclass="literal"><spanclass="pre">introspect.getRoot()</span></tt> to no longer remove whitespace from
the command. This was a remnant of a previous approach that, when
left as part of the current approach, turned out to be a really bad
thing.</p>
<p>Changed <ttclass="literal"><spanclass="pre">introspect.getRoot()</span></tt> to allow commands of <ttclass="literal"><spanclass="pre">''</span></tt>, <ttclass="literal"><spanclass="pre">""</span></tt>,
<ttclass="literal"><spanclass="pre">""""""</span></tt>, <ttclass="literal"><spanclass="pre">[]</span></tt>, <ttclass="literal"><spanclass="pre">()</span></tt>, and <ttclass="literal"><spanclass="pre">{}</span></tt> to pass through. This allows
you to type them, followed by a dot, and get autocomplete options on
them.</p>
<p>Changed <ttclass="literal"><spanclass="pre">introspect.getRoot()</span></tt> to identify some situations where
strings shouldn't be considered roots. For example:</p>
<preclass="literal-block">
>>> import PyCrust # To illustrate the potential problem.
>>> len('PyCrust.py')
</pre>
<p>Typing the dot at the end of "PyCrust" in the second line above should
NOT result in an autocompletion list because "PyCrust" is part of a
string in this context, not a reference to the PyCrust module object.
Similar reasoning applies to call tips. For example:</p>
<preclass="literal-block">
>>> len('dir(')
</pre>
<p>Typing the left paren at the end of "dir" should NOT result in a call
tip.</p>
<p>Both features now behave properly in the examples given. However,
there is still the case where whitespace precedes the potential root
and that is NOT handled properly. For example:</p>
<preclass="literal-block">
>>> len('this is a dir(')
</pre>
<p>and:</p>
<preclass="literal-block">
>>> len('This is PyCrust.py')
</pre>
<p>More code needs to be written to handle more complex situations.</p>
<p>Added <ttclass="literal"><spanclass="pre">locals=None</span></tt> parameter to <ttclass="literal"><spanclass="pre">Shell.__init__()</span></tt>.</p>
<p>Added support for magic attribute retrieval. Users can change this