Show More
@@ -545,6 +545,17 b' class TerminalInteractiveShell(InteractiveShell):' | |||
|
545 | 545 | See also |
|
546 | 546 | -------- |
|
547 | 547 | paste: automatically pull code from clipboard. |
|
548 | ||
|
549 | Examples | |
|
550 | -------- | |
|
551 | :: | |
|
552 | ||
|
553 | In [8]: %cpaste | |
|
554 | Pasting code; enter '--' alone on the line to stop. | |
|
555 | :>>> a = ["world!", "Hello"] | |
|
556 | :>>> print " ".join(sorted(a)) | |
|
557 | :-- | |
|
558 | Hello world! | |
|
548 | 559 | """ |
|
549 | 560 | |
|
550 | 561 | opts,args = self.parse_options(parameter_s,'rs:',mode='string') |
General Comments 0
You need to be logged in to leave comments.
Login now