[issue12600] Add example of using load_tests to parameterise Test Cases

2012-12-12 Thread Mark Dickinson
Changes by Mark Dickinson dicki...@gmail.com: -- nosy: +mark.dickinson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12600 ___ ___

[issue15861] ttk.Treeview unmatched open brace in list

2012-12-12 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: Removed file: http://bugs.python.org/file28011/tkinter_quoting_2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15861 ___

[issue15861] ttk.Treeview unmatched open brace in list

2012-12-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Patch updated. Added additional tests for ttk.Combobox (see issue11290). -- Added file: http://bugs.python.org/file28286/tkinter_quoting_3.patch ___ Python tracker rep...@bugs.python.org

[issue15861] ttk.Treeview unmatched open brace in list

2012-12-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Patch for 2.7 added. -- Added file: http://bugs.python.org/file28287/tkinter_quoting_3-2.7.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15861 ___

[issue11290] ttk.Combobox['values'] String Conversion to Tcl

2012-12-12 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- superseder: - ttk.Treeview unmatched open brace in list versions: +Python 2.7, Python 3.2, Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11290

[issue15045] Make textwrap.dedent() consistent with str.splitlines(True) and str.strip()

2012-12-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Ezra's patch is working, but a little non-optimal. However, I'm not sure, that it is right to extend a set of whitespace characters. See comments at the top of the file. Also this approach should be slower, especially for trivial case (no changes).

[issue16656] os.walk ignores international dirs on Windows

2012-12-12 Thread anatoly techtonik
anatoly techtonik added the comment: - Do you have a full traceback of the failing os.walk() in Python3.3? Traceback (most recent call last): File test.py, line 9, in module print(dirs) File C:\Python33\lib\encodings\cp437.py, line 19, in encode return

[issue13590] extension module builds fail with python.org OS X installers on OS X 10.7 and 10.6 with Xcode 4.2

2012-12-12 Thread Ronald Oussoren
Ronald Oussoren added the comment: Ned: do you have time to backport this to 3.2 and 2.7? Also, the code might not be entirely correct for all machines: on my machine 'gcc-4.2' still exists in /usr/bin but doesn't work because the actual compiler (/usr/bin/i686-apple-darwin11-gcc-4.2.1) is no

[issue16668] Remove python3dll.vcxproj from pcbuild.sln

2012-12-12 Thread Trent Nelson
New submission from Trent Nelson: As far as I can tell, the python3dll.vcxproj is bitrot and should be removed from pcbuild.sln. It's a makefile target project that invokes ..\PC\python3.mak, which builds a target named python3.dll; however, pythoncore.vxcproj builds python34[_d].dll as a

[issue16656] os.walk ignores international dirs on Windows

2012-12-12 Thread anatoly techtonik
anatoly techtonik added the comment: I attach tests.py file used to run the tests. Results are in python2.out.txt and python3.out.txt also attached. What are the results of os.stat(b'Русское имя') and os.stat(b'Русское имя') on Python 2.7 and Python 3.3+? b'Русское имя' is not a valid

[issue16656] os.walk ignores international dirs on Windows

2012-12-12 Thread anatoly techtonik
Changes by anatoly techtonik techto...@gmail.com: Added file: http://bugs.python.org/file28288/tests.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16656 ___

[issue16656] os.walk ignores international dirs on Windows

2012-12-12 Thread anatoly techtonik
Changes by anatoly techtonik techto...@gmail.com: Added file: http://bugs.python.org/file28289/python2.out.txt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16656 ___

[issue16656] os.walk ignores international dirs on Windows

2012-12-12 Thread anatoly techtonik
Changes by anatoly techtonik techto...@gmail.com: Added file: http://bugs.python.org/file28290/python3.out.txt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16656 ___

[issue16656] os.walk ignores international dirs on Windows

2012-12-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you, Anatoly, for report. I'll try to investigate this issue. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16656 ___

[issue16480] pyvenv 3.3 fails to create symlinks for virtualenv/local/{bin, lib} to virtualenv/{bin, lib}

2012-12-12 Thread Matthias Klose
Changes by Matthias Klose d...@debian.org: -- nosy: +doko ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16480 ___ ___ Python-bugs-list mailing

[issue16656] os.walk ignores international dirs on Windows

2012-12-12 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: So, it seems that os.walk() and os.listdir() work correctly with Python3.3, but print(u'Русское имя') fails because the terminal encoding is cp437. See issue1602 for the print issue. As a quick workaround, try to set

[issue16612] Integrate Argument Clinic specialized preprocessor into CPython trunk

2012-12-12 Thread Stefan Krah
Stefan Krah added the comment: Gregory, I'm talking about the size of the *total output* of the tool, not about the size of the actual DSL parts: posixmodule.c: 1138211514+132 (2 functions) _cursesmodule.c:3434 3499 +65 (1 function) zlibmodule.c: 1295

[issue16656] os.walk ignores international dirs on Windows

2012-12-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Anatoly, can you please run the attached test? -- Added file: http://bugs.python.org/file28291/test_unicode_fname.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16656

[issue16656] os.walk ignores international dirs on Windows

2012-12-12 Thread R. David Murray
R. David Murray added the comment: Based on the pasted results I'm pretty sure there's nothing wrong with walk and listdir. But it sounds like Serhiy will check to make sure, so we'll wait for his report. The byte string vs the coding cookie is an interesting observation, but is a separate

[issue14266] pyunit script as shorthand for python -m unittest

2012-12-12 Thread Berker Peksag
Changes by Berker Peksag berker.pek...@gmail.com: -- keywords: +patch nosy: +berker.peksag versions: +Python 3.4 -Python 3.3 Added file: http://bugs.python.org/file28292/issue14266.diff ___ Python tracker rep...@bugs.python.org

[issue16668] Remove python3dll.vcxproj from pcbuild.sln

2012-12-12 Thread Trent Nelson
Changes by Trent Nelson tr...@snakebite.org: -- nosy: +brian.curtin ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16668 ___ ___ Python-bugs-list

[issue16326] distutils build_ext fails to set library_dirs in 2.7.2 on Linux

2012-12-12 Thread Andy Salnikov
Andy Salnikov added the comment: OK, I see the problem. Do you think it would help if it tested both sys.executable and its symlynk-resolved path against sys.exec_prefix like this: if sys.executable.startswith(os.path.join(sys.exec_prefix, bin)) or

[issue16656] os.walk ignores international dirs on Windows

2012-12-12 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: Added file: http://bugs.python.org/file28293/test_unicode_fname.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16656 ___

[issue16656] os.walk ignores international dirs on Windows

2012-12-12 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: Removed file: http://bugs.python.org/file28291/test_unicode_fname.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16656 ___

[issue16668] Remove python3dll.vcxproj from pcbuild.sln

2012-12-12 Thread Jeremy Kloth
Changes by Jeremy Kloth jeremy.kloth+python-trac...@gmail.com: -- nosy: +jkloth ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16668 ___ ___

[issue16668] Remove python3dll.vcxproj from pcbuild.sln

2012-12-12 Thread Martin v . Löwis
Martin v. Löwis added the comment: Yes, it's still used. python3.dll is different from python3X.dll, and specified in PEP 384. It will remain in Python until Python 4 comes along (and then likely be replaced by python4.dll). -- resolution: - invalid status: open - closed

[issue16669] Docstrings for namedtuple

2012-12-12 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Here are two patches which implementation two different interface for same feature. In first patch you can use *doc* and *field_docs* arguments to specify namedtuple class docstring and field docstrings. For example: Point = namedtuple('Point', 'x

[issue16669] Docstrings for namedtuple

2012-12-12 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: Added file: http://bugs.python.org/file28295/namedtuple_docstrings_tuples_seq.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16669 ___

[issue16670] [docs] class Point in collections.namedtuples may be not that good example

2012-12-12 Thread julien tayon
New submission from julien tayon: Priority: low Keywords: documentation After watching http://www.youtube.com/watch?v=o9pEzgHorH0 (Stop writing classes by diedrich) I think the class Point example for the named tuples may be a wrong practice:

[issue16668] Remove python3dll.vcxproj from pcbuild.sln

2012-12-12 Thread Trent Nelson
Trent Nelson added the comment: Thanks Martin, I wasn't aware of that PEP. Explains why there isn't a debug configuration, too. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16668 ___

[issue16665] doc for builtin hex() is poor

2012-12-12 Thread rurpy
rurpy added the comment: Raymond Hettinger (rhettinger) msg177365: For some of the points, a couple examples will do a better job of explaining hex() that trying to write-out the full code specification in prose. Examples should never substitute for a clear, complete and concise

[issue16671] logging.handlers.QueueListener sentinel should not be None

2012-12-12 Thread Andras Szalai
New submission from Andras Szalai: In the class `logging.handlers.QueueListener` the `_sentinel` is `None`. But a = None b = None a is b True Because of this, the QueueListener stops if it receives a `None`. Were the sentinel a proper instance, like: _sentinel = {} This would not happen.

[issue16659] Pure Python implementation of random

2012-12-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Patch updated. Comments and docstrings a little enhanced. Thanks Brett for review. Also Python implementation of core generator now is threadsafe (in particular random() and getrandbits() methods) as its C implementation and its private members now are

[issue16607] Bad examples in documentation

2012-12-12 Thread myreallycoolname
myreallycoolname added the comment: I am updating my bug report unfortunatly I am unable to give you a specific link due to the fact that I can not find the python3.2 documentation online. I do assure you that the docs from my computer are for python3.2 (as I have no other docs installed.) To

[issue16607] Bad examples in documentation

2012-12-12 Thread John Hampton
John Hampton added the comment: The documentation is correct. The problem that you seem to be having are due to copy and pasting in the interpreter. The source of you first error is that after you copy def scope_test(): ... def do_local(): ... spam = local spam ... def

[issue6792] Distutils-based installer does not detect 64bit versions of Python

2012-12-12 Thread Roy Jacobson
Roy Jacobson added the comment: This bug is a really annoying one, any chance it will be fixed in 2.7? It's really a matter when you want to deploy a program using distutils (my case), because you cannot really require your clients to edit the registry themselves :/ Is there any problem with

[issue16671] logging.handlers.QueueListener sentinel should not be None

2012-12-12 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +vinay.sajip ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16671 ___ ___ Python-bugs-list

[issue16672] improve tracing performances when f_trace is NULL

2012-12-12 Thread Xavier de Gaye
New submission from Xavier de Gaye: When f_trace is NULL, only PyTrace_CALL tracing events trigger the invocation of the trace function (see trace_trampoline). maybe_call_line_trace() does quite some work though _PyCode_CheckLineNumber to find out if the instruction should be traced, and all

[issue16672] improve tracing performances when f_trace is NULL

2012-12-12 Thread Xavier de Gaye
Changes by Xavier de Gaye xdeg...@gmail.com: Added file: http://bugs.python.org/file28298/foo.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16672 ___

[issue16672] improve tracing performances when f_trace is NULL

2012-12-12 Thread Xavier de Gaye
Changes by Xavier de Gaye xdeg...@gmail.com: Added file: http://bugs.python.org/file28299/bar.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16672 ___

[issue16672] improve tracing performances when f_trace is NULL

2012-12-12 Thread Xavier de Gaye
Xavier de Gaye added the comment: When f_trace is NULL, only PyTrace_CALL tracing events trigger the invocation of the trace function (see trace_trampoline). This may be confusing. I meant that when f_trace is NULL, PyTrace_LINE, PyTrace_RETURN and PyTrace_EXCEPTION are not traced.

[issue16660] Segmentation fault when importing hashlib

2012-12-12 Thread ashwani
ashwani added the comment: Ok , It did not crash when I recompiled with --with-pydebug. I observed crash when I was working with the urllib.request. It was crashing when I imported urllib.request. I drill down the code of urllib.request and found that it was crashing because of hashlib

[issue16669] Docstrings for namedtuple

2012-12-12 Thread Raymond Hettinger
Raymond Hettinger added the comment: I don't think it is worth complicating the API for this. There have been zero requests for this functionality. Even the doc field of property() is rarely used. -- assignee: - rhettinger priority: normal - low

[issue16670] [docs] class Point in collections.namedtuples may be not that good example

2012-12-12 Thread Raymond Hettinger
Raymond Hettinger added the comment: I like the current example. It does a great job teaching people how namedtuples work. Also, I think you've drawn the wrong conclusions from Jack's talk. -- assignee: docs@python - rhettinger nosy: +jackdied, rhettinger priority: normal - low

[issue16671] logging.handlers.QueueListener sentinel should not be None

2012-12-12 Thread Vinay Sajip
Vinay Sajip added the comment: Why do you think None is a valid value to send for normal operation? Since the queue is only meant for sending logging events (records), it seems reasonable to send None as a sentinel - it should never be seen during operation. The QueueListener is *supposed* to

[issue16326] distutils build_ext fails to set library_dirs in 2.7.2 on Linux

2012-12-12 Thread Vinay Sajip
Vinay Sajip added the comment: In terms of the venv code, I don't see how doing the test in that way would cause problems - as long as the value of sys.executable doesn't change, then as I see it, the venv code should operate as it's meant to. --

[issue16660] Segmentation fault when importing hashlib

2012-12-12 Thread Gregory P. Smith
Gregory P. Smith added the comment: given the behavior you are seeing, I'm not inclined to trust your computer or however it is configured. I do not believe this is a Python issue. 3.3 works fine on RHEL 6 so it should work fine on CentOS 6.

[issue13590] extension module builds fail with python.org OS X installers on OS X 10.7 and 10.6 with Xcode 4.2

2012-12-12 Thread Ned Deily
Ned Deily added the comment: Ned: do you have time to backport this to 3.2 and 2.7? Yes, I'll be taking care of it shortly. Also, the code might not be entirely correct for all machines: on my machine 'gcc-4.2' still exists in /usr/bin but doesn't work because the actual compiler