[issue34511] I suggest to add documentation about "method" parameter of urllib.request.Request class

2018-08-27 Thread harobed
harobed added the comment:  Mariatta Wijaya Thanks. Sorry for my bad issue. -- ___ Python tracker <https://bugs.python.org/issue34511> ___ ___ Python-bug

[issue34511] I suggest to add documentation about "method" parameter of urllib.request.Request class

2018-08-26 Thread harobed
New submission from harobed : Hi, I see "method=None" parameter in urllib.request.Request constructor (https://github.com/python/cpython/blob/master/Lib/urllib/request.py#L327) but I don't see "method" parameter in documentation: https://docs.python.org/3.2/library

[issue12319] [http.client] HTTPConnection.putrequest not support chunked Transfer-Encodings to send data

2011-06-15 Thread harobed
harobed steph...@harobed.org added the comment: Now I'm confused. Per the HTTP specification, GET requests don't have a body, so Transfer-Encoding: chunked doesn't apply to them. Are you sure you don't confuse with the response that the server sends? In responses, Transfer-Encoding: chunked

[issue12327] in HTTPConnection the are len(body) and TypeError catch exception to detect if body is file like object, this hack do work with StringIO object

2011-06-15 Thread harobed
harobed steph...@harobed.org added the comment: But if the len information is available, why not return it? I use HTTPConnection to simulate Apple Finder WebDAV client. When this WebDAV client do PUT request, it transmit data in chunked encoding mode and not set Content-Length HTTP field. Do

[issue12319] [http.client] HTTPConnection.putrequest not support chunked Transfer-Encodings to send data

2011-06-13 Thread harobed
harobed steph...@harobed.org added the comment: I use http.client in WebDAV client. Mac OS X Finder WebDAV client perform all his request in chunk mode : PUT and GET. Here, I use http.client to simulate Mac OS X Finder WebDAV client. Regards, Stephane

[issue12327] in HTTPConnection the are len(body) and TypeError catch exception to detect if body is file like object, this hack do work with StringIO object

2011-06-13 Thread harobed
New submission from harobed steph...@harobed.org: Hi, in httplib.HTTPConnection._send_request (Python 2.6) in httplib.HTTPConnection._set_content_length (Python 2.7) and http.client.HTTPConnection._set_content_length (Python 3.3) there are something like that : try: thelen

[issue8260] When I use codecs.open(...) and f.readline() follow up by f.read() return bad result

2011-06-13 Thread harobed
harobed steph...@harobed.org added the comment: Up, I think this patch isn't applied in Python 3.3a0. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8260

[issue12327] in HTTPConnection the are len(body) and TypeError catch exception to detect if body is file like object, this hack do work with StringIO object

2011-06-13 Thread harobed
harobed steph...@harobed.org added the comment: fileno and stat won't work on a StringIO object. So StringIO would need to be special cased to call getvalue. Yes, but it isn't important in chunk transfer encoding. -- ___ Python tracker rep

[issue12319] [http.client] HTTPConnection.putrequest not support chunked Transfer-Encodings to send data

2011-06-12 Thread harobed
New submission from harobed steph...@harobed.org: Hi, HTTPConnection.putrequest not support chunked Transfer-Encodings to send data. Exemple, I can't do PUT request with chunk transfert. Regards, Stephane -- components: Library (Lib) messages: 138203 nosy: harobed priority: normal

[issue12315] Improve http.client.HTTPResponse.read documentation

2011-06-10 Thread harobed
New submission from harobed steph...@harobed.org: This is a patch to improve http.client.HTTPResponse.read documentation. What do you think about ? -- assignee: docs@python components: Documentation files: improve_http.client_documentation.patch keywords: patch messages: 138129 nosy

[issue9017] doctest option flag to enable/disable some chunk of doctests?

2010-10-06 Thread harobed
harobed steph...@harobed.org added the comment: doctest.SKIP is like #doctest: +DISABLE but he don't have #doctest: +ENABLE feature. doctest.SKIP disable all the bottom of test, DISABLE/ENABLE can SKIP only one part of test. Regards, Stephane

[issue9017] doctest option flag to enable/disable some chunk of doctests?

2010-10-06 Thread harobed
harobed steph...@harobed.org added the comment: Ok, option +SKIP and -SKIP work well, look test.py file I need maybe improve the documentation with an +SKIP and -SKIP example ? Documentation section about SKIP option is here : http://docs.python.org/library/doctest.html?highlight=doctest.skip

[issue9017] What do you think about an Option Flags to enable/disable some chunk of doctest file ?

2010-06-17 Thread harobed
New submission from harobed steph...@harobed.org: Hi, in some doctest, I need to stop doctest from a position because the following test is a draft, not implemented. I dream something like this : test_a() True test_b() False #doctest: +DISABLE test_c() True

[issue8260] When I use codecs.open(...) and f.readline() follow up by f.read() return bad result

2010-03-29 Thread harobed
New submission from harobed steph...@harobed.org: This is an example, last assert return an error : f = open('data.txt', 'w') f.write(line 1 line 2 line 3 line 4 line 5 line 6 line 7 line 8 line 9 line 10 line 11 ) f.close() f = open('data.txt', 'r') assert f.readline() == 'line 1\n' assert

[issue5598] paths argument missing in DocFileSuite documentation

2009-03-29 Thread harobed
New submission from harobed steph...@harobed.org: This is DocFileSuite function source code (http://svn.python.org/view/python/trunk/Lib/doctest.py) : :: def DocFileSuite(*paths, **kw): A unittest suite for one or more doctest files. The path to each doctest file is given