[issue10278] add time.wallclock() method

2011-11-25 Thread Martin Panter
Changes by Martin Panter vadmium...@gmail.com: -- nosy: +vadmium ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10278 ___ ___ Python-bugs-list

[issue12922] StringIO and seek()

2011-12-21 Thread Martin Panter
Changes by Martin Panter vadmium...@gmail.com: -- nosy: +vadmium ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12922 ___ ___ Python-bugs-list

[issue4806] Function calls taking a generator as star argument can mask TypeErrors in the generator

2012-01-11 Thread Martin Panter
Changes by Martin Panter vadmium...@gmail.com: -- nosy: +vadmium ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4806 ___ ___ Python-bugs-list

[issue11944] Function call with * and generator hide exception raised by generator.

2012-01-11 Thread Martin Panter
Changes by Martin Panter vadmium...@gmail.com: -- nosy: +vadmium ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11944 ___ ___ Python-bugs-list

[issue4806] Function calls taking a generator as star argument can mask TypeErrors in the generator

2012-01-11 Thread Martin Panter
Martin Panter vadmium...@gmail.com added the comment: I haven’t tried to understand what the patches do, but Issue 5218 looks like a very similar problem with a patch including a test case. -- ___ Python tracker rep...@bugs.python.org http

[issue5218] Check for tp_iter in ceval:ext_do_call before overriding exception message

2012-01-11 Thread Martin Panter
Martin Panter vadmium...@gmail.com added the comment: See also Issue 4806 -- nosy: +vadmium ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5218

[issue16809] Tk 8.6.0 introduces TypeError. (Tk 8.5.13 works)

2013-01-31 Thread Martin Panter
Changes by Martin Panter vadmium...@gmail.com: -- nosy: +vadmium ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16809 ___ ___ Python-bugs-list

[issue11397] os.path.realpath() may produce incorrect results

2011-08-20 Thread Martin Panter
Martin Panter vadmium...@gmail.com added the comment: Another infinite loop that isn't caught in Python 3.2.1: With the symbolic link link = link/inside a readlink(link) call will keep looping. Anyhow, the proposed solution in issue11397_py32_2.patch does not account for paths

[issue12791] Yield leaks exception being handled as garbage

2011-08-20 Thread Martin Panter
New submission from Martin Panter vadmium...@gmail.com: See attached leaky_generator.py demo. Python doesn't appear to delete the exception variable if an exception is thrown back into it (via throw, close or by deleting it). The result is a reference cycle that needs garbage collecting

[issue3982] support .format for bytes

2012-04-15 Thread Martin Panter
Changes by Martin Panter vadmium...@gmail.com: -- nosy: +vadmium ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3982 ___ ___ Python-bugs-list

[issue14653] Improve mktime_tz to use calendar.timegm instead of time.mktime

2012-05-09 Thread Martin Panter
Changes by Martin Panter vadmium...@gmail.com: -- nosy: +vadmium ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14653 ___ ___ Python-bugs-list

[issue15125] argparse: positional arguments containing - in name not handled well

2013-08-24 Thread Martin Panter
Changes by Martin Panter vadmium...@gmail.com: -- nosy: +vadmium ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15125 ___ ___ Python-bugs-list

[issue17974] Migrate unittest to argparse

2013-08-24 Thread Martin Panter
Changes by Martin Panter vadmium...@gmail.com: -- nosy: +vadmium ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17974 ___ ___ Python-bugs-list

[issue15112] argparse: nargs='*' positional argument doesn't accept any items if preceded by an option and another positional

2013-08-24 Thread Martin Panter
Martin Panter added the comment: I was surprised to discover that “option straddling” doesn’t work this way with nargs=*. It seems to work fine with most other kinds of positional arguments I have tried, and I imagine that this was by design rather than accident. Many Gnu CLI programs also

[issue14191] argparse doesn't allow optionals within positionals

2013-08-24 Thread Martin Panter
Martin Panter added the comment: It sounds like this bug might cover Issue 15112, which is only concerned with options between different positional parameters. -- nosy: +vadmium ___ Python tracker rep...@bugs.python.org http://bugs.python.org

[issue1944] Documentation for PyUnicode_AsString (et al.) missing.

2013-08-26 Thread Martin Panter
Changes by Martin Panter vadmium...@gmail.com: -- nosy: +vadmium ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1944 ___ ___ Python-bugs-list

[issue18828] urljoin behaves differently with custom and standard schemas

2013-08-30 Thread Martin Panter
Martin Panter added the comment: Similarly, I expected this to return rtmp://host/app?auth=token: urljoin(rtmp://host/app, ?auth=token) I'm not sure adding everybody's custom scheme to a hard-coded whitelist is the best way to do solve this. Below I have identified some other schemes

[issue1500504] Alternate RFC 3986 compliant URI parsing module

2013-08-30 Thread Martin Panter
Changes by Martin Panter vadmium...@gmail.com: -- nosy: +vadmium ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1500504 ___ ___ Python-bugs-list

[issue18335] Add textwrap.dedent, .indent, as str methods.

2013-08-31 Thread Martin Panter
Martin Panter added the comment: If this goes ahead, would a bytes.dedent() method be also considered? I recently discovered that textwrap.dedent() does not work on bytes() in Python 3. I would have used it for the contents of an input file in a test case. For the record there’s an older

[issue11344] Add os.path.splitpath(path) function

2013-09-14 Thread Martin Panter
Changes by Martin Panter vadmium...@gmail.com: -- nosy: +vadmium ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11344 ___ ___ Python-bugs-list

[issue19176] DeprecationWarning for doctype() method when subclassing _elementtree.XMLParser

2013-10-06 Thread Martin Panter
New submission from Martin Panter: I am using the C version of Element Tree via the main ElementTree module. I have subclassed XMLParser, and created my own target object. I am not that interested in XML doctypes, but the following simplified code raises a DeprecationWarning: $ python3.3

[issue12350] Improve stat_result.st_blocks and st_blksize documentation

2013-10-06 Thread Martin Panter
Martin Panter added the comment: What happened to this patch? The current documentation is very misleading because the descriptions of the two block fields appear to complement each other. -- nosy: +vadmium ___ Python tracker rep...@bugs.python.org

[issue14007] xml.etree.ElementTree - XMLParser and TreeBuilder's doctype() method missing

2013-10-28 Thread Martin Panter
Martin Panter added the comment: There is an issue in Python 2.7 (and 3.2 if that matters) with the DeprecationWarning for the doctype() method being triggered internally. It is a bit different from this issue but I think a solution has already been committed for 3.3, and the commit message

[issue14007] xml.etree.ElementTree - XMLParser and TreeBuilder's doctype() method missing

2013-10-28 Thread Martin Panter
Martin Panter added the comment: The best way to work around it for me is just to ignore the warning. It doesn’t really worry me that much, I only noticed it while porting a program to Python 3 anyway. So if you don’t want to touch the 2.7 branch I can live

[issue15873] datetime: add ability to parse RFC 3339 dates and times

2013-10-30 Thread Martin Panter
Changes by Martin Panter vadmium...@gmail.com: -- nosy: +vadmium ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15873 ___ ___ Python-bugs-list

[issue3566] httplib persistent connections violate MUST in RFC2616 sec 8.1.4.

2013-10-31 Thread Martin Panter
Changes by Martin Panter vadmium...@gmail.com: -- nosy: +vadmium ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3566 ___ ___ Python-bugs-list

[issue9740] Support for HTTP 1.1 persistent connections throughout the standard library

2013-10-31 Thread Martin Panter
Martin Panter added the comment: I wrote a basic “urllib.request” handler class that I have been using for HTTP persistent connections. It is called PersistentConnectionHandler; see https://github.com/vadmium/python-iview/blob/80dc1b4/iview/hds.py#L442 I am happy for this to be used

[issue9951] introduce bytes.hex method

2013-05-19 Thread Martin Panter
Changes by Martin Panter vadmium...@gmail.com: -- nosy: +vadmium ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9951 ___ ___ Python-bugs-list

[issue8402] Add a function to escape metacharacters in glob/fnmatch

2013-06-13 Thread Martin Panter
Changes by Martin Panter vadmium...@gmail.com: -- nosy: +vadmium ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8402 ___ ___ Python-bugs-list

[issue15955] gzip, bz2, lzma: add option to limit output size

2013-06-17 Thread Martin Panter
Changes by Martin Panter vadmium...@gmail.com: -- nosy: +vadmium ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15955 ___ ___ Python-bugs-list

[issue16043] xmlrpc: gzip_decode has unlimited read()

2013-06-17 Thread Martin Panter
Changes by Martin Panter vadmium...@gmail.com: -- nosy: +vadmium ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16043 ___ ___ Python-bugs-list

[issue17005] Add a topological sort algorithm

2013-06-17 Thread Martin Panter
Changes by Martin Panter vadmium...@gmail.com: -- nosy: +vadmium ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17005 ___ ___ Python-bugs-list

[issue16901] In http.cookiejar.FileCookieJar() the .load() and .revert() methods don't work

2013-06-18 Thread Martin Panter
Changes by Martin Panter vadmium...@gmail.com: -- nosy: +vadmium ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16901 ___ ___ Python-bugs-list

[issue9740] Support for HTTP 1.1 persistent connections throughout the standard library

2013-06-18 Thread Martin Panter
Changes by Martin Panter vadmium...@gmail.com: -- nosy: +vadmium ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9740 ___ ___ Python-bugs-list

[issue6181] Tkinter.Listbox several minor issues

2013-06-30 Thread Martin Panter
Changes by Martin Panter vadmium...@gmail.com: -- nosy: +vadmium ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6181 ___ ___ Python-bugs-list

[issue3132] implement PEP 3118 struct changes

2012-10-26 Thread Martin Panter
Changes by Martin Panter vadmium...@gmail.com: -- nosy: +vadmium ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3132 ___ ___ Python-bugs-list

[issue2909] struct.Struct.unpack to return a namedtuple for easier attribute access

2012-10-26 Thread Martin Panter
Changes by Martin Panter vadmium...@gmail.com: -- nosy: +vadmium ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2909 ___ ___ Python-bugs-list

[issue16349] Document whether it's safe to use bytes for struct format string

2012-10-28 Thread Martin Panter
Martin Panter added the comment: Also it would be nice to clarify if struct.Struct.format is meant to be a byte string. Reading the documentation and examples I expected a character string. It was an issue for me when embedding one structure within another: HSF_VOL_DESC = Struct( B 5s B

[issue13238] Add shell command helpers to subprocess module

2012-11-02 Thread Martin Panter
Changes by Martin Panter vadmium...@gmail.com: -- nosy: +vadmium ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13238 ___ ___ Python-bugs-list

[issue8604] Adding an atomic FS write API

2012-11-02 Thread Martin Panter
Changes by Martin Panter vadmium...@gmail.com: -- nosy: +vadmium ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8604 ___ ___ Python-bugs-list

[issue7317] Display full tracebacks when an error occurs asynchronously

2012-11-02 Thread Martin Panter
Changes by Martin Panter vadmium...@gmail.com: -- nosy: +vadmium ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7317 ___ ___ Python-bugs-list

[issue2927] expose html.parser.unescape

2012-11-27 Thread Martin Panter
Changes by Martin Panter vadmium...@gmail.com: -- nosy: +vadmium ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2927 ___ ___ Python-bugs-list

[issue16549] regression: -m json.tool module is broken

2012-11-27 Thread Martin Panter
Changes by Martin Panter vadmium...@gmail.com: -- nosy: +vadmium ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16549 ___ ___ Python-bugs-list

[issue19456] ntpath doesn't join paths correctly when a drive is present

2013-11-01 Thread Martin Panter
Changes by Martin Panter vadmium...@gmail.com: -- nosy: +vadmium ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19456 ___ ___ Python-bugs-list

[issue19411] binascii.hexlify docs say it returns a string (it returns bytes)

2013-11-01 Thread Martin Panter
Changes by Martin Panter vadmium...@gmail.com: -- nosy: +vadmium ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19411 ___ ___ Python-bugs-list

[issue13637] binascii.a2b_* functions could accept unicode strings

2013-11-04 Thread Martin Panter
Martin Panter added the comment: The a2b_qp() function also documents a byte string restriction for 3.2, and now 3.3 also seems to support ASCII-compatible text strings. Maybe the documentation should reflect this also? -- nosy: +vadmium ___ Python

[issue19524] ResourceWarning when urlopen() forgets the HTTPConnection object

2013-11-07 Thread Martin Panter
New submission from Martin Panter: The AbstractHTTPHandler.do_open() method creates a HTTPConnection object but does not save it anywhere. This means a ResourceWarning is eventually triggered, at least when the HTTP server leaves the the connection open. Demonstration code: from

[issue19251] bitwise ops for bytes of equal length

2013-11-07 Thread Martin Panter
Changes by Martin Panter vadmium...@gmail.com: -- nosy: +vadmium ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19251 ___ ___ Python-bugs-list

[issue17823] 2to3 fixers for missing codecs

2013-11-07 Thread Martin Panter
Changes by Martin Panter vadmium...@gmail.com: -- nosy: +vadmium ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17823 ___ ___ Python-bugs-list

[issue3244] multipart/form-data encoding

2013-11-07 Thread Martin Panter
Changes by Martin Panter vadmium...@gmail.com: -- nosy: +vadmium ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3244 ___ ___ Python-bugs-list

[issue11245] Implementation of IMAP IDLE in imaplib?

2013-11-07 Thread Martin Panter
Changes by Martin Panter vadmium...@gmail.com: -- nosy: +vadmium ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11245 ___ ___ Python-bugs-list

[issue1348] httplib closes socket, then tries to read from it

2013-11-07 Thread Martin Panter
Changes by Martin Panter vadmium...@gmail.com: -- nosy: +vadmium ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1348 ___ ___ Python-bugs-list

[issue19543] Add -3 warnings for codec convenience method changes

2013-11-10 Thread Martin Panter
Martin Panter added the comment: Just thinking the first case might get quite a few false positives. Maybe that would still be acceptable, I dunno. - the str.encode method is called (redirect to codecs.encode to handle arbitrary input types in a forward compatible way) I guess you

[issue19291] Add docs for asyncio package (Tulip, PEP 3156)

2013-11-13 Thread Martin Panter
Changes by Martin Panter vadmium...@gmail.com: -- nosy: +vadmium ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19291 ___ ___ Python-bugs-list

[issue19622] Default buffering for input and output pipes in subprocess module

2013-11-15 Thread Martin Panter
New submission from Martin Panter: Currently the documentation for the “bufsize” parameter in the “subprocess” module says: Changed in version 3.2.4,: 3.3.1 bufsize now defaults to -1 to enable buffering by default to match the behavior that most code expects. In 3.2.0 through 3.2.3

[issue10712] 2to3 fixer for deprecated unittest method names

2013-11-16 Thread Martin Panter
Changes by Martin Panter vadmium...@gmail.com: -- nosy: +vadmium ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10712 ___ ___ Python-bugs-list

[issue19627] python open built-in function - updating is not defined

2013-11-16 Thread Martin Panter
Changes by Martin Panter vadmium...@gmail.com: -- nosy: +vadmium ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19627 ___ ___ Python-bugs-list

[issue11344] Add os.path.splitpath(path) function

2013-11-18 Thread Martin Panter
Martin Panter added the comment: The ntpath.splitpath() version is easy to get lost in. It would probably help if you spelt out all the single-letter variable names, and explained that tri-state root/separator = None/True/False flag. Maybe there is a less convoluted way to write it too, I

[issue6490] os.popen documentation is probably wrong

2013-11-20 Thread Martin Panter
Martin Panter added the comment: Please apply Neil Muller’s documentation patch. It is certainly better than the current state. If you want to improve it further, maybe get rid of the trailing comma, and mention that the close() method returns the exit status encoded like the wait() function

[issue19656] Add Py3k warning for non-ascii bytes literals

2013-11-20 Thread Martin Panter
Changes by Martin Panter vadmium...@gmail.com: -- nosy: +vadmium ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19656 ___ ___ Python-bugs-list

[issue15204] Deprecate the 'U' open mode

2013-11-20 Thread Martin Panter
Changes by Martin Panter vadmium...@gmail.com: -- nosy: +vadmium ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15204 ___ ___ Python-bugs-list

[issue6490] os.popen documentation is probably wrong

2013-11-20 Thread Martin Panter
Martin Panter added the comment: Also it would be good to document that it returns a text stream, not a binary stream. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6490

[issue19737] Documentation of globals() and locals() should be improved

2013-11-23 Thread Martin Panter
Changes by Martin Panter vadmium...@gmail.com: -- nosy: +vadmium ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19737 ___ ___ Python-bugs-list

[issue19691] Weird wording in RuntimeError doc

2013-11-23 Thread Martin Panter
Changes by Martin Panter vadmium...@gmail.com: -- nosy: +vadmium ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19691 ___ ___ Python-bugs-list

[issue9374] urlparse should parse query and fragment for arbitrary schemes

2013-11-23 Thread Martin Panter
Changes by Martin Panter vadmium...@gmail.com: -- nosy: +vadmium ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9374 ___ ___ Python-bugs-list

[issue13244] WebSocket schemes in urllib.parse

2013-11-23 Thread Martin Panter
Martin Panter added the comment: Suspect this is now fixed in a generic way by Issue 9374. The fix seems to be in 2.7, 3.2 and 3.3. $ python3.3 Python 3.3.2 (default, May 16 2013, 23:40:52) [GCC 4.6.3] on linux Type help, copyright, credits or license for more information. from urllib.parse

[issue16134] Add support for RTMP schemes to urlparse

2013-11-23 Thread Martin Panter
Martin Panter added the comment: Looks like Issue 9374 already covers most of this, with fixes in 2.7, 3.2 and 3.3. $ python3.3 Python 3.3.2 (default, May 16 2013, 23:40:52) [GCC 4.6.3] on linux Type help, copyright, credits or license for more information. from urllib.parse import urlparse

[issue15009] urlsplit can't round-trip relative-host urls.

2013-11-23 Thread Martin Panter
Changes by Martin Panter vadmium...@gmail.com: -- nosy: +vadmium ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15009 ___ ___ Python-bugs-list

[issue19622] Default buffering for input and output pipes in subprocess module

2013-11-25 Thread Martin Panter
Martin Panter added the comment: The updated text to “suprocess.rst” is better, but now it looks like the whole paragraph fails to render at http://docs.python.org/dev/library/subprocess#subprocess.Popen. I have no idea about the syntax but maybe the blank line separating “versionchanged

[issue19758] Warnings in tests

2013-11-25 Thread Martin Panter
Changes by Martin Panter vadmium...@gmail.com: -- nosy: +vadmium ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19758 ___ ___ Python-bugs-list

[issue17488] subprocess.Popen bufsize=0 parameter behaves differently in Python 3 than in 2

2013-11-26 Thread Martin Panter
Martin Panter added the comment: For the record, this issue seemed to forget about the effect of buffering the pipe to the subprocess’s input stream. Buffering an input pipe means that data is hidden away until it is flushed, and the close() method can raise a broken pipe error. I have

[issue17232] Improve -O docs

2013-11-27 Thread Martin Panter
Changes by Martin Panter vadmium...@gmail.com: -- nosy: +vadmium ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17232 ___ ___ Python-bugs-list

[issue19737] Documentation of globals() and locals() should be improved

2013-11-29 Thread Martin Panter
Martin Panter added the comment: How about swapping the two sentences for globals() then: “Returns the dictionary of the module . . . This represents the symbol table . . .” I thought the current locals() entry is fairly clear. It actually says _not_ to modify the dictionary

[issue18879] tempfile.NamedTemporaryFile can close the file too early, if not assigning to a variable

2013-11-29 Thread Martin Panter
Changes by Martin Panter vadmium...@gmail.com: -- nosy: +vadmium ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18879 ___ ___ Python-bugs-list

[issue19882] Closing a socket when makefile() is used

2013-12-03 Thread Martin Panter
New submission from Martin Panter: I think the documentation is rather vague about closing the underlying OS socket. Can someone verify if the following is true (*asterisked* bits are my additions), and maybe update the documentation? socket.close(): Close the socket *object*. *The underlying

[issue11563] test_urllibnet is triggering a ResourceWarning

2013-12-03 Thread Martin Panter
Martin Panter added the comment: I think the fix for this bug only works if it gets the server to respond with a “Connection: close” header itself. I opened Issue 19524 because I was seeing keep-alive responses using chunked encoding that still trigger a socket leak. -- nosy: +vadmium

[issue13797] Allow objects implemented in pure Python to export PEP 3118 buffers

2013-12-04 Thread Martin Panter
Changes by Martin Panter vadmium...@gmail.com: -- nosy: +vadmium ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13797 ___ ___ Python-bugs-list

[issue19524] ResourceWarning when urlopen() forgets the HTTPConnection object

2013-12-06 Thread Martin Panter
Martin Panter added the comment: Here are two patches: a test case, and a fix for my issue. They were done against an installed version of Python 3.3.3. I’m not entirely happy with the fix because it is accessing the private HTTPConnection.sock attribute from the urllib.request module, which

[issue19524] ResourceWarning when urlopen() forgets the HTTPConnection object

2013-12-06 Thread Martin Panter
Changes by Martin Panter vadmium...@gmail.com: Added file: http://bugs.python.org/file33005/urlopen-sock-close.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19524

[issue18144] FD leak in urllib2

2013-12-06 Thread Martin Panter
Martin Panter added the comment: Confirmed that this happens when the server sends a chunked response, or sends a Content-Length header, but not when the server just sends “Connection: close”. So this looks like the same as Issue 19524, and my patch for that seems to fix the issue here

[issue19842] selectors: refactor BaseSelector implementation

2013-12-06 Thread Martin Panter
Changes by Martin Panter vadmium...@gmail.com: -- nosy: +vadmium ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19842 ___ ___ Python-bugs-list

[issue13736] urllib.request.urlopen leaks exceptions from socket and httplib.client

2013-12-07 Thread Martin Panter
Changes by Martin Panter vadmium...@gmail.com: -- nosy: +vadmium ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13736 ___ ___ Python-bugs-list

[issue6143] IDLE - an extension to clear the shell window

2013-12-09 Thread Martin Panter
Changes by Martin Panter vadmium...@gmail.com: -- nosy: +vadmium ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6143 ___ ___ Python-bugs-list

[issue19524] ResourceWarning when urlopen() forgets the HTTPConnection object

2013-12-17 Thread Martin Panter
Martin Panter added the comment: Thanks for looking at this. Perhaps you weren’t pasting the HTTP response into “socat”. After the six request lines are printed out, I enter the five lines between HTTP response start and HTTP response end; I didn’t really make this obvious. Otherwise, urlopen

[issue19524] ResourceWarning when urlopen() forgets the HTTPConnection object

2013-12-19 Thread Martin Panter
Martin Panter added the comment: How is it safer to manually set “h.sock._closed”? Playing with the internals of HTTPConnection is one thing, but playing with the internals of the socket object as well does not seem necessary. Also the ResourceWarning is warning that the socket and connection

[issue19977] Use surrogateescape error handler for sys.stdin and sys.stdout on UNIX for the C locale

2013-12-19 Thread Martin Panter
Changes by Martin Panter vadmium...@gmail.com: -- nosy: +vadmium ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19977 ___ ___ Python-bugs-list

[issue4492] httplib code thinks it closes connection, but does not

2013-12-27 Thread Martin Panter
Changes by Martin Panter vadmium...@gmail.com: -- nosy: +vadmium ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4492 ___ ___ Python-bugs-list

[issue7464] circular reference in HTTPResponse by urllib2

2013-12-27 Thread Martin Panter
Martin Panter added the comment: Sounds like urlopen() is relying on garbage collection to close the socket and connection. Maybe it would be better to explicitly close the socket, even if you do eliminate all the garbage reference cycles. My test code for Issue 19524 might be useful here

[issue20059] Inconsistent urlparse/urllib.parse handling of invalid port values?

2013-12-27 Thread Martin Panter
Changes by Martin Panter vadmium...@gmail.com: -- nosy: +vadmium ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20059 ___ ___ Python-bugs-list

[issue20074] open() of read-write non-seekable streams broken

2013-12-27 Thread Martin Panter
Changes by Martin Panter vadmium...@gmail.com: -- nosy: +vadmium ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20074 ___ ___ Python-bugs-list

[issue12692] test_urllib2net is triggering a ResourceWarning

2013-12-28 Thread Martin Panter
Martin Panter added the comment: Any chance of backporting this to version 3.3? I think it is a real-world issue beyond the test suite. See Issue 19524. -- nosy: +vadmium ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12692

[issue19524] ResourceWarning when urlopen() forgets the HTTPConnection object

2013-12-28 Thread Martin Panter
Martin Panter added the comment: Just discovered the same fix of manually closing the socket object was already made independently of my patch in the “default” branch! See Issue 12692. http://hg.python.org/cpython/rev/92656b5df2f2 The main difference is my patch should also close

[issue20096] Mention modernize and future in Python 2/3 porting HOWTO

2013-12-31 Thread Martin Panter
Changes by Martin Panter vadmium...@gmail.com: -- nosy: +vadmium ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20096 ___ ___ Python-bugs-list

[issue6135] subprocess seems to use local encoding and give no choice

2013-12-31 Thread Martin Panter
Changes by Martin Panter vadmium...@gmail.com: -- nosy: +vadmium ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6135 ___ ___ Python-bugs-list

[issue19729] [regression] str.format sublevel format parsing broken in Python 3.3.3

2014-01-04 Thread Martin Panter
Changes by Martin Panter vadmium...@gmail.com: -- nosy: +vadmium ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19729 ___ ___ Python-bugs-list

[issue11681] -b option undocumented

2014-01-04 Thread Martin Panter
Martin Panter added the comment: Try this to trigger a warning: python2 -b -c 'bytearray(3) == u3' -c:1: BytesWarning: Comparison between bytearray and string -- nosy: +vadmium ___ Python tracker rep...@bugs.python.org http://bugs.python.org

[issue19524] ResourceWarning when urlopen() forgets the HTTPConnection object

2014-01-05 Thread Martin Panter
Martin Panter added the comment: The Issue 12692 fix has been backported to the 3.3 branch, and it fixes this bug. However here is an updated patch (against revision 28337a8fb502 in the “3.3” branch) consisting of two left over bits you might still want to use: 1. My test case 2. Explicitly

[issue13881] Stream encoder for zlib_codec doesn't use the incremental encoder

2014-01-05 Thread Martin Panter
Changes by Martin Panter vadmium...@gmail.com: -- nosy: +vadmium ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13881 ___ ___ Python-bugs-list

[issue20132] Many incremental codecs don’t handle fragmented data

2014-01-05 Thread Martin Panter
New submission from Martin Panter: Many of the incremental codecs do not handle fragmented data very well. In the past I think I was interested in using the Base-64 and Quoted-printable codecs, and playing with other codecs today reveals many more issues. A lot of the issues reflect missing

[issue8796] Deprecate codecs.open()

2014-01-05 Thread Martin Panter
Changes by Martin Panter vadmium...@gmail.com: -- nosy: +vadmium ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8796 ___ ___ Python-bugs-list

  1   2   3   4   5   6   7   8   9   10   >