Git Product home page Git Product logo

better-python-59-ways's Issues

Typo Error

This sample code is really fantastic !!!

item_32_use_getattr.py line 5: represent teh rows -> represent the rows

item_45_use_datetime.py line 9: probably fin yourself -> probably find yourself

item_56_unittest.py line 6: nothing int eh compiler -> nothing in the compiler

item_57_pdb.py line 42: function. YOu can import -> function. You can import

Typographical Error

in the About blurb on the main repository frontpage:

Code Sample of Book "Effective Python: 59 Specific Ways to Write Better Pyton" by Brett Slatkin

Pyton Python

NameError: name 'Grade' is not defined

In item 22, I noticed there is a Grade here but didn't get what it is.

    def report_grade(self, score, weight):
        self._grades.append(Grade(score, weight))

Also, when i run the sample code, i got this error
self._grades.append(Grade(score, weight))
NameError: name 'Grade' is not defined

Someone can help explaining?

Item 38 use lock to prevent data races in threads

i guess we should clear to the readers that += in you specific example it is an atomic operation and if you run the code multiple times you will always the right answer Counter should be 500000, found 500000, because in 3.X version of python they were consistently made to be atomic and so i guess the code is misleading especially for new readers ! i can suggest other senarios where we will have data races if you will

Point 41 page - 404

Hi there! Firstly, great thanks for such big collection of useful tips for Python developers.

The problems is the following: the hyperlink for item 41 goes to 404. That's it

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.