[issue20172] Derby #3: Convert 67 sites to Argument Clinic across 4 files (Windows)

2014-01-13 Thread Zachary Ware
Zachary Ware added the comment: Sandbox repo updated. It is currently using an older version of clinic; running current clinic on the winreg.c in the tip of the sandbox produces this traceback: Traceback (most recent call last): File "Tools\clinic\clinic.py", line 2981, in sys.exit(mai

[issue20254] Duplicate bytearray test on test_socket.py

2014-01-13 Thread Vajrasky Kok
New submission from Vajrasky Kok: testRecvIntoArray is same as testRecvIntoBytearray. testRecvFromIntoArray is same as testRecvFromIntoBytearray. Attached the patch to fix the tests. -- components: Tests files: fix_recv_from_into_array_test_socket.patch keywords: patch messages: 208079

[issue20253] Typo in ipaddress document

2014-01-13 Thread Berker Peksag
Changes by Berker Peksag : -- nosy: +zach.ware ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue20253] Typo in ipaddress document

2014-01-13 Thread INADA Naoki
New submission from INADA Naoki: > http://docs.python.org/3.3/library/ipaddress.html#ipaddress.IPv4Network.broadcast_address Wrong attribute name: s/host mask/hostmask/ -- assignee: docs@python components: Documentation messages: 208078 nosy: docs@python, naoki priority: normal severity

[issue20252] Argument Clinic howto: small typo in y# translation

2014-01-13 Thread Larry Hastings
Larry Hastings added the comment: Same bug for 'y' too. Will fix in a patch probably Tuesday. Thanks for pointing it out! -- ___ Python tracker ___ ___

[issue20252] Argument Clinic howto: small typo in y# translation

2014-01-13 Thread Ryan Smith-Roberts
New submission from Ryan Smith-Roberts: type -> types -- assignee: docs@python components: Documentation files: argument_clinic_howto_y-hash.patch keywords: patch messages: 208076 nosy: docs@python, larry, rmsr priority: normal severity: normal status: open title: Argument Clinic howto:

[issue20251] socket.recvfrom_into crash with empty buffer

2014-01-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset 3881211cbb19 by Benjamin Peterson in branch '2.7': remove overly strict assertion (closes #20251) http://hg.python.org/cpython/rev/3881211cbb19 New changeset 1885e1768ff9 by Benjamin Peterson in branch '2.7': add test for #20251 http://hg.python.org

[issue20251] socket.recvfrom_into crash with empty buffer

2014-01-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset 8712efe02dcc by Benjamin Peterson in branch '3.3': remove overly strict assertion (closes #20251) http://hg.python.org/cpython/rev/8712efe02dcc New changeset ab9556830560 by Benjamin Peterson in branch 'default': merge 3.3 (#20251) http://hg.python.

[issue20251] socket.recvfrom_into crash with empty buffer

2014-01-13 Thread Vajrasky Kok
New submission from Vajrasky Kok: >>> import socket >>> r, w = socket.socketpair() >>> w.send(b'X' * 1024) 1024 >>> buffer = bytearray() >>> r.recvfrom_into(buffer) python: /home/sky/Code/python/cpython3.4/Modules/socketmodule.c:2867: sock_recvfrom_into: Assertion `buf != 0 && buflen > 0' failed

[issue20250] defaultdict docstring neglects the *args

2014-01-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset d46bf7835b45 by Benjamin Peterson in branch '3.3': correct defaultdict signature in docstring (closes #20250) http://hg.python.org/cpython/rev/d46bf7835b45 New changeset 950f1e83bb56 by Benjamin Peterson in branch '2.7': correct defaultdict signatur

[issue20250] defaultdict docstring neglects the *args

2014-01-13 Thread Andrew Barnert
New submission from Andrew Barnert: The docstring for defaultdict shows only a single argument, default_factory, and gives no clue that you can pass additional arguments: | defaultdict(default_factory) --> dict with default factory | | The default factory is called without argumen

[issue20246] buffer overflow in socket.recvfrom_into

2014-01-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset 87673659d8f7 by Benjamin Peterson in branch '2.7': complain when nbytes > buflen to fix possible buffer overflow (closes #20246) http://hg.python.org/cpython/rev/87673659d8f7 New changeset 715fd3d8ac93 by Benjamin Peterson in branch '3.1': complain

[issue20249] test_posix.test_initgroups fails when running with no supplementary groups

2014-01-13 Thread Chris Angelico
New submission from Chris Angelico: When tests are run from an Upstart job in a minimal environment, test_posix.test_initgroups fails as it attempts to find the max() of an empty list of supplementary groups. Problem sighted with 2.7, 3.3, and 3.x branches. Patch derived from 3.x (default bra

[issue20248] docs: socket.recvmsg{,_into} are keword-compatible

2014-01-13 Thread Benjamin Peterson
Changes by Benjamin Peterson : -- resolution: -> invalid ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https

[issue20248] docs: socket.recvmsg{,_into} are keword-compatible

2014-01-13 Thread Ryan Smith-Roberts
Ryan Smith-Roberts added the comment: Never mind, it's actually recvfrom{,_into}. Sigh. -- status: open -> closed ___ Python tracker ___ _

[issue20248] docs: socket.recvmsg{,_into} are keword-compatible

2014-01-13 Thread Ryan Smith-Roberts
New submission from Ryan Smith-Roberts: The docs indicate their arguments are positional-only. Trivial patch attached. -- assignee: docs@python components: Documentation files: docs_socket_recvmsg_args.patch keywords: patch messages: 208067 nosy: docs@python, rmsr priority: normal severi

[issue20246] buffer overflow in socket.recvfrom_into

2014-01-13 Thread R. David Murray
R. David Murray added the comment: Everything before 2.7 is already out of even security maintenance, so you've already checked off everything it will get fixed in. -- nosy: +r.david.murray type: crash -> security ___ Python tracker

[issue20227] Argument Clinic: rename arguments in generated C?

2014-01-13 Thread Ryan Smith-Roberts
Ryan Smith-Roberts added the comment: Georg Brandl wrote: > Although now is a good time to ensure sensible argument names (I > usually look at the docs to find the documented ones), so that > switching the function to keyword arg support is basically just a > removal of '/' I started doing th

[issue20172] Derby #3: Convert 67 sites to Argument Clinic across 4 files (Windows)

2014-01-13 Thread Larry Hastings
Larry Hastings added the comment: Filed comments on everything. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue20247] Condition._is_owned is wrong

2014-01-13 Thread Antony Lee
New submission from Antony Lee: I believe that the implementation of Condition._is_owned is wrong, as mentioned here: https://mail.python.org/pipermail/python-list/2012-October/632682.html. Specifically, the two return values (True and False) should be inverted. I guess this slipped through a

[issue20246] buffer overflow in socket.recvfrom_into

2014-01-13 Thread Ryan Smith-Roberts
Changes by Ryan Smith-Roberts : -- keywords: +patch Added file: http://bugs.python.org/file33452/recvfrom_into_buffer_overflow_3.4.patch ___ Python tracker ___ _

[issue20246] buffer overflow in socket.recvfrom_into

2014-01-13 Thread Ryan Smith-Roberts
Changes by Ryan Smith-Roberts : Added file: http://bugs.python.org/file33453/recvfrom_into_buffer_overflow_2.7.patch ___ Python tracker ___ _

[issue20246] buffer overflow in socket.recvfrom_into

2014-01-13 Thread Ryan Smith-Roberts
New submission from Ryan Smith-Roberts: recvfrom_into fails to check that the supplied buffer object is big enough for the requested read and so will happily write off the end. I will attach patches for 3.4 and 2.7, I'm not familiar with the backporting procedure to go further but all versions

[issue20227] Argument Clinic: rename arguments in generated C?

2014-01-13 Thread Ryan Smith-Roberts
Changes by Ryan Smith-Roberts : -- nosy: +rmsr ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue20202] ArgumentClinic howto: document change in Py_buffer lifecycle management

2014-01-13 Thread Ryan Smith-Roberts
Ryan Smith-Roberts added the comment: Even more imperative than my version. Excellent! -- status: open -> closed ___ Python tracker ___ __

[issue20189] inspect.Signature doesn't recognize all builtin types

2014-01-13 Thread Larry Hastings
Larry Hastings added the comment: > Another issue is that with the patch applied help() is broken for > certain forms of docstrings: Yeah. We discussed this briefly in #19674. I wanted to use a marker that wasn't The Convention That People Have Used For Decades but I felt overruled. I want

[issue20189] inspect.Signature doesn't recognize all builtin types

2014-01-13 Thread Larry Hastings
Larry Hastings added the comment: Here's an updated patch. I tried to "do it right" which wound up being a huge amount of work in Clinic. The actual change to inspect.Signature was really easy, once I understood everything. The churn in the .c files is because Clinic now uses the self conver

[issue20189] inspect.Signature doesn't recognize all builtin types

2014-01-13 Thread Stefan Krah
Stefan Krah added the comment: Another issue is that with the patch applied help() is broken for certain forms of docstrings: from decimal import * >>> print(setcontext.__doc__) setcontext(c) - Set a new default context. >>> help(setcontext) Traceback (most recent call last): File "", line 1

[issue20245] Check empty mode in TarFile.*open()

2014-01-13 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: TarFile's *open() class methods checks the mode argument to raise helpful error: >>> t = tarfile.TarFile.taropen('xxx.tar', 'q') Traceback (most recent call last): File "", line 1, in File "/home/serhiy/py/cpython/Lib/tarfile.py", line 1589, in taropen

[issue20189] inspect.Signature doesn't recognize all builtin types

2014-01-13 Thread Larry Hastings
Larry Hastings added the comment: Not for builtins. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue20189] inspect.Signature doesn't recognize all builtin types

2014-01-13 Thread Yury Selivanov
Yury Selivanov added the comment: > But this complicates life for inspect.Signature, which needs to not publish > the "self" parameter when it's been bound. That's already supported, isn't it? >>> str(inspect.signature(F.a)) '(self, a)' >>> str(inspect.signature(F().a)) '(a)' --

[issue20137] Logging: RotatingFileHandler computes string length instead of byte representation length.

2014-01-13 Thread Vinay Sajip
Vinay Sajip added the comment: Which encoding are you using, such that the difference in length between encoded and decoded messages is significant? -- ___ Python tracker ___ __

[issue20136] Logging: StreamHandler does not use OS line separator.

2014-01-13 Thread Vinay Sajip
Vinay Sajip added the comment: Can you please attach a short test script which shows what you consider to be the failure case / incorrect behaviour? -- ___ Python tracker ___ __

[issue20242] logging style parameter does not work correctly

2014-01-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset e7fcf0d8008f by Vinay Sajip in branch '3.3': Issue #20242: Fixed basicConfig() format strings for the alternative formatting styles. http://hg.python.org/cpython/rev/e7fcf0d8008f New changeset c1605d24fb35 by Vinay Sajip in branch 'default': Closes

[issue20172] Derby #3: Convert 67 sites to Argument Clinic across 4 files (Windows)

2014-01-13 Thread Larry Hastings
Larry Hastings added the comment: > Clinic should be adding 'self' to the signature, > which should then be picked up by the __text_signature__ > parser, and used by inspect and pydoc. This innocent little comment has derailed my whole day. You're right, 'self' should be in the signature. But

[issue20189] inspect.Signature doesn't recognize all builtin types

2014-01-13 Thread Larry Hastings
Larry Hastings added the comment: Okay, life has gotten even more complicated. In another issue (#20172) Zachary Ware pointed out that Argument Clinic needs to generate "self" parameters in the text string. But this complicates life for inspect.Signature, which needs to not publish the "self"

[issue20214] Argument Clinic rollup fixes

2014-01-13 Thread Larry Hastings
Changes by Larry Hastings : -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___ _

[issue20242] logging style parameter does not work correctly

2014-01-13 Thread Vinay Sajip
Vinay Sajip added the comment: On further reflection, I will implement this slightly differently. The tests I will commit as is, except for stripping newlines before the comparison (to avoid worrying about differences in line separators across different platforms). However, the correct fix IMO

[issue20242] logging style parameter does not work correctly

2014-01-13 Thread Vinay Sajip
Vinay Sajip added the comment: Thanks for this. The patch looks good, and I expect to implement it shortly. -- assignee: -> vinay.sajip ___ Python tracker ___ __

[issue14031] logging module cannot format str.format log messages

2014-01-13 Thread Vinay Sajip
Vinay Sajip added the comment: > The problem with leaving the behavior as is is that currently the > style keyword is effectively useless and grossly misleading to users. If you are referring to the style keyword in basicConfig, it merely sets the style of the Formatter used. That can certainly

[issue20244] Possible resources leak in tarfile.open()

2014-01-13 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: There are possible opened file leaks when unexpected error is occurred in tarfile.open for bzip2- or xz-compressed files (and gzip2-compressed in 2.7). Here is a patch. Unfortunately I have no tests. -- assignee: serhiy.storchaka components: Librar

[issue20244] Possible resources leak in tarfile.open()

2014-01-13 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- dependencies: +ReadError when open a tarfile for writing ___ Python tracker ___ ___ Python-bugs-list

[issue14031] logging module cannot format str.format log messages

2014-01-13 Thread kespindler
kespindler added the comment: I definitely do recognize that important case. I think the proper solution, however, to that is make a very clear warning in the documentation that changing the style might affect the logging of 3rd party tools. Those users would probably have to use the % style form

[issue20243] ReadError when open a tarfile for writing

2014-01-13 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- dependencies: +Incomplete gzip output with tarfile.open(fileobj=..., mode="w:gz") ___ Python tracker ___ ___

[issue20243] ReadError when open a tarfile for writing

2014-01-13 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: ReadError can be raised when open a tarfile in write mode (e.g. 'w:gz'). Here is a patch wish a test. In additional it rewrites the handling errors in gzopen() which is too complicated now. This complication is possible the cause of bugs #11513 and #20238.

[issue14031] logging module cannot format str.format log messages

2014-01-13 Thread R. David Murray
R. David Murray added the comment: The reason is simple: in the general case you do not control all of the statements that produce log messages. Some of them come from 3rd party library code. Perhaps the documentation needs to be clarified on this point, and document the technique mentioned

[issue20229] platform.py uses deprecated feature of plistlib

2014-01-13 Thread Ned Deily
Changes by Ned Deily : -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___ __

[issue14031] logging module cannot format str.format log messages

2014-01-13 Thread kespindler
kespindler added the comment: I came across this issue while fixing issue20242. This issue (14031) still exists and is a major source of annoyance and confusion, and I suggest re-opening it. Specifying the "{" style, while still being forced to use % formatting in log statements is backward a

[issue20229] platform.py uses deprecated feature of plistlib

2014-01-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset cd728dc893c9 by Ned Deily in branch 'default': Issue #20229: Avoid plistlib deprecation warning in platform.mac_ver(). http://hg.python.org/cpython/rev/cd728dc893c9 -- nosy: +python-dev ___ Python tracker

[issue20242] logging style parameter does not work correctly

2014-01-13 Thread Ned Deily
Changes by Ned Deily : -- nosy: +vinay.sajip ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue20221] #define hypot _hypot conflicts with existing definition

2014-01-13 Thread Tabrez Mohammed
Changes by Tabrez Mohammed : -- keywords: +patch Added file: http://bugs.python.org/file33447/fix20221.patch ___ Python tracker ___ __

[issue20236] Invalid inline markup in xml document.

2014-01-13 Thread R. David Murray
R. David Murray added the comment: Fixed, thanks. -- nosy: +r.david.murray resolution: -> fixed stage: -> committed/rejected status: open -> closed type: -> behavior ___ Python tracker __

[issue20236] Invalid inline markup in xml document.

2014-01-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset fb1dd44d1f76 by R David Murray in branch '3.3': #20236: Fix sphinx markup. http://hg.python.org/cpython/rev/fb1dd44d1f76 New changeset 60163fc72017 by R David Murray in branch 'default': Merge #20236: Fix sphinx markup. http://hg.python.org/cpython/

[issue20237] Ambiguous sentence in document of xml package.

2014-01-13 Thread R. David Murray
R. David Murray added the comment: s/courses of action/kinds of actions/ in my explanation, otherwise it might be just as confusing :) -- ___ Python tracker ___

[issue20237] Ambiguous sentence in document of xml package.

2014-01-13 Thread R. David Murray
R. David Murray added the comment: It means that the package suggests what courses of action to take when parsing untrusted data. I don't know how it goes about doing that, though, so we'll have to ask Christian to clarify. -- assignee: docs@python -> nosy: +christian.heimes, r.david

[issue20242] logging style parameter does not work correctly

2014-01-13 Thread kespindler
kespindler added the comment: I created a patch that fixes this behavior for both { and $ style formats. Previously, default format strings were not being set correctly for those styles. This patch ensures that the correct default_format string is used. There is a minor "weirdness" issue that,

[issue20242] logging style parameter does not work correctly

2014-01-13 Thread kespindler
New submission from kespindler: In Python 3.3, 3.4beta2, and bleeding edge (88411:e7d922d8ee03), the following occurs >>> import logging >>> logging.basicConfig(style="{") >>> logging.error("hello") %(levelname)s:%(name)s:%(message)s Of course, I would expect ERROR:root:hello to be output

[issue5803] email/quoprimime: encode and decode are very slow on large messages

2014-01-13 Thread R. David Murray
R. David Murray added the comment: I've reviewed this and applied it to both 3.3 and 3.4 in order to fix issue 20206. Thanks, Serhiy. -- stage: patch review -> committed/rejected status: open -> closed versions: +Python 3.3 ___ Python tracker

[issue20206] email quoted-printable encoding issue

2014-01-13 Thread R. David Murray
R. David Murray added the comment: Fixed. -- resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker ___ ___

[issue5803] email/quoprimime: encode and decode are very slow on large messages

2014-01-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset 4c5b1932354b by R David Murray in branch '3.3': #20206, #5803: more efficient algorithm that doesn't truncate output. http://hg.python.org/cpython/rev/4c5b1932354b New changeset b6c3fc21286f by R David Murray in branch 'default': Merge #20206, #5803

[issue20206] email quoted-printable encoding issue

2014-01-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset 4c5b1932354b by R David Murray in branch '3.3': #20206, #5803: more efficient algorithm that doesn't truncate output. http://hg.python.org/cpython/rev/4c5b1932354b New changeset b6c3fc21286f by R David Murray in branch 'default': Merge #20206, #5803

[issue18622] reset_mock on mock created by mock_open causes infinite recursion

2014-01-13 Thread Laurent De Buyst
Laurent De Buyst added the comment: The proposed patch does solve the infinite recursion bug, but a different problem appears when resetting the same mock multiple times: it only works the first time. Using the patch as it stands: >>> from unittest.mock import mock_open >>> mo = mock_open() >

[issue20241] Bad reference to RFC in document of ipaddress?

2014-01-13 Thread INADA Naoki
INADA Naoki added the comment: Is it 5735 ? Next sentence may be wrong, too. > True if the address is otherwise IETF reserved. Is it "True if the address is IETF reserved." ? -- ___ Python tracker _

[issue20173] Derby #4: Convert 53 sites to Argument Clinic across 5 files

2014-01-13 Thread Vajrasky Kok
Changes by Vajrasky Kok : Added file: http://bugs.python.org/file33445/clinic_codecsmodule.patch ___ Python tracker ___ ___ Python-bugs-list m

[issue20241] Bad reference to RFC in document of ipaddress?

2014-01-13 Thread INADA Naoki
New submission from INADA Naoki: http://docs.python.org/3.3/library/ipaddress.html#ipaddress.IPv4Address.is_unspecified > True if the address is unspecified. See RFC 5375 (for IPv4) or RFC 2373 > (for IPv6). RFC 5375 is "IPv6 Unicast Address Assignment Considerations". -- assignee

[issue20173] Derby #4: Convert 53 sites to Argument Clinic across 5 files

2014-01-13 Thread Vajrasky Kok
Changes by Vajrasky Kok : Removed file: http://bugs.python.org/file33443/clinic_codecsmodule.patch ___ Python tracker ___ ___ Python-bugs-list

[issue20238] Incomplete gzip output with tarfile.open(fileobj=..., mode="w:gz")

2014-01-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you Martin for you report. Here is a patch which fixes this issue. -- assignee: -> serhiy.storchaka keywords: +patch stage: -> patch review versions: +Python 3.4 Added file: http://bugs.python.org/file33444/tarfile_fobj_gz_close.patch ___

[issue20240] Whitespace ignored in relative imports: from.package import something is valid syntax

2014-01-13 Thread Eric V. Smith
Eric V. Smith added the comment: This is no different from other places in python where white space is optional. As long as the parser can tell the end of a token, there need not be white space before the next token. For example: >>> 1+2 3 >>> 1 + 2 3 However, if the parser cannot tell the en

[issue20238] Incomplete gzip output with tarfile.open(fileobj=..., mode="w:gz")

2014-01-13 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +lars.gustaebel, nadeem.vawda, serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mai

[issue20136] Logging: StreamHandler does not use OS line separator.

2014-01-13 Thread A. Libotean
A. Libotean added the comment: Let me write also a test for this and come back with a reply. -- ___ Python tracker ___ ___ Python-bugs

[issue20137] Logging: RotatingFileHandler computes string length instead of byte representation length.

2014-01-13 Thread A. Libotean
A. Libotean added the comment: Sure, will come back shortly with a patch. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue20240] Whitespace ignored in relative imports: from.package import something is valid syntax

2014-01-13 Thread Jacek Szpot
New submission from Jacek Szpot: Just wanted to let you know that missing whitespace between "from" and a dot-prefixed name is not considered invalid: from.foo import bar .. does not raise an error. Perhaps it should? -- messages: 208022 nosy: maligree priority: normal severity: norm

[issue20173] Derby #4: Convert 53 sites to Argument Clinic across 5 files

2014-01-13 Thread Vajrasky Kok
Vajrasky Kok added the comment: Here is the patch for _codecs module. -- Added file: http://bugs.python.org/file33443/clinic_codecsmodule.patch ___ Python tracker ___ ___

[issue20239] Allow repeated deletion of unittest.mock.Mock attributes

2014-01-13 Thread Michael Foord
New submission from Michael Foord: Reported as mock issue 221: http://code.google.com/p/mock/issues/detail?id=221 >>> from unittest.mock import Mock >>> m = Mock() >>> m.foo = 3 >>> del m.foo >>> m.foo = 4 >>> del m.foo Traceback (most recent call last): File "", line 1, in File "/compile/p

[issue4356] Add "key" argument to "bisect" module functions

2014-01-13 Thread Dima Tisnek
Dima Tisnek added the comment: I've worked around this in 2.6/2.7 like this: class Arr: def __getitem__(self, i): return foo(i) # your key function def __len__(self): return 1000 # your max index value bisect.bisect(Arr(), value, ...) -- nosy: +Dima.Tisnek

[issue6625] UnicodeEncodeError on pydoc's CLI

2014-01-13 Thread Torsten Landschoff
Torsten Landschoff added the comment: I tested this as well and it seems to work now. :-) Thanks for fixing it! -- ___ Python tracker ___ _

[issue20238] Incomplete gzip output with tarfile.open(fileobj=..., mode="w:gz")

2014-01-13 Thread Martin Panter
New submission from Martin Panter: I am trying to create a tar file after opening it as a temporary file, and it seems to be writing truncated output when I use mode="w:gz". My workaround looks like it will be to use mode="w|gz" instead. It’s not clear what the difference is: am I losing anyth

[issue20229] platform.py uses deprecated feature of plistlib

2014-01-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: There is no need to indent any except the "pl = plistlib.load(f)" line. -- nosy: +serhiy.storchaka ___ Python tracker ___

[issue20237] Ambiguous sentence in document of xml package.

2014-01-13 Thread INADA Naoki
New submission from INADA Naoki: http://docs.python.org/3.3/library/xml.html#defused-packages "The courses of action are recommended for any server code that parses untrusted XML data." What this sentence means? What "The courses" is? -- assignee: docs@python components: Documentation

[issue1185124] pydoc doesn't find all module doc strings

2014-01-13 Thread Akira Kitada
Akira Kitada added the comment: I tried pydoc_2.7.patch with the following test file and found source_synopsis returns \x escaped string instead of \u escaped one. # -*- coding: utf-8 -*- u"""ツ""" class Spam(object): u"""ツ""" >>> import utf8 >>> utf8.__doc__ u'\u30c4' >>> print(utf8.__d

[issue6625] UnicodeEncodeError on pydoc's CLI

2014-01-13 Thread Berker Peksag
Berker Peksag added the comment: > I suppose this is a duplicate of #1065986. Yes, it is. I created a test file from the tests in issue6625_pydoc.diff and ran it on the current 2.7 branch. def foo(): u"""fooo bar baz \xfcnicode\u2026""" return 42 def bar(): u"f\xfcr Elise"