Python-spe-users digest, Vol 1 #58 - 4 msgs

python-spe-users-request-tdrK/[email protected] Wed, 04 Jan 2006 16:35:01 +0100
Newsgroups gmane.comp.python.spe.user,gmane.spam.detected
Message-ID <[email protected]>
Send Python-spe-users mailing list submissions to
	[email protected]

To subscribe or unsubscribe via the World Wide Web, visit
	http://lists.berlios.de/mailman/listinfo/python-spe-users
or, via email, send a message with subject or body 'help' to
	[email protected]

You can reach the person managing the list at
	[email protected]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Python-spe-users digest..."


_______________________________________________
http://pythonide.stani.be
http://pythonide.stani.be/manual/html/manual.html
http://pythonide.stani.be/blog/sm_donate _______________________________________________


Today's Topics:

   1. Movable Python Pre-Release ([email protected])
   2. Bug in Child.py ? (Fuzzyman)
   3. Re: Bug in Child.py ? (SPE Stani's Python Editor)
   4. Re: Bug in Child.py ? (Fuzzyman)

--__--__--

Message: 1
To: [email protected], python-spe-users-tdrK/[email protected]
From: [email protected]
Date: Wed, 04 Jan 2006 13:06:23 +0000
Subject: [spe-users] Movable Python Pre-Release
Reply-To: [email protected]


--192.168.4.10.1.1004.1136380163.035.1
Content-Type: text/plain;
    charset="iso-8859-l"

{emo;movpy} `Movable Python </python/movpy/>`_ is done and documented - and *most* of the testing on Windows 98 is done. {sm;:-p}

I just need to create the different distributions and get the `shop <http://www.fuchsiashock.co.uk/products/movable_python/index.php>`_ setup.

.. image:: /python/movpy/images/screen1.jpg
   :height: 234
   :width: 382
   :alt: Movable Python in Action
   :class: image
   :align: center

Several of the libraries I'd like to bundle with it (`IPython <http://ipython.scipy.org>`_, `SPE <http://www.stani.be/python/spe/blog/>`_) are about to release new versions. This means full release is about a week away.

If anyone wants a *pre-release* version then the cost is five pounds (sterling), and you can pay by paypal to fuzzyman-Pp59knKUudrAJUdA+FbntOG/[email protected] You get free upgrades for a year, but I'll start the year from the official release date. {sm;:-)}

.. note::

    Twenty percent of all slaes go to support the development of `SPE <http://www.stani.be/python/spe/blog/>`_.

What is Movable Python ?
========================

**Movable Python** is a distribution of Python (for Windows) that doesn't
need to be installed. It easily fits onto a {acro;USB;Universal Serial Bus}
memory stick. Python on a stick. {sm;:-)}

It is integrated with `SPE <http://www.stani.be/python/spe/blog/>`_, the Python
{acro;IDE;Integrated Development Environment}, to make **Movable Python** a
portable *Build, Test, and Run* environment. It has a nice
{acro;GUI;Graphical User Interface} to launch programs and control its 
behaviour.

**Movable Python** is useful in the following situations:

* Machines where you can't install programs.
* Where you need a portable '*Build, Test, and Run*' Python environment.
* Having several versions of Python on the same machine for forward/backward
  compatibility testing.
* Easily deploying Python scripts without having to install Python.
* Try before you buy - test Python without having to install it, including new
  versions .
* 'Python Runtime Environment'. '``.py``' files can be associated with movpy.

Whats New ?
===========

This is a major new release since the last one, and a lot has changed.

Completely new method for running files. This means you can launch multiple
programs from the GUI.

Lots of new libraries and tools included. Virtually all the included tools have
had version upgrades since the last release.

The GUI does a lot more :

* Version number and Python version displayed on the GUI
* You can pass arguments to your programs
* It remembers the last directory you ran a program from
* You choose if launched programs have a console box or not
* You can configure the options programs are run with
* You can edit the default options
* Four configurable Quick Launch buttons
* You can launch SPE from the GUI
* You can launch the documentation (About)
* You can launch an interpreter console
* You can close the GUI without *having* to launch a program or go to the
  interpreter

The following (command line) options are new :

* ``f``  - run script in it's directory
* ``b``  - pause after running script
* ``o``  - override default options
* ``die`` - get rid of GUI after running
* ``k`` - run with console from movpyw
* ``koff`` - run without console from movpy

Complete documentation rewrite.

Docs are now built with `rest2web <http://www.voidspace.org.uk/python/rest2web>`_.

``movpyw.exe`` is now included in the Python 2.2 distribution.

Bug fixed where first command line argument to your program was always lost.

Bug fixed so that ``IPOFF`` actually works now.

Bug fixed so that ``-p`` in ``config.txt`` now works. {sm;:oops:}

Lots of other minor changes and improvements. {sm;:-)}
--192.168.4.10.1.1004.1136380163.035.1
Content-Type: text/html;
    charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.=
w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns=3D"http://www.w3.org/1999/xhtml" xml:lang=3D"en" lang=3D"en">
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Diso-8859-=
1" />
<base href=3D"http://www.voidspace.org.uk/python/weblog/index.shtml" />
<title>Movable Python Pre-Release</title>
    <style type=3D"text/css">
        p, td, li, ul, ol, h1, h2, h3, h4, h5, h6  {
            font-family: Georgia, "New Century Schoolbook",
            Times, serif;
            }

        q {
            font-style:italic;
        }
       =20
        hr {text-align: center;}
       =20
        acronym {
          border-bottom: 2px dotted black;
        }
           =20
        a:hover {background:yellow;}
        a[name]:hover {background: none;}

        .pysrc {
    	BORDER-RIGHT: #c0c0ff 1px dotted; BORDER-TOP: #c0c0ff 1px dotted; FONT=
-WEIGHT: normal;=20
    	BACKGROUND: #e0e0ff; MARGIN: 20px; BORDER-LEFT: #c0c0ff 1px dotted; BO=
RDER-BOTTOM: #c0c0ff 1px dotted;
    	 padding:10px;
        }
        .pykeyword {
        	FONT-WEIGHT: bold;
        	COLOR: orange;
        }
        .pystring {
        	COLOR: green
        }
        .pycomment {
        	COLOR: red
        }
        .pynumber {
            COLOR:black;
        }
        .pyoperator {
            COLOR:black;
        }
        .pytext {
            COLOR:purple;
        }
        /*
        :Author: David Goodger
        :Contact: [email protected]
        :Date: $Date: 2004/12/22 19:08:26 $
        :Version: $Revision: 1.46 $
        :Copyright: This stylesheet has been placed in the public domain.
       =20
        Default cascading style sheet for the HTML output of Docutils.
        */
       =20
        /* "! important" is used here to override other ``margin-top`` and
           ``margin-bottom`` styles that are later in the stylesheet or=20
           more specific.  See <http://www.w3.org/TR/CSS1#the-cascade>. */
        .first {
          margin-top: 0 ! important }
       =20
        .last {
          margin-bottom: 0 ! important }
       =20
        .hidden {
          display: none }
       =20
        a.toc-backref {
          text-decoration: none ;
          color: black }
       =20
        blockquote.epigraph {
          margin: 2em 5em ; }
       =20
        dl.docutils dd {
          margin-bottom: 0.5em }
       =20
        /* Uncomment (and remove this text!) to get bold-faced definition l=
ist terms
        dl.docutils dt {
          font-weight: bold }
        */
       =20
        div.abstract {
          margin: 2em 5em }
       =20
        div.abstract p.topic-title {
          font-weight: bold ;
          text-align: center }
       =20
        div.admonition, div.attention, div.caution, div.danger, div.error,
        div.hint, div.important, div.note, div.tip, div.warning {
          margin: 2em ;
          border: medium outset ;
          padding: 1em }
       =20
        div.admonition p.admonition-title, div.hint p.admonition-title,
        div.important p.admonition-title, div.note p.admonition-title,
        div.tip p.admonition-title {
          font-weight: bold ;
          font-family: sans-serif }
       =20
        div.attention p.admonition-title, div.caution p.admonition-title,
        div.danger p.admonition-title, div.error p.admonition-title,
        div.warning p.admonition-title {
          color: red ;
          font-weight: bold ;
          font-family: sans-serif }
       =20
        /* Uncomment (and remove this text!) to get reduced vertical space =
in
           compound paragraphs.
        div.compound .compound-first, div.compound .compound-middle {
          margin-bottom: 0.5em }
       =20
        div.compound .compound-last, div.compound .compound-middle {
          margin-top: 0.5em }
        */
       =20
        div.dedication {
          margin: 2em 5em ;
          text-align: center ;
          font-style: italic }
       =20
        div.dedication p.topic-title {
          font-weight: bold ;
          font-style: normal }
       =20
        div.figure {
          margin-left: 2em }
       =20
        div.footer, div.header {
          font-size: smaller }
       =20
        div.line-block {
          display: block ;
          margin-top: 1em ;
          margin-bottom: 1em }
       =20
        div.line-block div.line-block {
          margin-top: 0 ;
          margin-bottom: 0 ;
          margin-left: 1.5em }
       =20
        div.sidebar {
          margin-left: 1em ;
          border: medium outset ;
          padding: 1em ;
          background-color: #ffffee ;
          width: 40% ;
          float: right ;
          clear: right }
       =20
        div.sidebar p.rubric {
          font-family: sans-serif ;
          font-size: medium }
       =20
        div.system-messages {
          margin: 5em }
       =20
        div.system-messages h1 {
          color: red }
       =20
        div.system-message {
          border: medium outset ;
          padding: 1em }
       =20
        div.system-message p.system-message-title {
          color: red ;
          font-weight: bold }
       =20
        div.topic {
          margin: 2em }
       =20
        h1.title {
          text-align: center }
       =20
        h2.subtitle {
          text-align: center }
       =20
        hr.docutils {
          width: 75% }
       =20
        ol.simple, ul.simple {
          margin-bottom: 1em }
       =20
        ol.arabic {
          list-style: decimal }
       =20
        ol.loweralpha {
          list-style: lower-alpha }
       =20
        ol.upperalpha {
          list-style: upper-alpha }
       =20
        ol.lowerroman {
          list-style: lower-roman }
       =20
        ol.upperroman {
          list-style: upper-roman }
       =20
        p.attribution {
          text-align: right ;
          margin-left: 50% }
       =20
        p.caption {
          font-style: italic }
       =20
        p.credits {
          font-style: italic ;
          font-size: smaller }
       =20
        p.label {
          white-space: nowrap }
       =20
        p.rubric {
          font-weight: bold ;
          font-size: larger ;
          color: maroon ;
          text-align: center }
       =20
        p.sidebar-title {
          font-family: sans-serif ;
          font-weight: bold ;
          font-size: larger }
       =20
        p.sidebar-subtitle {
          font-family: sans-serif ;
          font-weight: bold }
       =20
        p.topic-title {
          font-weight: bold }
       =20
        pre.address {
          margin-bottom: 0 ;
          margin-top: 0 ;
          font-family: serif ;
          font-size: 100% }
       =20
        pre.line-block {
          font-family: serif ;
          font-size: 100% }
       =20
        pre.literal-block, pre.doctest-block {
          margin-left: 2em ;
          margin-right: 2em ;
          background-color: #eeeeee }
       =20
        span.classifier {
          font-family: sans-serif ;
          font-style: oblique }
       =20
        span.classifier-delimiter {
          font-family: sans-serif ;
          font-weight: bold }
       =20
        span.interpreted {
          font-family: sans-serif }
       =20
        span.option {
          white-space: nowrap }
       =20
        span.option-argument {
          font-style: italic }
       =20
        span.pre {
          white-space: pre }
       =20
        span.problematic {
          color: red }
       =20
        table.citation {
          border-left: solid thin gray }
       =20
        table.docinfo {
          margin: 2em 4em }
       =20
        table.docutils {
          margin-top: 0.5em ;
          margin-bottom: 0.5em }
       =20
        table.footnote {
          border-left: solid thin black }
       =20
        table.docutils td, table.docutils th,
        table.docinfo td, table.docinfo th {
          padding-left: 0.5em ;
          padding-right: 0.5em ;
          vertical-align: top }
       =20
        th.docinfo-name, th.field-name {
          font-weight: bold ;
          text-align: left ;
          white-space: nowrap }
       =20
        h1 tt.docutils, h2 tt.docutils, h3 tt.docutils,
        h4 tt.docutils, h5 tt.docutils, h6 tt.docutils {
          font-size: 100% }
       =20
        tt.docutils {
          background-color: #eeeeee }
       =20
        ul.auto-toc {
          list-style-type: none }
       =20
        /*
       =20
        Additions when used with the Techie Blog
       =20
        */
       =20
        .bloganchor {
            font-size: 12px;
            float: right;
            margin-top: 0px;
            margin-right: 10px;
        }
       =20
        .entryfoot {
            font-size: 12px;
        }       =20
    </style>
</head>
<body>

<h2>Movable Python Pre-Release</h2>

<!-- reST -->
<p><img src=3D"/emoticons/movpy.gif" alt=3D"emoticon:movpy" /> <a class=3D"=
reference" href=3D"/python/movpy/">Movable Python</a> is done and documente=
d - and <em>most</em> of the testing on Windows 98 is done.  <img src=3D"/s=
milies/razz.gif" alt=3D"Razz" height=3D"15" width=3D"15" /> </p>
<p>I just need to create the different distributions and get the <a class=
=3D"reference" href=3D"http://www.fuchsiashock.co.uk/products/movable_pytho=
n/index.php">shop</a> setup.</p>
<img align=3D"center" alt=3D"Movable Python in Action" class=3D"image align=
-center" src=3D"/python/movpy/images/screen1.jpg" style=3D"width: 382px; he=
ight: 234px;" />
<p>Several of the libraries I'd like to bundle with it (<a class=3D"referen=
ce" href=3D"http://ipython.scipy.org">IPython</a>, <a class=3D"reference" h=
ref=3D"http://www.stani.be/python/spe/blog/">SPE</a>) are about to release =
new versions. This means full release is about a week away.</p>
<p>If anyone wants a <em>pre-release</em> version then the cost is five pou=
nds (sterling), and you can pay by paypal to <a class=3D"reference" href=3D=
"mailto:fuzzyman&#37;&#52;&#48;voidspace&#46;org&#46;uk">fuzzyman<span>&#64=
;</span>voidspace<span>&#46;</span>org<span>&#46;</span>uk</a>. You get fre=
e upgrades for a year, but I'll start the year from the official release da=
te.  <img src=3D"/smilies/smile.gif" alt=3D"Smile" height=3D"15" width=3D"1=
5" /> </p>
<div class=3D"note">
<p class=3D"first admonition-title">Note</p>
<p class=3D"last">Twenty percent of all slaes go to support the development=
 of <a class=3D"reference" href=3D"http://www.stani.be/python/spe/blog/">SP=
E</a>.</p>
</div>
<div class=3D"section">
<h2><a id=3D"e176what-is-movable-python" name=3D"e176what-is-movable-python=
">What is Movable Python ?</a></h2>
<p><strong>Movable Python</strong> is a distribution of Python (for Windows=
) that doesn't
need to be installed. It easily fits onto a <acronym title=3D"Universal Ser=
ial Bus">USB</acronym>
memory stick. Python on a stick.  <img src=3D"/smilies/smile.gif" alt=3D"Sm=
ile" height=3D"15" width=3D"15" /> </p>
<p>It is integrated with <a class=3D"reference" href=3D"http://www.stani.be=
/python/spe/blog/">SPE</a>, the Python
<acronym title=3D"Integrated Development Environment">IDE</acronym>, to mak=
e <strong>Movable Python</strong> a
portable <em>Build, Test, and Run</em> environment. It has a nice
<acronym title=3D"Graphical User Interface">GUI</acronym> to launch program=
s and control its=20
behaviour.</p>
<p><strong>Movable Python</strong> is useful in the following situations:</=
p>
<ul class=3D"simple">
<li>Machines where you can't install programs.</li>
<li>Where you need a portable '<em>Build, Test, and Run</em>' Python enviro=
nment.</li>
<li>Having several versions of Python on the same machine for forward/backw=
ard
compatibility testing.</li>
<li>Easily deploying Python scripts without having to install Python.</li>
<li>Try before you buy - test Python without having to install it, includin=
g new
versions .</li>
<li>'Python Runtime Environment'. '<tt class=3D"docutils literal"><span cla=
ss=3D"pre">.py</span></tt>' files can be associated with movpy.</li>
</ul>
</div>
<div class=3D"section">
<h2><a id=3D"e176whats-new" name=3D"e176whats-new">Whats New ?</a></h2>
<p>This is a major new release since the last one, and a lot has changed.</=
p>
<p>Completely new method for running files. This means you can launch multi=
ple
programs from the GUI.</p>
<p>Lots of new libraries and tools included. Virtually all the included too=
ls have
had version upgrades since the last release.</p>
<p>The GUI does a lot more :</p>
<ul class=3D"simple">
<li>Version number and Python version displayed on the GUI</li>
<li>You can pass arguments to your programs</li>
<li>It remembers the last directory you ran a program from</li>
<li>You choose if launched programs have a console box or not</li>
<li>You can configure the options programs are run with</li>
<li>You can edit the default options</li>
<li>Four configurable Quick Launch buttons</li>
<li>You can launch SPE from the GUI</li>
<li>You can launch the documentation (About)</li>
<li>You can launch an interpreter console</li>
<li>You can close the GUI without <em>having</em> to launch a program or go=
 to the
interpreter</li>
</ul>
<p>The following (command line) options are new :</p>
<ul class=3D"simple">
<li><tt class=3D"docutils literal"><span class=3D"pre">f</span></tt>  - run=
 script in it's directory</li>
<li><tt class=3D"docutils literal"><span class=3D"pre">b</span></tt>  - pau=
se after running script</li>
<li><tt class=3D"docutils literal"><span class=3D"pre">o</span></tt>  - ove=
rride default options</li>
<li><tt class=3D"docutils literal"><span class=3D"pre">die</span></tt> - ge=
t rid of GUI after running</li>
<li><tt class=3D"docutils literal"><span class=3D"pre">k</span></tt> - run =
with console from movpyw</li>
<li><tt class=3D"docutils literal"><span class=3D"pre">koff</span></tt> - r=
un without console from movpy</li>
</ul>
<p>Complete documentation rewrite.</p>
<p>Docs are now built with <a class=3D"reference" href=3D"http://www.voidsp=
ace.org.uk/python/rest2web">rest2web</a>.</p>
<p><tt class=3D"docutils literal"><span class=3D"pre">movpyw.exe</span></tt=
> is now included in the Python 2.2 distribution.</p>
<p>Bug fixed where first command line argument to your program was always l=
ost.</p>
<p>Bug fixed so that <tt class=3D"docutils literal"><span class=3D"pre">IPO=
FF</span></tt> actually works now.</p>
<p>Bug fixed so that <tt class=3D"docutils literal"><span class=3D"pre">-p<=
/span></tt> in <tt class=3D"docutils literal"><span class=3D"pre">config.tx=
t</span></tt> now works.  <img src=3D"/smilies/redface.gif" alt=3D"Embarass=
ed" height=3D"15" width=3D"15" /> </p>
<p>Lots of other minor changes and improvements.  <img src=3D"/smilies/smil=
e=2Egif" alt=3D"Smile" height=3D"15" width=3D"15" /> </p>
</div>


<p class=3D"entryfoot">
    Posted by <strong>Fuzzyman</strong> on 2006-01-04 09:17:49.
    <br />
Categories:=20
<a href=3D"http://www.voidspace.org.uk/python/weblog/arch_Projects.shtml">P=
rojects</a>, <a href=3D"http://www.voidspace.org.uk/python/weblog/arch_Pyth=
on.shtml">Python</a>

    <br />
    Visit the <a href=3D"http://www.voidspace.org.uk/python/weblog/index.sh=
tml">Voidspace Techie Blog</a> to read this entry and more.
   =20
</p>

</body>
</html>
--192.168.4.10.1.1004.1136380163.035.1--

--__--__--

Message: 2
Date: Wed, 04 Jan 2006 15:08:54 +0000
From: Fuzzyman <[email protected]>
To: python-spe-users-tdrK/[email protected]
Subject: [spe-users] Bug in Child.py ?
Reply-To: [email protected]

Hello Stani,

Once again without access to the world wide web, so can't post a bug
report. You need to check this out anyway, may not be a bug.

From line 544 in Child.py :

        if terminal == DEFAULT:
            if info.WIN:
                if info.WIN98:
                    if exit:
                        os.system('start command /k %(python)s "%(file)s
/c'%params)
                    else:
                        os.system('start command /k %(python)s
"%(file)s"'%params)
                else:
                    if exit:
                        os.system('start "SPE - %(file)s - Press
Ctrl+Break to stop" /D"%(path)s" %(python)s "%(file)s"'%params)
                    else:
                        os.system('start "SPE - %(file)s - Press
Ctrl+Break to stop" /D"%(path)s" start /B %(python)s "%(file)s"'%params)

In the first system call it *looks* (to me) like there's a missing ".

Shouldn't it be :

    os.system('start command /k %(python)s "%(file)s" /c'%params)

And aren't /k and /c contradictory ? (I'm no expert on command.com
argument syntax) -'/c' will go to the Python script *anyway* I would
have thought ?

All the best,

Fuzzyman
http://www.voidspace.org.uk/python/index.shtml

--__--__--

Message: 3
Date: Wed, 4 Jan 2006 16:17:33 +0100
From: "SPE Stani's Python Editor" <[email protected]>
To: python-spe-users-tdrK/[email protected]
Subject: Re: [spe-users] Bug in Child.py ?
Reply-To: [email protected]

------=_Part_46881_31092925.1136387853000
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

On 1/4/06, Fuzzyman <[email protected]> wrote:
>
> http://pythonide.stani.be
> http://pythonide.stani.be/manual/html/manual.html
> http://pythonide.stani.be/blog/sm_donate
> --
>
>
> Hello Stani,
>
> Once again without access to the world wide web, so can't post a bug
> report. You need to check this out anyway, may not be a bug.


Please use the spe-dev mailing list instead in the future.

From line 544 in Child.py :
>
>         if terminal =3D=3D DEFAULT:
>             if info.WIN:
>                 if info.WIN98:
>                     if exit:
>                         os.system('start command /k %(python)s "%(file)s
> /c'%params)
>                     else:
>                         os.system('start command /k %(python)s
> "%(file)s"'%params)
>                 else:
>                     if exit:
>                         os.system('start "SPE - %(file)s - Press
> Ctrl+Break to stop" /D"%(path)s" %(python)s "%(file)s"'%params)
>                     else:
>                         os.system('start "SPE - %(file)s - Press
> Ctrl+Break to stop" /D"%(path)s" start /B %(python)s "%(file)s"'%params)
>
> In the first system call it *looks* (to me) like there's a missing ".


You're right. Fixed.

Shouldn't it be :
>
>     os.system('start command /k %(python)s "%(file)s" /c'%params)
>
> And aren't /k and /c contradictory ? (I'm no expert on command.com
> argument syntax) -'/c' will go to the Python script *anyway* I would
> have thought ?


The purpose is that with '/c' the terminal exits. It was send to me by a
Windows98 user.

Stani

------=_Part_46881_31092925.1136387853000
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

On 1/4/06, <b class=3D"gmail_sendername">Fuzzyman</b> &lt;<a href=3D"mailto=
:[email protected]">[email protected]</a>&gt; wrote:<div><s=
pan class=3D"gmail_quote"></span><blockquote class=3D"gmail_quote" style=3D=
"border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padd=
ing-left: 1ex;">
<a href=3D"http://pythonide.stani.be">http://pythonide.stani.be</a><br><a h=
ref=3D"http://pythonide.stani.be/manual/html/manual.html">http://pythonide.=
stani.be/manual/html/manual.html</a><br><a href=3D"http://pythonide.stani.b=
e/blog/sm_donate">
http://pythonide.stani.be/blog/sm_donate</a><br>--<br><br><br>Hello Stani,<=
br><br>Once again without access to the world wide web, so can't post a bug=
<br>report. You need to check this out anyway, may not be a bug.</blockquot=
e>
<div><br>
Please use the spe-dev mailing list instead in the future. <br>
</div><br><blockquote class=3D"gmail_quote" style=3D"border-left: 1px solid=
 rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">From li=
ne 544 in Child.py :<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;if terminal =3D=3D DEFAULT:<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if=20
info.WIN:<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if info.WIN98:<br>&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;if exit:<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;os.system('start
command /k %(python)s &quot;%(file)s<br>/c'%params)<br>&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;else:<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;os.system('start
command /k %(python)s<br>&quot;%(file)s&quot;'%params)<br>&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;else:<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if exit:<br>&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;os.system('=
start
&quot;SPE - %(file)s - Press<br>Ctrl+Break to stop&quot; /D&quot;%(path)s&q=
uot; %(python)s &quot;%(file)s&quot;'%params)<br>&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;else:<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;os.system('start
&quot;SPE - %(file)s - Press<br>Ctrl+Break to stop&quot; /D&quot;%(path)s&q=
uot; start /B %(python)s &quot;%(file)s&quot;'%params)<br><br>In the first =
system call it *looks* (to me) like there's a missing &quot;.</blockquote>
<div><br>
You're right. Fixed. <br>
</div><br><blockquote class=3D"gmail_quote" style=3D"border-left: 1px solid=
 rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Shouldn=
't it be :<br><br>&nbsp;&nbsp;&nbsp;&nbsp;os.system('start command /k %(pyt=
hon)s &quot;%(file)s&quot; /c'%params)
<br><br>And aren't /k and /c contradictory ? (I'm no expert on <a href=3D"h=
ttp://command.com">command.com</a><br>argument syntax) -'/c' will go to the=
 Python script *anyway* I would<br>have thought ?</blockquote><div><br>
The purpose is that with '/c' the terminal exits. It was send to me by a Wi=
ndows98 user.<br>
<br>
Stani<br>
</div></div>

------=_Part_46881_31092925.1136387853000--

--__--__--

Message: 4
Date: Wed, 04 Jan 2006 15:36:23 +0000
From: Fuzzyman <[email protected]>
To: python-spe-users-tdrK/[email protected]
Subject: Re: [spe-users] Bug in Child.py ?
Reply-To: [email protected]

This is a multi-part message in MIME format.
--------------010308020204050406090308
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

SPE Stani's Python Editor wrote:

> On 1/4/06, *Fuzzyman* <[email protected]
> <mailto:[email protected]>> wrote:
>
>     http://pythonide.stani.be
>     http://pythonide.stani.be/manual/html/manual.html
>     http://pythonide.stani.be/blog/sm_donate
>     --
>
>
>     Hello Stani,
>
>     Once again without access to the world wide web, so can't post a bug
>     report. You need to check this out anyway, may not be a bug.
>
>
> Please use the spe-dev mailing list instead in the future.

Ok - I need to sign up for that. Sorry about that. One last one on this
list. :-)

>
>     From line 544 in Child.py :
>
>             if terminal == DEFAULT:
>                 if info.WIN:
>                     if info.WIN98:
>                         if exit:
>                             os.system('start command /k %(python)s
>     "%(file)s
>     /c'%params)
>                         else:
>                             os.system('start command /k %(python)s
>     "%(file)s"'%params)
>                     else:
>                         if exit:
>                             os.system('start "SPE - %(file)s - Press
>     Ctrl+Break to stop" /D"%(path)s" %(python)s "%(file)s"'%params)
>                         else:
>                             os.system('start "SPE - %(file)s - Press
>     Ctrl+Break to stop" /D"%(path)s" start /B %(python)s
>     "%(file)s"'%params)
>
>     In the first system call it *looks* (to me) like there's a missing ".
>
>
> You're right. Fixed.
>
>     Shouldn't it be :
>
>         os.system('start command /k %(python)s "%(file)s" /c'%params)
>
>     And aren't /k and /c contradictory ? (I'm no expert on command.com
>     <http://command.com>
>     argument syntax) -'/c' will go to the Python script *anyway* I would
>     have thought ?
>
>
> The purpose is that with '/c' the terminal exits. It was send to me by
> a Windows98 user.

In which case shouldn't it be :

    os.system('start command /c %(python)s "%(file)s"'%params)

? I might be wrong though - that did happen once before ;-)

All the best,

Fuzzyman
http://www.voidspace.org.uk/python/index.shtml

>
> Stani



--------------010308020204050406090308
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
SPE Stani's Python Editor wrote:
<blockquote
 cite="mid2078a7ad0601040717p4ad596eft9175fe902acb87d9-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org"
 type="cite">On 1/4/06, <b class="gmail_sendername">Fuzzyman</b> &lt;<a
 href="mailto:[email protected]">[email protected]</a>&gt;
wrote:
  <div><span class="gmail_quote"></span>
  <blockquote class="gmail_quote"
 style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><a
 href="http://pythonide.stani.be">http://pythonide.stani.be</a><br>
    <a href="http://pythonide.stani.be/manual/html/manual.html">http://pythonide.stani.be/manual/html/manual.html</a><br>
    <a href="http://pythonide.stani.be/blog/sm_donate">http://pythonide.stani.be/blog/sm_donate</a><br>
--<br>
    <br>
    <br>
Hello Stani,<br>
    <br>
Once again without access to the world wide web, so can't post a bug<br>
report. You need to check this out anyway, may not be a bug.</blockquote>
  <div><br>
Please use the spe-dev mailing list instead in the future. <br>
  </div>
  </div>
</blockquote>
Ok - I need to sign up for that. Sorry about that. One last one on this
list. :-)<br>
<br>
<blockquote
 cite="mid2078a7ad0601040717p4ad596eft9175fe902acb87d9-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org"
 type="cite">
  <div>
  <div></div>
  <br>
  <blockquote class="gmail_quote"
 style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">From
line 544 in Child.py :<br>
    <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if terminal == DEFAULT:<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if info.WIN:<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if info.WIN98:<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if exit:<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;os.system('start
command /k %(python)s "%(file)s<br>
/c'%params)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;else:<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;os.system('start
command /k %(python)s<br>
"%(file)s"'%params)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;else:<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if exit:<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;os.system('start
"SPE - %(file)s - Press<br>
Ctrl+Break to stop" /D"%(path)s" %(python)s "%(file)s"'%params)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;else:<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;os.system('start
"SPE - %(file)s - Press<br>
Ctrl+Break to stop" /D"%(path)s" start /B %(python)s "%(file)s"'%params)<br>
    <br>
In the first system call it *looks* (to me) like there's a missing ".</blockquote>
  <div><br>
You're right. Fixed. <br>
  </div>
  <br>
  <blockquote class="gmail_quote"
 style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Shouldn't
it be :<br>
    <br>
&nbsp;&nbsp;&nbsp;&nbsp;os.system('start command /k %(python)s "%(file)s" /c'%params)
    <br>
    <br>
And aren't /k and /c contradictory ? (I'm no expert on <a
 href="http://command.com">command.com</a><br>
argument syntax) -'/c' will go to the Python script *anyway* I would<br>
have thought ?</blockquote>
  <div><br>
The purpose is that with '/c' the terminal exits. It was send to me by
a Windows98 user.<br>
  </div>
  </div>
</blockquote>
In which case shouldn't it be :<br>
<br>
&nbsp;&nbsp;&nbsp; os.system('start command /c %(python)s "%(file)s"'%params)<br>
<br>
? I might be wrong though - that did happen once before ;-)<br>
<br>
All the best,<br>
<br>
Fuzzyman<br>
<a class="moz-txt-link-freetext" href="http://www.voidspace.org.uk/python/index.shtml">http://www.voidspace.org.uk/python/index.shtml</a><br>
<blockquote
 cite="mid2078a7ad0601040717p4ad596eft9175fe902acb87d9-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org"
 type="cite">
  <div>
  <div><br>
Stani<br>
  </div>
  </div>
</blockquote>
<br>
</body>
</html>

--------------010308020204050406090308--


--__--__--

_______________________________________________
Python-spe-users mailing list
[email protected]
http://lists.berlios.de/mailman/listinfo/python-spe-users


End of Python-spe-users Digest