Giter Club home page Giter Club logo

Comments (10)

davidmascharka avatar davidmascharka commented on May 27, 2024

huh...that's really strange. Can replicate with Python 3.6.4 (Jan 5 2018) IPython 6.2.1. Oddly, it works if you get rid of the >>> too.

from learning_python.

rsokl avatar rsokl commented on May 27, 2024

Yeah, not sure if it is a bug to log with ipython, or if it is intentional. Does this strike you as very problematic?

from learning_python.

davidmascharka avatar davidmascharka commented on May 27, 2024

Might be worth opening an issue on the ipython page and see what they say. Doesn't seem like something they'd intentionally do since it's valid Python code....I don't think it's a huge problem but I also know that I don't need to copy comments and I've been writing code for a while.

from learning_python.

rsokl avatar rsokl commented on May 27, 2024

ipython/ipython#11017

from learning_python.

AFederici avatar AFederici commented on May 27, 2024

I don't think this will cause too much confusion since it can be avoided by either deleting the comments or deleting the >>>. I personally didn't run into this since I prefer to type everything out instead of copying and pasting.

from learning_python.

davidmascharka avatar davidmascharka commented on May 27, 2024

@rsokl did you come to a decision on how you want to proceed given ipython#11017?

from learning_python.

rsokl avatar rsokl commented on May 27, 2024

@davidmascharka I think I am going to add a note to the Guide to Formatting, and instruct the reader to not copy multi-line comment blocks

from learning_python.

davidmascharka avatar davidmascharka commented on May 27, 2024

Is this still relevant?

from learning_python.

davidmascharka avatar davidmascharka commented on May 27, 2024

Did you still want to add that note in here?

from learning_python.

rsokl avatar rsokl commented on May 27, 2024

I will add a note about this

from learning_python.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.