[issue9694] argparse required arguments displayed under "optional arguments"

2014-02-13 Thread paul j3
Changes by paul j3 : Added file: http://bugs.python.org/file34074/alt_grouping2.py ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue9694] argparse required arguments displayed under "optional arguments"

2014-02-13 Thread paul j3
paul j3 added the comment: Here's another possible solution: add a `help_groups` parameter to ArgumentParser. It is a list of base argument group names. `parser.add_argument(...)' places the action in one of those groups. This is a generalization of the current code which creates two groups

[issue20605] test_socket (testGetaddrinfo) failing on OS X 10.6.8 (32-bit)

2014-02-13 Thread Ned Deily
Ned Deily added the comment: The committed changes should prevent spurious test failures. Thanks for the report. -- resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed ___ Python tracker

[issue20605] test_socket (testGetaddrinfo) failing on OS X 10.6.8 (32-bit)

2014-02-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset 6017d19669c3 by Ned Deily in branch '2.7': Issue #20605: Make test_socket getaddrinfo OS X segfault test more robust. http://hg.python.org/cpython/rev/6017d19669c3 New changeset 11a75f141cec by Ned Deily in branch '3.3': Issue #20605: Make test_sock

[issue20288] HTMLParse handing of non-numeric charrefs broken

2014-02-13 Thread Ezio Melotti
Ezio Melotti added the comment: This is now fixed, thanks for the report! > This should be fixed, and the behavior of _run_check should probably be > changed too -- maybe it could test both the char-by-char and the > regular feeding. I created #20623 to track this. -- resolution: -> f

[issue20623] Run test_htmlparser with unbuffered source

2014-02-13 Thread Ezio Melotti
Changes by Ezio Melotti : -- dependencies: +Deprecate strict mode of HTMLParser ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue20623] Run test_htmlparser with unbuffered source

2014-02-13 Thread Ezio Melotti
New submission from Ezio Melotti: Currently test_htmlparser feeds the HTML source to the parser one char at the time (except a couple of buffering-specific tests that feed the parser with chunks of text). This ensures that the parser doesn't break when the source is fed in smaller chunks (tha

[issue19680] Help missing for exec and print

2014-02-13 Thread Ezio Melotti
Ezio Melotti added the comment: Fixed, thanks for the report! -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___ ___

[issue19680] Help missing for exec and print

2014-02-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset cc62d856fc5f by Ezio Melotti in branch '2.7': #19680: add back documentation for print and exec in the interactive help. http://hg.python.org/cpython/rev/cc62d856fc5f -- nosy: +python-dev ___ Python track

[issue19627] python open built-in function - "updating" is not defined

2014-02-13 Thread Ezio Melotti
Ezio Melotti added the comment: This seems to be in 3.3 already, so only 2.7 is left. -- keywords: +easy stage: -> needs patch versions: +Python 2.7 ___ Python tracker ___ _

[issue20621] Issue with zipimport in 3.3.4 and 3.4.0rc1

2014-02-13 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue19081] zipimport behaves badly when the zip file changes while the process is running

2014-02-13 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue20547] Use specific asserts in bigmem tests

2014-02-13 Thread Raymond Hettinger
Raymond Hettinger added the comment: These should be backported. And it probably shouldn't be done at all unless there is an actual failure with an uninformative error message. Otherwise, you're just destabilizing the test suite and creating unnecessary code churn. In the case of the collect

[issue20552] Use specific asserts in bytes tests

2014-02-13 Thread Raymond Hettinger
Raymond Hettinger added the comment: None of these should be backported. -- nosy: +rhettinger versions: +Python 3.5 -Python 2.7, Python 3.3, Python 3.4 ___ Python tracker ___ ___

[issue20550] Use specific asserts in collections tests

2014-02-13 Thread Raymond Hettinger
Raymond Hettinger added the comment: The patch is missing. -- assignee: -> rhettinger ___ Python tracker ___ ___ Python-bugs-list mai

[issue20621] Issue with zipimport in 3.3.4 and 3.4.0rc1

2014-02-13 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- title: Issue with zipimport in 3.3.4 -> Issue with zipimport in 3.3.4 and 3.4.0rc1 ___ Python tracker ___ __

[issue20621] Issue with zipimport in 3.3.4

2014-02-13 Thread Gregory P. Smith
Gregory P. Smith added the comment: gah. i was tracking this down because I saw some strange errors that made me suspect it might exist (in 2.7) when trying to use a zipped up standard library but had not had time to confirm it. :( I really should have rolled back the CLs causing it before 3.

[issue20622] Python3.3 venv pip fails to run if path contains spaces

2014-02-13 Thread FeralBytes
New submission from FeralBytes: Well trying to test out venv on Python 3.3.2 on Linux Mint 16 x64 I was not able to get pip to execute correctly after it had been installed. The error from bash is: (venv) wolfrage@wolfrage-KGP-M-E-D16 /media/ShareDrives/HomePlus/Jordan/Projects/The Strategist

[issue20620] Update the min()/max() docs for the new default argument

2014-02-13 Thread Yury Selivanov
Changes by Yury Selivanov : -- nosy: +larry ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue11406] There is no os.listdir() equivalent returning generator instead of list

2014-02-13 Thread Ethan Furman
Changes by Ethan Furman : -- nosy: +ethan.furman ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue20619] tracemalloc changes col_offset attribute for _ast.arg objects

2014-02-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset 2dd4922c9371 by Benjamin Peterson in branch 'default': set line and column numbers for keyword-only arg nodes (closes #20619) http://hg.python.org/cpython/rev/2dd4922c9371 -- nosy: +python-dev resolution: -> fixed stage: -> committed/rejec

[issue17159] Remove explicit type check from inspect.Signature.from_function()

2014-02-13 Thread Stefan Behnel
Stefan Behnel added the comment: > Oh, sound like a big hack. Well, it's certainly a bunch of overhead (even assuming that "inspect" will most likely be imported already - just looked it up in import.c, there's lots of useless generic code there), with a lot of potential for something going wron

[issue20621] Issue with zipimport in 3.3.4

2014-02-13 Thread Steve Dower
Steve Dower added the comment: It fails for me on 3.4.0rc1 and 3.3.4: PS D:\> $env:PYTHONPATH D:\Python33_x64\Lib\site-packages\virtualenv_support\pip-1.5.2-py2.py3-none-any.whl PS D:\> py32 -V Python 3.2.3 PS D:\> py32 -c "import pip; print(pip.__file__)" D:\Python33_x64\Lib\site-packages\virt

[issue20621] Issue with zipimport in 3.3.4

2014-02-13 Thread Nick Coghlan
Changes by Nick Coghlan : -- nosy: +gregory.p.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue17159] Remove explicit type check from inspect.Signature.from_function()

2014-02-13 Thread Yury Selivanov
Yury Selivanov added the comment: > I'm actually considering that. Now that Signature.from_function() allows > function-like types, it appears like it's the easiest solution to add a > "__signature__" property to cyfunctions that does the necessary "from > inspect import Signature, return Signatu

[issue6650] sre_parse contains a confusing generic error message

2014-02-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: And of course we shouldn't use just %s. source.next can be non-printable character. -- ___ Python tracker ___

[issue6650] sre_parse contains a confusing generic error message

2014-02-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: May be. We should compare with regex and perhaps add a test. -- assignee: -> serhiy.storchaka nosy: +ezio.melotti, pitrou ___ Python tracker _

[issue747320] rfc2822 formatdate functionality duplication

2014-02-13 Thread Éric Araujo
Éric Araujo added the comment: > what do you recommend to move forward with this bug and patches? I would add tests to 3.4, to be sure that changing the code in 3.5 does not break compatibility. > Do you have an example for "(A minor thing: I would use “attribute” instead > of “variable” in t

[issue20363] BytesWarnings triggerred by test suite

2014-02-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: At least it wasn't changed. As I see, affected line is used to output debugging message (disabled by default). It produces different result in 2.7 and 3.x ("--xxx--" vs "--b'xxx'--") due to the difference between 2.x str and

[issue17159] Remove explicit type check from inspect.Signature.from_function()

2014-02-13 Thread Stefan Behnel
Stefan Behnel added the comment: > Since this is a problem in Cython, not in CPython, maybe you can fix it in > Cython? I'm actually considering that. Now that Signature.from_function() allows function-like types, it appears like it's the easiest solution to add a "__signature__" property to cy

[issue17159] Remove explicit type check from inspect.Signature.from_function()

2014-02-13 Thread Yury Selivanov
Yury Selivanov added the comment: > So, once again: > If the intention is to test that a callable has a "__text_signature__", > then the code should test for the existance of "__text_signature__". > It should *not* try to test for types that may or may not have such > an attribute, and then j

[issue17159] Remove explicit type check from inspect.Signature.from_function()

2014-02-13 Thread Yury Selivanov
Yury Selivanov added the comment: Patch sig_cython_03.patch is still applicable (it probably won't apply to the current repo, but I can fix that). It should solve all these problems once and for all. If Larry agrees, I can still merge it in. -- ___

[issue17159] Remove explicit type check from inspect.Signature.from_function()

2014-02-13 Thread Larry Hastings
Larry Hastings added the comment: Since this is a problem in Cython, not in CPython, maybe you can fix it in Cython? -- ___ Python tracker ___ __

[issue8876] distutils should not assume that hardlinks will work

2014-02-13 Thread Éric Araujo
Éric Araujo added the comment: Sorry for the lax definition of “soon”; I’m back from a busy January and will try to make some time for CPython contributions. -- ___ Python tracker __

[issue6650] sre_parse contains a confusing generic error message

2014-02-13 Thread Éric Araujo
Éric Araujo added the comment: Serhiy: I meant that the patch looks right to me (“I would apply it”), not that I intended to do it (“I will apply it”)—I’m not set up right now to contribute to CPython again. Would you mind committing it? (Edited versions: exception messages are not part of a

[issue20363] BytesWarnings triggerred by test suite

2014-02-13 Thread Éric Araujo
Éric Araujo added the comment: Thanks for applying the patch. distutils tests don’t cover 100% of the codebase; did you test manually that the behavior of the changed code was still correct? -- ___ Python tracker

[issue20619] tracemalloc changes col_offset attribute for _ast.arg objects

2014-02-13 Thread STINNER Victor
STINNER Victor added the comment: I don't understand the link with tracemalloc. I get the same result if I comment all lines containing tracemalloc. With Python 3.3, I get: Traceback (most recent call last): File "x.py", line 9, in print(arg.lineno, arg.col_offset) AttributeError: 'arg'

[issue17159] Remove explicit type check from inspect.Signature.from_function()

2014-02-13 Thread Stefan Behnel
Stefan Behnel added the comment: BTW, ismethoddescriptor() is an exceedingly broad test, IMHO. I wonder if it should even be relied upon for anything in inspect.py. -- ___ Python tracker __

[issue20139] Python installer does not install a "pip" command (just "pip3" and "pip3.4")

2014-02-13 Thread Nick Coghlan
Nick Coghlan added the comment: Oops, missed this already existed when I created issue 20568. I currently plan to have this fixed for rc2 on the 23rd. -- resolution: -> duplicate status: open -> closed superseder: -> Pass --default-install to ensurepip in the Windows installers _

[issue20568] Pass --default-install to ensurepip in the Windows installers

2014-02-13 Thread Nick Coghlan
Changes by Nick Coghlan : -- assignee: -> ncoghlan priority: deferred blocker -> release blocker title: Pass --default-install to ensurepip in the Windows installers? -> Pass --default-install to ensurepip in the Windows installers ___ Python tracke

[issue17159] Remove explicit type check from inspect.Signature.from_function()

2014-02-13 Thread Stefan Behnel
Stefan Behnel added the comment: >>> inspect.isbuiltin() returns False >> Are you absolutely sure about this? > Yes. Oh, well... isbuiltin(cyfunction) *does* return False. However, ismethoddescriptor(cyfunction) returns True, because Cython's functions bind as methods and thus have a "__get__

[issue20416] Marshal: special case int and float, don't use references

2014-02-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is a patch which special cases small integers. It decreases v3 and v4 dump time of bench.py by 10% without affecting load time. Of course in real cases the benefit will be much less. -- Added file: http://bugs.python.org/file34071/marshal_small_

[issue20621] Issue with zipimport in 3.3.4

2014-02-13 Thread Paul Moore
Paul Moore added the comment: Apologies, cut & paste error. 3.3.2 32-bit: PS 20:49 C:\Work\Scratch\virtualenv-pfm >py -3.3-32 -c "import pip" PS 20:49 C:\Work\Scratch\virtualenv-pfm >py -3.3-32 -V Python 3.3.2 3.4rc0 is not affected either: PS 20:54 C:\Work\Scratch\virtualenv-pfm >py -3.4 -c

[issue20139] Python installer does not install a "pip" command (just "pip3" and "pip3.4")

2014-02-13 Thread Paul Moore
Paul Moore added the comment: This is still the case in the 3.4rc0 Windows installer. Could we get something definite for 3.4 final? It may be too late for that to be anything other than documenting that the command "pip" is not available, but given that most 3rd party documents use "pip" as t

[issue20621] Issue with zipimport in 3.3.4

2014-02-13 Thread Paul Moore
New submission from Paul Moore: There appears to be a significant issue with importing from zip files on Python 3.3.4. I have tested this on Windows 7, 64-bit, using the MSI installer from python.org. To reproduce, download virtualenv and extract the C:\Work\Scratch\virtualenv-pfm\virtualenv_

[issue20213] Change the install location of _sysconfigdata.py

2014-02-13 Thread Thomas Petazzoni
Thomas Petazzoni added the comment: The patch is not working as it should be, so I withdraw it for the moment. -- status: open -> closed ___ Python tracker ___ __

[issue20620] Update the min()/max() docs for the new default argument

2014-02-13 Thread Raymond Hettinger
New submission from Raymond Hettinger: There is a new "default" argument for min() and max(): >>> min([], default=10) 10 The new argument is not currently shown by help(): >>> help(min) Help on built-in function min in module builtins: min(...) min(iterable[, key=f

[issue20615] Replace PyDict_GetItem() with PyDict_GetItemWithError()

2014-02-13 Thread Raymond Hettinger
Raymond Hettinger added the comment: Please, no more big red warnings. Keep the docs factual and straight-forward. In the docs for PyDict_GetItem(), note that errors will get suppressed. To get error reporting use PyDict_GetItemWithError() instead. -- nosy: +rhettinger _

[issue20619] tracemalloc changes col_offset attribute for _ast.arg objects

2014-02-13 Thread Claudiu.Popa
Claudiu.Popa added the comment: The version of the interpreter is: Python 3.4.0rc1+ (default:1166b3321012, Feb 13 2014, 21:49:27) [GCC 4.2.1 20070831 patched [FreeBSD]] on freebsd8 -- nosy: +haypo ___ Python tracker

[issue20619] tracemalloc changes col_offset attribute for _ast.arg objects

2014-02-13 Thread Claudiu.Popa
New submission from Claudiu.Popa: Here's a strange bug. I don't know if this is legitimate or not, but it seems like there is some sort of overflow. Given the following code: data = """ def function(*, foot): print(foot) """ from ast import parse import tracemalloc tracemalloc.

[issue20416] Marshal: special case int and float, don't use references

2014-02-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > As a compromise, we could suppress the sharing for small int objects, since > they are singletons, anyway. This is implementation detail. But we can use more efficient way to memoizating small int objects. I also suppose than efficient C implementation of

[issue20615] Replace PyDict_GetItem() with PyDict_GetItemWithError()

2014-02-13 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- stage: -> needs patch ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue14537] "Fatal Python error: Cannot recover from stack overflow." with SymPy test suite

2014-02-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I didn't tested this patch with SymPy, but in general it LGTM. -- assignee: -> haypo nosy: +serhiy.storchaka stage: -> commit review ___ Python tracker

[issue20614] test.script_helper should copy SYSTEMROOT environment variable for __cleanenv=True

2014-02-13 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- stage: -> needs patch ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue20618] Unable to pip install pyjasperclient

2014-02-13 Thread R. David Murray
R. David Murray added the comment: I'm afraid this isn't the appropriate tracker for either PIP issues or pypi issues, or issues with particular 3rd party packages (such as pyjasperclient). This tracker is for bugs in the CPython implementation of the language, and the standard library. (Whi

[issue20618] Unable to pip install pyjasperclient

2014-02-13 Thread Tammy
New submission from Tammy: We used to be able to perform a "pip install pyjasperclient" with success. The last time I did this was within the last couple months. I tried this today and received an error, ... Downloading/unpacking elementtree (from pyjasperclient) Could not find any downloads

[issue20199] status of module_for_loader and utils._module_to_load

2014-02-13 Thread Brett Cannon
Changes by Brett Cannon : -- nosy: +larry priority: normal -> release blocker ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue20199] status of module_for_loader and utils._module_to_load

2014-02-13 Thread Brett Cannon
Brett Cannon added the comment: set_loader and set_package are also deprecated (docs are accurate for that: http://docs.python.org/3.4/library/importlib.html#module-importlib.util . Everything else that is deprecated are methods are were deprecated in Python 3.3. -- _

[issue20601] tracing and tests that raise an exception in a SIGALRM handler

2014-02-13 Thread Xavier de Gaye
Changes by Xavier de Gaye : Added file: http://bugs.python.org/file34070/signal_test.py ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue20601] tracing and tests that raise an exception in a SIGALRM handler

2014-02-13 Thread Xavier de Gaye
Xavier de Gaye added the comment: > A signal should not remove the trace function. And a signal should be traced. The attached patch postpones all signals except SIGINT while the trace function is being invoked, and thus the signal is traced after returning from this function. My previous test

[issue18111] Add a default argument to min & max

2014-02-13 Thread Éric Araujo
Éric Araujo added the comment: Note that the docs were changed, but versionchanged directives are missing. -- nosy: +eric.araujo ___ Python tracker ___ __

[issue6815] UnicodeDecodeError in os.path.expandvars

2014-02-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is patch for 2.7. -- versions: +Python 2.7 Added file: http://bugs.python.org/file34068/expandvars_nonascii-2.7.patch ___ Python tracker _

[issue4708] os.pipe should return inheritable descriptors (Windows)

2014-02-13 Thread STINNER Victor
STINNER Victor added the comment: The PEP 446 has been implemented in Python 3.4 and all file descriptors and sockets are now created non-inheritable by default. Use os.set_inheritable() to make the pipe fds inheritable. -- resolution: -> fixed status: open -> closed

[issue20320] select.select(timeout) and select.kqueue.control(timeout) must round the timeout to the upper bound

2014-02-13 Thread STINNER Victor
STINNER Victor added the comment: Can I commit time_rouding-3.patch? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue19466] Clear state of threads earlier in Python shutdown

2014-02-13 Thread STINNER Victor
STINNER Victor added the comment: I reverted the changes because it introduced regressions. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___

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

2014-02-13 Thread STINNER Victor
STINNER Victor added the comment: > To debug, since I guess it's due to a memory corruption because > objects are deallocated while they're still in use, you could try > to use valgrind. > Unfortunately, since it's due to a race condition, the overhead > will probably make it really hard to repro

[issue20616] Add tracemalloc.Traceback.format() method

2014-02-13 Thread STINNER Victor
STINNER Victor added the comment: > Victor: at this point I'm cherry-picking all revisions that will go into rc2 > / final. So would like to cherry-pick such addition? -- ___ Python tracker __

[issue20616] Add tracemalloc.Traceback.format() method

2014-02-13 Thread Larry Hastings
Larry Hastings added the comment: Victor: at this point I'm cherry-picking all revisions that will go into rc2 / final. -- ___ Python tracker ___ ___

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

2014-02-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset 1166b3321012 by Victor Stinner in branch 'default': Issue #20526, #19466: Revert changes of issue #19466 which introduces a http://hg.python.org/cpython/rev/1166b3321012 -- nosy: +python-dev ___ Python tr

[issue19466] Clear state of threads earlier in Python shutdown

2014-02-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset 1166b3321012 by Victor Stinner in branch 'default': Issue #20526, #19466: Revert changes of issue #19466 which introduces a http://hg.python.org/cpython/rev/1166b3321012 -- ___ Python tracker

[issue20617] test_ssl does not use mock

2014-02-13 Thread Xavier de Gaye
New submission from Xavier de Gaye: The following line should be removed from test_ssl.py: from unittest import mock -- components: Library (Lib) messages: 211148 nosy: xdegaye priority: normal severity: normal status: open title: test_ssl does not use mock type: behavior versions: Pyth

[issue20616] Add tracemalloc.Traceback.format() method

2014-02-13 Thread STINNER Victor
New submission from STINNER Victor: Attached patch adds a Traceback.format() to the new tracemalloc module. Since the tracemalloc is new in Python 3.4 and my patch adds a new (simple and tested) method, I consider that it's not so late to add it :-) I chose a different API than traceback.forma

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

2014-02-13 Thread Charles-François Natali
Charles-François Natali added the comment: Please revert. To debug, since I guess it's due to a memory corruption because objects are deallocated while they're still in use, you could try to use valgrind. Unfortunately, since it's due to a race condition, the overhead will probably make it reall

[issue6815] UnicodeDecodeError in os.path.expandvars

2014-02-13 Thread STINNER Victor
STINNER Victor added the comment: The changes on ntpath.py are a little bit weird: it uses os.environb, whereas Windows is the only OS where os.environb does not exist. It looks like ntpath is available and tested on UNIX so the change looks to be valid, even you are not supposed to have Windo

[issue20599] test_cleanup() of test_builtin failed

2014-02-13 Thread STINNER Victor
STINNER Victor added the comment: > This is probably is missing LD_LIBRARY_PATH environment variable. >> Fatal Python error: Failed to initialize Windows random API (CryptoGen) >Oh, it remembers me that Windows requires some environment variables to start, >otherwise it fails badly. Ok, I fille

[issue20614] test.script_helper should copy SYSTEMROOT environment variable for __cleanenv=True

2014-02-13 Thread STINNER Victor
STINNER Victor added the comment: Oh, another problem: if Python is compiled in shared module, libpython3.4.so cannot be found. LD_LIBRARY_PATH must also be copied if __cleanenv=True. Py_ENABLE_SHARED can be checked in sysconfig to decide if the environment variable should be copied or not. -

[issue19983] When interrupted during startup, Python should not call abort() but exit()

2014-02-13 Thread STINNER Victor
Changes by STINNER Victor : -- title: Ctrl-C at startup can end in a Py_FatalError call -> When interrupted during startup, Python should not call abort() but exit() ___ Python tracker

[issue20615] Replace PyDict_GetItem() with PyDict_GetItemWithError()

2014-02-13 Thread STINNER Victor
New submission from STINNER Victor: See this huge warning in the definition of PyDict_GetItem: /* Note that, for historical reasons, PyDict_GetItem() suppresses all errors * that may occur (originally dicts supported only string keys, and exceptions * weren't possible). So, while the original

[issue20614] test.script_helper should copy SYSTEMROOT environment variable for __cleanenv=True

2014-02-13 Thread STINNER Victor
STINNER Victor added the comment: When Python is executed in an empty environement, not only it displays "Fatal Python error: Failed to initialize Windows random API (CryptoGen)", but it opens also the fatal error popup on Windows. The issue #19983 proposes a patch to not abort() at exit, but

[issue6501] Fatal error on startup with invalid PYTHONIOENCODING

2014-02-13 Thread STINNER Victor
STINNER Victor added the comment: > Is there anything to backport as referred to in msg136670 or can this be > closed? The fix is present in Python 3.3 since Python 3.3.0 according to the changelog. Python 3.2 doesn't accept bugfixes anymore. Python 2.7 doesn't have the function os.device_enc

[issue20614] test.script_helper should copy SYSTEMROOT environment variable for __cleanenv=True

2014-02-13 Thread STINNER Victor
STINNER Victor added the comment: cleanenv.patch: untested test. -- keywords: +patch Added file: http://bugs.python.org/file34066/cleanenv.patch ___ Python tracker ___ __

[issue20614] test.script_helper should copy SYSTEMROOT environment variable for __cleanenv=True

2014-02-13 Thread STINNER Victor
New submission from STINNER Victor: On Windows, if Python is started with an empty environment (no environment variable at all), Python fails with: "Fatal Python error: Failed to initialize Windows random API (CryptoGen)" It's the Windows error 0x80090006 which is not displayed in the error me

[issue20599] test_cleanup() of test_builtin failed

2014-02-13 Thread STINNER Victor
STINNER Victor added the comment: > Shared object "libpython3.4dm.so.1" not found, required by "python" This is probably is missing LD_LIBRARY_PATH environment variable. > Fatal Python error: Failed to initialize Windows random API (CryptoGen) Oh, it remembers me that Windows requires some env

[issue20599] test_cleanup() of test_builtin failed

2014-02-13 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- Removed message: http://bugs.python.org/msg211136 ___ Python tracker ___ ___ Python-bugs-list mailing

[issue20599] test_cleanup() of test_builtin failed

2014-02-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: And yet one failure on FreeBSD. http://buildbot.python.org/all/builders/AMD64%20FreeBSD%2010.0%203.x/builds/1724/steps/test/logs/stdio == FAIL: test_cleanup (test.test_builtin.ShutdownTest) -

[issue20599] test_cleanup() of test_builtin failed

2014-02-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset 488ccbee6ee6 by Victor Stinner in branch 'default': Issue #20599: Don't clear environment in test_cleanup() of test_builtin http://hg.python.org/cpython/rev/488ccbee6ee6 -- ___ Python tracker

[issue20599] test_cleanup() of test_builtin failed

2014-02-13 Thread STINNER Victor
STINNER Victor added the comment: Another failure: http://buildbot.python.org/all/builders/AMD64%20FreeBSD%2010.0%203.x/builds/1724/steps/test/logs/stdio == FAIL: test_cleanup (test.test_builtin.ShutdownTest) --

[issue6815] UnicodeDecodeError in os.path.expandvars

2014-02-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset b5ad525076eb by Serhiy Storchaka in branch '3.3': Fixed typo in previous commit (issue #6815). http://hg.python.org/cpython/rev/b5ad525076eb New changeset 6825395e6107 by Serhiy Storchaka in branch 'default': Fixed typo in previous commit (issue #68

[issue9694] argparse required arguments displayed under "optional arguments"

2014-02-13 Thread paul j3
paul j3 added the comment: The attached file shows how the default argument groups could be redefined, using 'required' as the criteria. I've implemented it as a method that is added to a subclass of ArgumentParser. This method is invoked after arguments are defined, prior to generating the

[issue6815] UnicodeDecodeError in os.path.expandvars

2014-02-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset 08746e015c64 by Serhiy Storchaka in branch '3.3': Issue #6815: os.path.expandvars() now supports non-ASCII environment http://hg.python.org/cpython/rev/08746e015c64 New changeset f3c146036e7c by Serhiy Storchaka in branch 'default': Issue #6815: os.