[issue19982] Add a "target" parameter to runpy.run_path and runpy.run_module

2019-08-06 Thread Joannah Nanjekye


Joannah Nanjekye  added the comment:

issue 19978 also needs this.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue19982] Add a "target" parameter to runpy.run_path and runpy.run_module

2019-06-20 Thread Joannah Nanjekye


Change by Joannah Nanjekye :


--
nosy: +nanjekyejoannah

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue19982] Add a "target" parameter to runpy.run_path and runpy.run_module

2018-06-04 Thread Nick Coghlan


Change by Nick Coghlan :


--
versions: +Python 3.8 -Python 3.7

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue19982] Add a "target" parameter to runpy.run_path and runpy.run_module

2017-11-06 Thread Nick Coghlan

Change by Nick Coghlan :


--
versions: +Python 3.7 -Python 3.5

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue19982] Add a "target" parameter to runpy.run_path and runpy.run_module

2017-11-06 Thread Nick Coghlan

Nick Coghlan  added the comment:

See issue 21862 and issue 9325 as potential use cases for this feature.

While it looks like issue 21862 (-m switch support in cProfile) can be 
implemented just fine without it, this feature will be needed for the modules 
that execute the given scripts directly in __main__.__dict__ (e.g. pdb).

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue19982] Add a "target" parameter to runpy.run_path and runpy.run_module

2017-11-06 Thread Sanyam Khurana

Sanyam Khurana  added the comment:

Hey ncoghlan,

Does this issue makes sense to be worked on for Python 3.7?

--
nosy: +CuriousLearner

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue19982] Add a "target" parameter to runpy.run_path and runpy.run_module

2016-02-22 Thread Piotr Dobrogost

Changes by Piotr Dobrogost :


--
nosy: +piotr.dobrogost

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue19982] Add a "target" parameter to runpy.run_path and runpy.run_module

2013-12-17 Thread Nick Coghlan

Nick Coghlan added the comment:

Implementing this is actually likely to require non-trivial restructuring of 
the runpy internals. contextlib.ExitStack may prove useful in making it easier 
to programmatically select amongst different context managers.

The __mp_main__ helpers in multiprocessing should also be able to take 
advantage of this once it is available, and it may prove useful in finally 
providing -m analogues for pdb etc that play nice when an exception occurs (see 
issue 9325).

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue19982] Add a "target" parameter to runpy.run_path and runpy.run_module

2013-12-14 Thread Nick Coghlan

New submission from Nick Coghlan:

One idea from PEP 451 was to add a "target" parameter to runpy.run_path and 
runpy.run_module to allow them to support execution in an existing module 
namespace (like __main__).

This missed the feature freeze deadline for 3.4, but can be added in 3.5.

--
messages: 206181
nosy: brett.cannon, eric.snow, ncoghlan
priority: normal
severity: normal
stage: needs patch
status: open
title: Add a "target" parameter to runpy.run_path and runpy.run_module
type: enhancement
versions: Python 3.5

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue19982] Add a "target" parameter to runpy.run_path and runpy.run_module

2013-12-14 Thread Nick Coghlan

Changes by Nick Coghlan :


--
dependencies: +Update runpy for PEP 451

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com