[issue29628] struct objects can no longer be pickled

2017-02-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: As a workaround you can make Struct pickleable: from struct import Struct import copy, copyreg def pickle_struct(s): return Struct, (s.format,) copyreg.pickle(Struct, pickle_struct) s1 = Struct('

[issue29622] ast module doesn't support optional fields of Parser/Python.asdl

2017-02-22 Thread INADA Naoki
INADA Naoki added the comment: AST type doesn't have any information about optional fields. And I don't know it's worth enough to add it. When AST is instantiated by keyword arguments, there are no check about absence of some fields. I suppose we can just loosen positional arguments too.

[issue29533] urllib2 works slowly with proxy on windows

2017-02-22 Thread Julia Dolgova
Julia Dolgova added the comment: I added variable smart_proxy_bypass into request module. If it's False then checking IP and FQDN of the host is skipped in proxy_bypass_registry function. I set the default value to False, because I think it's better when the behaviour of urllib corresponds

[issue29629] rgb_to_hls in colorsys.py

2017-02-22 Thread Madhavendra Sharma
Madhavendra Sharma added the comment: Please check examples in en.wikipedia.org/wiki/HSL_and_HSV I picked one of them for R = .750, B=0.250, G=0.750 corresponding HLS value are H= 300 = (5.0 * 60) , L = .5, S=.5 but colorsys.rgb_to_hls(0.75 , 0.25, 0.75) gives following output

[issue29616] input() after restarting causes bug

2017-02-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: Characters typed before Enter are never sent the the execution process, so there are not even interpreted as a string, let alone a command. Do you see exactly the following when you start IDLE? Python 3.6.0 (v3.6.0:41df79263a11, Dec 23 2016, 08:06:12) [MSC

[issue29533] urllib2 works slowly with proxy on windows

2017-02-22 Thread Julia Dolgova
Changes by Julia Dolgova : -- pull_requests: +212 ___ Python tracker ___ ___ Python-bugs-list

[issue29614] Additional implementation alternative to DictReader

2017-02-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I'm with Inada and David. This use case looks very specific. If you need to handle a CSV file with duplicated header, you can use the regular reader or implement your own specialised reader. -- nosy: +serhiy.storchaka

[issue29614] Additional implementation alternative to DictReader

2017-02-22 Thread R. David Murray
R. David Murray added the comment: My opinion stated in that issue is still the same: I don't think this is a bug. I don't think automatic handling of fieldnames when no other dictionary features are retained is worth the complication to the API. So I'm still -1. We'll see what other

[issue29614] Additional implementation alternative to DictReader

2017-02-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Or use DictReader with an explicit fieldnames argument. -- ___ Python tracker ___

<    1   2