Skip to content

Commit 9c42b92

Browse files
authored
Merge pull request satwikkansal#236 from imba-tjd/patch-2
Use https links
2 parents bb8ce63 + e5b5191 commit 9c42b92

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -1521,7 +1521,7 @@ def some_func(val):
15211521
#### 💡 Explanation:
15221522
- This is a bug in CPython's handling of `yield` in generators and comprehensions.
15231523
- Source and explanation can be found here: https://stackoverflow.com/questions/32139885/yield-in-list-comprehensions-and-generator-expressions
1524-
- Related bug report: http://bugs.python.org/issue10544
1524+
- Related bug report: https://bugs.python.org/issue10544
15251525
- Python 3.8+ no longer allows `yield` inside list comprehension and will throw a `SyntaxError`.
15261526
15271527
---
@@ -2061,7 +2061,7 @@ UnboundLocalError: local variable 'a' referenced before assignment
20612061
2
20622062
```
20632063
* The keywords `global` and `nonlocal` tell the python interpreter to not delcare new variables and look them up in the corresponding outer scopes.
2064-
* Read [this](http://sebastianraschka.com/Articles/2014_python_scope_and_namespaces.html) short but an awesome guide to learn more about how namespaces and scope resolution works in Python.
2064+
* Read [this](https://sebastianraschka.com/Articles/2014_python_scope_and_namespaces.html) short but an awesome guide to learn more about how namespaces and scope resolution works in Python.
20652065
20662066
---
20672067
@@ -2821,7 +2821,7 @@ Sshh... It's a super-secret.
28212821
28222822
#### 💡 Explanation:
28232823
+ `antigravity` module is one of the few easter eggs released by Python developers.
2824-
+ `import antigravity` opens up a web browser pointing to the [classic XKCD comic](http://xkcd.com/353/) about Python.
2824+
+ `import antigravity` opens up a web browser pointing to the [classic XKCD comic](https://xkcd.com/353/) about Python.
28252825
+ Well, there's more to it. There's **another easter egg inside the easter egg**. If you look at the [code](https://github.com/python/cpython/blob/master/Lib/antigravity.py#L7-L17), there's a function defined that purports to implement the [XKCD's geohashing algorithm](https://xkcd.com/426/).
28262826
28272827
---
@@ -3607,7 +3607,7 @@ What makes those dictionaries become bloated? And why are newly created objects
36073607
True
36083608
```
36093609
3610-
* `int('١٢٣٤٥٦٧٨٩')` returns `123456789` in Python 3. In Python, Decimal characters include digit characters, and all characters that can be used to form decimal-radix numbers, e.g. U+0660, ARABIC-INDIC DIGIT ZERO. Here's an [interesting story](http://chris.improbable.org/2014/8/25/adventures-in-unicode-digits/) related to this behavior of Python.
3610+
* `int('١٢٣٤٥٦٧٨٩')` returns `123456789` in Python 3. In Python, Decimal characters include digit characters, and all characters that can be used to form decimal-radix numbers, e.g. U+0660, ARABIC-INDIC DIGIT ZERO. Here's an [interesting story](https://chris.improbable.org/2014/8/25/adventures-in-unicode-digits/) related to this behavior of Python.
36113611
36123612
* You can separate numeric literals with underscores (for better readability) from Python 3 onwards.
36133613

0 commit comments

Comments
 (0)