[issue23245] urllib2: urlopen() gets exception(kwargs bug?)

2015-01-14 Thread Douman

New submission from Douman:

I get strange callstack from urllib2

It seems that python thinks that HTTPSConnection doesn't have context argument.
Which is entirely incorrect. 
I have suspicions that this is related to the way how context argument is 
passed(kwargs)
This happens starting from python 2.7.9

--
components: Extension Modules
files: callstack_urllib2
messages: 234055
nosy: Douman
priority: normal
severity: normal
status: open
title: urllib2: urlopen() gets exception(kwargs bug?)
type: compile error
versions: Python 2.7
Added file: http://bugs.python.org/file37713/callstack_urllib2

___
Python tracker 
<http://bugs.python.org/issue23245>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue23245] urllib2: urlopen() gets exception(kwargs bug?)

2015-01-15 Thread Douman

Douman added the comment:

Yes, i checked what is http_class. It is passed as httplib.HTTPSConnection
Before submitting this issue i checked httplib.py in my installation of py2 and 
there https://hg.python.org/cpython/file/2.7/Lib/httplib.py

HTTPSConnection has argument "context".

Btw, it would be nice to update comments in urllib2 so that it would be more 
accurate

--

___
Python tracker 
<http://bugs.python.org/issue23245>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue23245] urllib2: urlopen() gets exception(kwargs bug?)

2015-01-15 Thread Douman

Douman added the comment:

Btw, i also tried to replace **kwargs with usual argument and it didn't throw 
exception

--

___
Python tracker 
<http://bugs.python.org/issue23245>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue23245] urllib2: urlopen() gets exception(kwargs bug?)

2015-01-15 Thread Douman

Douman added the comment:

Also according to documentation this class was specifically updated with 
context in 2.7.9
I guess then there should commit related to adding of "context" to 
HTTPSConnection

--

___
Python tracker 
<http://bugs.python.org/issue23245>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue23245] urllib2: urlopen() gets exception(kwargs bug?)

2015-01-15 Thread Douman

Douman added the comment:

It seems to be this one
https://hg.python.org/cpython/rev/1882157b298a

--

___
Python tracker 
<http://bugs.python.org/issue23245>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue23245] urllib2: urlopen() gets exception(kwargs bug?)

2015-01-15 Thread Douman

Douman added the comment:

I made additional experiments and now i'm confused
When i tried to execute urlopen in python interpeter it worked fine.
But it fails for me when i attempt to do so via some helper function in search 
engine of qBittorent it throw exception

https://github.com/qbittorrent/qBittorrent/blob/master/src/searchengine/nova/helpers.py

What is curious... all exceptions should be passed without notices, but for 
some reason python does throw exception even though all are catched and passed

--
Added file: http://bugs.python.org/file37715/callstack_urllib2_full

___
Python tracker 
<http://bugs.python.org/issue23245>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue23245] urllib2: urlopen() gets exception(kwargs bug?)

2015-02-23 Thread Douman

Douman added the comment:

Just to up issue.
It seems that there is some changes in 2.7.9 that breaks usage of 
urllib2.urlopen()

--

___
Python tracker 
<http://bugs.python.org/issue23245>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com