CARVIEW |
- Is there any way to determine if the C implementation under my Python uses IEEE 754 for floating point numbers? If yes, what is it?
- I am trying to run Python script in ABAQUS, but there is a error "Import Error: No Module named " Tkinter"". So how can I handle the problem? Thanks
Why do I call conctructor of Cmd class in my Cmd subclass __init__ method?
How to run Python based softwares from sourceforge? !!!Newbie
Why do I get permission denied errors when using macostools.copy
Answered (fully or partially)
How can "normal" users report bugs in Python or the documentation?
Related question to the for-a-blink question in the answered section. When running os.system(some command) the CMD.exe window pops up and then terminates when the process terminates. How do I get the contents of what was in that CMD.exe window saved someplace - variable, file, etc. Variable assignment doesn't work - only the exit code is in the variable.
- Seems to me you need to redirect the stdout. As per Python Library Reference 6.1.5., this is impossible for os.system() calls.
- Does anyone know why msOffice products (using win32com return) u'dana\u2019s best' rather than u'dana's best'?
Microsoft Office replaces apostrophes (U+0027) with "Right Single Quotation Marks" (U+2019) automatically. While this looks correct typograpphically, it might cause some problems. -- IanBollinger
I'm a total Python newbie. How do I get Python started on a Palm handheld ( https://c2.com/cgi/wiki?PalmPython ) ? Or should I focus on learning Python on a desktop PC first ? -- DavidCary
I would recommend learning Python on a normal desktop system, with a recent version, a full suite of libraries, and IPython (Interactive Python) installed. After you've learned the basics then you can probably adapt more readily to the limitations of the Palm Pilot interface, implementation, version (older), and libraries (reduced subset). JimD
- How do you save python code and use it for anything? --elpenmaster
Save it as "scriptName.py" and then execute it with the Python interpreter. As for choosing a purpose for the code, that's entirely up to you. -- PeytonMcCullough
- How do I save it as scriptname.py? --elpenmaster
- - it is possible to enter python commands into a text file, rather than entering them directly into the python shell. Simply create a text file containing your python instructions and save it as scriptname.py, you can then import it into a python shell session or execute it directly.
- How do I save it as scriptname.py? --elpenmaster
TestHarnessDesign -- I've been assigned the task of designing a test harness for embedded systems, servers and software. -- JimD
- How do I publish Python modules?
See PublishingPythonModules - Philip, 2005-09-19
lwickjr: My question, "my" page. I created that page, empty, in hopes that someone would populate it. They have, and I've read it. They hadn`t yet when I created *this* page for posting how-to questions, at about the same time, so I included the question here in the seed page. See the attachments to my page for my final solution to the problem.
By the way, "How to publish Python modules" has been renamed "PublishingPythonModules", to be more Wiki-style. [Me, again.] 2005-11-24.
i got winxp. i make a simple program like print "hello". i save it as whatever.py. then i double-click it. nothing happens just the windows cmd appears for a blink. Additionally you can go to Start -> Run, type 'cmd', and hit enter. Now cd to your foo.py file, and execute it.
- The Windows command window appears "for a blink" to show the output ("hello") before going away again - your program ends and the window closes. You can, of course, run the program from the command window (type "python whatever.py") to see the output, or you could make the program pause (using time.sleep) or wait for input (raw_input) before finishing - that would at least leave the command window open. Some operating systems leave command windows open after the program has finished, by the way.
This is an actual question. I have have a prototype for a python related website. Right now I am just running it off old PC (https://66.32.187.134). Where could I host this site & and do you think this site would be helpful to the advancement of Python programming knowledge? Thanks. Father Jack
Father Jack, you should look at the PythonHosting page and consider some of the options presented there. Your site doesn't seem to be available, so it's hard to assess what its contribution to Python programming knowledge might be. -- PaulBoddie
- How can I programming the io ports (eg.: LPT) with Python?
Have you tried using the pyParallel module? -- DavidBoddie
How can I run an untrusted Python script safely (i.e. Sandbox)
"How can I truly "protect" the python source code we create for a commercial product?"
"Where can I find a tiny python installation (under 2 MB) for an embedded linux system?"
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'Asking for Help'
- print_mode = False
/usr/lib/python2.4/site-packages/MoinMoin/wikiutil.py in send_footer (request=<MoinMoin.request.RequestFastCGI object>, pagename=u'Asking for Help', **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="??? @ 218.63.broadband6.iol.cz[88.101.63.218]">218</span>', 'time': '2007-11-29 23:07:59'}, '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="??? @ 218.63.broadband6.iol.cz[88.101.63.218]">218</span>', 'time': '2007-11-29 23:07:59'}, '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:27:08 +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)