[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [tor-bugs] #17083 [Stem]: Downloading server descriptors crashes with a TypeError



#17083: Downloading server descriptors crashes with a TypeError
------------------------+------------------------
     Reporter:  trodun  |      Owner:  atagar
         Type:  defect  |     Status:  closed
     Priority:  normal  |  Milestone:
    Component:  Stem    |    Version:
   Resolution:  fixed   |   Keywords:  descriptor
Actual Points:          |  Parent ID:
       Points:          |
------------------------+------------------------
Changes (by atagar):

 * status:  new => closed
 * resolution:   => fixed


Comment:

 Great catch! This looks to be a difference in how python2 and python3
 behaves...

 {{{
 Python 2.7:

 >>> foo = filter(lambda x: x % 2 == 0, [1, 2, 3])
 >>> foo
 [2]
 >>> type(foo)
 <type 'list'>

 Python 3.2:

 >>> foo = filter(lambda x: x % 2 == 0, [1, 2, 3])
 >>> foo
 <filter object at 0xb6fd280c>
 >>> type(foo)
 <class 'filter'>
 }}}

 [https://gitweb.torproject.org/stem.git/commit/?id=d7079a71bed67a88e45d72358ca8562899d71582
 Pushed a fix], feel free to reopen if that doesn't do the trick.

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/17083#comment:1>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs