[issue1195571] simple callback system for Py_FatalError

2012-12-22 Thread Jonathan McDougall
Jonathan McDougall added the comment: While trying to come up with a patch, I'm starting to realize the number of modifications needed to make this work. Py_FatalError() is called all over the place assuming that it never returns. The scope of this feature is enormous. I'm wondering what would h

[issue16531] Allow IPNetwork to take a tuple

2012-12-22 Thread pmoody
pmoody added the comment: Sorry. I thought I'd uploaded this earlier. I'm working on a version that pushes the parsing into _split_optional_netmask -- Added file: http://bugs.python.org/file28402/issue16531-2.patch ___ Python tracker

[issue15861] ttk.Treeview "unmatched open brace in list"

2012-12-22 Thread Guilherme Polo
Guilherme Polo added the comment: I consider myself the main responsible for this bug, so if the current patch (which I didn't look at) passes all tests, doesn't slow things up (unlikely, I would think) and also works with some more involved styling code then I'm fine with it. These formattin

[issue16752] Missing import in modulefinder.py

2012-12-22 Thread Brett Cannon
Brett Cannon added the comment: This was committed in default through rev d22e9e3a3326 but there was some error in the connection from hg.python.org and so it didn't get tacked on. Thanks to Thomas for the report and Berker for the patch! -- nosy: +brett.cannon resolution: -> fixed st

[issue16752] Missing import in modulefinder.py

2012-12-22 Thread Roundup Robot
Roundup Robot added the comment: New changeset 1b9b7cb136db by Brett Cannon in branch '3.3': Issue #16752: Add a missing import to modulefinder. http://hg.python.org/cpython/rev/1b9b7cb136db -- nosy: +python-dev ___ Python tracker

[issue16737] Different behaviours in script run directly and via runpy.run_module

2012-12-22 Thread Brett Cannon
Brett Cannon added the comment: I would totally support tossing relative file paths in Python 3.4 as it has been nothing but backwards-compatibility headaches and is essentially wrong as the module's file is not relative to the current directory necessarily. -- ___

[issue16745] Hide symbols in _decimal.so

2012-12-22 Thread Roundup Robot
Roundup Robot added the comment: New changeset ccc372b37fbb by Stefan Krah in branch '3.3': Issue #16745: The gcc visibility pragma is buggy on OpenIndiana and NetBSD. http://hg.python.org/cpython/rev/ccc372b37fbb -- ___ Python tracker

[issue15853] IDLE crashes selecting Preferences menu with OS X ActiveState Tcl/Tk 8.5.12.1

2012-12-22 Thread Vance Maverick
Vance Maverick added the comment: FYI, http://downloads.activestate.com/ActiveTcl/releases/8.5.11.1/ is no longer online, so that workaround is no longer possible. -- nosy: +Vance.Maverick ___ Python tracker _

[issue16752] Missing import in modulefinder.py

2012-12-22 Thread Berker Peksag
Berker Peksag added the comment: Here is a patch with a test case. -- keywords: +patch nosy: +berker.peksag versions: +Python 3.4 Added file: http://bugs.python.org/file28401/issue16752.diff ___ Python tracker

[issue16747] Remove 'file' type reference from 'iterable' glossary entry

2012-12-22 Thread Chris Jerdonek
Chris Jerdonek added the comment: If you are changing just a few minor things, can you resubmit the patch without reflowing? It will be easier to see what minor things have changed. (It is okay to have the occasional short line to avoid having long lines. Reflowing can be done as part of a

[issue14373] C implementation of functools.lru_cache

2012-12-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Antoine reminded me about a lock. In Python implementation it needed because linked list modifications are not atomic. In C implementation linked list modifications are atomic. However dict operations can call Python code and therefore they are not atomic. I

[issue16689] stdout stderr redirection mess

2012-12-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: Anatoly, we are not going to change the default buffering to the most inefficient possible to meet your expectation -- especially when there is a simple option to give you what you want. Unix/C and hence windows has two output streams because people often want

[issue14373] C implementation of functools.lru_cache

2012-12-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: LGTM. Thank you, Matt and Alexey. Here is a simple benchmark. On my computer it shows 10-25x speedup using the C accelerator. -- stage: needs patch -> commit review Added file: http://bugs.python.org/file28400/lru_cache_bench.py

[issue16689] stdout stderr redirection mess

2012-12-22 Thread Antoine Pitrou
Antoine Pitrou added the comment: And arguably you shouldn't redirect stdout and stderr to the same place, except for temporary debugging purposes. -- nosy: +pitrou status: open -> closed ___ Python tracker __

[issue16752] Missing import in modulefinder.py

2012-12-22 Thread Thomas Heller
New submission from Thomas Heller: It seems the statement import importlib is missing in 3.3's modulefinder.py -- components: Library (Lib) messages: 177951 nosy: theller priority: normal severity: normal status: open title: Missing import in modulefinder.py versions: Python 3.3 ___

[issue16737] Different behaviours in script run directly and via runpy.run_module

2012-12-22 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue16686] audioop overflow issues

2012-12-22 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue1195571] simple callback system for Py_FatalError

2012-12-22 Thread Jonathan McDougall
Jonathan McDougall added the comment: The latest patch does not allow changing the default behaviour of aborting the process, which is for me a problem. I am both embedding and extending python using Boost.Python, but scripting is optional. In case python fails to initialize, I want to disable sc

[issue16618] Different glob() results for strings and bytes

2012-12-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is an updated patches. I hope it satisfies Antoine's comments. -- Added file: http://bugs.python.org/file28398/glob_dotfiles_3.patch Added file: http://bugs.python.org/file28399/glob_tests-2.7_3.patch ___ Pytho

[issue16618] Different glob() results for strings and bytes

2012-12-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Aha! It's OS/2 where glob('*/') returns result without trailing slash. Here also glob() can return str (on 2.7) result for unicode pattern. -- ___ Python tracker ___

[issue16689] stdout stderr redirection mess

2012-12-22 Thread Charles-François Natali
Charles-François Natali added the comment: To be more specific, for performance reasons, you definitely don't want stdout to be line buffered when redirected to a file, but fully buffered. It makes sense to have stderr unbuffered or line buffered either way to make sure that errors get printed -

[issue16689] stdout stderr redirection mess

2012-12-22 Thread Charles-François Natali
Charles-François Natali added the comment: > I am not convinced that "won't fix" is the solution. If you're redirecting > both output streams to the same destination, you expect that the output will > appear in the final file exactly as it appears on the screen. There's nothing to fix. The ord

[issue16749] Fatal Python Error

2012-12-22 Thread Leonardo DaVinci
Leonardo DaVinci added the comment: Ok I'll try booting and installing in Mac to see if the issue reappears. Thanks for your time. Happy holidays. Ciro On Sat, Dec 22, 2012 at 9:46 AM, R. David Murray wrote: > > R. David Murray added the comment: > > Not really, I'm afraid. You'd have to lo

[issue16618] Different glob() results for strings and bytes

2012-12-22 Thread Hynek Schlawack
Hynek Schlawack added the comment: Serhiy, are you going to update your patches? I can implement the feedback of our Q4 Community Service Award awardee too in case you’re busy. -- ___ Python tracker __

[issue16751] Using modern unittest asserts in the documentation

2012-12-22 Thread R. David Murray
Changes by R. David Murray : -- nosy: +michael.foord ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue16749] Fatal Python Error

2012-12-22 Thread R. David Murray
R. David Murray added the comment: Not really, I'm afraid. You'd have to look at the crash dump in a debugger to get more useful information. Perhaps one of the windows devs will have more concrete advice, I don't use Windows myself. -- ___ Python

[issue16689] stdout stderr redirection mess

2012-12-22 Thread anatoly techtonik
anatoly techtonik added the comment: I am not convinced that "won't fix" is the solution. If you're redirecting both output streams to the same destination, you expect that the output will appear in the final file exactly as it appears on the screen. tag:wart -- status: closed -> pend

[issue16745] Hide symbols in _decimal.so

2012-12-22 Thread Roundup Robot
Roundup Robot added the comment: New changeset 51b0a150f8aa by Stefan Krah in branch '3.3': Issue #16745: Hide symbols in _decimal.so. http://hg.python.org/cpython/rev/51b0a150f8aa -- ___ Python tracker ___

[issue16746] clarify what should be sent to peps@

2012-12-22 Thread Chris Jerdonek
Chris Jerdonek added the comment: By the way, thanks for the clarifying info, David. Also, I thought I was the one that was going to be accused of reading the original text like a computer. :) -- ___ Python tracker

[issue16746] clarify what should be sent to peps@

2012-12-22 Thread Chris Jerdonek
Chris Jerdonek added the comment: This issue was just addressed by Nick's fix for issue 16581, specifically the following parts of http://hg.python.org/peps/rev/24d5623ab21e : + is a mailing list consisting of PEP editors. All +email related to PEP administration (such as requesting a PEP numb

[issue16581] define "PEP editor" in PEP 1

2012-12-22 Thread Chris Jerdonek
Chris Jerdonek added the comment: Thanks a lot, Nick. It looks like you also went ahead and took care of issue 16746. :) -- ___ Python tracker ___ _

[issue16581] define "PEP editor" in PEP 1

2012-12-22 Thread Nick Coghlan
Nick Coghlan added the comment: Committed, along with a few other changes, as http://hg.python.org/peps/rev/24d5623ab21e Subsequent commit addresses Ezio's comment by changing the phrase to "list for contacting the PEP editors". The attitude I mainly take to PEP 1 now is that if I notice case

[issue16750] Python Code module implements uncomputable function

2012-12-22 Thread Mark Dickinson
Mark Dickinson added the comment: Closing as invalid. There's no issue with comparing code objects---__eq__ implements a perfectly good equivalence relation. This is not an extensional definition of function equality. -- nosy: +mark.dickinson resolution: -> invalid status: open -> c

[issue16686] audioop overflow issues

2012-12-22 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- stage: needs patch -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue16686] audioop overflow issues

2012-12-22 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : Removed file: http://bugs.python.org/file28366/audioop.py ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue16686] audioop overflow issues

2012-12-22 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : Removed file: http://bugs.python.org/file28365/audioop_tests.patch ___ Python tracker ___ ___ Python-bugs-list m

[issue16686] audioop overflow issues

2012-12-22 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : Removed file: http://bugs.python.org/file28364/audioop.patch ___ Python tracker ___ ___ Python-bugs-list mailing

[issue16686] audioop overflow issues

2012-12-22 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : Added file: http://bugs.python.org/file28397/audioop_2.py ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue16686] audioop overflow issues

2012-12-22 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : Added file: http://bugs.python.org/file28396/audioop_2.py ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue16686] audioop overflow issues

2012-12-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I found that the documentation contains a receipt which depends on the fact that bias() wraps around samples. Here is an updated patch. Also some docs changes included. -- Added file: http://bugs.python.org/file28395/audioop_2.patch

[issue16531] Allow IPNetwork to take a tuple

2012-12-22 Thread Nick Coghlan
Nick Coghlan added the comment: IIRC, construction from existing instances in general is an issue in the current version of the module. One particularly murky question if it were allowed is what should happen if you pass an IPAdapter instance (which already has associated network info) rather

[issue16737] Different behaviours in script run directly and via runpy.run_module

2012-12-22 Thread Nick Coghlan
Nick Coghlan added the comment: So yes, any code that assumes __main__.__file__ is a relative path is just plain wrong, as Python provides no such guarantee. It may currently be either relative or absolute at the implementation's discretion. If the status quo ever changes, it would be to switc

[issue16737] Different behaviours in script run directly and via runpy.run_module

2012-12-22 Thread Nick Coghlan
Nick Coghlan added the comment: Ah, some glorious (in)consistency here: $ cat > echo_file.py print(__file__) (2.7, old import system) $ python -c "import echo_file" echo_file.pyc $ python -m "echo_file" /home/ncoghlan/devel/play/echo_file.py $ python echo_file.py echo_file.py (3.2, cache direc

[issue16712] collections.abc.Sequence should not provide __reversed__

2012-12-22 Thread Nick Coghlan
Nick Coghlan added the comment: The observation about it incorrectly flagging __reversed__ as an expected method for Sequence objects is also valid. -- ___ Python tracker ___ __

[issue16712] collections.abc.Sequence should not provide __reversed__

2012-12-22 Thread Nick Coghlan
Nick Coghlan added the comment: This sounds like a legitimate complaint to me, as the one in the ABC will be at least marginally slower in CPython since it's written in Python while reversed uses a builtin C implementation. Classing it as an enhancement rather than a behavioural bug though, as

[issue16689] stdout stderr redirection mess

2012-12-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It looks as for example stdout is line-buffered when output to terminal and block-buffered when redirected to file or pipe and stderr is line-buffered in any case in Python 3.3 (this a common behavior for all C programs). Or something like. Python has an op

[issue16689] stdout stderr redirection mess

2012-12-22 Thread Charles-François Natali
Charles-François Natali added the comment: It's not an issue at all, it's simply buffering in effect. Depending on the version, stdout/stderr is either unbuffured or fully buffered, see http://bugs.python.org/issue13597 Simply pass '-u' and streams will be unbuffered, and appear in the order in

[issue16748] Ensure test discovery doesn't break for modules testing C and Python implementations

2012-12-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Éric, can you submit a test which exposes the problem? -- stage: -> test needed ___ Python tracker ___ __

[issue16748] Ensure test discovery doesn't break for modules testing C and Python implementations

2012-12-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: No need to add this trivial class to test.support. Mixin can have different parameters in additional to 'module' (see 16659). I found a lot of usages of this idiom in tests and some of them can't be changed so simple (for example test_genericpath and test_fu

[issue16694] Add pure Python operator module

2012-12-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I don't understand what is difference between v5 and v6. -- ___ Python tracker ___ ___ Python-bugs

[issue16751] Using modern unittest asserts in the documentation

2012-12-22 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: The proposed patch update the documentation examples to use more modern unittest asserts. -- assignee: docs@python components: Documentation, Tests files: docs_unittest_assert.patch keywords: easy, patch messages: 177924 nosy: docs@python, serhiy.st