Pylons/pyramid — pull request #984 by sontek (2013-04-17 02:43:51+00:00)
Title: Should be able to asbool('✓') and get truthy

For example:

from wsgiref.simple_server import make_server

from pyramid.config import Configurator
from pyramid.response import Response
from pyramid.settings import asbool

def hello_world(request):
b = asbool(request.GET['b'])
return Response('hello! %s' % b)

def main():
config = Configurator()
config.add_view(hello_world)
app = config.make_wsgi_app()
return app

if __name__ == '__main__':
app = main()
server = make_server('0.0.0.0', 8080, app)
server.serve_forever()

If you go to:

http://0.0.0.0:8080/?b=✓

it should return:
"Hello True"