mirror of
https://github.com/kennethreitz/python-guide.git
synced 2026-06-05 23:00:18 +00:00
Lets ▶︎ Let's (where appropriate)
This commit is contained in:
@@ -24,7 +24,7 @@ module instead of the already built-in urlib2 due to improvements in speed and
|
||||
readability. You can easily install both using ``pip install lxml`` and
|
||||
``pip install requests``.
|
||||
|
||||
Lets start with the imports:
|
||||
Let's start with the imports:
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
@@ -71,7 +71,7 @@ Knowing this we can create the correct XPath query and use the lxml
|
||||
#This will create a list of prices
|
||||
prices = tree.xpath('//span[@class="item-price"]/text()')
|
||||
|
||||
Lets see what we got exactly:
|
||||
Let's see what we got exactly:
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
|
||||
@@ -153,7 +153,7 @@ in a similar way like in standard C. For example `cdef int n,k,i` in line 3. Th
|
||||
allows the Cython compiler to generate more efficient C code from the second code. While standard Python code is saved in :file:`*.py` files,
|
||||
Cython code is saved in :file:`*.pyx` files.
|
||||
|
||||
And what is with the speed? So lets try it!
|
||||
And what is with the speed? So let's try it!
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
|
||||
Reference in New Issue
Block a user