Can I copy/paste Python code?

Parul Mogra scoria.799 at gmail.com
Mon Jul 20 23:41:05 EDT 2015


Hi,
You could probably get the work done via the following script:
https://pypi.python.org/pypi/PythonTidy/




On Mon, Jul 20, 2015 at 7:49 PM, ryguy7272 <ryanshuell at gmail.com> wrote:

> I'm trying to copy some Python code from a PDF book that I'm reading.  I
> want to test out the code, and I can copy it, but when I paste it into the
> Shell, everything is all screwed up because of the indentation. Every time
> I paste in any kind of code, it seems like everything is immediately
> left-justified, and then nothing works.
>
> Any idea how to make this work easily?  Without re-typing hundreds of
> lines of code...
>
> Thanks to all.
> --
> https://mail.python.org/mailman/listinfo/python-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20150720/733529eb/attachment.html>


More information about the Python-list mailing list