CARVIEW |
Python Implementations
An "implementation" of Python should be taken to mean a program or environment which provides support for the execution of programs written in the Python language, or some broadly similar dialect of the language.
There have been and are several distinct software packages providing of what we all recognize as Python, although some of those are more like distributions or variants of some existing implementation than a completely new implementation of the language.
CPython Variants
CPython - the reference Python implementation
ActivePython - a CPython variant
Other Implementations
Compilers
Compyler - an attempt to "transliterate the bytecode into x86 assembly"
Shed Skin - a Python-to-C++ compiler
Topic Guides
This page aims to replace one formerly maintained as "Cameron Laird's personal notes on varieties of Python implementation".
AssertionError
If you want to report a bug, please save this page and attach it to your bug report.
Traceback
A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.
/usr/lib/python2.4/site-packages/MoinMoin/request.py in run (self=<MoinMoin.request.RequestFastCGI object>)
- 1152 # Visit pagename
- 1153 self.page = Page(self, pagename)
- 1154 self.page.send_page(self, count_hit=1)
- 1155
- 1156 # generate page footer (actions that do not want this footer
- self = <MoinMoin.request.RequestFastCGI object>
- self.page = <MoinMoin.Page.Page instance>
- self.page.send_page = <bound method Page.send_page of <MoinMoin.Page.Page instance>>
- count_hit undefined
/usr/lib/python2.4/site-packages/MoinMoin/Page.py in send_page (self=<MoinMoin.Page.Page instance>, request=<MoinMoin.request.RequestFastCGI object>, msg='', **keywords={'count_hit': 1})
- 1249 # send the page footer
- 1250 if self.default_formatter:
- 1251 wikiutil.send_footer(request, self.page_name, print_mode=print_mode)
- 1252
- 1253 request.write(doc_trailer)
- global wikiutil = <module 'MoinMoin.wikiutil' from '/usr/lib/python2.4/site-packages/MoinMoin/wikiutil.pyc'>
- wikiutil.send_footer = <function send_footer>
- request = <MoinMoin.request.RequestFastCGI object>
- self = <MoinMoin.Page.Page instance>
- self.page_name = u'implementation'
- print_mode = False
/usr/lib/python2.4/site-packages/MoinMoin/wikiutil.py in send_footer (request=<MoinMoin.request.RequestFastCGI object>, pagename=u'implementation', **keywords={'print_mode': False})
- 1481 request.write(theme.endPage())
- 1482 else:
- 1483 request.write(theme.footer(d, **keywords))
- 1484
- 1485
- request = <MoinMoin.request.RequestFastCGI object>
- request.write = <bound method RequestFastCGI.write of <MoinMoin.request.RequestFastCGI object>>
- theme = <main.plugin.theme.python.Theme instance>
- theme.footer = <bound method Theme.footer of <main.plugin.theme.python.Theme instance>>
- d = {'available_actions': ['use self.request.availableActions(page)'], 'home_page': None, 'i18ntitle': u'Print', 'last_edit_info': {'editor': u'<span title="PaulBoddie @ cm-84.215.156.170.chel....chello.no[84.215.156.170]">PaulBoddie</a></span>', 'time': '2007-08-11 22:44:56'}, 'logo_string': u'PythonInfo Wiki', 'msg': '', 'navibar': ['use self.navibar(d)'], 'page': <MoinMoin.Page.Page instance>, 'page_find_page': 'FindPage', 'page_front_page': u'FrontPage', ...}
- keywords = {'print_mode': False}
/data/moin/instances/main/data/plugin/theme/python.py in footer (self=<main.plugin.theme.python.Theme instance>, d={'available_actions': ['use self.request.availableActions(page)'], 'home_page': None, 'i18ntitle': u'Print', 'last_edit_info': {'editor': u'<span title="PaulBoddie @ cm-84.215.156.170.chel....chello.no[84.215.156.170]">PaulBoddie</a></span>', 'time': '2007-08-11 22:44:56'}, 'logo_string': u'PythonInfo Wiki', 'msg': '', 'navibar': ['use self.navibar(d)'], 'page': <MoinMoin.Page.Page instance>, 'page_find_page': 'FindPage', 'page_front_page': u'FrontPage', ...}, **keywords={'print_mode': False})
- 246 # to become class="level-two"
- 247 trail = self.trail(d)
- 248 assert 'id="pagetrail"' in trail
- 249 trail = trail.replace('id="pagetrail"', 'class="level-two"')
- 250 dict = {
- trail = ''
AssertionError
- args = ()
System Details
- Date: Thu, 27 Dec 2007 22:29:13 +0000
- Platform: Linux ximinez.python.org 2.6.18-5-686 #1 SMP Mon Dec 24 16:41:07 UTC 2007 i686
- Python: Python 2.4.4 (/usr/bin/python)
- MoinMoin: Release 1.5.3 (release)