Comments (7)
That's how you do callouts in asciidoc. Unfortunately, there really isn't any other way to comment longer inline.
from programmingbitcoin.
Agree, came here to say that.
from programmingbitcoin.
On closer inspection, the raw markdown files are written as "# <1>"
which renders as " (1)"
, if the markdown were changed to "# (1)"
or "## <1>"
it would work, but I don't know if the way the authors have done this as "# <1>"
because this is correct for the way the print book will be rendered. I don't know.
from programmingbitcoin.
I think those numbers should be at the left of the code like line numnbers in an editor.
from programmingbitcoin.
I think those numbers should be at the left of the code like line numnbers in an editor.
Python has no syntax for inline comments. Putting them at the left would comment out the line.
from programmingbitcoin.
I am lost here.
I mean in the book. Not the real python code.
from programmingbitcoin.
I am lost here.
I mean in the book. Not the real python code.
The reason I (and I'm guessing OP too) suggest denoting them with #
is that the blocks of code in the book with (1)
etc. on the end of the line don't make it clear to the reader that they're not supposed to type that if they type in the code. If you replace (1)
with #(1)
then it won't matter if the reader types those in.
from programmingbitcoin.
Related Issues (20)
- Setting up the Jupyter Notebook (linux)
- FieldElement __add__ method p1=p2 not working
- [Typo] `ecc.py` after Chapter3
- Chapter 5, exercise 5: "IndexError: list index out of range"
- testnet.programmingbitcoin.com isn't responding anymore HOT 8
- Import Requests Error in Ch 5 HOT 1
- Error on Ch.6 Example - "Coding Script Evaluation" pg. 115 HOT 1
- Chapter 7, Exercise 4: Confused on the Solution HOT 9
- Chapter 8, Exercise 5 Error
- Chapter 9, Exercise 9 Error HOT 5
- Chapter 4 Exercise 9 Code returns invalid testnet address HOT 3
- Chapter 11: Exercise 6 & 7 HOT 2
- Openssl removed ripemd160 support. Code using hashlib's 'ripemd160' algorithm may fail. HOT 4
- mainnet.programmingbitcoin.com not responding for getheaders message HOT 1
- Chapter 7: help me understand decode_base58 HOT 1
- rmul method inside FieldElement Class to be added before completing ex 4 chapter 3 HOT 1
- Chapter 3, Exercise 3 self.assertEqual() error HOT 1
- Chapter 3, Explanation of why doubling SHA-256 is more secure seems wrongs
- "virtualenv -p python3 .venv" does not work
- How to setup environment in Google Colab
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from programmingbitcoin.