Quantcast

Re: Python-mode Digest, Vol 93, Issue 3

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Python-mode Digest, Vol 93, Issue 3

lpeng564@gmail.com
Re: [Python-mode] Python-mode Digest, Vol 93, Issue 2
Message-ID: <[hidden email]>
Content-Type: text/plain;    charset=us-ascii

Re:  win-32 (Andreas R?hler)

iPhone

On Mar 3, 2012, at 19:00, [hidden email] wrote:

Re: [Python-mode] Python-mode Digest, Vol 93, Issue 2
Message-ID: <[hidden email]>
Content-Type: text/plain;    charset=us-ascii

Re:  win-32 (Andreas R?hler)

_______________________________________________
Python-mode mailing list
[hidden email]
http://mail.python.org/mailman/listinfo/python-mode
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Python-mode Digest, Vol 93, Issue 3

lpeng564@gmail.com


iPhone

On Mar 3, 2012, at 19:00, [hidden email] wrote:

> Send Python-mode mailing list submissions to
>    [hidden email]
>
> To subscribe or unsubscribe via the World Wide Web, visit
>    http://mail.python.org/mailman/listinfo/python-mode
> or, via email, send a message with subject or body 'help' to
>    [hidden email]
>
> You can reach the person managing the list at
>    [hidden email]
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Python-mode digest..."
>
>
> Today's Topics:
>
>   1. Re: Python-mode Digest, Vol 93, Issue 2 ([hidden email])
>   2. Fwd: [Question #189464]: How to run __main__ programs    inside
>      python-mode? (Andreas R?hler)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Fri, 2 Mar 2012 19:07:14 +0800
> From: "[hidden email]" <[hidden email]>
> To: "[hidden email]" <[hidden email]>
> Subject: Re: [Python-mode] Python-mode Digest, Vol 93, Issue 2
> Message-ID: <[hidden email]>
> Content-Type: text/plain;    charset=us-ascii
>
> Re:  win-32 (Andreas R?hler)
>
> iPhone
>
> On Mar 2, 2012, at 19:00, [hidden email] wrote:
>
>> win-32 (Andreas R?hler)
>
>
> ------------------------------
>
> Message: 2
> Date: Fri, 02 Mar 2012 19:34:09 +0100
> From: Andreas R?hler <[hidden email]>
> To: [hidden email]
> Subject: [Python-mode] Fwd: [Question #189464]: How to run __main__
>    programs    inside python-mode?
> Message-ID: <[hidden email]>
> Content-Type: text/plain; charset=UTF-8; format=flowed
>
> New question #189464 on python-mode.el:
> https://answers.launchpad.net/python-mode/+question/189464
>
> I'm probably missing something obvious, but what's the best way to use
> python-mode to run/debug python scripts that are designed to be run from
> the command line? In particular, the problem I face is that while
> __main__ is set fine, if my code tries to access sys.argv, it gets
> information that is not very useful, e.g.,
>
> In [5]: sys.argv
> Out[5]: ['/Library/Frameworks/EPD64.framework/Versions/7.2/bin/ipython',
> '-i']
>
> I could always write a main() function, set up my own argument list, and
> then call main(myargs), or something similar, but this isn't so
> convenient when all I want to do is run someone else's sample code.
>
> How do others deal with this? Is there a facility in python-mode (or
> should there be) to pass a user-defined sys.argv to scripts run by
> pressing C-c C-c?
>
>
>
>
>
> ------------------------------
>
> _______________________________________________
> Python-mode mailing list
> [hidden email]
> http://mail.python.org/mailman/listinfo/python-mode
>
>
> End of Python-mode Digest, Vol 93, Issue 3
> ******************************************
_______________________________________________
Python-mode mailing list
[hidden email]
http://mail.python.org/mailman/listinfo/python-mode
Loading...