[issue20517] Support errors with two filenames for errno exceptions

2014-02-06 Thread Larry Hastings
Larry Hastings added the comment: Serhiy: I'm not sure if it's the language barrier, but that came across kind of mean. It's not that I can do whatever I want as release manager, but that I have the say in whether something is a bug fix or a new feature, which is how we decide whether or not

[issue20517] Support errors with two filenames for errno exceptions

2014-02-06 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20517 ___

[issue20525] Got compiler warning when compiling readline module

2014-02-06 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- versions: +Python 2.7, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20525 ___

[issue20525] Got compiler warning when compiling readline module

2014-02-06 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20525 ___

[issue20517] Support errors with two filenames for errno exceptions

2014-02-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This issue has been on my radar for a while (originally #16074). But I wasn't paying strong attention to it. Nobody in that issue came up with a solution I liked. Finally when you posted your patch I said ugh, can't we do better and had to think about

[issue20525] Got compiler warning when compiling readline module

2014-02-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: What will happen if change the signature of completion_matches to const char*? -- nosy: +benjamin.peterson, ned.deily, serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20525

[issue20526] python: Modules/gcmodule.c:379: visit_decref: Assertion `((gc)-gc.gc_refs (1)) != 0' failed.

2014-02-06 Thread STINNER Victor
New submission from STINNER Victor: While trying to reproduce a race condition in asyncio, I got an assertion error from the Python garbage collector at exit. It's not easy to reproduce the issue: run attached script on Python 3.4 compiled in debug mode (to get assertions) and press CTRL+c

[issue20526] python: Modules/gcmodule.c:379: visit_decref: Assertion `((gc)-gc.gc_refs (1)) != 0' failed.

2014-02-06 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: Added file: http://bugs.python.org/file33939/asyncio_gc.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20526 ___

[issue20527] multiprocessing.Queue deadlocks after “reader” process death

2014-02-06 Thread OscaTutenchamon
New submission from OscaTutenchamon: I've experienced that queue can be deadlocked for reading when: 1. The reader process is using `get` with timeout 0: self.queue.get(timeout=3) 2. reader dies while `get` is blocking due to timeout. After that queue's `_rlock` is never being released so

[issue20525] Got compiler warning when compiling readline module

2014-02-06 Thread Vajrasky Kok
Vajrasky Kok added the comment: It works. I chose Christian Heimes' strategy because of: char ** completion_matches (char *text, CPFunction *entry_func) in http://web.mit.edu/gnu/doc/html/rlman_2.html -- ___ Python tracker rep...@bugs.python.org

[issue20528] fileinput module will read whole file into memory when using fileinput.hook_encoded due to codecs.StreamReader.readlines

2014-02-06 Thread Gunnar Aastrand Grimnes
New submission from Gunnar Aastrand Grimnes: When reading large files with fileinput, it will work as expected and only process a line at a time when used normally, but if you add an hook_encoded openhook it will read the whole file into memory before returning the first line. Verify by

[issue14455] plistlib unable to read json and binary plist files

2014-02-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset 0121c2b7dcce by Ronald Oussoren in branch 'default': Issue #14455: fix handling of unsigned long long values for binary plist files http://hg.python.org/cpython/rev/0121c2b7dcce -- ___ Python tracker

[issue14455] plistlib unable to read json and binary plist files

2014-02-06 Thread Ronald Oussoren
Ronald Oussoren added the comment: Serhiy: the issue should now be fixed. I finally understand why I was so sure that Apple's code serialised large positive numbers as negative numbers: due to a bug in PyObjC large positive numbers end up as NSNumber values that are interpreted as negative

[issue1654367] [PATCH] Debuggers need a way to change the locals of a frame

2014-02-06 Thread Armin Rigo
Armin Rigo added the comment: Sorry to hijack CPython's bug tracker for that, but can you check if this makes sense to you? I added a function 'locals_to_fast()' to the __pypy__ built-in module which just calls the PyPy equivalent to PyFrame_LocalsToFast(). Your tests are passing, so I

[issue20184] Derby #16: Convert 50 sites to Argument Clinic across 9 files

2014-02-06 Thread Nick Coghlan
Nick Coghlan added the comment: Interpreting the lack of response as this can wait until 3.5. -- assignee: larry - priority: release blocker - normal versions: +Python 3.5 -Python 3.4 ___ Python tracker rep...@bugs.python.org

[issue20053] venv and ensurepip are affected by default pip config file

2014-02-06 Thread Nick Coghlan
Nick Coghlan added the comment: EnvironmentVarGuard doesn't work through monkeypatching - you make your changes *through* the guard, and it undoes them in __exit__, as well as restoring the original binding (in case *other* code monkeypatched it). This allows it to still be used when testing

[issue20529] Unittest displays ResourceWarning warnings when running tests, it probably should not

2014-02-06 Thread Bernt Røskar Brenna
New submission from Bernt Røskar Brenna: Given the following file test_reswarn.py: import unittest class TestResourceWarning(unittest.TestCase): def test_it(self): self.assertIn(TestResourceWarning, open(__file__).read()) Running the test: $ python -m unittest

[issue20480] Add ipaddress property to get name of reverse DNS PTR record

2014-02-06 Thread Leon Weber
Leon Weber added the comment: I noticed an inconsistency between IPv4 and IPv6 in my temporary variable names when looking at the patch again after a few days. Here’s an updated patch. Not that it’s important, but I sleep better that way :) As consensus seems to have settled on leaving out

[issue20480] Add ipaddress property to get name of reverse DNS PTR record

2014-02-06 Thread Eric V. Smith
Eric V. Smith added the comment: Looks good to me. Once 3.5 is open for new features, I'll commit this. (But feel free to ping me if you think it's lingering!) Thanks! -- assignee: - eric.smith ___ Python tracker rep...@bugs.python.org

[issue20527] multiprocessing.Queue deadlocks after “reader” process death

2014-02-06 Thread Yury Selivanov
Changes by Yury Selivanov yselivanov...@gmail.com: -- nosy: +jnoller, sbt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20527 ___ ___

[issue20530] Change the text signature format (again) to be more robust

2014-02-06 Thread Larry Hastings
New submission from Larry Hastings: Following a new discussion of the format of the text signature, I decided to go with this: name-of-function(...)\n--\n\n See here for the discussion: https://mail.python.org/pipermail/python-dev/2014-February/132271.html Patch attached implementing

[issue20528] fileinput module will read whole file into memory when using fileinput.hook_encoded due to codecs.StreamReader.readlines

2014-02-06 Thread R. David Murray
R. David Murray added the comment: Unfortunately, since 2.7 is in feature freeze, we can't add any new API there to allow a circumvention. On the other hand, it sounds like Serhiy has come up with an actual fix in the other issue, based on the reason that it is not in fact a problem in 3.x

[issue20530] Change the text signature format (again) to be more robust

2014-02-06 Thread Larry Hastings
Larry Hastings added the comment: Whoops, forgot to fix all the breakage in clinic_test.py. It's good now. -- Added file: http://bugs.python.org/file33942/larry.even.newerer.signature.syntax.1.diff ___ Python tracker rep...@bugs.python.org

[issue20530] Change the text signature format (again) to be more robust

2014-02-06 Thread Larry Hastings
Changes by Larry Hastings la...@hastings.org: Removed file: http://bugs.python.org/file33941/larry.even.newerer.signature.syntax.1.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20530 ___

[issue20529] Unittest displays ResourceWarning warnings when running tests, it probably should not

2014-02-06 Thread R. David Murray
R. David Murray added the comment: This is intentional behavior. In the general case, resource warnings *are* bugs, since not all Python implementations do automatic cleanup. This behavior should be controllable (I'm not even sure they *can* be turned on if python is not compiled in debug

[issue6386] importing yields unexpected results when initial script is a symbolic link

2014-02-06 Thread Brett Cannon
Brett Cannon added the comment: Thanks for the path, Senko! Tweaked the wording a bit as the current directory part was accurate for when you're in the REPL. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org

[issue20529] Unittest displays ResourceWarning warnings when running tests, it probably should not

2014-02-06 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20529 ___ ___

[issue6386] importing yields unexpected results when initial script is a symbolic link

2014-02-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset 47c31e7d3779 by Brett Cannon in branch 'default': Issue #6386: When executing a script that's a symlink, the directory http://hg.python.org/cpython/rev/47c31e7d3779 -- nosy: +python-dev ___ Python

[issue20529] Unittest displays ResourceWarning warnings when running tests, it probably should not

2014-02-06 Thread Bernt Røskar Brenna
Bernt Røskar Brenna added the comment: OK I see. I'll just use: python -W ignore:ResourceWarning -m unittest -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20529 ___

[issue20530] Change the text signature format (again) to be more robust

2014-02-06 Thread Yury Selivanov
Yury Selivanov added the comment: Whoops, forgot to fix all the breakage in clinic_test.py. It's good now. Ah, you re-uploaded the patch and reset my code review comments. I'll repeat them here, just in case. Reviewed the patch. - In one of the C files I saw this signature: (/) -- probably

[issue20185] Derby #17: Convert 49 sites to Argument Clinic across 13 files

2014-02-06 Thread Vajrasky Kok
Changes by Vajrasky Kok sky@speaklikeaking.com: Removed file: http://bugs.python.org/file33931/issue20185_conglomerate_v3.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20185 ___

[issue20185] Derby #17: Convert 49 sites to Argument Clinic across 13 files

2014-02-06 Thread Vajrasky Kok
Vajrasky Kok added the comment: Here is the updated patch for gc module. Some functions that can not be converted: - set_threshold(threshold0, [threshold1, threshold2]) Don't know what default value to give to threshold1, threshold2. static struct gc_generation generations[NUM_GENERATIONS] = {

[issue20185] Derby #17: Convert 49 sites to Argument Clinic across 13 files

2014-02-06 Thread Vajrasky Kok
Changes by Vajrasky Kok sky@speaklikeaking.com: Removed file: http://bugs.python.org/file33477/clinic_gc.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20185 ___

[issue20531] TypeError in e-mail.parser when non-ASCII is present

2014-02-06 Thread Jason R. Coombs
New submission from Jason R. Coombs: As reported in https://bitbucket.org/dholth/wheel/issue/104, the email.parser no longer accepts Unicode content as it did in 3.3. I searched the What's New and module documentation, but found no indication that this behavior is no longer supported, so it

[issue20488] importlib title and introduction are out of date

2014-02-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset cc08bf665dea by Brett Cannon in branch '3.3': Issue #20488: Update docs to say importlib is *the* implementaiton of http://hg.python.org/cpython/rev/cc08bf665dea New changeset 5641c0b50072 by Brett Cannon in branch 'default': Merge for issue #20488

[issue20185] Derby #17: Convert 49 sites to Argument Clinic across 13 files

2014-02-06 Thread Vajrasky Kok
Vajrasky Kok added the comment: About rlimit, I think we can use negative number for any member of the struct. But the thing is I am not really sure whether it's okay or not. So it's better on the safe side. I'll finish longobject in one or two days. --

[issue20029] asyncio.SubprocessProtocol is missing

2014-02-06 Thread STINNER Victor
STINNER Victor added the comment: There's one issue left: the docs need to document BaseProtocol. The BaseProtocol is documented here: http://docs.python.org/dev/library/asyncio-protocol.html#protocols Can we close the issue? -- ___ Python tracker

[issue20154] Deadlock in asyncio.StreamReader.readexactly()

2014-02-06 Thread STINNER Victor
STINNER Victor added the comment: I'd appreciate help writing a test. (Debugging this already set me back enough hours.) Guido: do you still plan to write such unit test or can we close the issue? -- nosy: +haypo ___ Python tracker

[issue19652] test_asyncio: test_subprocess_send_signal() hangs on buildbot AMD64 Snow Leop 3.x

2014-02-06 Thread STINNER Victor
STINNER Victor added the comment: I didn't see this bug recently, so I close the issue. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19652 ___

[issue20488] importlib title and introduction are out of date

2014-02-06 Thread Brett Cannon
Changes by Brett Cannon br...@python.org: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20488 ___

[issue20531] TypeError in e-mail.parser when non-ASCII is present

2014-02-06 Thread R. David Murray
R. David Murray added the comment: This was an intentional change, but I'm having second thoughts about it. I think I need to make it a deprecation warning in 3.4. Note that it doesn't actually do anything useful in 3.3: Python 3.3.2 (default, Dec 9 2013, 11:44:21) [GCC 4.7.2] on linux

[issue20531] TypeError in e-mail.parser when non-ASCII is present

2014-02-06 Thread R. David Murray
R. David Murray added the comment: Ideally what should really happen here, I think, is for email to treat this as analogous to an SMTPUTF8 message. But I certainly don't have time to do that for the alpha :( So, yeah, I need to revert that check for 3.4. -- nosy: +larry priority:

[issue20531] TypeError in e-mail.parser when non-ASCII is present

2014-02-06 Thread Daniel Holth
Daniel Holth added the comment: In bdist_wheel I've gone to some lengths to re-use the email module to parse and generate RFC822 inspired documents. The output is not a valid e-mail but it is useful. It is awkward to use the email module this way. We will sidestep the issue hopefully this

[issue20531] TypeError in e-mail.parser when non-ASCII is present

2014-02-06 Thread R. David Murray
R. David Murray added the comment: The long term goal is to make it not-awkward to do the kind of thing you are doing, Daniel. The change I made was premature in hindsight, I need to comprehensively address parsing unicode instead...it sort-of-works now, but only by accident. That said, it

[issue1654367] [PATCH] Debuggers need a way to change the locals of a frame

2014-02-06 Thread Fabio Zadrozny
Fabio Zadrozny added the comment: Hi Armin, That does make sense to me, but maybe it could be nice providing a standard API across Python implementations to make that call (even if the CPython version uses ctypes underneath and the PyPy version uses RPython), but I'll leave that up to

[issue20531] TypeError in e-mail.parser when non-ASCII is present

2014-02-06 Thread Daniel Holth
Daniel Holth added the comment: We do this. https://bitbucket.org/dholth/wheel/src/tip/wheel/pkginfo.py?at=default I appreciate the long-term goal. The policy system is really neat. We are going to json largely because the next version of the metadata is more nested. The decision had nothing

[issue1654367] [PATCH] Debuggers need a way to change the locals of a frame

2014-02-06 Thread Fabio Zadrozny
Fabio Zadrozny added the comment: Sure, no problems on my side :) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1654367 ___ ___

[issue1654367] [PATCH] Debuggers need a way to change the locals of a frame

2014-02-06 Thread Armin Rigo
Armin Rigo added the comment: CPython 2.7 is in feature-freeze, so we need to add it to __pypy__. If people here decide to add it more officially to CPython 3.x, then we'll also add it into pypy3, obviously. I'm sure a debugger can cope with a few extra ifs to check on which platform it is

[issue12691] tokenize.untokenize is broken

2014-02-06 Thread Gareth Rees
Gareth Rees added the comment: I did some research on the cause of this issue. The assertion was added in this change by Jeremy Hylton in August 2006: https://mail.python.org/pipermail/python-checkins/2006-August/055812.html (The corresponding Mercurial commit is here:

[issue20412] Enum and IntEnum classes are not defined in the documentation

2014-02-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset eeb582c0c014 by Ethan Furman in branch 'default': Close issue20412: Updated Enum docs to have referencable Enum and IntEnum classes http://hg.python.org/cpython/rev/eeb582c0c014 -- nosy: +python-dev resolution: - fixed stage: -

[issue20029] asyncio.SubprocessProtocol is missing

2014-02-06 Thread Guido van Rossum
Guido van Rossum added the comment: Go ahead and close it. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20029 ___ ___ Python-bugs-list mailing

[issue20386] socket.SocketType enum overwrites import of _socket.SocketType

2014-02-06 Thread Ethan Furman
Ethan Furman added the comment: Thanks for the hints, Georg! -- Added file: http://bugs.python.org/file33945/issue20386.stoneleaf.04.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20386

[issue20154] Deadlock in asyncio.StreamReader.readexactly()

2014-02-06 Thread Guido van Rossum
Guido van Rossum added the comment: I'd still like there to be a test. On Feb 6, 2014 6:52 AM, STINNER Victor rep...@bugs.python.org wrote: STINNER Victor added the comment: I'd appreciate help writing a test. (Debugging this already set me back enough hours.) Guido: do you still plan

[issue20532] Mark all tests which use _testcapi as CPython only

2014-02-06 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: The proposed patch marks all tests which use _testcapi as CPython only. Usually such tests don't make sense in alternative implementations. In particular tests which test integer overflow rely on implementation details. This should help to use common

[issue20532] Mark all tests which use _testcapi as CPython only

2014-02-06 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20532 ___ ___

[issue19721] Move all test_importlib utility code into test_importlib.util

2014-02-06 Thread Brett Cannon
Changes by Brett Cannon br...@python.org: -- versions: +Python 3.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19721 ___ ___ Python-bugs-list

[issue17621] Create a lazy import loader mixin

2014-02-06 Thread Brett Cannon
Brett Cannon added the comment: Here is a patch which implements a lazy loader for loaders that define exec_module(). -- keywords: +patch Added file: http://bugs.python.org/file33947/lazy_loader.diff ___ Python tracker rep...@bugs.python.org

[issue17621] Create a lazy import loader mixin

2014-02-06 Thread Brett Cannon
Changes by Brett Cannon br...@python.org: -- dependencies: -Make isinstance() work with super type instances ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17621 ___

[issue17621] Create a lazy import loader mixin

2014-02-06 Thread Brett Cannon
Changes by Brett Cannon br...@python.org: -- stage: test needed - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17621 ___ ___

[issue20505] Remove resolution from selectors and granularity from asyncio

2014-02-06 Thread Guido van Rossum
Guido van Rossum added the comment: Let me state this last point once again: no busy loop can occur now that timeouts are rounded up. How sure are you? Suppose I use poll() with a 0.5 msec timeout. This presumably gets rounded up to 1 msec. But if the system clock has e.g. a 10 msec

[issue20533] bug?

2014-02-06 Thread Rihards
New submission from Rihards: Python 3.3.3 (v3.3.3:c3896275c0f6, Nov 18 2013, 21:19:30) [MSC v.1600 64 bit (AMD64)] on win32 Type copyright, credits or license() for more information. 11.29-6.29 4.999 11.30-6.30 5.001 -- messages: 210412 nosy: Rihards

[issue20533] bug in float arithmetic?

2014-02-06 Thread Zachary Ware
Zachary Ware added the comment: Hi Rihards, This is not a bug, this is an example of the limitations of binary floating point arithmetic. See http://docs.python.org/3/tutorial/floatingpoint.html for more information. For explanation by demonstration, have a look at this: Python 3.3.2

[issue20527] multiprocessing.Queue deadlocks after “reader” process death

2014-02-06 Thread Richard Oudkerk
Richard Oudkerk added the comment: This is expected. Killing processes which use shared locks is never going to end well. Even without the lock deadlock, the data in the pipe would be liable to be corrupted if a processes is killed while putting or getting from a queue. If you want to be

[issue20363] BytesWarnings triggerred by test suite

2014-02-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: LGTM. -- assignee: lukasz.langa - serhiy.storchaka stage: patch review - commit review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20363 ___

[issue20363] BytesWarnings triggerred by test suite

2014-02-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset 791674a74e47 by Serhiy Storchaka in branch '3.3': Issue #20363. Fixed BytesWarning triggerred by test suite. http://hg.python.org/cpython/rev/791674a74e47 New changeset a4431dce107a by Serhiy Storchaka in branch 'default': Issue #20363. Fixed

[issue19995] %c, %o, %x, %X accept non-integer values instead of raising an exception

2014-02-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset 775fb736b4b8 by Serhiy Storchaka in branch 'default': Catch deprecation warnings emitted when non-integers are formatted with %c, %o http://hg.python.org/cpython/rev/775fb736b4b8 -- ___ Python tracker

[issue20363] BytesWarnings triggerred by test suite

2014-02-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you Arfrever for your report. Thank you Berker for your patch. -- resolution: - fixed stage: commit review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org

[issue20361] -W command line options and PYTHONWARNINGS environmental variable should not override -b / -bb command line options

2014-02-06 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- versions: +Python 3.5 -Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20361 ___

[issue20534] Enum tests fail with pickle protocol 4

2014-02-06 Thread Ethan Furman
New submission from Ethan Furman: enum34, the Enum backport, specifically uses `protocol=HIGHEST_PROTOCOL`, while the current enum tests just use the default. Running the enum34 test expose an issue with pickle protocol 4: ==

[issue20534] Enum tests fail with pickle protocol 4

2014-02-06 Thread Barry A. Warsaw
Changes by Barry A. Warsaw ba...@python.org: -- nosy: +barry ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20534 ___ ___ Python-bugs-list mailing

[issue20534] Enum tests fail with pickle protocol 4

2014-02-06 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- stage: test needed - needs patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20534 ___ ___

[issue20499] Rounding errors with statistics.variance

2014-02-06 Thread Oscar Benjamin
Changes by Oscar Benjamin oscar.j.benja...@gmail.com: -- nosy: +wolma ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20499 ___ ___ Python-bugs-list

[issue20534] Enum tests fail with pickle protocol 4

2014-02-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Pickle tests should test all protocols in range(pickle.HIGHEST_PROTOCOL + 1). -- nosy: +serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20534

[issue20534] Enum tests fail with pickle protocol 4

2014-02-06 Thread Ethan Furman
Ethan Furman added the comment: Working on fixing tests now. Not sure I can fix pickle (at least not in time for RC1). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20534 ___

[issue3158] Doctest fails to find doctests in extension modules

2014-02-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset c964b6b83720 by Zachary Ware in branch 'default': Issue #3158: Provide a couple of fallbacks for in case a method_descriptor http://hg.python.org/cpython/rev/c964b6b83720 -- ___ Python tracker

[issue20535] run_tests.py: Work around issues 20355 and 20361

2014-02-06 Thread Arfrever Frehtes Taifersar Arahesis
New submission from Arfrever Frehtes Taifersar Arahesis: Tools/scripts/run_tests.py contains: def main(regrtest_args): args = [sys.executable, '-W', 'default', # Warnings set to 'default' '-bb',# Warnings about bytes/bytearray '-E',

[issue20029] asyncio.SubprocessProtocol is missing

2014-02-06 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20029 ___

[issue3158] Doctest fails to find doctests in extension modules

2014-02-06 Thread Zachary Ware
Zachary Ware added the comment: Done. -- resolution: - fixed stage: commit review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3158 ___

[issue20451] os.exec* mangles argv on windows (splits on spaces, etc)

2014-02-06 Thread Zachary Ware
Changes by Zachary Ware zachary.w...@gmail.com: -- nosy: +zach.ware ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20451 ___ ___ Python-bugs-list

[issue20429] 3.3.4rc1 install deleted Windows taskbar icons

2014-02-06 Thread Zachary Ware
Changes by Zachary Ware zachary.w...@gmail.com: -- nosy: +zach.ware ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20429 ___ ___ Python-bugs-list

[issue20534] Enum tests fail with pickle protocol 4

2014-02-06 Thread Antoine Pitrou
Antoine Pitrou added the comment: Those tracebacks don't correspond to line numbers in the stdlib enum.py. Regardless, the two tests fail understandably: they define a class in the local namespace and then monkeypatch globals() with it, but don't adjust the __qualname__. --

[issue20534] Enum tests fail with pickle protocol 4

2014-02-06 Thread Ethan Furman
Ethan Furman added the comment: Thanks, Antoine, that was what I needed. -- assignee: - ethan.furman keywords: +patch stage: needs patch - patch review Added file: http://bugs.python.org/file33949/issue20534.stoneleaf.01.patch ___ Python tracker

[issue20536] statistics._decimal_to_ratio() produces non-integer ratio

2014-02-06 Thread Stefan Krah
New submission from Stefan Krah: As I understand, _decimal_to_ratio() should always produce an integer ratio. But it does not for positive exponents: import statistics statistics.mean([Decimal(100), Decimal(200)]) Decimal('150') statistics.mean([Decimal(1e2), Decimal(2e2)]) Traceback (most

[issue20537] logging exc_info parameter should accept exception instances

2014-02-06 Thread Yury Selivanov
New submission from Yury Selivanov: A bunch of logging methods accept optional parameter exc_info, that is supposed to be either 'True' or a tuple of three elements (type, exc, tb). If, however, someone passes an actual exception instance, Logger._log function will interpret it as True and

[issue19352] unittest loader barfs on symlinks

2014-02-06 Thread Kevin M. Turner
Changes by Kevin M. Turner acapno...@users.sourceforge.net: -- nosy: +acapnotic ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19352 ___ ___

[issue20534] Enum tests fail with pickle protocol 4

2014-02-06 Thread Ethan Furman
Ethan Furman added the comment: Serhiy, the minimum supported pickle protocol is 2. Now testing all protocols from 2 to HIGHEST_PROTOCOL, inclusive. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20534

[issue20534] Enum tests fail with pickle protocol 4

2014-02-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset 35f57ab9389b by Ethan Furman in branch 'default': Close issue20534: test_enum now tests all supported pickle protocols (2 - HIGHEST_PROTOCOL, inclusive). http://hg.python.org/cpython/rev/35f57ab9389b -- nosy: +python-dev resolution: -

[issue20185] Derby #17: Convert 49 sites to Argument Clinic across 13 files

2014-02-06 Thread Vajrasky Kok
Changes by Vajrasky Kok sky@speaklikeaking.com: Removed file: http://bugs.python.org/file33944/clinic_gc_v2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20185 ___

[issue19662] smtpd.py should not decode utf-8

2014-02-06 Thread Duke Dougal
Duke Dougal added the comment: Is there a workaround for this as I'd like to just be receiving binary data from SMTPD. I'm new to this system - is this scheduled for fixing in Python 3.4? -- nosy: +Duke.Dougal ___ Python tracker

[issue19662] smtpd.py should not decode utf-8

2014-02-06 Thread R. David Murray
R. David Murray added the comment: Unfortunately I did not get to this before the 3.4 beta release, so no, it won't be fixed in 3.4. You can work around it by overriding collect_incoming_data in your subclass and doing data.decode('ascii', 'surrogateescape') instead of str(data, 'utf-8'),

[issue20520] Readline test in test_codecs is broken

2014-02-06 Thread Ned Deily
Ned Deily added the comment: The change has broken the builds, for example, http://buildbot.python.org/all/builders/AMD64%20Snow%20Leop%203.x/builds/1197. [ 29/389] test_codecs Assertion failed: (maxchar = 0x100), function _PyUnicode_CheckConsistency, file Objects/unicodeobject.c, line 410.

[issue20534] Enum tests fail with pickle protocol 4

2014-02-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: But why the minimum supported pickle protocol is 2? Here is a patch which makes enums pickleable with all protocols. -- Added file: http://bugs.python.org/file33952/enum_pickle.patch ___ Python tracker

[issue20537] logging exc_info parameter should accept exception instances

2014-02-06 Thread Vinay Sajip
Vinay Sajip added the comment: I believe it's too late for feature changes in 3.4, so removing it from versions. -- assignee: - vinay.sajip versions: -Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20537

[issue20537] logging exc_info parameter should accept exception instances

2014-02-06 Thread Vinay Sajip
Vinay Sajip added the comment: It would be good if the patch addressed documentation changes, too :-) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20537 ___

[issue20530] Change the text signature format (again) to be more robust

2014-02-06 Thread Larry Hastings
Larry Hastings added the comment: Thanks for noticing the (/), that's fixed. Yes, the signature for type() was wrong. type() can accept either one parameter or three parameters--in other words, it uses optional groups. And we can't represent optional groups in an inspect.Signature signature