[issue24193] Make LOGGING_FORMAT of assertLogs configurable

2015-08-24 Thread Michael Foord
Michael Foord added the comment: assertLogs is on a Python test suite helper, not TestCase itself. -- ___ Python tracker ___ ___ Pytho

[issue24193] Make LOGGING_FORMAT of assertLogs configurable

2015-08-24 Thread Robert Collins
Robert Collins added the comment: I don't know if or when it was moved, but right now: ./python -m pydoc unittest.case.TestCase.assertLogs ... the docs for it. -- ___ Python tracker ___

[issue16379] SQLite error code not exposed to python

2015-08-24 Thread Daniel Shahaf
Daniel Shahaf added the comment: > What's the reasoning behind offering a error code to name mapping? Allowing code that runs into an error to print the error name rather than its numeric value. This saves whoever reads the error message having to look it up himself. > his seem problematic to

[issue16123] IDLE - deprecate running without a subprocess

2015-08-24 Thread Torgil Svensson
Torgil Svensson added the comment: I frequently use IDLE as an interactive shell to Python with the Editor attached. It's very nice for this purpose as it's lightweight and embedded in Python delivery. This is only possible with -n flag as without it each press on F5 will restart the interpret

[issue24921] Operator precedence table in 5.15 should be highest to lowest precedence

2015-08-24 Thread Joseph Schachner
New submission from Joseph Schachner: We should not make people who need to read Python documentation do an extra transformation in their heads to correctly understand that in section 5.15 higher precedence is at the bottom of the table and lower precedence is at the top. Because the documenta

[issue24907] Module location load order is not respected if pkg_resources is imported and a namespace is declared

2015-08-24 Thread Vadim Kantorov
Vadim Kantorov added the comment: >From my (novice) standpoint, it's very weird that importing pkg_resources in a >module's __init__.py causes Python to deviate from its core module import >rules / sequence. Would you consider reporting this issue to pkg_resources's authors more appropriate?

[issue24922] assertWarnsRegex doesn't allow multiple warning messages

2015-08-24 Thread Cal Leeming
New submission from Cal Leeming: There was a discussion/patch in #9754 [1]. This allows for multiple warning types as a tuple, e.g.; self.assertWarnsRegex((DeprecationWarning, RuntimeWarning), "^E1000:") However, it does not allow testing for multiple warning messages, e.g.; expect =

[issue24907] Module location load order is not respected if pkg_resources is imported and a namespace is declared

2015-08-24 Thread R. David Murray
R. David Murray added the comment: Yes, unless you can identify a python bug yourself. I believe pkg_resources does a bunch of imports when it is imported, so I'm not really surprised that it has an effect on the order in which things are imported. --

[issue24907] Module location load order is not respected if pkg_resources is imported and a namespace is declared

2015-08-24 Thread R. David Murray
R. David Murray added the comment: To be clear: I believe it imports things that are not in the standard library, based on scanning sys.path. But I haven't studied the code in depth, so I could be wrong. -- ___ Python tracker

[issue24921] Operator precedence table in 5.15 should be highest to lowest precedence

2015-08-24 Thread Stefan Krah
Stefan Krah added the comment: Yacc uses low to high. -- nosy: +skrah ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue24915] Profile Guided Optimization active by-default

2015-08-24 Thread Alecsandru Patrascu
Changes by Alecsandru Patrascu : Added file: http://bugs.python.org/file40236/python2.7-pgo-v02.patch ___ Python tracker ___ ___ Python-bugs-l

[issue24915] Profile Guided Optimization active by-default

2015-08-24 Thread Alecsandru Patrascu
Changes by Alecsandru Patrascu : Added file: http://bugs.python.org/file40239/python3.6-pgo-v02-mac.patch ___ Python tracker ___ ___ Python-bu

[issue24915] Profile Guided Optimization active by-default

2015-08-24 Thread Alecsandru Patrascu
Changes by Alecsandru Patrascu : Added file: http://bugs.python.org/file40238/python2.7-pgo-v02-mac.patch ___ Python tracker ___ ___ Python-bu

[issue24915] Profile Guided Optimization active by-default

2015-08-24 Thread Alecsandru Patrascu
Alecsandru Patrascu added the comment: I modified the patches after the review made by Brett (python2.7-pgo-v02.patch and python3.6-pgo-v02.patch): - removed the call to pybench - left the PGO steps as optional. To use it we run "make profile-opt" - in the initial patches, I left out test_hashli

[issue24915] Profile Guided Optimization active by-default

2015-08-24 Thread Alecsandru Patrascu
Changes by Alecsandru Patrascu : Added file: http://bugs.python.org/file40237/python3.6-pgo-v02.patch ___ Python tracker ___ ___ Python-bugs-l

[issue24915] Profile Guided Optimization active by-default

2015-08-24 Thread Stefan Krah
Stefan Krah added the comment: My initial reaction is that the default should be optimized for short build times. I would not want to type "disable-profile-opt" every time I'm running the tests. -- nosy: +skrah ___ Python tracker

[issue24923] Append system paths in setup.py instead of prepending

2015-08-24 Thread Chris Hogan
New submission from Chris Hogan: Setup.py evaluates what's given in LDFLAGS and CPPFLAGS and CFLAGS. These variables are the usual mechanism to communicate custom paths/libs/defs to a build process. However, setup.py puts system paths in front of custom paths which makes it impossible to use t

[issue24915] Profile Guided Optimization active by-default

2015-08-24 Thread Stefan Krah
Stefan Krah added the comment: I see that your latest patch leaves PGO as an option, so please ignore my previous comment. -- ___ Python tracker ___ _

[issue24921] Operator precedence table in 5.15 should be highest to lowest precedence

2015-08-24 Thread Skip Montanaro
Skip Montanaro added the comment: YACC might be an outlier as well. In any case, it's probably better to use other common programming languages as a gauge of what's typical. A quick check of C, C#, C++, Java, Perl, Ruby, and Haskell shows they all list operator precedence in order from highest

[issue24921] Operator precedence table in 5.15 should be highest to lowest precedence

2015-08-24 Thread Stefan Krah
Stefan Krah added the comment: Agreed. I'm not sure though what the reason for this convention is: The flow in Grammar/Grammar (low to high) feels quite natural to me. That said, I'm +-0 on the change. -- ___ Python tracker

[issue24924] _posixsubprocess.c: sysconf() might not be async-signal-safe

2015-08-24 Thread Jakub Wilk
New submission from Jakub Wilk: The safe_get_max_fd() (in Modules/_posixsubprocess.c) is documented to be async-signal-safe. However, this function calls sysconf(). sysconf() was guaranteed to be async-singal-safe in SUSv3, but it's no longer in SUSv4. I don't think it's going to be a problem

[issue24872] Add /NODEFAULTLIB:MSVCRT to _msvccompiler

2015-08-24 Thread Steve Dower
Steve Dower added the comment: Do you know where that time is being spent? I'd guess it's in link.exe (or lib.exe) while it displays a "generating code" message. You should be able to omit the "/LTCG" option from lib.exe when building a static library, though I suspect that will push the delay

[issue24925] Allow doctest to find line number of __test__ strings if formatted as a triple quoted string.

2015-08-24 Thread R. David Murray
New submission from R. David Murray: Attached is a patch that enhances doctest discovery so that it can correctly report the line number for doctest errors in tests that are string values of the __test__ dictionary. It only works if the strings are formatted as triple quoted strings, but sinc

[issue24924] _posixsubprocess.c: sysconf() might not be async-signal-safe

2015-08-24 Thread R. David Murray
Changes by R. David Murray : -- nosy: +gregory.p.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue24925] Allow doctest to find line number of __test__ strings if formatted as a triple quoted string.

2015-08-24 Thread R. David Murray
Changes by R. David Murray : Removed file: http://bugs.python.org/file40241/doctest_find__test__.patch ___ Python tracker ___ ___ Python-bugs-

[issue24925] Allow doctest to find line number of __test__ strings if formatted as a triple quoted string.

2015-08-24 Thread R. David Murray
Changes by R. David Murray : Added file: http://bugs.python.org/file40242/doctest_find__test__.patch ___ Python tracker ___ ___ Python-bugs-li

[issue24915] Profile Guided Optimization active by-default

2015-08-24 Thread Brett Cannon
Brett Cannon added the comment: the v02 patches LGTM. I'm fine with seeing those committed as-is knowing Alecsandru is actively working towards Clang support. -- stage: patch review -> commit review ___ Python tracker

[issue19469] Duplicate namespace package portions (but not on Windows)

2015-08-24 Thread Brett Cannon
Brett Cannon added the comment: OK, if someone finds a way to reproduce the bug in the next week then we will keep this open as active, else I'm closing it as out-of-date. -- status: open -> pending ___ Python tracker

[issue24926] Incorrect Example in HTMLParser.handle_comment(data)

2015-08-24 Thread Vineet Kumar Doshi
New submission from Vineet Kumar Doshi: Hi, link : https://docs.python.org/2/library/htmlparser.html#HTMLParser.HTMLParser.handle_comment Incorrect Line : The content of Internet Explorer conditional comments (condcoms) will also be sent to this method, so, for , this method will receive '

[issue24926] Incorrect Example in HTMLParser.handle_comment(data)

2015-08-24 Thread Roundup Robot
Roundup Robot added the comment: New changeset ff53dbcdc85f by R David Murray in branch '2.7': #24926: Fix typo in example. https://hg.python.org/cpython/rev/ff53dbcdc85f -- nosy: +python-dev ___ Python tracker ___

[issue24926] Incorrect Example in HTMLParser.handle_comment(data)

2015-08-24 Thread R. David Murray
R. David Murray added the comment: Thanks for the report. -- nosy: +r.david.murray resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue24926] Incorrect Example in HTMLParser.handle_comment(data)

2015-08-24 Thread Roundup Robot
Roundup Robot added the comment: New changeset 6eb5e59886e1 by R David Murray in branch '3.4': #24926: Fix typo in example. https://hg.python.org/cpython/rev/6eb5e59886e1 New changeset ae9a9f201870 by R David Murray in branch '3.5': Merge: #24926: Fix typo in example. https://hg.python.org/cpyth

[issue16123] IDLE - deprecate running without a subprocess

2015-08-24 Thread Terry J. Reedy
Terry J. Reedy added the comment: Torgil, thank you for the interesting feedback. I will respond to your four paragraphs slightly out of order. 1. Starting Idle with '-n', I verified that running 'print(a)' from the editor works after entering 'a=1' in the shell. The intended purpose of the ed

[issue24927] multiprocessing.Pool hangs forever on segfault

2015-08-24 Thread Jonas Obrist
New submission from Jonas Obrist: When using multiprocessing.Pool, if the function run in the pool segfaults, the program will simply hang forever. However when using multiprocessing.Process directly, it runs fine, setting the exitcode to -11 as expected. I would expect the Pool to behave simi

[issue24927] multiprocessing.Pool hangs forever on segfault

2015-08-24 Thread Jonas Obrist
Changes by Jonas Obrist : Added file: http://bugs.python.org/file40244/segfault.c ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue24927] multiprocessing.Pool hangs forever on segfault

2015-08-24 Thread Jonas Obrist
Changes by Jonas Obrist : Added file: http://bugs.python.org/file40246/process_segfault.py ___ Python tracker ___ ___ Python-bugs-list mailing

[issue24927] multiprocessing.Pool hangs forever on segfault

2015-08-24 Thread Jonas Obrist
Changes by Jonas Obrist : Added file: http://bugs.python.org/file40245/setup.py ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue24927] multiprocessing.Pool hangs forever on segfault

2015-08-24 Thread Jonas Obrist
Changes by Jonas Obrist : Removed file: http://bugs.python.org/file40244/segfault.c ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue24927] multiprocessing.Pool hangs forever on segfault

2015-08-24 Thread Jonas Obrist
Changes by Jonas Obrist : Removed file: http://bugs.python.org/file40245/setup.py ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue24927] multiprocessing.Pool hangs forever on segfault

2015-08-24 Thread Jonas Obrist
Changes by Jonas Obrist : Removed file: http://bugs.python.org/file40243/pool_segfault.py ___ Python tracker ___ ___ Python-bugs-list mailing

[issue24927] multiprocessing.Pool hangs forever on segfault

2015-08-24 Thread Jonas Obrist
Changes by Jonas Obrist : Added file: http://bugs.python.org/file40247/pool_segfault.py ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue24927] multiprocessing.Pool hangs forever on segfault

2015-08-24 Thread Jonas Obrist
Changes by Jonas Obrist : Removed file: http://bugs.python.org/file40246/process_segfault.py ___ Python tracker ___ ___ Python-bugs-list maili

[issue24927] multiprocessing.Pool hangs forever on segfault

2015-08-24 Thread Jonas Obrist
Changes by Jonas Obrist : Added file: http://bugs.python.org/file40248/process_segfault.py ___ Python tracker ___ ___ Python-bugs-list mailing

[issue24928] mock.patch.dict spoils order of items in collections.OrderedDict

2015-08-24 Thread Alexander Oblovatniy
New submission from Alexander Oblovatniy: Hi! Current implementation of `patch.dict` spoils order of items in `collections.OrderedDict`, because it explicitly converts passed `values` to `dict` (https://github.com/python/cpython/blob/923527f560acd43d4cc11293060900e56c7cb39b/Lib/unittest/mock.

[issue24928] mock.patch.dict spoils order of items in collections.OrderedDict

2015-08-24 Thread Alexander Oblovatniy
Alexander Oblovatniy added the comment: Hi! Current implementation of `patch.dict` spoils order of items in `collections.OrderedDict`, because it explicitly converts passed `values` to `dict` (https://github.com/python/cpython/blob/923527f560acd43d4cc11293060900e56c7cb39b/Lib/unittest/mock.py

[issue24915] Profile Guided Optimization improvements (better training, llvm support, etc)

2015-08-24 Thread Gregory P. Smith
Gregory P. Smith added the comment: i'm updating the title to be more accurate. turning it on by default is likely not desirable as the makefile is primarily used by developers who are iterating on changes. but having it use a good workload (regrtest) and work with llvm and os x are good. :)

[issue24492] using custom objects as modules: AttributeErrors new in 3.5

2015-08-24 Thread Roundup Robot
Roundup Robot added the comment: New changeset 5a9ac801f9b4 by larry in branch '3.5': Merged in brettcannon/cpython350/3.5 (pull request #2) https://hg.python.org/cpython/rev/5a9ac801f9b4 -- ___ Python tracker

[issue24928] mock.patch.dict spoils order of items in collections.OrderedDict

2015-08-24 Thread R. David Murray
R. David Murray added the comment: Based on reading the patch.dict doct, I'm guessing that that dict call is making a copy in order to do a restore later. Perhaps replacing the dict call with a copy call would be sufficient? (I haven't looked at the dict.patch code). -- nosy: +r.david

[issue24929] _strptime.TimeRE should not enforce range in regex

2015-08-24 Thread Steve Yeung
New submission from Steve Yeung: Currently, the regex in TimeRE enforces the numeric ranges. For example: 'm': r"(?P1[0-2]|0[1-9]|[1-9])", As a result, an invalid month will cause an generic regex error: ValueError: time data '2015/16/5' does not match format '%Y/%m/%d' However, if we r

[issue24294] DeprecationWarnings should be visible by default in the interactive REPL

2015-08-24 Thread Robert Collins
Robert Collins added the comment: Hi, just to say - I'm happy to help steer this through. I think its an important ecosystem fixup. -- nosy: +rbcollins ___ Python tracker ___ __

[issue24294] DeprecationWarnings should be visible by default in the interactive REPL

2015-08-24 Thread Robert Collins
Robert Collins added the comment: On testing this - I don't think subprocess tests are necessarily needed. The scenarios are these (from Nick's comment): Test frameworks. - there are two in the standard library. unittest and doctest. - unittest's code paths end up going through 'TestProgram'.

[issue24927] multiprocessing.Pool hangs forever on segfault

2015-08-24 Thread Jonas Obrist
Jonas Obrist added the comment: So the reason this is happening is very simple: When using Pool.apply, the task (function) is sent to the task queue, which is consumed by the worker. At this point the task is "in progress". However, the worker dies without being able to finish the task or in a

[issue24930] fix

2015-08-24 Thread marcos paulo
New submission from marcos paulo: Hello to everyone!!! This test https://hg.python.org/cpython/file/2.7/Lib/test/test_ssl.py on method ContextTests.test_options, is broker becouse has a error between lines 717 ~ 719; On 717 line, has a comment about # OP_ALL | OP_NO_SSLv2 is the default value,

[issue24930] test_ssl broker was fixed

2015-08-24 Thread marcos paulo
Changes by marcos paulo : -- title: fix -> test_ssl broker was fixed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr

[issue21167] float('nan') returns 0.0 on Python compiled with icc

2015-08-24 Thread Larry Hastings
Larry Hastings added the comment: Pull request accepted and merged. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

[issue24847] Can't import tkinter in Python 3.5.0rc1

2015-08-24 Thread Larry Hastings
Larry Hastings added the comment: Pull request accepted and merged. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

[issue2786] Names in traceback should have class names, if they're methods

2015-08-24 Thread Robert Collins
Robert Collins added the comment: Ok, so this is an API and ABI change. I'm going to do a variant without that downside. -- ___ Python tracker ___ ___

[issue24931] _asdict breaks when inheriting from a namedtuple

2015-08-24 Thread Samuel Isaacson
New submission from Samuel Isaacson: When inheriting from namedtuples, _asdict and __dict__ return empty dictionaries: from collections import namedtuple class Point(namedtuple('_Point', ['x', 'y'])): pass a = Point(3, 4) print(a._asdict() == {}) gives False; it is Tr

[issue2786] Names in traceback should have class names, if they're methods

2015-08-24 Thread Robert Collins
Robert Collins added the comment: And herewith. -- Added file: http://bugs.python.org/file40250/issue-2786-1.patch ___ Python tracker ___ _

[issue24867] Asyncio Task.get_stack fails with native coroutines

2015-08-24 Thread Larry Hastings
Larry Hastings added the comment: Pull request accepted and merged. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

[issue24769] Interpreter doesn't start when dynamic loading is disabled

2015-08-24 Thread Larry Hastings
Larry Hastings added the comment: Yes, I'll accept this into 3.5.0, please send a pull request. -- ___ Python tracker ___ ___ Python-b

[issue24844] Python 3.5rc1 compilation error with Apple clang 4.2 included with Xcode 4

2015-08-24 Thread Larry Hastings
Larry Hastings added the comment: Please either mark as wontfix or send me a pull request. -- ___ Python tracker ___ ___ Python-bugs-l

[issue24931] _asdict breaks when inheriting from a namedtuple

2015-08-24 Thread Yury Selivanov
Changes by Yury Selivanov : -- nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue2786] Names in traceback should have class names, if they're methods

2015-08-24 Thread Robert Collins
Robert Collins added the comment: Forgot docs - I'll do before committing, but not worried about review of them so much. -- ___ Python tracker ___ ___

[issue24305] The new import system makes it impossible to correctly issue a deprecation warning for a module

2015-08-24 Thread Larry Hastings
Larry Hastings added the comment: The C implementation is making me nervous. My gut feeling is the Python implementation would be easier to get right. I still don't quite understand: what is the user-perceived result of this change? Module authors issuing a DeprecationWarning can now use sta

[issue24305] The new import system makes it impossible to correctly issue a deprecation warning for a module

2015-08-24 Thread Larry Hastings
Larry Hastings added the comment: Is it really *impossible* to "correctly issue a deprecation warning for a module", as the title asserts? Or does the new import system simply make it *tiresome*? if sys.version_info.major == 3 and sys.version_info.minor == 4: stacklevel = 8 elif sys.versio

[issue24305] The new import system makes it impossible to correctly issue a deprecation warning for a module

2015-08-24 Thread Nathaniel Smith
Nathaniel Smith added the comment: > I still don't quite understand: what is the user-perceived result of this > change? Module authors issuing a DeprecationWarning can now use stacklevel=2 > instead of stacklevel=10? Exactly. There are a lot of deprecated modules in the wild, and the correct

[issue24305] The new import system makes it impossible to correctly issue a deprecation warning for a module

2015-08-24 Thread Larry Hastings
Larry Hastings added the comment: If this has been broken since 3.3, I don't think it's a release blocker for 3.5. I'm willing to consider it a "bug" and accept a fix, but I'd prefer it to be as low-risk as possible (aka the Python version). Can someone fix the regressions? And, if the C fi

[issue24305] The new import system makes it impossible to correctly issue a deprecation warning for a module

2015-08-24 Thread Nathaniel Smith
Nathaniel Smith added the comment: You're right, "impossible" is a slight exaggeration :-). As an alternative, every package could indeed carry around a table containing the details of importlib's call stack in every version of Python. (I also haven't checked whether it's consistent within a s

[issue24305] The new import system makes it inconvenient to correctly issue a deprecation warning for a module

2015-08-24 Thread Larry Hastings
Changes by Larry Hastings : -- title: The new import system makes it impossible to correctly issue a deprecation warning for a module -> The new import system makes it inconvenient to correctly issue a deprecation warning for a module ___ Python tra

[issue24931] _asdict breaks when inheriting from a namedtuple

2015-08-24 Thread Samuel Isaacson
Samuel Isaacson added the comment: Sorry; it returns True on Python 3.4, False on Python 2.7.6. -- ___ Python tracker ___ ___ Python-b

[issue24930] test_ssl broker was fixed

2015-08-24 Thread R. David Murray
R. David Murray added the comment: Most likely you ran the test using a different version of python from the one the test is from. All the tests in that file pass on our buildbots when run by the python version they are for. -- nosy: +r.david.murray __

[issue21167] float('nan') returns 0.0 on Python compiled with icc

2015-08-24 Thread R. David Murray
Changes by R. David Murray : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue24844] Python 3.5rc1 compilation error with Apple clang 4.2 included with Xcode 4

2015-08-24 Thread Ned Deily
Ned Deily added the comment: I don't think we should hold 3.5.0 for a patch for this. I recommend lowering the priority and targeting a patch for 3.5.1. -- priority: release blocker -> normal ___ Python tracker _

[issue24930] test_ssl broker was fixed

2015-08-24 Thread marcos paulo
marcos paulo added the comment: the version that i ran the test, is python 2.7.10 -- ___ Python tracker ___ ___ Python-bugs-list maili

[issue24930] test_ssl broker was fixed

2015-08-24 Thread marcos paulo
marcos paulo added the comment: anyway, this changes that i did, make this test more resilent! this test now is more complete than before! :-) -- ___ Python tracker ___

[issue24847] Can't import tkinter in Python 3.5.0rc1

2015-08-24 Thread Larry Hastings
Changes by Larry Hastings : -- resolution: -> fixed stage: commit review -> resolved status: open -> closed ___ Python tracker ___ __

[issue24911] Context manager of socket.socket is not documented

2015-08-24 Thread Berker Peksag
Changes by Berker Peksag : -- keywords: +easy stage: -> needs patch type: -> enhancement versions: +Python 3.5, Python 3.6 ___ Python tracker ___ __

[issue24931] _asdict breaks when inheriting from a namedtuple

2015-08-24 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: -> rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue24829] Use interactive input even if stdout is redirected

2015-08-24 Thread Martin Panter
Martin Panter added the comment: I think Gnu Readline uses standard output for echoing input, prompts, controlling the cursor, etc. You can already see this by redirecting to a separate terminal. In Linux: $ python > /dev/pts/2 So I think your assumption is not valid. Perhaps you can redirect

[issue24850] syslog.syslog() does not return error when unable to send the log

2015-08-24 Thread Martin Panter
Martin Panter added the comment: I’ve never used syslog() in Python, but I thought I should point out that the standard Posix API does not do any error reporting either. See : “The . . . functions shall not return a value.

[issue24931] _asdict breaks when inheriting from a namedtuple

2015-08-24 Thread Raymond Hettinger
Raymond Hettinger added the comment: For __dict__, I'm not sure what the right behavior should by for subclasses that don't define __slots__. In Python 3, the __dict__ is returning the dict for the subclass. This might be the correct and most desirable behavior: >>> class Point(namedtupl

[issue24769] Interpreter doesn't start when dynamic loading is disabled

2015-08-24 Thread Larry Hastings
Larry Hastings added the comment: I wanted to get this in to Python 3.5.0rc2, so I checked it in myself. Petr, I gave you credit in the checkin comment and Misc/NEWS. Hope that's okay! -- resolution: -> fixed stage: commit review -> resolved status: open -> closed versions: +Python 3

[issue24928] mock.patch.dict spoils order of items in collections.OrderedDict

2015-08-24 Thread Raymond Hettinger
Raymond Hettinger added the comment: > Perhaps replacing the dict call with a copy call would be sufficient? I think that would do it. -- nosy: +rhettinger ___ Python tracker __

[issue17781] optimize compilation options

2015-08-24 Thread Raymond Hettinger
Raymond Hettinger added the comment: I would like the see LTO enabled. The intermodule calls to code in abstract.c would become less expensive. -- nosy: +rhettinger ___ Python tracker

[issue10708] Misc/porting should be folded into the development FAQ or the devguide

2015-08-24 Thread Roundup Robot
Roundup Robot added the comment: New changeset 5b43ee3df43e by Berker Peksag in branch '3.5': Issue #10708: Add a link to devguide in Misc/Porting. https://hg.python.org/cpython/rev/5b43ee3df43e New changeset 23f4d8bf4f83 by Berker Peksag in branch 'default': Issue #10708: Add a link to devguide

[issue24808] PyTypeObject fields have incorrectly documented types

2015-08-24 Thread Martin Panter
Martin Panter added the comment: Most of this looks good. For the record, tp_flags was changed to unsigned in 3.4 (Issue 16086). The const and Py_ssize_t changes were done before 3.0. The only bits I would hesitate about are adding back the two comments saying “Assigned meaning in release 2”.

[issue24789] ctypes doc string

2015-08-24 Thread Berker Peksag
Changes by Berker Peksag : -- keywords: +easy nosy: +berker.peksag stage: -> needs patch type: -> behavior ___ Python tracker ___ __

[issue24931] _asdict breaks when inheriting from a namedtuple

2015-08-24 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- keywords: +patch Added file: http://bugs.python.org/file40251/nt_fix1.diff ___ Python tracker ___ __

[issue24932] Migrate _testembed to a C unit testing library

2015-08-24 Thread Nick Coghlan
New submission from Nick Coghlan: Programs/_testembed (invoked by test_capi to test CPython's embedding support) is currently a very simple application with only two different embedding tests: https://hg.python.org/cpython/file/tip/Programs/_testembed.c In light of proposals like PEP 432 to ch

[issue24808] PyTypeObject fields have incorrectly documented types

2015-08-24 Thread Roundup Robot
Roundup Robot added the comment: New changeset 54a9c649281d by Martin Panter in branch '3.4': Issue #24808: Update the documentation of some PyTypeObject fields https://hg.python.org/cpython/rev/54a9c649281d New changeset e81d692a00b1 by Martin Panter in branch '3.5': Issue #24808: Merge 3.4 i

[issue24294] DeprecationWarnings should be visible by default in the interactive REPL

2015-08-24 Thread Nick Coghlan
Nick Coghlan added the comment: As Robert suggests, I think it's OK to issue the deprecation warnings for code run via "python < script.py" or "cat script.py | python". Reverting to the current behaviour if folks actually want that would just be a matter of passing the file in directly, rather

[issue24769] Interpreter doesn't start when dynamic loading is disabled

2015-08-24 Thread Nick Coghlan
Nick Coghlan added the comment: Thanks Larry! Sorry I didn't get to this as soon as I got back from the US. Will you add it to 3.5.1 and 3.6.0, or would you prefer I take care of that? -- ___ Python tracker __

[issue24808] PyTypeObject fields have incorrectly documented types

2015-08-24 Thread Martin Panter
Martin Panter added the comment: Okay I think that worked smoothly (let me know if I missed something). Thanks for the patch Joseph. -- resolution: -> fixed stage: commit review -> resolved status: open -> closed ___ Python tracker