[issue19311] devguide: hg bisect section could be clearer

2013-10-20 Thread Martin Matusiak
New submission from Martin Matusiak: The offending section: http://docs.python.org/devguide/faq.html#how-do-i-find-which-changeset-introduced-a-bug-or-regression I think this could be improved a bit. The key point is that "hg bisect --bad/good" is a command relative to the c

[issue19312] Typo in devguide - compiler

2013-10-20 Thread Martin Matusiak
New submission from Martin Matusiak: - The purpose of this document is to outline how the latter three steps of the process works. work -- components: Devguide files: typo_compiler.diff keywords: patch messages: 200567 nosy: ezio.melotti, numerodix priority: normal severity: normal

[issue19314] Typo in devguide - compiler

2013-10-20 Thread Martin Matusiak
New submission from Martin Matusiak: - Querying data from the node structs can be done with the following macros (which are all defined in Include/token.h They are actually in Include/node.h, which is logical, because that is where "node" is defined. -- components: Devg

[issue19315] devguide: compiler - poor wording

2013-10-20 Thread Martin Matusiak
New submission from Martin Matusiak: Location: http://docs.python.org/devguide/compiler.html#parse-trees - To tie all of this example, consider the rule for ‘while’: Probably meant to be: To tie all of this together with an example, ... - The node representing this will have TYPE(node

[issue19316] devguide: compiler - wording

2013-10-20 Thread Martin Matusiak
New submission from Martin Matusiak: - All code relating to the arena is in either Include/pyarena.h or Python/pyarena.c . I propose: All code relating to the arena is either in Include/pyarena.h or in Python/pyarena.c . -- components: Devguide files: wording_compiler.diff keywords

[issue19316] devguide: compiler - wording

2013-10-20 Thread Martin Matusiak
Martin Matusiak added the comment: - This needs to only be called in strategic areas where the compiler exits. I propose: This only needs to be called in strategic areas where the compiler exits. -- Added file: http://bugs.python.org/file32247/wording_compiler2.diff

[issue19316] devguide: compiler - wording

2013-10-20 Thread Martin Matusiak
Martin Matusiak added the comment: - The functions called to generate AST nodes from the parse tree all have the name ast_for_xx where xx is what the grammar rule that the function handles (alias_for_import_name is the exception to this). I'm not sure if this ought to be "where

[issue19316] devguide: compiler - wording

2013-10-20 Thread Martin Matusiak
Martin Matusiak added the comment: - Function and macros for creating and using asdl_seq * types as found in Python/asdl.c and Include/asdl.h: I propose: The following are functions and macros for creating and using asdl_seq * types as found in Python/asdl.c and Include/asdl.h

[issue19316] devguide: compiler - wording

2013-10-20 Thread Martin Matusiak
Martin Matusiak added the comment: - As for handling the line number on which a statement is defined, is handled by compiler_visit_stmt() and thus is not a worry. I don't understand the final clause here. What is not a worry and why would it be a worry? The grammar is awkward as

[issue19316] devguide: compiler - wording

2013-10-20 Thread Martin Matusiak
Martin Matusiak added the comment: - But you will also need to change the ‘compiler’ package. The key files to do that are Lib/compiler/pyassem.py and Lib/compiler/pycodegen.py . "compiler" was removed in 2.6 or 2.7 iirc. I think it's safe to remove these two sentences. --

[issue19316] devguide: compiler - wording

2013-10-20 Thread Martin Matusiak
Martin Matusiak added the comment: - If you wish to make changes that affect the output of bytecode without having to update the magic number each time (while testing your changes) you can just delete your old .py(c|o) files! Even though you will end up changing the magic number if you change

[issue19316] devguide: compiler - wording

2013-10-20 Thread Martin Matusiak
Martin Matusiak added the comment: - marshaling marshalling -- Added file: http://bugs.python.org/file32251/wording_typo.diff ___ Python tracker <http://bugs.python.org/issue19

[issue19316] devguide: compiler - wording

2013-10-20 Thread Martin Matusiak
Martin Matusiak added the comment: - import.c - Home of the magic number (named MAGIC) for bytecode versioning Probably out of date. I cannot find MAGIC being defined in this file. -- ___ Python tracker <http://bugs.python.org/issue19

[issue19316] devguide: compiler - wording

2013-10-20 Thread Martin Matusiak
Martin Matusiak added the comment: - Lib/ - compiler/ - pyassem.py - One of the files that must be modified if Include/opcode.h is changed. - pycodegen.py - One of the files that must be modified if Include/opcode.h is changed. More mentions of the compiler package. -- Added file: http

[issue18401] Tests for pdb import ~/.pdbrc

2013-10-20 Thread Martin Matusiak
Martin Matusiak added the comment: I have been thinking about a fix for this. A straightforward fix would be to add a kwarg readrc=True to the constructor of Pdb that will default to reading the rc files as it does now, and allows disabling this default. The implication is that all tests in

[issue8083] urllib proxy interface is too limited

2013-10-20 Thread Martin Matusiak
Changes by Martin Matusiak : -- nosy: +numerodix ___ Python tracker <http://bugs.python.org/issue8083> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue7757] sys.path is incorrect when prefix is ""

2013-10-20 Thread Martin Matusiak
Changes by Martin Matusiak : -- nosy: +numerodix ___ Python tracker <http://bugs.python.org/issue7757> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue19318] break more than once

2013-10-20 Thread Martin Matusiak
Changes by Martin Matusiak : -- nosy: +numerodix ___ Python tracker <http://bugs.python.org/issue19318> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue19319] misleading comment regarding C

2013-10-20 Thread Martin Matusiak
Changes by Martin Matusiak : -- nosy: +numerodix ___ Python tracker <http://bugs.python.org/issue19319> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue17951] TypeError during gdb backtracing

2013-10-20 Thread Martin Matusiak
Changes by Martin Matusiak : -- nosy: +numerodix ___ Python tracker <http://bugs.python.org/issue17951> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue19318] break more than once

2013-10-20 Thread Martin Matusiak
Martin Matusiak added the comment: I see one potential problem with this, namely that refactoring code that contains "break n" statements would become more error prone whenever the depth of the code block gets modified. So if you had something like: for i in range(10): for j i

[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 with that

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

2013-10-30 Thread Martin Panter
Changes by Martin Panter : -- nosy: +vadmium ___ Python tracker <http://bugs.python.org/issue15873> ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2013-10-31 Thread Martin Panter
Changes by Martin Panter : -- nosy: +vadmium ___ Python tracker <http://bugs.python.org/issue3566> ___ ___ Python-bugs-list mailing list Unsubscribe:

[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 as the

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

2013-11-01 Thread Martin Panter
Changes by Martin Panter : -- nosy: +vadmium ___ Python tracker <http://bugs.python.org/issue19456> ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2013-11-01 Thread Martin Panter
Changes by Martin Panter : -- nosy: +vadmium ___ Python tracker <http://bugs.python.org/issue19411> ___ ___ Python-bugs-list mailing list Unsubscribe:

[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 : -- nosy: +vadmium ___ Python tracker <http://bugs.python.org/issue19251> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue17823] 2to3 fixers for missing codecs

2013-11-07 Thread Martin Panter
Changes by Martin Panter : -- nosy: +vadmium ___ Python tracker <http://bugs.python.org/issue17823> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue3244] multipart/form-data encoding

2013-11-07 Thread Martin Panter
Changes by Martin Panter : -- nosy: +vadmium ___ Python tracker <http://bugs.python.org/issue3244> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue11245] Implementation of IMAP IDLE in imaplib?

2013-11-07 Thread Martin Panter
Changes by Martin Panter : -- nosy: +vadmium ___ Python tracker <http://bugs.python.org/issue11245> ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2013-11-07 Thread Martin Panter
Changes by Martin Panter : -- nosy: +vadmium ___ Python tracker <http://bugs.python.org/issue1348> ___ ___ Python-bugs-list mailing list Unsubscribe:

[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 y

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

2013-11-13 Thread Martin Panter
Changes by Martin Panter : -- nosy: +vadmium ___ Python tracker <http://bugs.python.org/issue19291> ___ ___ Python-bugs-list mailing list Unsubscribe:

[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 th

[issue10712] 2to3 fixer for deprecated unittest method names

2013-11-16 Thread Martin Panter
Changes by Martin Panter : -- nosy: +vadmium ___ Python tracker <http://bugs.python.org/issue10712> ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2013-11-16 Thread Martin Panter
Changes by Martin Panter : -- nosy: +vadmium ___ Python tracker <http://bugs.python.org/issue19627> ___ ___ Python-bugs-list mailing list Unsubscribe:

[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 : -- nosy: +vadmium ___ Python tracker <http://bugs.python.org/issue19656> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue15204] Deprecate the 'U' open mode

2013-11-20 Thread Martin Panter
Changes by Martin Panter : -- nosy: +vadmium ___ Python tracker <http://bugs.python.org/issue15204> ___ ___ Python-bugs-list mailing list Unsubscribe:

[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 <http://bugs.python.org/issue6

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

2013-11-23 Thread Martin Panter
Changes by Martin Panter : -- nosy: +vadmium ___ Python tracker <http://bugs.python.org/issue19737> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue19691] Weird wording in RuntimeError doc

2013-11-23 Thread Martin Panter
Changes by Martin Panter : -- nosy: +vadmium ___ Python tracker <http://bugs.python.org/issue19691> ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2013-11-23 Thread Martin Panter
Changes by Martin Panter : -- nosy: +vadmium ___ Python tracker <http://bugs.python.org/issue9374> ___ ___ Python-bugs-list mailing list Unsubscribe:

[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 "lice

[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

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

2013-11-23 Thread Martin Panter
Changes by Martin Panter : -- nosy: +vadmium ___ Python tracker <http://bugs.python.org/issue15009> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue7511] msvc9compiler.py: ValueError when trying to compile with VC Express

2013-11-25 Thread Martin Dengler
Changes by Martin Dengler : -- nosy: +mdengler ___ Python tracker <http://bugs.python.org/issue7511> ___ ___ Python-bugs-list mailing list Unsubscribe:

[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 : -- nosy: +vadmium ___ Python tracker <http://bugs.python.org/issue19758> ___ ___ Python-bugs-list mailing list Unsubscribe:

[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

[issue2226] Small _abcoll Bugs / Oddities

2013-11-27 Thread Martin Dengler
Changes by Martin Dengler : -- nosy: +mdengler ___ Python tracker <http://bugs.python.org/issue2226> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue8743] set() operators don't work with collections.Set instances

2013-11-27 Thread Martin Dengler
Changes by Martin Dengler : -- nosy: +mdengler ___ Python tracker <http://bugs.python.org/issue8743> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue17232] Improve -O docs

2013-11-27 Thread Martin Panter
Changes by Martin Panter : -- nosy: +vadmium ___ Python tracker <http://bugs.python.org/issue17232> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue19352] unittest loader barfs on symlinks

2013-11-28 Thread Martin Pitt
Martin Pitt added the comment: More precisely, it broke unittest's discovery (not specific to autopilot). For any installed test, you now get: $ python -m unittest discover lazr Traceback (most recent call last): File "/usr/lib/python2.7/runpy.py", line 162, in _run

[issue19352] unittest loader barfs on symlinks

2013-11-29 Thread Martin Pitt
Martin Pitt added the comment: In this new code: mod_file = os.path.abspath(getattr(module, '__file__', full_path)) realpath = os.path.splitext(os.path.realpath(mod_file))[0] fullpath_noext = os.path.splitext(os.pat

[issue19352] unittest loader barfs on symlinks

2013-11-29 Thread Martin Pitt
Martin Pitt added the comment: Yes, this affects python 2.7 only; as I said, this is all solved in python3 by introducing the explicit extensions like __pycache__/*..cpython-33.pyc so that multiple versions can share one directory. With that these symlink hacks aren't necessary any

[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 : -- nosy: +vadmium ___ Python tracker <http://bugs.python.org/issue18879> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue19853] Add support for Bitrig

2013-12-01 Thread Martin Natano
New submission from Martin Natano: This patch adds support for Bitrig to 2.7. -- components: Build files: cpython2.7-bitrig.patch keywords: patch messages: 204930 nosy: Martin.Natano priority: normal severity: normal status: open title: Add support for Bitrig versions: Python 2.7 Added

[issue19854] Add support for Bitrig to 3.4

2013-12-01 Thread Martin Natano
New submission from Martin Natano: This patch adds support for Bitrig to 3.4. -- components: Build files: cpython3.4-bitrig.patch keywords: patch messages: 204931 nosy: Martin.Natano priority: normal severity: normal status: open title: Add support for Bitrig to 3.4 versions: Python 3.4

[issue19853] Add support for Bitrig to 2.7

2013-12-01 Thread Martin Natano
Changes by Martin Natano : -- title: Add support for Bitrig -> Add support for Bitrig to 2.7 ___ Python tracker <http://bugs.python.org/issue19853> ___ ___ Py

[issue18897] Illegal instruction at Python-2.7.5/Modules/_sre.c:1173

2013-12-01 Thread Martin Mokrejs
Martin Mokrejs added the comment: The issue could have been caused the malfunctioning memory or CPU. http://bugs.python.org/issue18843#msg204954 -- ___ Python tracker <http://bugs.python.org/issue18

[issue18843] Py_FatalError (msg=0x7f0e3b373232 "bad leading pad byte") at Python-2.7.5/Python/pythonrun.c:1689

2013-12-01 Thread Martin Mokrejs
Martin Mokrejs added the comment: Hi, I think I should report back what I found on the hardware side. While memory testing tools like memtest86+ and other did not find any error, the built in Dell ePSA test suite likely does compute a checksum of tested memory regions. It reported some

[issue18845] 2.7.5-r2: Fatal Python error: Segmentation fault

2013-12-01 Thread Martin Mokrejs
Martin Mokrejs added the comment: The issue could have been caused the malfunctioning memory or CPU. http://bugs.python.org/issue18843#msg204954 -- ___ Python tracker <http://bugs.python.org/issue18

[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 : -- nosy: +vadmium ___ Python tracker <http://bugs.python.org/issue13797> ___ ___ Python-bugs-list mailing list Unsubscribe:

[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 : Added file: http://bugs.python.org/file33005/urlopen-sock-close.diff ___ Python tracker <http://bugs.python.org/issue19524> ___ ___ Python-bug

[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 : -- nosy: +vadmium ___ Python tracker <http://bugs.python.org/issue19842> ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2013-12-07 Thread Martin Panter
Changes by Martin Panter : -- nosy: +vadmium ___ Python tracker <http://bugs.python.org/issue13736> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue16512] imghdr doesn't recognize variant jpeg formats

2014-06-21 Thread Martin Vignali
Martin Vignali added the comment: I'm okay with just testing the first two bytes, it's the method we currently use for our internal tools. But maybe it can be interesting, to add another test, in order to detect incomplete file (created when a camera make a recording error for ex

[issue2943] Distutils should generate a better error message when the SDK is not installed

2014-07-02 Thread Martin Dengler
Changes by Martin Dengler : -- nosy: +mdengler ___ Python tracker <http://bugs.python.org/issue2943> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue6631] Disallow relative files paths in urllib*.open()

2014-07-12 Thread Martin Panter
Changes by Martin Panter : -- nosy: +vadmium ___ Python tracker <http://bugs.python.org/issue6631> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue21970] Broken code for handling file://host in urllib.request.FileHandler.file_open

2014-07-12 Thread Martin Panter
New submission from Martin Panter: This isn’t a particularly important problem for me but when reading the code I noticed some bit rot in this function, where a host name in a “file:” URL would be handled differently than intended. * The url[:2] == '//' check is probably wrong bec

[issue21793] httplib client/server status refactor

2014-07-15 Thread Martin Panter
Changes by Martin Panter : -- nosy: +vadmium ___ Python tracker <http://bugs.python.org/issue21793> ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2014-07-16 Thread Martin Panter
Changes by Martin Panter : Added file: http://bugs.python.org/file35980/test2.patch ___ Python tracker <http://bugs.python.org/issue19524> ___ ___ Python-bugs-list mailin

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

2014-07-16 Thread Martin Panter
Martin Panter added the comment: Added a new test for the invalid response case. Now both tests are included in test2.patch. I separated the actual fix into a separate close3.4.patch (refreshed for the 3.4 branch). This way it is easier for me to make sure the tests work before applying the

[issue14285] Traceback wrong on ImportError while executing a package

2014-07-17 Thread Martin Panter
Martin Panter added the comment: A file called “package/__main__.py” is executed as a script by “python -m package”. See <https://docs.python.org/dev/library/__main__.html>. I’ve came across this issue myself. You don’t even need the __main__.py file to be doing anything special, as l

[issue21996] gettarinfo method does not handle files without text string names

2014-07-17 Thread Martin Panter
New submission from Martin Panter: It looks like if you pass a “fileobj” argument to “gettarinfo”, it assumes it can use the “name” as a text string. >>> import tarfile >>> with tarfile.open("/dev/null", "w") as tar, open("/bin/sh",

[issue21044] tarfile does not handle file .name being an int

2014-07-17 Thread Martin Panter
Martin Panter added the comment: Opened Issue 21996 for the “gettarinfo” method. Also, Serhiy, I think you may have got me mixed up with someone else. I don’t think I did any patches here, so I probably shouldn’t be credited for them

[issue21999] shlex: bug in posix more handling of empty strings

2014-07-17 Thread Martin Morrison
New submission from Martin Morrison: Minimal testcase of the problem situation is tokenising (with posix mode on): ''), Specifically, an empty string, followed by a non-word character, followed by a non-space character. In this case, the token buffer is empty and due to a missing

[issue21999] shlex: bug in posix more handling of empty strings

2014-07-17 Thread Martin Morrison
Changes by Martin Morrison : Added file: http://bugs.python.org/file35984/shlex.2.7.patch ___ Python tracker <http://bugs.python.org/issue21999> ___ ___ Python-bugs-list m

[issue1927] raw_input behavior incorrect if readline not enabled

2014-07-19 Thread Martin Panter
Martin Panter added the comment: I experimented with various redirections to /dev/null, files, and other terminal windows on Linux. Current behaviour I am seeing seems to be something like this: * Prefers prompting to stderr if both stdout and stderr are terminals * Prefers prompting to

[issue1152248] Add support for reading records with arbitrary separators to the standard IO stack

2014-07-19 Thread Martin Panter
Changes by Martin Panter : -- nosy: +vadmium ___ Python tracker <http://bugs.python.org/issue1152248> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue17131] subprocess.Popen.terminate can raise exception on Posix

2014-07-19 Thread Martin Panter
Martin Panter added the comment: For Posix (dunno about Windows), calling terminate or kill at the OS level after a poll or wait has already succeeded is a bad idea, because the PID may have been recycled. It is essentially operating on a released resource, similar to calling “os.close” on a

[issue22021] shutil.make_archive() root_dir do not work

2014-07-21 Thread Martin Panter
Changes by Martin Panter : -- nosy: +vadmium ___ Python tracker <http://bugs.python.org/issue22021> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue22036] Obsolete reference to stringobject in comment

2014-07-22 Thread Martin Matusiak
New submission from Martin Matusiak: bits shared by the stringobject and unicodeobject implementations (and possibly other modules, in a not too distant future). "stringobject" should be "bytesobject" -- components: Interpreter Core files: fix_typo_stringlib.

[issue22036] Obsolete reference to stringobject in comment

2014-07-22 Thread Martin Matusiak
Changes by Martin Matusiak : -- nosy: +benjamin.peterson ___ Python tracker <http://bugs.python.org/issue22036> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue1025395] email.Utils.parseaddr fails to parse valid addresses

2014-07-25 Thread Martin Panter
Changes by Martin Panter : -- nosy: +vadmium ___ Python tracker <http://bugs.python.org/issue1025395> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue22076] csv module bad grammar in exception message

2014-07-26 Thread Martin Matusiak
New submission from Martin Matusiak: The csv module has an exception message with bad grammar: - delimiter" must be an 1-character string "an" should be "a" -- components: Library (Lib) files: csv_grammar_fix.diff keywords: patch messages: 2240

[issue11429] ctypes is highly eclectic in its raw-memory support

2014-07-30 Thread Martin Panter
Changes by Martin Panter : -- nosy: +vadmium ___ Python tracker <http://bugs.python.org/issue11429> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue15986] memoryview: expose 'buf' attribute

2014-07-31 Thread Martin Panter
Changes by Martin Panter : -- nosy: +vadmium ___ Python tracker <http://bugs.python.org/issue15986> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue15986] memoryview: expose 'buf' attribute

2014-07-31 Thread Martin Panter
Martin Panter added the comment: This issue was linked from <https://mail.python.org/pipermail/python-dev/2012-September/121781.html>. I was looking for ways to pass read-only memory views into “ctypes” without copying memory, and came across that thread. Assuming this “buf” attribute

<    6   7   8   9   10   11   12   13   14   15   >