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

Tor Bug Tracker & Wiki blackhole at torproject.org
Thu Sep 17 15:14:21 UTC 2015


#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


More information about the tor-bugs mailing list