Skip to content
Browse files

Summary Line :

Added an example : For edit command
work done as a team by:
-Kalluri.Sivalatha
-Nadendla.srija
-CHOLLETI.Maanasa
-Kamepalli.Triveni
  • Loading branch information...
1 parent 3498382 commit dab21f6fe9e98f8cf0bebcdae157a0c2424ea668 Manasa Cholleti committed Dec 18, 2010
Showing with 13 additions and 1 deletion.
  1. +13 −1 IPython/core/magic.py
View
14 IPython/core/magic.py
@@ -2179,7 +2179,19 @@ def magic_edit(self,parameter_s='',last_call=['','']):
is defined in the IPython.core.hooks module, and you can use that as a
starting example for further modifications. That file also has
general instructions on how to set a new hook for use once you've
- defined it."""
+ defined it.
+
+ Example:
+ -------
+ Some Example::
+ In [6]:ed -p
+ Editing... done. Executing edited code...
+ FOSSEE
+ # this will call the editor with the same data as the previous time
+ it was used, regardless of how long ago (in the current session)
+ it was.
+
+"""
# FIXME: This function has become a convoluted mess. It needs a
# ground-up rewrite with clean, simple logic.

0 comments on commit dab21f6

Please sign in to comment.
Something went wrong with that request. Please try again.