> Also, I found something that I can’t get my mind around. It is part of the
> time/date protocols. I’ve not seen it anywhere else.
>
> Datetime(year=blah, blah, blah).date/time()
>
> datetime(2013,3,6).date() #returns…
> datetime.date(2013,3,6)
>
> datetime(2013,3,6).time() #returns…
> datetime.ti
On 01/10/14 03:16, Steven D'Aprano wrote:
For example map() which applies a function to a collection.
total = map(operator.add, [1,2,3,4,5,6])
is the same result as
total = sum([1,2,3,4,5,6])
No, you're thinking of reduce(), not map().
Oops, you're quite right.
Apologies.
--
Alan G
Auth
Hi, Can anyone help explain why you can keep hitting the Mole even when
hittable should be False?
from tkinter import *
root = Tk()
#root.state('zoomed')
sec = 0
points=0
pic=PhotoImage(file='Dirt.gif')
pic2=PhotoImage(file='Mole.gif')
hittable=False
def HIT():
if hittable==True:
gl
!-Original Message-
!From: Danny Yoo [mailto:d...@hashcollision.org]
!Sent: Wednesday, October 01, 2014 12:11 AM
!To: Clayton Kirkwood
!Cc: Python Tutor Mailing List
!Subject: Re: [Tutor] could somebody please explain...
!
!> Also, I found something that I can’t get my mind around. It is
!-Original Message-
!From: Tutor [mailto:tutor-bounces+crk=godblessthe...@python.org] On
!Behalf Of Steven D'Aprano
!Sent: Tuesday, September 30, 2014 7:34 PM
!To: tutor@python.org
!Subject: Re: [Tutor] could somebody please explain...
!
!On Tue, Sep 30, 2014 at 03:54:42PM -0700, Clayton
!-Original Message-
!From: Tutor [mailto:tutor-bounces+crk=godblessthe...@python.org] On
!Behalf Of Steven D'Aprano
!Sent: Tuesday, September 30, 2014 6:38 PM
!To: tutor@python.org
!Subject: Re: [Tutor] could somebody please explain...
!
!On Tue, Sep 30, 2014 at 03:54:42PM -0700, Clayton
> !> Also, I found something that I can’t get my mind around. It is part of
> !> the time/date protocols. I’ve not seen it anywhere else.
> !>
> !> Datetime(year=blah, blah, blah).date/time()
> !>
> !> datetime(2013,3,6).date() #returns…
> !> datetime.date(2013,3,6)
> !>
> !> datetime(2013,3,6).tim
On 01/10/14 16:59, Ben Smith wrote:
Hi, Can anyone help explain why you can keep hitting the Mole even when
hittable should be False?
I can't. I can hit it 3 seconds after hitting Start then it turns
un-hittable and the secs counter keeps counting but nothing else
responds until you close th
Hello, I am just starting out with Python and ran into a problem
day one. I am doing this statement:
input("\n\nPress the enter key to exit.")
I get the following error:
>>> input("\n\nPress the enter key to exit.")
Press the enter key to exit.
Traceback (most recent call last):
File "
On 01/10/14 22:34, Stefan St-Hilaire wrote:
>>> input("\n\nPress the enter key to exit.")
Press the enter key to exit.
Traceback (most recent call last):
File "", line 1, in
File "", line 0
^
SyntaxError: unexpected EOF while parsing
I am using Linux (Shell) and PyCharm and get
I have this part of the code - full_item_list = self._soup.find_all('li',
{'data-app': '440'}) - that gives me this:
Very long output (~ 211 lines): http://pastebin.com/WLTtgVZz
Now I need to filter this RAW data, what I need is to convert this data to
something like a list of dicts in Python, so
Stefan St-Hilaire wrote:
> Hello, I am just starting out with Python and ran into a problem
> day one. I am doing this statement:
>
> input("\n\nPress the enter key to exit.")
>
> I get the following error:
>
> >>> input("\n\nPress the enter key to exit.")
>
>
> Press the enter key to e
Hi Juan,
What you should be getting back from the call to find_all() should
already be dictionary-like. Although they *print* like HTML, they're
really soups.
So you should already be able to do:
#
full_item_list = self._soup.find_all('li', {'data-app
On Wed, Oct 1, 2014 at 8:02 PM, Danny Yoo wrote:
> Hi Juan,
>
> What you should be getting back from the call to find_all() should
> already be dictionary-like. Although they *print* like HTML, they're
> really soups.
>
> So you should already be able to do:
>
> #
On Wed, Oct 1, 2014 at 9:37 PM, Juan Christian
wrote:
> OH MY GOD! Super fail, hahaha.
>
> Thanks, bs4 is incredible. I thought they were RAW html data. Thank you!
>
Not everything is that easy, hahaha. So, I can get everything I want, but
this part:
http://media.steampowered.com/apps/440/ico
15 matches
Mail list logo