[Python-checkins] cpython: IDLE can be launched as python -m ildelib

andrew.svetlov python-checkins at python.org
Mon Mar 26 21:11:53 CEST 2012


http://hg.python.org/cpython/rev/06d613acf16c
changeset:   75956:06d613acf16c
user:        Andrew Svetlov <andrew.svetlov at gmail.com>
date:        Mon Mar 26 22:11:46 2012 +0300
summary:
  IDLE can be launched as python -m ildelib

files:
  Lib/idlelib/__main__.py |  9 +++++++++
  Misc/NEWS               |  2 ++
  2 files changed, 11 insertions(+), 0 deletions(-)


diff --git a/Lib/idlelib/__main__.py b/Lib/idlelib/__main__.py
new file mode 100644
--- /dev/null
+++ b/Lib/idlelib/__main__.py
@@ -0,0 +1,9 @@
+"""
+IDLE main entry point
+
+Run IDLE as python -m idlelib
+"""
+
+
+import idlelib.PyShell
+idlelib.PyShell.main()
diff --git a/Misc/NEWS b/Misc/NEWS
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -34,6 +34,8 @@
 Library
 -------
 
+- IDLE can be launched as python -m ildelib
+
 - Issue #14295: Add unittest.mock
 
 - Issue #7652: Add --with-system-libmpdec option to configure for linking

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list