[issue11736] windows installers ssl module / openssl broken for some sites

2011-04-01 Thread Senthil Kumaran
Changes by Senthil Kumaran : -- nosy: +orsenthil ___ Python tracker <http://bugs.python.org/issue11736> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue10762] strftime('%f') segfault

2011-04-05 Thread Senthil Kumaran
Senthil Kumaran added the comment: Fixed it in relevant branches. I had to add condition around the test to verify that platform was win because this is unique to windows only. Thanks. -- nosy: +orsenthil ___ Python tracker <http://bugs.python.

[issue10762] strftime('%f') segfault

2011-04-05 Thread Senthil Kumaran
Changes by Senthil Kumaran : -- assignee: -> orsenthil resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker <http://bugs.python

[issue11280] urllib2 http_error_302 calls undefined "getheaders" method

2011-04-06 Thread Senthil Kumaran
Senthil Kumaran added the comment: Just for the explaination (as the report already closed), getheaders of HTTPMessage object is available by subclassing all the way from rfc822.py module. If you trace it through the debugger, you will come to know

[issue7311] Bug on regexp of HTMLParser

2011-04-06 Thread Senthil Kumaran
Senthil Kumaran added the comment: We need not base changes to html/parser.py on html5 spec, but rather make changes based on the requirements on parsers which may rely on this library. Like the tolerant mode was brought in issue1486713 for some practical reasons and it was seen useful tor

[issue7311] Bug on regexp of HTMLParser

2011-04-06 Thread Senthil Kumaran
Senthil Kumaran added the comment: > So is the issue7311-3.diff patch fine? Just that it allows unquoted attrs for unicode too. My previous suggestion was not to allow unquoted attribute values, but as the change is already made in 2.7 and discussion pointed out a portion in 4.1 spec wh

[issue11799] urllib HTTP authentication behavior with unrecognized auth method

2011-04-07 Thread Senthil Kumaran
Senthil Kumaran added the comment: With the patch there is a new exception with specific msg being raised in certain cases, so this may only pertain to 3.3 -- assignee: -> orsenthil nosy: +orsenthil versions: -Python 3.2 ___ Python tracker &l

[issue11703] Bug in python >= 2.7 with urllib2 fragment

2011-04-12 Thread Senthil Kumaran
Senthil Kumaran added the comment: It should be noted that the bug surfaced in 2.7 and above due to changes made as part of Issue8280. -- assignee: -> orsenthil resolution: -> fixed ___ Python tracker <http://bugs.python.org/i

[issue11703] Bug in python >= 2.7 with urllib2 fragment

2011-04-12 Thread Senthil Kumaran
Senthil Kumaran added the comment: This is fixed in all the codelines. Thanks for the patch, Santoso. -- status: open -> closed ___ Python tracker <http://bugs.python.org/issu

[issue11474] url2pathname() handling of '/C|/' on Windows

2011-04-13 Thread Senthil Kumaran
Senthil Kumaran added the comment: Fixed in all the codelines. Thanks for the patch, Santoso. -- assignee: -> orsenthil resolution: -> fixed status: open -> closed ___ Python tracker <http://bugs.python.or

[issue11710] Landing pages in docs for standard library packages

2011-04-14 Thread Senthil Kumaran
Changes by Senthil Kumaran : -- nosy: +orsenthil ___ Python tracker <http://bugs.python.org/issue11710> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue11652] urlib{, 2} returns a pair of integers as the content-length value

2011-04-15 Thread Senthil Kumaran
Senthil Kumaran added the comment: It is better to close this issue as it was a Server Error. Standard just says that when there two headers with different values, combine them comma separated as urllib2 does. Making special case exception for 'Content-Length' header when the se

[issue11467] urlparse.urlsplit() regression for paths consisting of digits

2011-04-15 Thread Senthil Kumaran
Senthil Kumaran added the comment: Fixed this in all codelines. Thanks Santoso. -- resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker <http://bugs.python.or

[issue11862] urlparse.ParseResult to have meaningful __str__

2011-04-17 Thread Senthil Kumaran
Senthil Kumaran added the comment: What would be a 'meaning' __str__ or __unicode__ of urlparse.urlparse and how would it be useful to you? I would think that people would except a tuple, list or a ParsedResult for such a call. I cannot understand the rational behind the expect

[issue11862] urlparse.ParseResult to have meaningful __str__

2011-04-18 Thread Senthil Kumaran
Senthil Kumaran added the comment: Tomasz, I think, you misunderstood the purpose of urlparse library. urlparse is for parsing the URL and into its components. The url could be a mailto:, svn+ssh or http,https. The requirement for parsing comes when you are designing systems which take up

[issue4608] urllib.request.urlopen does not return an iterable object

2011-04-20 Thread Senthil Kumaran
Changes by Senthil Kumaran : -- status: closed -> open ___ Python tracker <http://bugs.python.org/issue4608> ___ ___ Python-bugs-list mailing list Unsubscri

[issue11236] getpass.getpass does not respond to ctrl-c or ctrl-z

2011-04-26 Thread Senthil Kumaran
Senthil Kumaran added the comment: I have made the changes in 3.3,3.2,3.1 and 2.7 codeline. The behavior is aligned with the 2.5 (and earlier) behaviors. I cannot change this 2.6 because this is not a security issue to be back-ported. (rather it was misinterpreted problem and resulted in

[issue11236] getpass.getpass does not respond to ctrl-c or ctrl-z

2011-04-26 Thread Senthil Kumaran
Senthil Kumaran added the comment: Updated the NEWS entry. -- status: open -> closed ___ Python tracker <http://bugs.python.org/issue11236> ___ ___ Python-

[issue10761] tarfile.extractall fails to overwrite symlinks

2011-04-26 Thread Senthil Kumaran
Senthil Kumaran added the comment: Scott- which platform did you observe this? I can't reproduce this on the 2.7 code on Linux. -- nosy: +orsenthil ___ Python tracker <http://bugs.python.org/is

[issue10761] tarfile.extractall fails to overwrite symlinks

2011-04-28 Thread Senthil Kumaran
Senthil Kumaran added the comment: I had tried/tested against 3.x branch and did not find the problem. Later realized that it was only again 2.7. Pushed in the changes and the tests. I shall the tests only in 3.x codeline. -- ___ Python tracker

[issue11862] urlparse.ParseResult to have meaningful __str__

2011-04-28 Thread Senthil Kumaran
Senthil Kumaran added the comment: Éric, ParseResult is a class which provides tuple for urlparse/unparse. People should hardly (/never) use ParseResult directly. The original poster's concern was to get something like geturl() from this class which was not suitable and it shou

[issue9035] os.path.ismount on windows doesn't support windows mount points

2011-04-28 Thread Senthil Kumaran
Senthil Kumaran added the comment: Sijin, please go ahead and submit a patch. No one is working on this at the moment. -- nosy: +markm ___ Python tracker <http://bugs.python.org/issue9

[issue11943] Add TLS-SRP (RFC 5054) support to ssl, _ssl, http, and urllib

2011-04-28 Thread Senthil Kumaran
Changes by Senthil Kumaran : -- nosy: +orsenthil ___ Python tracker <http://bugs.python.org/issue11943> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue10761] tarfile.extractall fails to overwrite symlinks

2011-04-29 Thread Senthil Kumaran
Senthil Kumaran added the comment: I had wrapped skipUnless decorator for the wrong test (test_extractall instead of test_extractall_symlinks) in the 3.x code. Corrected it and waiting for next bb reports. Thank you. -- ___ Python tracker <h

[issue10761] tarfile.extractall fails to overwrite symlinks

2011-04-29 Thread Senthil Kumaran
Senthil Kumaran added the comment: buildbots are green again. -- status: open -> closed ___ Python tracker <http://bugs.python.org/issue10761> ___ ___ Python-

[issue10946] bdist doesn’t pass --skip-build on to subcommands

2011-05-04 Thread Senthil Kumaran
Changes by Senthil Kumaran : -- nosy: +orsenthil ___ Python tracker <http://bugs.python.org/issue10946> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue11898] Sending binary data with a POST request in httplib can cause Unicode exceptions

2011-05-06 Thread Senthil Kumaran
Senthil Kumaran added the comment: Hello Bernhard, I tried to a POST of JPEG file, through urllib2 (which internally uses httplib) and goes through the code that you pointed out and I don't face any problem. I am able to POST binaries using httplib. I am also surpris

[issue3709] BaseHTTPRequestHandler innefficient when sending HTTP header

2011-05-09 Thread Senthil Kumaran
Senthil Kumaran added the comment: Added the flush_headers method and the test function. this issue can be closed now. Thanks, Andrew Schaaf. -- status: open -> closed ___ Python tracker <http://bugs.python.org/iss

[issue12039] test_logging: bad file descriptor on FreeBSD bot

2011-05-09 Thread Senthil Kumaran
Senthil Kumaran added the comment: I could reproduce the BadStatusLine exception using Vinay's server_test.py. I see that the exception is triggered by logging package when it is trying to http.client's getresponse() before it is ready. The previous commit 25298224cb25 was on h

[issue12039] test_logging: bad file descriptor on FreeBSD bot

2011-05-10 Thread Senthil Kumaran
Senthil Kumaran added the comment: On Tue, May 10, 2011 at 09:12:58AM +, Vinay Sajip wrote: > Either omitting the end_headers() call was always an error but > previously undetected, or the requirement to always call > end_headers() is new and this should be documented. I'm no

[issue12039] test_logging: bad file descriptor on FreeBSD bot

2011-05-10 Thread Senthil Kumaran
Senthil Kumaran added the comment: On Tue, May 10, 2011 at 02:06:48PM +, Vinay Sajip wrote: > @Senthil - are you planning to make the documentation change, or should I? I shall do it, Vinay. Thanks! -- ___ Python tracker &l

[issue12039] test_logging: bad file descriptor on FreeBSD bot

2011-05-11 Thread Senthil Kumaran
Senthil Kumaran added the comment: Hi Vinay, Normally, when one uses send_response() call, it is most often followed with (multiple) send_header() calls and I updated the documentation keeping that in mind. Just calling of send_response() without any send_header and end_headers was an

[issue11799] urllib HTTP authentication behavior with unrecognized auth method

2011-05-11 Thread Senthil Kumaran
Changes by Senthil Kumaran : -- resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker <http://bugs.python.or

[issue11968] wsgiref's wsgi application sample code does not work

2011-05-11 Thread Senthil Kumaran
Changes by Senthil Kumaran : -- resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed ___ Python tracker <http://bugs.python.or

[issue11898] Sending binary data with a POST request in httplib can cause Unicode exceptions

2011-05-15 Thread Senthil Kumaran
Senthil Kumaran added the comment: The bug was about sending Binary "data" via httplib. In the example you wrote, you are sending a unicode "url" and experiencing a failure for certain examples. In the 2.7, the urls should be str type, we don't have function to deal wi

[issue12088] tarfile.extractall fails to overwrite unresolved symlinks and hard links

2011-05-16 Thread Senthil Kumaran
Senthil Kumaran added the comment: I looked at your message and the patch, seems okay for the case of testing if the symlink is broken and performing the next steps. I shall commit it soon. -- assignee: -> orsenthil nosy: +orsenthil ___ Pyt

[issue12088] tarfile.extractall fails to overwrite unresolved symlinks and hard links

2011-05-16 Thread Senthil Kumaran
Senthil Kumaran added the comment: Committed the fix. Thank you, Scott. -- resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker <http://bugs.python.or

[issue11197] information leakage with SimpleHTTPServer

2011-05-16 Thread Senthil Kumaran
Changes by Senthil Kumaran : -- assignee: -> orsenthil nosy: +orsenthil ___ Python tracker <http://bugs.python.org/issue11197> ___ ___ Python-bugs-list mai

[issue6059] ctypes/uuid-related segmentation fault

2011-05-17 Thread Senthil Kumaran
Senthil Kumaran added the comment: neologix, that is right. Importing uuid before importing the other modules does not result in Seg Fault. Till the libc fix is available in Operating systems and as a result in CPython, this is probably the only way to go for. -- nosy: +orsenthil

[issue1006238] cross compile patch

2011-05-20 Thread Senthil Kumaran
Senthil Kumaran added the comment: hello wrobell , I see that issue3754 has patches for more recent line of code and issue 1597850 is related too. Would you like to test the patches in there? If successful, this feature can be pushed further (and considered) for inclusion. -- nosy

[issue1006238] cross compile patch

2011-05-20 Thread Senthil Kumaran
Senthil Kumaran added the comment: Code compatibility wise there is not much difference between Python3.2 and Python3.3. So you can do it for Python3.2 (in a bitbucket cpython branch) and it is found stable, there are good chances that it will be can be made in Python3.3 and future. I don&#

[issue12133] ResourceWarning in urllib.request

2011-05-21 Thread Senthil Kumaran
Senthil Kumaran added the comment: Hi Ezio, the connection can be closed via the finally call as you do in the patch. There are times when request object is re-used, but before the connection is made. It may also help to understand how the code in the packaging was invoking it. If you run

[issue9991] xmlrpc client ssl check faulty

2010-11-18 Thread Senthil Kumaran
Senthil Kumaran added the comment: Fixed in r86514 (py3k) and r86515 (release31-maint). -- assignee: -> orsenthil resolution: -> fixed stage: -> committed/rejected ___ Python tracker <http://bugs.python.o

[issue9991] xmlrpc client ssl check faulty

2010-11-18 Thread Senthil Kumaran
Changes by Senthil Kumaran : -- status: open -> closed ___ Python tracker <http://bugs.python.org/issue9991> ___ ___ Python-bugs-list mailing list Unsubscri

[issue2244] urllib and urllib2 decode userinfo multiple times

2010-11-18 Thread Senthil Kumaran
Senthil Kumaran added the comment: Fixed in r86520 (py3k) and r86522 (release31-maint). unquote happens at the first level inside Request class, _parse method. Shall port to py2.7. -- nosy: -BreamoreBoy resolution: -> fixed stage: patch review -> committed/re

[issue9991] xmlrpc client ssl check faulty

2010-11-18 Thread Senthil Kumaran
Senthil Kumaran added the comment: r86523(py3k) and r86524(release31-maint) -- ___ Python tracker <http://bugs.python.org/issue9991> ___ ___ Python-bugs-list m

[issue2244] urllib and urllib2 decode userinfo multiple times

2010-11-20 Thread Senthil Kumaran
Senthil Kumaran added the comment: back-ported to release27-maint in r86554. -- status: open -> closed ___ Python tracker <http://bugs.python.org/iss

[issue10231] SimpleHTTPRequestHandler directory bugs

2010-11-20 Thread Senthil Kumaran
Senthil Kumaran added the comment: I have doubts on the validity of this bug itself. - First is, query and fragment are usually for the file being served from the webserver, not on the directories. If there are characters such as '?' and '#' in the directory names, which

[issue10377] cProfile incorrectly labels its output

2010-11-20 Thread Senthil Kumaran
Senthil Kumaran added the comment: Fixed in r86580 (py3k), r86581 and r86582. -- components: +Library (Lib) resolution: -> fixed status: open -> closed ___ Python tracker <http://bugs.python.org/i

[issue10319] SocketServer.TCPServer truncates responses on close (in some situations)

2010-11-20 Thread Senthil Kumaran
Senthil Kumaran added the comment: BaseHTTPServer documentation explains that "Usually, this module isn’t used directly, but is used as a basis for building functioning Web servers". Methods are usually subclassed with desirable behaviors customized. If you are using SocketServ

[issue1520831] urrlib2 max_redirections=0 disables redirects

2010-11-20 Thread Senthil Kumaran
Senthil Kumaran added the comment: What should it do? OP expected that it print the redirected url. I don't think that's helpful by setting max_redirections to 0, when it can be achieved in other ways. Also, max_redirections is not exposed (as a parameter or arg) or a documented,

[issue10231] SimpleHTTPRequestHandler directory bugs

2010-11-21 Thread Senthil Kumaran
Senthil Kumaran added the comment: On Sat, Nov 20, 2010 at 07:09:58PM +, Jeremy Thurgood wrote: > There are two separate things here: the URL and the filesystem path. > The bug is that the fragment and query parameters are stripped in > translate_path(), but are *not* stri

[issue3709] BaseHTTPRequestHandler innefficient when sending HTTP header

2010-11-21 Thread Senthil Kumaran
Senthil Kumaran added the comment: Fixed this revision 86640. - Even though this is an internal optimization,I don't think back-porting is a good idea, because it changes the behavior of certain methods like send_header and end_headers - Added the Documentation and other test scenario

[issue10231] SimpleHTTPRequestHandler directory bugs

2010-11-21 Thread Senthil Kumaran
Senthil Kumaran added the comment: On Sun, Nov 21, 2010 at 12:12:08PM +, Jeremy Thurgood wrote: > I see your point now, but I don't agree with it completely. It seems > reasonable to allow query parameters to specify things like sort > order for a directory listing or have

[issue3709] BaseHTTPRequestHandler innefficient when sending HTTP header

2010-11-21 Thread Senthil Kumaran
Senthil Kumaran added the comment: On Sun, Nov 21, 2010 at 03:15:06PM +, R. David Murray wrote: > Senthil, I didn't clearly express my concern about > send_response_only. It doesn't look to me like, with buffering in > place, that it *should* write directly, it looks to

[issue4493] urllib2 doesn't always supply / where URI path component is empty

2010-11-21 Thread Senthil Kumaran
Senthil Kumaran added the comment: Fixed it in r86676 (py3k), r86677 ( release31-maint) and r86678(release27-maint). Wes: I fixed it at the much higher level in the urlparse itself, so that the fixed url is sent to the httplib. In issue2464, John had pointed out that according to STD 66

[issue1675455] Use getaddrinfo() in urllib2.py for IPv6 support

2010-11-22 Thread Senthil Kumaran
Changes by Senthil Kumaran : -- assignee: facundobatista -> orsenthil nosy: -BreamoreBoy ___ Python tracker <http://bugs.python.org/issue1675455> ___ ___ Py

[issue10483] http.server - what is executable on Windows

2010-11-22 Thread Senthil Kumaran
Changes by Senthil Kumaran : -- nosy: +orsenthil ___ Python tracker <http://bugs.python.org/issue10483> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue10510] distutils.command.upload/register HTTP message headers: bad line termination

2010-11-23 Thread Senthil Kumaran
Senthil Kumaran added the comment: I think, it is better that distutils.command.register and distutils.command.upload use CRLF as the line terminator for header values. It just helps in many cases, we can safely side by this case, but not relying LR or CR only may not be always possible

[issue10525] Added mouse and colour support to Game of Life curses demo

2010-11-24 Thread Senthil Kumaran
Senthil Kumaran added the comment: On Thu, Nov 25, 2010 at 05:44:21AM +, Dafydd Crosby wrote: > I created a patch that adds those two wishlist items. Given that > mouse support and the use of curses.flash() are missing from the > demo programs, I think it's a bit

[issue1508475] transparent gzip compression in urllib

2010-11-25 Thread Senthil Kumaran
Senthil Kumaran added the comment: The transparent gzip Content-Encoding support should be done at the http.client level code. Before adding this feature, a question needs to be sorted out. If we support the transparent gzip and wrap the file pointer to a GzipFile filepointer, should reset

[issue1508475] transparent gzip compression in urllib

2010-11-25 Thread Senthil Kumaran
Senthil Kumaran added the comment: Patch for py3k. -- stage: unit test needed -> patch review Added file: http://bugs.python.org/file19811/issue1508475.diff ___ Python tracker <http://bugs.python.org/issue1

[issue10122] Documentation typo fix and a side question

2010-11-25 Thread Senthil Kumaran
Senthil Kumaran added the comment: Boštjan, it is fixed. The change will reflect when the docs get served from the updated version. Also, Georg will take care of merging it to other branches. -- nosy: +orsenthil ___ Python tracker <h

[issue10362] AttributeError: addinfourl instance has no attribute 'tell'

2010-11-25 Thread Senthil Kumaran
Senthil Kumaran added the comment: If you want to quickly solve this, do like this: import urllib import tarfile tarfile.open(urllib.urlretrieve('http://plugins.supybot-fr.tk/GoodFrench.tar')[0], mode='r:') # Works The problem is tarfile is expecting a "file-objec

[issue10525] Added mouse and colour support to Game of Life curses demo

2010-11-25 Thread Senthil Kumaran
Senthil Kumaran added the comment: Committed in r86750. Thank you! -- resolution: -> fixed stage: -> committed/rejected status: open -> closed versions: +Python 3.2 ___ Python tracker <http://bugs.python.or

[issue10441] some stdlib modules need to be updated to handle SSL certificate validation

2010-11-25 Thread Senthil Kumaran
Changes by Senthil Kumaran : -- nosy: +orsenthil ___ Python tracker <http://bugs.python.org/issue10441> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue10442] Please by default enforce ssl certificate checking in modules that can have user's which *depend* on the security of the ssl connection.

2010-11-25 Thread Senthil Kumaran
Changes by Senthil Kumaran : -- nosy: +orsenthil ___ Python tracker <http://bugs.python.org/issue10442> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue3243] Support iterable bodies in httplib

2010-11-27 Thread Senthil Kumaran
Changes by Senthil Kumaran : -- assignee: jhylton -> orsenthil ___ Python tracker <http://bugs.python.org/issue3243> ___ ___ Python-bugs-list mailing list Un

[issue10500] Palevo.DZ worm msix86 installer 3.x installer

2010-11-28 Thread Senthil Kumaran
Senthil Kumaran added the comment: No problems when I downloaded and installed on Windows XP. I scanned using the Symantec EndPoint protection and no threats found. -- nosy: +orsenthil ___ Python tracker <http://bugs.python.org/issue10

[issue10559] NameError in tutorial/interpreter

2010-11-29 Thread Senthil Kumaran
Senthil Kumaran added the comment: On Sun, Nov 28, 2010 at 05:48:20AM +, Éric Araujo wrote: > I’m not committing directly because I’d like feedback: Is the > wording okay for the beginning of the tutorial? It seems fine and useful. Please go ahead. -- nosy: +ors

[issue3243] Support iterable bodies in httplib

2010-11-29 Thread Senthil Kumaran
Senthil Kumaran added the comment: xuanji, the issue you stumbled upon was just fixed by Raymond for the report Issue10565. -- ___ Python tracker <http://bugs.python.org/issue3

[issue10561] The pdb command 'clear bpnumber' may delete more than one breakpoint

2010-11-29 Thread Senthil Kumaran
Senthil Kumaran added the comment: Fixed in r86861. Xavier, I noticed that pdb.py itself was not calling the proper method. Added the tests to the patch. Thanks. BTW, please provide patches against py3k as that is development version. -- assignee: -> orsenthil nosy: +orsent

[issue10561] The pdb command 'clear bpnumber' may delete more than one breakpoint

2010-11-29 Thread Senthil Kumaran
Senthil Kumaran added the comment: r86862 - release31-maint and r86863 - release27-maint. -- status: open -> closed versions: +Python 2.7, Python 3.1 ___ Python tracker <http://bugs.python.org/issu

[issue9639] urllib2's AbstractBasicAuthHandler is limited to 6 requests

2010-11-30 Thread Senthil Kumaran
Senthil Kumaran added the comment: Ouch. My mistake. Had not realize then, that code that actually broke things was merged in 2.6.x and it had to be fixed too. :( -- ___ Python tracker <http://bugs.python.org/issue9

[issue3243] Support iterable bodies in httplib

2010-11-30 Thread Senthil Kumaran
Senthil Kumaran added the comment: Xuanji, a wording which does convey the approximate meaning is fine. I think, the Exception error messages will help the people based on the Context. - Lets have the ValueError raised from the urllib/request.py. Changing it to isinstance(data

[issue3243] Support iterable bodies in httplib

2010-12-01 Thread Senthil Kumaran
Senthil Kumaran added the comment: Give a try to this minor variation of the patch with tests added and let me know your review comments. -- Added file: http://bugs.python.org/file19890/Issue3243-4.patch ___ Python tracker <http://bugs.python.

[issue3243] Support iterable bodies in httplib

2010-12-01 Thread Senthil Kumaran
Senthil Kumaran added the comment: On Wed, Dec 01, 2010 at 10:06:25AM +, Antoine Pitrou wrote: > +try: > + self.sock.sendall(data) > > Indentation problem here. I could notice it now. Shall fix it. > > +if i

[issue3243] Support iterable bodies in httplib

2010-12-01 Thread Senthil Kumaran
Senthil Kumaran added the comment: On Wed, Dec 01, 2010 at 02:56:56PM +, Xuanji Li wrote: > orsenthil: Hi, i don't quite understand why iter() needs to be > called explicitly on data? As I understand it, if data is an > iterable then you can use a for loop on it directly. >

Re: [issue3243] Support iterable bodies in httplib

2010-12-01 Thread Senthil Kumaran
On Wed, Dec 01, 2010 at 05:08:26PM +, Antoine Pitrou wrote: > Antoine Pitrou added the comment: > > if not request.has_header('Content-length'): > > if (not hasattr(data, '__read__') and > > What is __read__ supposed to be? I don't think is required. The previous 2.x version patch was d

[issue3243] Support iterable bodies in httplib

2010-12-01 Thread Senthil Kumaran
Senthil Kumaran added the comment: On Thu, Dec 02, 2010 at 02:19:10AM +, Senthil Kumaran wrote: > On Wed, Dec 01, 2010 at 10:06:25AM +, Antoine Pitrou wrote: > > +try: > > + self.sock.sendall(data) > > > > Indentation problem here. >

[issue3243] Support iterable bodies in httplib

2010-12-01 Thread Senthil Kumaran
Senthil Kumaran added the comment: Updated patch after correcting the mistake (bytes vs str) in the previous one. -- Added file: http://bugs.python.org/file19900/Issue3243-6.patch ___ Python tracker <http://bugs.python.org/issue3

Re: [issue3243] Support iterable bodies in httplib

2010-12-01 Thread Senthil Kumaran
On Thu, Dec 02, 2010 at 03:08:55AM +, Xuanji Li wrote: > > req = Request("http://example.com/";, "") That should be: > req = Request("http://example.com/";, b"") I updated some of those in the latest updated patch. ___ Python-bugs-list mailing li

[issue3243] Support iterable bodies in httplib

2010-12-01 Thread Senthil Kumaran
Senthil Kumaran added the comment: On Thu, Dec 02, 2010 at 03:16:53AM +, Xuanji Li wrote: > And my version too... > +if hasattr(data, '__len__') and not len(data): +request.add_unredirected_header('Content-length', '0&#

[issue3243] Support iterable bodies in httplib

2010-12-01 Thread Senthil Kumaran
Senthil Kumaran added the comment: On Thu, Dec 02, 2010 at 03:20:05AM +, Xuanji Li wrote: > Actually I don't think you can go around changing test_urllib2.py, > they are after all regression tests... and surely some users will > send "" as data. > Think

[issue3243] Support iterable bodies in httplib

2010-12-01 Thread Senthil Kumaran
Senthil Kumaran added the comment: Glaring at my mistakes. > There was wrong examples in the test_urllib2 which I just corrected. There were.. > Expect for the difference in (it = iter(data) - Which I am seeking Except for ... -- ___

[issue10577] (Fancy) URL opener stuck when trying to open redirected url

2010-12-02 Thread Senthil Kumaran
Senthil Kumaran added the comment: On Mon, Nov 29, 2010 at 05:51:35PM +, Antoine Pitrou wrote: > However, urllib.request.urlopen() works fine in this case, so > perhaps this advocates for deprecating the old stuff? Senthil? Yes. It should be deprecated.. I created a branch for

[issue7904] urlparse.urlsplit mishandles novel schemes

2010-12-04 Thread Senthil Kumaran
Senthil Kumaran added the comment: On Fri, Dec 03, 2010 at 10:33:50PM +, Fred L. Drake, Jr. wrote: > Though msg104261 suggests this change be documented in NEWS.txt, it > doesn't appear to have made it. Better late than never. I just added the NEWS in r87014 (py3k) ,r87015(rele

[issue8194] Incompatible API change in xmlrpclib.Transport.parse_response() of Python 2.7 and 3.2

2010-12-06 Thread Senthil Kumaran
Senthil Kumaran added the comment: I think, the file-like object behavior can be brought back. No need to handling gzipped file object in the patch, if the earlier behavior was not handling it. There is a separate issue to keep track of handling gzip encoded content in httplib. I shall try

[issue8194] Incompatible API change in xmlrpclib.Transport.parse_response() of Python 2.7 and 3.2

2010-12-06 Thread Senthil Kumaran
Senthil Kumaran added the comment: Instead of tossing around the GzipDecoding code from one method to another (which would in turn change the return value from those methods), I thought is appropriate to do a change in parse_response itself, so that it verifies that it is a http response

[issue8194] Incompatible API change in xmlrpclib.Transport.parse_response() of Python 2.7 and 3.2

2010-12-06 Thread Senthil Kumaran
Senthil Kumaran added the comment: This issue is not applicable to release31-maint. -- resolution: -> fixed versions: -Python 3.1 ___ Python tracker <http://bugs.python.org/iss

[issue8194] Incompatible API change in xmlrpclib.Transport.parse_response() of Python 2.7 and 3.2

2010-12-08 Thread Senthil Kumaran
Senthil Kumaran added the comment: py3k fixed in r87128 -- ___ Python tracker <http://bugs.python.org/issue8194> ___ ___ Python-bugs-list mailing list Unsub

[issue10671] urllib2 redirect to another host doesn't work

2010-12-10 Thread Senthil Kumaran
Senthil Kumaran added the comment: Can you point me to your code and error traceback that was observed and some details about server which gave 301/302 Redirect as what was the hostname and where did it redirect to? I don't see the code changes that you provided in the patch in the l

[issue10116] Sporadic failures in test_urllibnet

2010-12-14 Thread Senthil Kumaran
Senthil Kumaran added the comment: On Sat, Nov 13, 2010 at 01:17:47PM +, Antoine Pitrou wrote: > There are still sporadic failures such as: I have made a small change for this in r87260. -- ___ Python tracker <http://bugs.python.org/issu

[issue5625] test_urllib2 fails - urlopen error file not on local host

2010-12-15 Thread Senthil Kumaran
Senthil Kumaran added the comment: Zsolt, The change in the urllib2 was at a place where tuple of all local ips were required. In test_urllib2, which testcase failed? Also, can you make this change and see if this helps in your case. - localaddr = socket.gethostbyname

[issue5625] test_urllib2 fails - urlopen error file not on local host

2010-12-15 Thread Senthil Kumaran
Senthil Kumaran added the comment: +localaddr = socket.gethostbyname_ex(socket.gethostname())[2][0] May not be a generic solution, because in another system the other ip could be first in the list. Because the failure was in the test_file, which was basically exercising file

[issue6791] httplib read status memory usage

2010-12-15 Thread Senthil Kumaran
Senthil Kumaran added the comment: I just read the whole discussion and it seems that code was in place so that client can tolerant of a BAD HTTP 0.9 Server response. http://www.w3.org/Protocols/HTTP/OldServers.html Given that issue10711 talks about removing HTTP/0.9 support (+1 to that

[issue10711] Rip out HTTP 0.9 support

2010-12-16 Thread Senthil Kumaran
Senthil Kumaran added the comment: +1 removing HTTP 0.9, and falling back to HTTP 1.0 behavior where ever it was HTTP 0.9. Removing support for response without status (which was acceptable by 0.9) is fine. I reviewed the patch too and it seems good to go

[issue5625] test_urllib2 fails - urlopen error file not on local host

2010-12-16 Thread Senthil Kumaran
Senthil Kumaran added the comment: Well, ignore my comment on order of ip addresses. It definitely does not matter in this case for test_urllib2. However, readability does matter again as per my previous explanation, since http://localhost/ was being exercised in the test_file

[issue6791] httplib read status memory usage

2010-12-16 Thread Senthil Kumaran
Senthil Kumaran added the comment: On Thu, Dec 16, 2010 at 01:18:30PM +, Antoine Pitrou wrote: > Well, removing 0.9 support doesn't make this obsolete, does it? It does. Doesn't it? Because I saw in your patch that you fall back on HTTP 1.0 behaviour when the server does

[issue6791] httplib read status memory usage

2010-12-16 Thread Senthil Kumaran
Senthil Kumaran added the comment: On Thu, Dec 16, 2010 at 02:02:10PM +, Antoine Pitrou wrote: > I don't think you understood the issue here. Calling readline() without > a maximum length means the process memory potentially explodes, if the > server sends gigabytes of data wi

<    2   3   4   5   6   7   8   9   10   11   >