From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from [87.239.111.99] (localhost [127.0.0.1]) by dev.tarantool.org (Postfix) with ESMTP id 4F4CE4C889; Thu, 14 Jan 2021 15:22:45 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 4F4CE4C889 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tarantool.org; s=dev; t=1610626965; bh=KFeEC8xXT9o4VQyx2XJEsFSB09dCgy8/BV+zN3aVwCM=; h=Date:To:References:In-Reply-To:Subject:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=fkrE+ya/zmI8DFSqY6fsZt7Xk9Lr3qQjJxiMe78wuxQxwrArpOicFrUeCV6G9PPDK OEjBogAE2sNsrpdaIqwx4LMr8ZNLqkM2dnVhsTtJTjjNiNEip5JPAm9zAXCx58Nfhk nuaa6Sp/VjZ+kZg9LrFGvU5Kk7AywRTxQ4oA04J0= Received: from smtp37.i.mail.ru (smtp37.i.mail.ru [94.100.177.97]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dev.tarantool.org (Postfix) with ESMTPS id 9A8C94C885 for ; Thu, 14 Jan 2021 15:22:44 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 9A8C94C885 Received: by smtp37.i.mail.ru with esmtpa (envelope-from ) id 1l01eF-0008JG-S8; Thu, 14 Jan 2021 15:22:44 +0300 Date: Thu, 14 Jan 2021 15:23:07 +0300 To: sergeyb@tarantool.org Message-ID: <20210114122307.c6oekoa45vh73hje@tkn_work_nb> References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-7564579A: 78E4E2B564C1792B X-77F55803: 4F1203BC0FB41BD9D0E79FBC973162CDC332107C56D78A30EABAEB9DEE13ADFC00894C459B0CD1B9D353A56CA01C49072A603FBFF3A1A93C558942360A617C2A7FD75BC03299E750 X-7FA49CB5: FF5795518A3D127A4AD6D5ED66289B5278DA827A17800CE7BC08626EA5717D14EA1F7E6F0F101C67BD4B6F7A4D31EC0BCC500DACC3FED6E28638F802B75D45FF8AA50765F790063764345650F0BBEB0B8638F802B75D45FF5571747095F342E8C7A0BC55FA0FE5FC5F1CB819CBF01AE60AA72F10A9DC7D2C068377B494F07057389733CBF5DBD5E913377AFFFEAFD269A417C69337E82CC2CC7F00164DA146DAFE8445B8C89999729449624AB7ADAF37F6B57BC7E64490611E7FA7ABCAF51C92176DF2183F8FC7C07E7E81EEA8A9722B8941B15DA834481F9449624AB7ADAF37BA3038C0950A5D3613377AFFFEAFD2691661749BA6B97735287EE14F2A8630337B076A6E789B0E97A8DF7F3B2552694A1E7802607F20496D49FD398EE364050F902A1BE408319B297C6FCE95544A9834B3661434B16C20AC78D18283394535A975ECD9A6C639B01BC09775C1D3CA48CF0B8B320EE581A76035872C767BF85DA22EF20D2F80756B5F40A5AABA2AD3711975ECD9A6C639B01B78DA827A17800CE71FE705C1FB16C834731C566533BA786A40A5AABA2AD371193C9F3DD0FB1AF5EB51CDAA41CE8B6EBE3C9F3DD0FB1AF5EB4E70A05D1297E1BBCB5012B2E24CD356 X-C1DE0DAB: 0D63561A33F958A577AAB0B86BCE95F365C8AE94304C179DBD2B76C5826849F3D59269BC5F550898D99A6476B3ADF6B47008B74DF8BB9EF7333BD3B22AA88B938A852937E12ACA75448CF9D3A7B2C848410CA545F18667F91A7EA1CDA0B5A7A0 X-C8649E89: 4E36BF7865823D7055A7F0CF078B5EC49A30900B95165D3444047AE358B407540D6C5305042CAB264A9A5145B66E323C1B80D5D831F27AD0D1FA64FA8122DAA41D7E09C32AA3244CCE55D77166AC7767239D1855F865CF4B3C6EB905E3A8056B927AC6DF5659F194 X-D57D3AED: 3ZO7eAau8CL7WIMRKs4sN3D3tLDjz0dLbV79QFUyzQ2Ujvy7cMT6pYYqY16iZVKkSc3dCLJ7zSJH7+u4VD18S7Vl4ZUrpaVfd2+vE6kuoey4m4VkSEu530nj6fImhcD4MUrOEAnl0W826KZ9Q+tr5ycPtXkTV4k65bRjmOUUP8cvGozZ33TWg5HZplvhhXbhDGzqmQDTd6OAevLeAnq3Ra9uf7zvY2zzsIhlcp/Y7m53TZgf2aB4JOg4gkr2bioj9kdO2HH36x5/C4ydkH7JSw== X-Mailru-Sender: FFAA8E4AEE17E37C3731A083A1A85ADED353A56CA01C49072A603FBFF3A1A93CB7EA9FE7735C3DBFC664A44C781FCEA7C77752E0C033A69EDF9F2CE1E9CF805D8CD356D4F938FF726C18EFA0BB12DBB0 X-Mras: Ok Subject: Re: [Tarantool-patches] [PATCH v1 1/4] test: fix app-tap/http_client.test.lua X-BeenThere: tarantool-patches@dev.tarantool.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Alexander Turenko via Tarantool-patches Reply-To: Alexander Turenko Cc: Sergey Bronnikov , tarantool-patches@dev.tarantool.org Errors-To: tarantool-patches-bounces@dev.tarantool.org Sender: "Tarantool-patches" > @@ -76,7 +76,7 @@ def post_handle(env, response): > code = "200 OK" > body = [env["wsgi.input"].read()] > headers = [] > - for key,value in env.iteritems(): > + for key,value in iter(env.items()): AFAIR, .items() forms a list on Python 2, but creates an iterator object on Python 3. Both are suitable for the for loop expression and there is no much difference when the dictionary in not large. iter() does not change anything here (however it is harmless). .iteritems() was preferred by developers in Python 2 days, because it creates an iterator, but most of times we know that a dictionary is not large and we're okay with negligible perf. down on Python 2.