Skip to content

Commit 55ae180

Browse files
reverted docs to source
1 parent 3d3b2bc commit 55ae180

36 files changed

+2479
-1250
lines changed
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
**Describe the bug**
11+
A clear and concise description of what the bug is.
12+
13+
**To Reproduce**
14+
Steps to reproduce the behavior:
15+
1. Go to '...'
16+
2. Click on '....'
17+
3. Scroll down to '....'
18+
4. See error
19+
20+
**Expected behavior**
21+
A clear and concise description of what you expected to happen.
22+
23+
**Screenshots**
24+
If applicable, add screenshots to help explain your problem.
25+
26+
**Desktop (please complete the following information):**
27+
- OS: [e.g. iOS]
28+
- Browser [e.g. chrome, safari]
29+
- Version [e.g. 22]
30+
31+
**Smartphone (please complete the following information):**
32+
- Device: [e.g. iPhone6]
33+
- OS: [e.g. iOS8.1]
34+
- Browser [e.g. stock browser, safari]
35+
- Version [e.g. 22]
36+
37+
**Additional context**
38+
Add any other context about the problem here.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
**Is your feature request related to a problem? Please describe.**
11+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
12+
13+
**Describe the solution you'd like**
14+
A clear and concise description of what you want to happen.
15+
16+
**Describe alternatives you've considered**
17+
A clear and concise description of any alternative solutions or features you've considered.
18+
19+
**Additional context**
20+
Add any other context or screenshots about the feature request here.

docs/_sources/prodigiouspython/Chapter_1/4_Datatypes.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -527,7 +527,7 @@
527527
"name": "python",
528528
"nbconvert_exporter": "python",
529529
"pygments_lexer": "ipython3",
530-
"version": "3.9.7"
530+
"version": "3.10.7"
531531
}
532532
},
533533
"nbformat": 4,

docs/_sources/prodigiouspython/Chapter_1/5_Collection_Types.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -538,7 +538,7 @@
538538
"name": "python",
539539
"nbconvert_exporter": "python",
540540
"pygments_lexer": "ipython3",
541-
"version": "3.9.5"
541+
"version": "3.10.7"
542542
}
543543
},
544544
"nbformat": 4,

docs/objects.inv

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Project: Python
33
# Version:
44
# The remainder of this file is compressed using zlib.
5-
xڥX�r�6��)pL�c���!��S���v{܁DHb ����L�/�����e�08������.@&���@r�K��<��d�2=gǧ,�u��2k��L��j�K|~�+��`za�Y=7G_'��ݤ��,�bZ�,_溮�tcVZ-��U&�l�τ�o%ԍ}<ʑ]w7���k4��-6��A�;��R8���R4IN�/�(����<���JQ���p�kU�^���.��j��T$��ث0��.�R��޳� z�>8�S�Q��RZ�)����"Z�A�=�
6-
���OB�dr��M��]1[ s� %�(��� /���ܬ��
7-
�r��Qu���d$�E2�^0��P����=���!���9�IQW\WU�Td�u�+�����g�0�q�v��~�]f��YA�M';�ĕ?��$�R�\r`�=��c�m��%� H��f":�DK��� �����3{+{|��n�I ]�-ɽ�sŏƓI��P1t���t O>ܨ�6��]��1k�!�+�\��q
8-
oD�G!��@�H,G�=�� F'��f��G���l�Qg�g#2��5FR�!U՜Cq� ��^%gS�i��Wt���jN�_���������m�p].kGy��S�a�'$d Oʶ��{���*����|S���@i}p�|���x���6�P%�;"��/  ^K3�%@����q��oӯ�g�6۝?x1�JC�l ^7����)�pqە›�?���^�-i=�8,��>�$�5��ϱ5�q�k�s,��B��9�b$��]/��X� ��g���j��Hwf�9�l�u�w�J�p��y�a�m!ͱ�2ׅ�����������ZqLm��o��?���%�y%�Ļ)�A(������y4�>��ȶ����x�w�9� �g��;"���(� ��>��B���re���B(�oƢ`�k�9�n���Ox�G��k��o�/�] ���?���9y��b��
5+
xڥXێ�6}�W�1y�u��[���c9��u׈��q@[���&U�ڭ?�@�(���EJ�/�)䍜�3�� )]G�����x6[�`>�L��Qw�G��D��d*����!ח��7j��G!��g?tkFU�2D���̇�qB4|F���Ͽ�἞��e�C)T/s%S�0A��AȈ\kg��T��hLF�\�bRLS�Q,�Lwj#E'b"!��@p�d\cJ�A���#��'. My�h8͛�J�Nd�sf�*KR$�74Q,����;��Ë⭥,cBQK��\�\��V*�k��TF� #Gaz�m��L߼%/Y���n`,2E9��S���F�[�Yp�zJI�é�?1��B�<V;_�(ì-�Z���#SJ+�)�*¯X1`
6+
<Q��W�W2#�FI^1��P�߿��݃a�����4�K�2�"�A�ő0v�{�B�|��m0y)� Z�]���?�ݫLC�S���[��O�;�-��e�ʹ|�%/n��P��]⽤5��������`(9��r�y �S`ٙK+�_"��q0�`-S�e=�Op�����1
7+
Ag��`��`,�\y��!�W�I1wQ=§<渍}Wx04��E��)��Q�׏�f�^W�ް��^$G��1j�l}D�v�����*+�!��s�˽j�E���Y�-f����9�|4 k5u��`*�X�Q�4ʍP?��`۟*�<.!}Xݮ���Nb��D�x[6e����7���J���sW�k�� �@��=lMs�Z��3H{����x��S��R�j��[/ƥ4F����fD�P��k�_)�����%�oI�eHaݲ�O�F������ U��>�‚xNXJ���GB3���T>��|��3*Z+9��g�1���u�N�����΃�>o=D^r_"�]�O�1��L�,̈́�}�2�c���~���܏ZǛ�畠oAO\�{&�|�{�k�dou��m���K�`��
8+
8��0��v`b��Y�{\������A,�ly]p%(�1K�����g��.�h�w����js46��o�S�����t

docs/prodigiouspython/Chapter_1/10_String_representations_of_objects.html

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -546,38 +546,38 @@ <h1><span class="section-number">10. </span>String representations of objects: s
546546
<p>Python’s official documentations states that <code class="docutils literal notranslate"><span class="pre">__str__</span></code> should be used to represent a object which is human readable(informal), whereas <code class="docutils literal notranslate"><span class="pre">__repr__</span></code> is used for official representation of an object.</p>
547547
<div class="cell docutils container">
548548
<div class="cell_input docutils container">
549-
<div class="highlight-ipython3 notranslate"><div class="highlight"><pre><span></span>from datetime import datetime
549+
<div class="highlight-ipython3 notranslate"><div class="highlight"><pre><span></span><span class="kn">from</span> <span class="nn">datetime</span> <span class="kn">import</span> <span class="n">datetime</span>
550550

551-
now = datetime.now()
551+
<span class="n">now</span> <span class="o">=</span> <span class="n">datetime</span><span class="o">.</span><span class="n">now</span><span class="p">()</span>
552552

553-
print(f&quot;The repr of now is: {repr(now)}&quot;)
554-
print(f&quot;The str of now is: {str(now)}&quot;)
553+
<span class="nb">print</span><span class="p">(</span><span class="sa">f</span><span class="s2">&quot;The repr of now is: </span><span class="si">{</span><span class="nb">repr</span><span class="p">(</span><span class="n">now</span><span class="p">)</span><span class="si">}</span><span class="s2">&quot;</span><span class="p">)</span>
554+
<span class="nb">print</span><span class="p">(</span><span class="sa">f</span><span class="s2">&quot;The str of now is: </span><span class="si">{</span><span class="nb">str</span><span class="p">(</span><span class="n">now</span><span class="p">)</span><span class="si">}</span><span class="s2">&quot;</span><span class="p">)</span>
555555
</pre></div>
556556
</div>
557557
</div>
558558
<div class="cell_output docutils container">
559-
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>The repr of now is: datetime.datetime(2023, 1, 2, 6, 55, 59, 494226)
560-
The str of now is: 2023-01-02 06:55:59.494226
559+
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>The repr of now is: datetime.datetime(2023, 2, 5, 6, 59, 56, 776419)
560+
The str of now is: 2023-02-05 06:59:56.776419
561561
</pre></div>
562562
</div>
563563
</div>
564564
</div>
565565
<div class="cell docutils container">
566566
<div class="cell_input docutils container">
567-
<div class="highlight-ipython3 notranslate"><div class="highlight"><pre><span></span>class ProgrammingLanguage:
568-
def __init__(self, language: str):
569-
self.language = language
567+
<div class="highlight-ipython3 notranslate"><div class="highlight"><pre><span></span><span class="k">class</span> <span class="nc">ProgrammingLanguage</span><span class="p">:</span>
568+
<span class="k">def</span> <span class="fm">__init__</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">language</span><span class="p">:</span> <span class="nb">str</span><span class="p">):</span>
569+
<span class="bp">self</span><span class="o">.</span><span class="n">language</span> <span class="o">=</span> <span class="n">language</span>
570570

571571

572-
language_obj = ProgrammingLanguage(language=&quot;Python&quot;)
573-
print(f&quot;The repr of language_obj is: {repr(language_obj)}&quot;)
574-
print(f&quot;The str of language_obj is: {str(language_obj)}&quot;)
572+
<span class="n">language_obj</span> <span class="o">=</span> <span class="n">ProgrammingLanguage</span><span class="p">(</span><span class="n">language</span><span class="o">=</span><span class="s2">&quot;Python&quot;</span><span class="p">)</span>
573+
<span class="nb">print</span><span class="p">(</span><span class="sa">f</span><span class="s2">&quot;The repr of language_obj is: </span><span class="si">{</span><span class="nb">repr</span><span class="p">(</span><span class="n">language_obj</span><span class="p">)</span><span class="si">}</span><span class="s2">&quot;</span><span class="p">)</span>
574+
<span class="nb">print</span><span class="p">(</span><span class="sa">f</span><span class="s2">&quot;The str of language_obj is: </span><span class="si">{</span><span class="nb">str</span><span class="p">(</span><span class="n">language_obj</span><span class="p">)</span><span class="si">}</span><span class="s2">&quot;</span><span class="p">)</span>
575575
</pre></div>
576576
</div>
577577
</div>
578578
<div class="cell_output docutils container">
579-
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>The repr of language_obj is: &lt;__main__.ProgrammingLanguage object at 0x7f232451dcc0&gt;
580-
The str of language_obj is: &lt;__main__.ProgrammingLanguage object at 0x7f232451dcc0&gt;
579+
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>The repr of language_obj is: &lt;__main__.ProgrammingLanguage object at 0x7ff940197100&gt;
580+
The str of language_obj is: &lt;__main__.ProgrammingLanguage object at 0x7ff940197100&gt;
581581
</pre></div>
582582
</div>
583583
</div>
@@ -586,28 +586,28 @@ <h1><span class="section-number">10. </span>String representations of objects: s
586586
<p>Now let’s try to override the <code class="docutils literal notranslate"><span class="pre">__str__</span></code> and <code class="docutils literal notranslate"><span class="pre">__repr__</span></code> methods and see how the representations work</p>
587587
<div class="cell docutils container">
588588
<div class="cell_input docutils container">
589-
<div class="highlight-ipython3 notranslate"><div class="highlight"><pre><span></span>class Human:
590-
def __init__(self, name: str, age: int):
591-
self.name = name
592-
self.age = age
589+
<div class="highlight-ipython3 notranslate"><div class="highlight"><pre><span></span><span class="k">class</span> <span class="nc">Human</span><span class="p">:</span>
590+
<span class="k">def</span> <span class="fm">__init__</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">name</span><span class="p">:</span> <span class="nb">str</span><span class="p">,</span> <span class="n">age</span><span class="p">:</span> <span class="nb">int</span><span class="p">):</span>
591+
<span class="bp">self</span><span class="o">.</span><span class="n">name</span> <span class="o">=</span> <span class="n">name</span>
592+
<span class="bp">self</span><span class="o">.</span><span class="n">age</span> <span class="o">=</span> <span class="n">age</span>
593593

594-
# overriding __str__ method
595-
def __str__(self):
596-
return f&quot;I am {self.name} of age {self.age}&quot;
594+
<span class="c1"># overriding __str__ method</span>
595+
<span class="k">def</span> <span class="fm">__str__</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span>
596+
<span class="k">return</span> <span class="sa">f</span><span class="s2">&quot;I am </span><span class="si">{</span><span class="bp">self</span><span class="o">.</span><span class="n">name</span><span class="si">}</span><span class="s2"> of age </span><span class="si">{</span><span class="bp">self</span><span class="o">.</span><span class="n">age</span><span class="si">}</span><span class="s2">&quot;</span>
597597

598-
# overriding __repr__ method
599-
def __repr__(self):
600-
return f&quot;Human(name={self.name}, age={self.age}) object at {hex(id(self))}&quot;
598+
<span class="c1"># overriding __repr__ method</span>
599+
<span class="k">def</span> <span class="fm">__repr__</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span>
600+
<span class="k">return</span> <span class="sa">f</span><span class="s2">&quot;Human(name=</span><span class="si">{</span><span class="bp">self</span><span class="o">.</span><span class="n">name</span><span class="si">}</span><span class="s2">, age=</span><span class="si">{</span><span class="bp">self</span><span class="o">.</span><span class="n">age</span><span class="si">}</span><span class="s2">) object at </span><span class="si">{</span><span class="nb">hex</span><span class="p">(</span><span class="nb">id</span><span class="p">(</span><span class="bp">self</span><span class="p">))</span><span class="si">}</span><span class="s2">&quot;</span>
601601

602602

603-
human_obj = Human(name=&quot;IronMan&quot;, age=48)
604-
print(f&quot;The repr of human_obj is: {repr(human_obj)}&quot;)
605-
print(f&quot;The str of human_obj is: {str(human_obj)}&quot;)
603+
<span class="n">human_obj</span> <span class="o">=</span> <span class="n">Human</span><span class="p">(</span><span class="n">name</span><span class="o">=</span><span class="s2">&quot;IronMan&quot;</span><span class="p">,</span> <span class="n">age</span><span class="o">=</span><span class="mi">48</span><span class="p">)</span>
604+
<span class="nb">print</span><span class="p">(</span><span class="sa">f</span><span class="s2">&quot;The repr of human_obj is: </span><span class="si">{</span><span class="nb">repr</span><span class="p">(</span><span class="n">human_obj</span><span class="p">)</span><span class="si">}</span><span class="s2">&quot;</span><span class="p">)</span>
605+
<span class="nb">print</span><span class="p">(</span><span class="sa">f</span><span class="s2">&quot;The str of human_obj is: </span><span class="si">{</span><span class="nb">str</span><span class="p">(</span><span class="n">human_obj</span><span class="p">)</span><span class="si">}</span><span class="s2">&quot;</span><span class="p">)</span>
606606
</pre></div>
607607
</div>
608608
</div>
609609
<div class="cell_output docutils container">
610-
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>The repr of human_obj is: Human(name=IronMan, age=48) object at 0x7f232451faf0
610+
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>The repr of human_obj is: Human(name=IronMan, age=48) object at 0x7ff9401955a0
611611
The str of human_obj is: I am IronMan of age 48
612612
</pre></div>
613613
</div>

docs/prodigiouspython/Chapter_1/12_Help_Utility.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -544,7 +544,7 @@ <h1><span class="section-number">12. </span>Help Utility<a class="headerlink" hr
544544
<p>You can pass keyword, bulitin function or Module to help function to know about the same.</p>
545545
<div class="cell docutils container">
546546
<div class="cell_input docutils container">
547-
<div class="highlight-ipython3 notranslate"><div class="highlight"><pre><span></span>import os
547+
<div class="highlight-ipython3 notranslate"><div class="highlight"><pre><span></span><span class="kn">import</span> <span class="nn">os</span>
548548
</pre></div>
549549
</div>
550550
</div>
@@ -572,8 +572,8 @@ <h1><span class="section-number">12. </span>Help Utility<a class="headerlink" hr
572572
</div>
573573
<div class="cell docutils container">
574574
<div class="cell_input docutils container">
575-
<div class="highlight-ipython3 notranslate"><div class="highlight"><pre><span></span># Help utility on getcwd function of sys module
576-
help(os.getcwd)
575+
<div class="highlight-ipython3 notranslate"><div class="highlight"><pre><span></span><span class="c1"># Help utility on getcwd function of sys module</span>
576+
<span class="n">help</span><span class="p">(</span><span class="n">os</span><span class="o">.</span><span class="n">getcwd</span><span class="p">)</span>
577577
</pre></div>
578578
</div>
579579
</div>

docs/prodigiouspython/Chapter_1/1_Getting_Started_With_Python_Language.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -551,9 +551,9 @@ <h1><span class="section-number">1. </span>Getting Started with Python 🐍<a cl
551551
</ol>
552552
<div class="cell docutils container">
553553
<div class="cell_input docutils container">
554-
<div class="highlight-ipython3 notranslate"><div class="highlight"><pre><span></span>import sys
554+
<div class="highlight-ipython3 notranslate"><div class="highlight"><pre><span></span><span class="kn">import</span> <span class="nn">sys</span>
555555

556-
print(sys.version)
556+
<span class="nb">print</span><span class="p">(</span><span class="n">sys</span><span class="o">.</span><span class="n">version</span><span class="p">)</span>
557557
</pre></div>
558558
</div>
559559
</div>

0 commit comments

Comments
 (0)