GithubHelp home page GithubHelp logo

pym's Introduction

Python for you and me

A fast paced Python book for students.

Read it here.

pym's People

Contributors

0xcarnage04082023 avatar abhishekarora12 avatar bnprk avatar bohemiancoast avatar curiouslearner avatar desouradeep avatar etanot avatar iamsudip avatar koallen avatar krejdom avatar kushaldas avatar logan5 avatar meganeshkadam avatar praveenkumar avatar rajudev avatar rtnpro avatar sagarhani avatar sanjiban avatar sanketdg avatar sayanchowdhury avatar schubisu avatar scottwedge avatar shitalmule04 avatar smarvin avatar surajssd avatar thyarmageddon avatar trishnaguha avatar viiicky avatar williamjmorenor avatar zafaryab avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

pym's Issues

Typo in functions chapter in Default Argument section

Two typos in function chapter default argument section:

In a function variables may have default argument values, that means if we don’t give any value for that particular variable it will assigned automatically.

there should be be after it will
and in the second paragraph:

In the above example we have written b = -99 in the function parameter list. That means of no value for b is given then b’s value is -99.

typing mistake there is of instead of if

Spelling Error On Generator Chapter

There is a spelling error in the generator chapter of the book.

One way to create a reusable generator is Object-based generators which does not hold any state. Any class with an iter method which yields data can be used as an object generator. In the following example, we will recreate our counter generator.

Put this edited paragraph instead, the old paragraph was this:
One way to create a reusable generator is Object based generators which does not hold any state. Any class with a iter method which yields data can be used as a object generator. In the following example we will recreate out counter generator.

With article mistakes and punctuations and spelling errors.

PEP 8 part is misleading

Your PEP 8 part at http://pymbook.readthedocs.io/en/latest/pep8.html is rather bad. It differs from the actual current PEP 8 and you make it look misleadingly official. Better use the actual current PEP 8 text, add a clear header saying that this is only a copy, and link to the original. Though I really don't get the point of copying it in the first place. I think it would be best for you to only summarize PEP 8, briefly explaining what it is, giving a few important examples, and then referring to the original document on the Python site for people interested in the whole thing.

I btw came across your page as the fifth result in a google search for "pep8" (and I see your GitHub repository is quite popular). So it's not insignificant. It might actually be misleading people already.

Operators section needs some modification for division

In Operators ,

>>> 22.0 / 12
1.8333333333333333

To get floating result you need to the division using any of operand as floating number.

The above line is not valid for Python 3 as we don't require the operand as floating number to get a floating result. So this line should be modified.

>>> 22 / 12
1.8333333333333333

In the same article we should also add some example about floor division for python.

License and Copyright of this repo

This is a great resource I have found. But through out the book, or the repo,

  1. I couldn't find a license under which the book is released under.
  2. I am also not sure, if the right credits is given to the other contributors. I don't find them mentioned anywhere, except when I come in to GitHub and click on Contributors.

PS : If I were to choose a license of the book, I would choose CC- Public Domain. So that people who are further using/re-using the book are not constrained in any manner of permissions.

Missing License

Thanks for the wonderful work that you and the community has done. I think it would be a nice idea to have an explicit license so the terms of usage, editing and redistribution are clear.

Typo in functions chapter

screenshot
Here in 1st example of local and global variables the code is:
print "After the function calls ", a]
It will be like
print "After the function calls ", a

Add chapter on the SQL operation

It will be great to add a chapter of handling SQL Operation in the book. We can discuss about the topic like how to execute SQL CRUD Operations and use of ORM library like SQLAlchemy.

Section on Shorthand Operators not strictly true

I am referring to http://pymbook.readthedocs.io/en/latest/operatorsexpressions.html#shorthand-operator. x op= y is not always equivalent to x = x op y. The statement is always true for immutable objects like ints and tuples. Mutable objects, on the other hand, can have a completely different implementation of the shorthand operators since those operators can modify the object in-place. For example, lists define a legitimately different __iadd__ operator (which is basically extend).

Proposing a PR to fix a few small typos

Issue Type

[x] Bug (Typo)

Steps to Replicate and Expected Behaviour

  • Examine docs/hardwaresimulation.rst and observe wtih, however expect to see with.
  • Examine docs/thebeginning.rst and observe terinal, however expect to see terminal.
  • Examine docs/modules.rst and observe interpeter, however expect to see interpreter.
  • Examine docs/flask.rst and observe happend, however expect to see happened.
  • Examine docs/_themes/README.rst and observe drivative, however expect to see derivative.
  • Examine docs/virtualenv.rst and observe comamnd, however expect to see command.
  • Examine docs/classes.rst and observe classs, however expect to see class.
  • Examine docs/classes.rst and observe accross, however expect to see across.

Notes

Semi-automated issue generated by
https://github.com/timgates42/meticulous/blob/master/docs/NOTE.md

To avoid wasting CI processing resources a branch with the fix has been
prepared but a pull request has not yet been created. A pull request fixing
the issue can be prepared from the link below, feel free to create it or
request @timgates42 create the PR. Alternatively if the fix is undesired please
close the issue with a small comment about the reasoning.

https://github.com/timgates42/pym/pull/new/bugfix_typos

Thanks.

Broken link on homepage?

The sentence at the top of the homepage that points the user to the Python 2.x version of the book appears to be incorrect. It points to this 3.x homepage rather than a homepage for the 2.x version of the book.

Give visible links for Downloading PDF, epub versions

It is difficult to find the download link on the book's home page.

The bottom right link with green color letters (v:latest) does not mean for downloading.

Give the links for PD. epub on the left panel itself.
under section "Useful Links"

Thanks.

Typo in functions chapter

In functions chapter in first paragraph last line there is usage of word build in:

Reusing the same code is required many times within a same program. Functions help us to do so. We write the things we have to do repeatedly in a function then call it where ever required. We already saw build in functions like len(), divmod().

the correct word is not build in, rather its built-in

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.