Differences between revisions 63 and 64
Revision 63 as of 2006-07-03 18:09:26
Size: 5568
Editor: line-ald
Comment:
Revision 64 as of 2006-07-03 18:10:56
Size: 5052
Editor: line-ald
Comment:
Deletions are marked like this. Additions are marked like this.
Line 7: Line 7:

---- /!\ '''Edit conflict - other version:''' ----
 *["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 - on the exit code is in the variable."]

---- /!\ '''Edit conflict - your version:''' ----
Line 13: Line 8:

---- /!\ '''End of edit conflict''' ----

This page was created as a place for people to ask questions. It is intended that the question be the WikiName of the page containing the answer. As answers are provided, this will develop naturaly into a FAQ Answers page.

See also ["Code"], PublishingPythonModules, ["Wanted..."].

Not yet answered

  • ["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."]
  • ["I come from a java background. Java has an API that list all classes and their methods that come with Java. Is there anything like that in python?"]
  • ["How to use Python with MySQL on Windows"]
  • ["How to have a mutable buffer with python 2.3?" ]
  • ["I wish to generate graphics and images directly into a file, but I'm confused as to just what i need to do this with python"]
  • ["How can I run an untrusted Python script safely (i.e. Sandbox)"]
  • ["Why do I get permission denied errors when using macostools.copy"]
  • ["When I import Tkinter, Python exits. Why?"]
  • 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 (http://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

  • ["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?"]

Answered (fully or partially)

  • [:MultiLineStringsInDocTest:How do I write multi-line strings in doctest tests?]

  • ["How do I get / set the modification date of a file?"]
  • ["How do I use gzip module with pickle?"]
  • ["How can "normal" users report bugs in Python or the documentation?"]
  • ["How can I convert a hex representation to an integer?"]
  • SubtractionQuestion

  • 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 ( http://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 [http://ipython.scipy.org/ 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.
  • 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 [:lwickjr: 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.
    • 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.

Asking for Help (last edited 2019-11-04 14:47:35 by ChrisM)

Unable to edit the page? See the FrontPage for instructions.