instance_id string | pull_number int64 | repo string | version string | base_commit string | created_at string | patch string | test_patch string | non_py_patch string | new_components list | FAIL_TO_PASS list | PASS_TO_PASS list | pull_request_text string | issue_text string | readmes list | files list | environment_setup_commit string | patch-detailed string | natural-detailed string | patch-brief string | natural-brief string |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
tornadoweb__tornado-789 | 789 | tornadoweb/tornado | null | 833d6975c320836ddc3a20fde681fdccbdcb82ed | 2013-05-16T18:15:55Z | diff --git a/tornado/options.py b/tornado/options.py
index faf0e164cc..04692f7a83 100644
--- a/tornado/options.py
+++ b/tornado/options.py
@@ -101,6 +101,44 @@ def __setattr__(self, name, value):
return self._options[name].set(value)
raise AttributeError("Unrecognized option %r" % name)
+ def... | diff --git a/tornado/test/options_test.py b/tornado/test/options_test.py
index dc52a82a49..23ce0fe458 100644
--- a/tornado/test/options_test.py
+++ b/tornado/test/options_test.py
@@ -113,6 +113,47 @@ def test_setattr_with_callback(self):
options.foo = 2
self.assertEqual(values, [2])
+ def _sample... | [
{
"components": [
{
"doc": "",
"lines": [
104,
105
],
"name": "OptionParser.__iter__",
"signature": "def __iter__(self):",
"type": "function"
},
{
"doc": "",
"lines": [
107,
108
],
... | [
"tornado/test/options_test.py::OptionsTest::test_as_dict",
"tornado/test/options_test.py::OptionsTest::test_getitem",
"tornado/test/options_test.py::OptionsTest::test_group_dict",
"tornado/test/options_test.py::OptionsTest::test_items",
"tornado/test/options_test.py::OptionsTest::test_iter"
] | [
"tornado/test/options_test.py::OptionsTest::test_help",
"tornado/test/options_test.py::OptionsTest::test_mock_patch",
"tornado/test/options_test.py::OptionsTest::test_multiple_int",
"tornado/test/options_test.py::OptionsTest::test_multiple_string",
"tornado/test/options_test.py::OptionsTest::test_parse_call... | <request>
Make options instance more dict-like.
In my Motor-Blog application, I find myself copying a lot of options from tornado.options into Application(). I thought this would be nice:
application = Application(handler, **options.options.as_dict())
... so I added as_dict() and some dict-like features to OptionPars... | [] | [
{
"content": "#!/usr/bin/env python\n#\n# Copyright 2009 Facebook\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\"); you may\n# not use this file except in compliance with the License. You may obtain\n# a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unle... | b5dad636aaba94f86a3c00ca6ec49c79ff4313b2 | You will be provided with a partial code base and an feature request which requires a new feature to add in the code repository.
<request>
Make options instance more dict-like.
In my Motor-Blog application, I find myself copying a lot of options from tornado.options into Application(). I thought this would be nice:
ap... | You will be provided with a partial code base and an feature request which requires a new feature to add in the code repository.
<request>
Make options instance more dict-like.
In my Motor-Blog application, I find myself copying a lot of options from tornado.options into Application(). I thought this would be nice:
ap... | You will be provided with a partial code base and an feature request which requires a new feature to add in the code repository.
<request>
Make options instance more dict-like.
In my Motor-Blog application, I find myself copying a lot of options from tornado.options into Application(). I thought this would be nice:
ap... | You will be provided with a partial code base and an feature request which requires a new feature to add in the code repository.
<request>
Make options instance more dict-like.
In my Motor-Blog application, I find myself copying a lot of options from tornado.options into Application(). I thought this would be nice:
ap... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.