[issue22801] collections.Counter, when empty, doesn't raise an error with = when other is an incompatible type

2014-11-05 Thread Ethan Furman
Changes by Ethan Furman et...@stoneleaf.us: Added file: http://bugs.python.org/file37137/issue22778.stoneleaf.01.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22801 ___

[issue20220] TarFile.list() outputs wrong time

2014-11-05 Thread Antoine Pitrou
Antoine Pitrou added the comment: I can reproduce under Linux using: $ TZ='America/New_York' ./python -m test -v test_imaplib test_tarfile test_datetime -- nosy: +David.Edelsohn, pitrou ___ Python tracker rep...@bugs.python.org

[issue16255] subrocess.Popen needs /bin/sh but Android only has /system/bin/sh

2014-11-05 Thread Matt Frank
Changes by Matt Frank matthew.i.fr...@intel.com: -- nosy: +WanderingLogic ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16255 ___ ___

[issue16353] add function to os module for getting path to default shell

2014-11-05 Thread Matt Frank
Changes by Matt Frank matthew.i.fr...@intel.com: -- nosy: +WanderingLogic ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16353 ___ ___

[issue20220] TarFile.list() outputs wrong time

2014-11-05 Thread Antoine Pitrou
Antoine Pitrou added the comment: We seem to be bitten by the following bit of glibc (?) oddity: os.environ['TZ'] = 'America/New_York' time.tzset() time.daylight, time.timezone, time.altzone, time.tzname (1, 18000, 14400, ('EST', 'EDT')) os.environ['TZ'] = 'STD-1DST' time.tzset()

[issue20220] TarFile.list() outputs wrong time

2014-11-05 Thread Antoine Pitrou
Antoine Pitrou added the comment: First unsetting TZ seems to fix it: diff --git a/Lib/test/support/__init__.py b/Lib/test/support/__init__.py --- a/Lib/test/support/__init__.py +++ b/Lib/test/support/__init__.py @@ -1507,11 +1507,11 @@ def run_with_tz(tz): try:

[issue5717] os.defpath includes unix /bin on windows

2014-11-05 Thread Matt Frank
Changes by Matt Frank matthew.i.fr...@intel.com: -- nosy: +WanderingLogic ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5717 ___ ___

[issue5717] os.defpath includes unix /bin on windows

2014-11-05 Thread Guido van Rossum
Changes by Guido van Rossum gu...@python.org: -- nosy: -gvanrossum ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5717 ___ ___ Python-bugs-list

[issue22650] set up and use VM for net access in the test suite

2014-11-05 Thread Benjamin Peterson
Benjamin Peterson added the comment: I created a repository https://hg.python.org/pythontestdotnet, which is cloned on the server. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22650 ___

[issue22802] On Windows, if you try and use ccs=UTF-8 (or other variants) the U is removed

2014-11-05 Thread Alex Earl
New submission from Alex Earl: As you can see below, the code in fileobject.c is removing the U from the UTF-8 (or UNICODE) when it tries to replace a U for universal line ending mode. Python 2.7.8 (default, Jun 30 2014, 16:03:49) [MSC v.1500 32 bit (Intel)] on win32 Type help, copyright,

[issue22525] ast.literal_eval() doesn't do what the documentation says

2014-11-05 Thread Roundup Robot
Roundup Robot added the comment: New changeset 5c5909740026 by Georg Brandl in branch '3.4': Closes #22525: clarify documentation for ast.literal_eval(). https://hg.python.org/cpython/rev/5c5909740026 -- nosy: +python-dev resolution: - fixed stage: patch review - resolved status: open

[issue22525] ast.literal_eval() doesn't do what the documentation says

2014-11-05 Thread Georg Brandl
Georg Brandl added the comment: Thanks, Raymond. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22525 ___ ___ Python-bugs-list mailing list

[issue22525] ast.literal_eval() doesn't do what the documentation says

2014-11-05 Thread Roundup Robot
Roundup Robot added the comment: New changeset 3e8d3c4bc17e by Georg Brandl in branch '2.7': Closes #22525: clarify documentation for ast.literal_eval(). https://hg.python.org/cpython/rev/3e8d3c4bc17e -- ___ Python tracker rep...@bugs.python.org

[issue22802] On Windows, if you try and use ccs=UTF-8 (or other variants) the U is removed

2014-11-05 Thread Georg Brandl
Georg Brandl added the comment: open() does not support arbitrary platform flags in its mode argument. To open encoded files and transparently decode them to Unicode strings, please use io.open() on Python 2, and pass the correct encoding argument. On Python 3, the builtin open() is the

[issue22784] test_asyncio fails without the ssl module

2014-11-05 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7e9e2b17ac6f by Antoine Pitrou in branch '3.4': Closes #22784: fix test_asyncio when the ssl module isn't available https://hg.python.org/cpython/rev/7e9e2b17ac6f New changeset 028c729714af by Antoine Pitrou in branch 'default': Closes #22784: fix

[issue16353] add function to os module for getting path to default shell

2014-11-05 Thread Matt Frank
Matt Frank added the comment: Unfortunately os.defpath seems to be hardcoded. And hardcoded to the wrong value on every system I have looked at, including Linux. Lib/posixpath.py sets defpath=':/bin:/usr/bin' which is _not_ what `getconf CS_PATH` returns on my Linux (the extra ':' at the

[issue5717] os.defpath includes unix /bin on windows

2014-11-05 Thread Matt Frank
Matt Frank added the comment: os.defpath also seems wrong on Mac (':') and Linux (':/bin:/bin/sh'. The extra ':' at the beginning means the same thing as '.:/bin:/bin/sh' which is probably a security problem. I just started up discussion on http://bugs.python.org/issue16353 (which may

[issue21650] add json.tool option to avoid alphabetic sort of fields

2014-11-05 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- assignee: - berker.peksag ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21650 ___ ___

[issue22695] open() declared deprecated in python 3 docs

2014-11-05 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- assignee: docs@python - berker.peksag stage: patch review - commit review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22695 ___

[issue14260] re.groupindex is available for modification and continues to work, having incorrect data inside it

2014-11-05 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- stage: needs patch - patch review versions: +Python 3.5 -Python 2.7, Python 3.2, Python 3.3, Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14260

[issue22800] IPv6Network constructor sometimes does not recognize legitimate netmask

2014-11-05 Thread Ned Deily
Changes by Ned Deily n...@acm.org: -- nosy: +ncoghlan, pmoody ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22800 ___ ___ Python-bugs-list mailing

[issue22800] IPv6Network constructor sometimes does not recognize legitimate netmask

2014-11-05 Thread Raymond Hettinger
Changes by Raymond Hettinger raymond.hettin...@gmail.com: -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22800 ___ ___

[issue16353] add function to os module for getting path to default shell

2014-11-05 Thread Ned Deily
Ned Deily added the comment: Matt, ignore Lib/macpath.py. It is not used on OS X systems other than in the rare case that someone explicitly needs to parse obsolete Classic Mac OS (Mac OS 9 or earlier) style path names. OS X uses Lib/posixpath.py. -- nosy: +ned.deily

[issue22650] set up and use VM for net access in the test suite

2014-11-05 Thread Georg Brandl
Georg Brandl added the comment: 4985375db40f takes care of test_httplib. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22650 ___ ___

[issue15824] mutable urlparse return type

2014-11-05 Thread Matthew Hall
Matthew Hall added the comment: I don't think having to call a method with a weird secret underscored name to update a value in a URL named tuple is very elegant. Neither is creating a handful of pointless objects to make one simple validator function like the one I had to code today. I would

[issue21367] multiprocessing.JoinableQueue requires new kwarg

2014-11-05 Thread larkost
larkost added the comment: We just got bitten by this issue because we are trying to be compatible across 2.x and 3.x (including 3.0-3.2). For anyone who runs into the missing 1 required keyword-only argument: 'ctx' here is an import statement that works: try: from multiprocessing import

[issue7562] Custom order for the subcommands of build

2014-11-05 Thread Joshua J Cogliati
Joshua J Cogliati added the comment: The documentation does claim that swig should just work the build_ext command knows how to deal with SWIG extensions: it will run SWIG on the interface file and compile the resulting C/C++ file into your extension. It would be nice if there was one obvious

[issue15824] mutable urlparse return type

2014-11-05 Thread R. David Murray
R. David Murray added the comment: Think of it as immutable like a string is immutable. The cases are exactly parallel (the string function is of course named 'replace' since it doesn't have to deal with the 'arbitrary attribute names' problem namedtuple does), except that it is much easier

[issue22796] Support for httponly/secure cookies reintroduced lax parsing behavior

2014-11-05 Thread Antoine Pitrou
Antoine Pitrou added the comment: Paul, Tim, do you think there's a real risk of regression with the proposed patch? -- stage: - commit review versions: +Python 3.5 -Python 2.7, Python 3.2, Python 3.3, Python 3.4 ___ Python tracker

[issue16353] add function to os module for getting path to default shell

2014-11-05 Thread Akira Li
Akira Li added the comment: Matt Frank added the comment: Unfortunately os.defpath seems to be hardcoded. And hardcoded to the wrong value on every system I have looked at, including Linux. os.defpath is supposed to be ':'+CS_PATH, e.g., look at glibc (C library used on Linux)

[issue22796] Support for httponly/secure cookies reintroduced lax parsing behavior

2014-11-05 Thread Tim Graham
Tim Graham added the comment: Security-wise? I don't know, I haven't really been in the loop on the original issue. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22796 ___

[issue20160] broken ctypes calling convention on MSVC / 64-bit Windows (large structs)

2014-11-05 Thread Roundup Robot
Roundup Robot added the comment: New changeset f75b0470168b by Steve Dower in branch '2.7': Issue #20160: broken ctypes calling convention on MSVC / 64-bit Windows (large structs). Patch by mattip https://hg.python.org/cpython/rev/f75b0470168b -- nosy: +python-dev

[issue20160] broken ctypes calling convention on MSVC / 64-bit Windows (large structs)

2014-11-05 Thread Roundup Robot
Roundup Robot added the comment: New changeset cd36ba22602d by Steve Dower in branch '3.4': Issue #20160: broken ctypes calling convention on MSVC / 64-bit Windows (large structs) Patch by mattip https://hg.python.org/cpython/rev/cd36ba22602d New changeset b701eb69260d by Steve Dower in branch

[issue20160] broken ctypes calling convention on MSVC / 64-bit Windows (large structs)

2014-11-05 Thread Steve Dower
Steve Dower added the comment: Done. Thanks mattip! -- resolution: - fixed stage: - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20160 ___

[issue22803] textwrap.indent version added not documented

2014-11-05 Thread Christopher Foo
New submission from Christopher Foo: I was running my program under CI and it failed under 3.2: text = textwrap.indent(text, '* ', predicate=lambda line: True) AttributeError: 'module' object has no attribute 'indent' textwrap.indent appears to be a new feature in 3.3 but

[issue22803] textwrap.indent version added not documented

2014-11-05 Thread Roundup Robot
Roundup Robot added the comment: New changeset 501edbbb74ff by Raymond Hettinger in branch '3.4': Issue 22803: Add missing versionadded directive. https://hg.python.org/cpython/rev/501edbbb74ff -- nosy: +python-dev ___ Python tracker

[issue22803] textwrap.indent version added not documented

2014-11-05 Thread Raymond Hettinger
Raymond Hettinger added the comment: Thanks for the bug report. -- nosy: +rhettinger resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22803 ___

[issue22796] Support for httponly/secure cookies reintroduced lax parsing behavior

2014-11-05 Thread Antoine Pitrou
Antoine Pitrou added the comment: No, I meant functionality-wise. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22796 ___ ___ Python-bugs-list

<    1   2