[issue19335] codeop misclassifies incomplete code with 'nonlocal'

2013-10-22 Thread Esa Peuha
Esa Peuha added the comment: > Someone needs to compare _maybe_compile to the equivalent C code used by the > real interpreter. Well, _maybe_compile() just calls the built-in function compile() internally, so I'm not sure what sort of comparison you want... -- nosy: +Esa.Peuha title:

[issue19341] locale.getdefaultencoding() returns wrong locale and encoding for ca_ES@valencia

2013-10-22 Thread David Planella
New submission from David Planella: It seems getdefaultlocale does not return the correct encoding when the locale is set to ca_ES@valencia: >>> import locale >>> locale.setlocale(locale.LC_ALL, "") 'LC_CTYPE=ca_ES.UTF-8@valencia;LC_NUMERIC=ca_ES.UTF-8;LC_TIME=ca_ES.UTF-8;LC_COLLATE=ca_ES.UTF-8

[issue7757] sys.path is incorrect when prefix is ""

2013-10-22 Thread Sunny K
Sunny K added the comment: I took a shot at this. Build is successful and imports happen. Tests are ok except test_sysconfig, and that is because of sys.prefix being set to '/'. I've raised issue19340 for that. About the patch, i'm not sure how to completely test for false positives(joinpath

[issue19335] codeop misclassifies incomplete code with 'nonlocal'

2013-10-22 Thread Mark Shannon
Changes by Mark Shannon : -- nosy: +Mark.Shannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue18603] PyOS_mystricmp unused and no longer available

2013-10-22 Thread Martin v . Löwis
Martin v. Löwis added the comment: The patch looks good to me. The stable ABI was originally intended for Windows only, where the functions are guaranteed to be included in python3.dll (as the .def file references them); they are included in python3X.dll as link.exe doesn't do the same object

[issue19317] ctypes.util.find_library should examine binary's RPATH on Solaris

2013-10-22 Thread Maciej Bliziński
Maciej Bliziński added the comment: The specific case that breaks for me is this: OpeCSW Python package includes: /opt/csw/bin/python2.6 (also 2.7, 3.3, etc) /opt/csw/lib/libpython2.6.so.1.0 (other files) On the operating system there is only: /usr/lib/libpython2.4.so.1.0 Let's say there's li

[issue19334] test_asyncio hanging for 1 hour (non-AIX version)

2013-10-22 Thread koobs
koobs added the comment: The original report and build logs were attached to the original issue covering the import of asyncio: #19262 Also attaching here. -- nosy: +koobs Added file: http://bugs.python.org/file32294/koobs-freebsd9-py3x-build180.log ___

[issue18603] PyOS_mystricmp unused and no longer available

2013-10-22 Thread Roundup Robot
Roundup Robot added the comment: New changeset 4c4f31a1b706 by Christian Heimes in branch '3.3': Issue #18603: Ensure that PyOS_mystricmp and PyOS_mystrnicmp are in the http://hg.python.org/cpython/rev/4c4f31a1b706 New changeset b5cc822d5bf0 by Christian Heimes in branch 'default': Issue #18603:

[issue7442] _localemodule.c: str2uni() with different LC_NUMERIC and LC_CTYPE

2013-10-22 Thread Matej Cepl
Matej Cepl added the comment: Is this the same as when tests with python-3.3.2 fails on me with RHEL-6? test_locale (test.test_format.FormatTest) ... ERROR test_non_ascii (test.test_format.FormatTest) ... test test_format failed '\u20ac=%f' % (1.0,) =? '\u20ac=1.00' ... yes ok =

[issue19334] test_asyncio hanging for 1 hour (non-AIX version)

2013-10-22 Thread Antoine Pitrou
Antoine Pitrou added the comment: The hangs have been sporadic: http://buildbot.python.org/all/builders/x86%20RHEL%206%203.x/builds/2916/steps/test/logs/stdio http://buildbot.python.org/all/builders/x86%20Ubuntu%20Shared%203.x/builds/8795/steps/test/logs/stdio Perhaps Nick can run test_subproces

[issue19334] test_asyncio hanging for 1 hour (non-AIX version)

2013-10-22 Thread Antoine Pitrou
Antoine Pitrou added the comment: Hmm, test_signal_handling_while_selecting is a different one. Perhaps koobs can investigate it :) -- ___ Python tracker ___ ___

[issue18603] PyOS_mystricmp unused and no longer available

2013-10-22 Thread Christian Heimes
Christian Heimes added the comment: Thanks for your input. I have applied the patch to 2.7, 3.3 and 3.4. A couple of 3rd party were bitten by the missing symbols. A Google search reveals a couple of them https://www.google.de/search?q=PyOS_mystricmp+missing -- resolution: -> fixed sta

[issue18603] PyOS_mystricmp unused and no longer available

2013-10-22 Thread Christian Heimes
Changes by Christian Heimes : -- stage: patch review -> committed/rejected ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue19342] Improve grp module docstrings

2013-10-22 Thread Marius Gedminas
New submission from Marius Gedminas: This patch gives grp.getgrnam and grp.getgrgid sligtly more useful docstrings, and brings them in line with pwd.getpwnam/pwd.getpwuid. Compare pydoc pwd.getpwnam: pwd.getpwnam = getpwnam(...) getpwnam(name) -> (pw_name,pw_passwd,pw_uid,

[issue19334] test_asyncio hanging for 1 hour (non-AIX version)

2013-10-22 Thread koobs
koobs added the comment: @antoine, would love some direction/guidance on ways to isolate. For what it's worth, the incidence of this failure dropped sharply over the subsequent 24 hours after the initial report. Could the relaxation of the timers in 042deeeb703 have had an effect? Thus far I'

[issue19334] test_asyncio hanging for 1 hour (non-AIX version)

2013-10-22 Thread koobs
koobs added the comment: Correct changeset ID: e042deeeb703 -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue19324] Expose Linux-specific APIs in resource module

2013-10-22 Thread Roundup Robot
Roundup Robot added the comment: New changeset aec95b369e60 by Christian Heimes in branch 'default': Issue #19324: Expose Linux-specific constants in resource module http://hg.python.org/cpython/rev/aec95b369e60 -- nosy: +python-dev ___ Python tracker

[issue19324] Expose Linux-specific APIs in resource module

2013-10-22 Thread Christian Heimes
Changes by Christian Heimes : -- resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed ___ Python tracker ___

[issue19334] test_asyncio hanging for 1 hour (non-AIX version)

2013-10-22 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Thus far I've checked out default, and ran test_asyncio at -j16 -j32 > and -j64 with no reproduction you can use -F to run the test forever. -- ___ Python tracker __

[issue16595] Add resource.prlimit

2013-10-22 Thread Roundup Robot
Roundup Robot added the comment: New changeset 796c21e27a92 by Christian Heimes in branch 'default': Issue #16595: Add prlimit() to resource module http://hg.python.org/cpython/rev/796c21e27a92 -- nosy: +python-dev ___ Python tracker

[issue19343] Expose FreeBSD-specific APIs in resource module

2013-10-22 Thread koobs
New submission from koobs: At Christians request: RLIMIT_SBSIZE The maximum size (in bytes) of socket buffer usage for this user. This limits the amount of network memory, and hence the amount of mbufs, that this user may hold at any time. RLIMIT_SWAP The maximum size (in bytes) of the swap sp

[issue16595] Add resource.prlimit

2013-10-22 Thread Christian Heimes
Christian Heimes added the comment: Let's see how the buildbots respond. I may have to disable some tests for ancient Kernel versions. -- stage: patch review -> commit review status: open -> pending ___ Python tracker

[issue19343] Expose FreeBSD-specific APIs in resource module

2013-10-22 Thread Christian Heimes
Changes by Christian Heimes : -- components: +Extension Modules keywords: +easy nosy: +christian.heimes stage: -> needs patch type: -> enhancement versions: +Python 3.4 ___ Python tracker

[issue8964] platform._sys_version does not parse correctly IronPython 2.x version

2013-10-22 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 21.10.2013 02:07, Ezio Melotti wrote: > > Ezio Melotti added the comment: > > Fixed, thanks for the patch! Thanks, Ezio, for the check-in. -- ___ Python tracker __

[issue18426] Crash when extension does not use PyModule_Create()

2013-10-22 Thread Christian Heimes
Christian Heimes added the comment: Is there anything left to do for this ticket? -- assignee: christian.heimes -> status: open -> pending ___ Python tracker ___ ___

[issue16595] Add resource.prlimit

2013-10-22 Thread Antoine Pitrou
Antoine Pitrou added the comment: +self.assertRaises(PermissionError, resource.prlimit, + 1, resource.RLIMIT_AS) Please skip this when run as root. +self.assertEqual(resource.prlimit(0, resource.RLIMIT_AS), (-1, -1)) What if it's not that value by defau

[issue19344] ReStructuredText error in whatsnew/3.4.rst

2013-10-22 Thread Christian Heimes
Christian Heimes added the comment: Fixed in http://hg.python.org/cpython/rev/af628ab4272a Thanks! -- nosy: +christian.heimes resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker

[issue19345] Unclear phrasing in whatsnew/3.4.rst

2013-10-22 Thread Marius Gedminas
New submission from Marius Gedminas: Quoting http://docs.python.org/dev/whatsnew/3.4.html#deprecated-functions-and-types-of-the-c-api > The PyThreadState.tick_counter field has been value: its value was > meaningless since Python 3.2 (“new GIL”). I've no idea what "has been value" is supposed

[issue16595] Add resource.prlimit

2013-10-22 Thread Christian Heimes
Christian Heimes added the comment: Roundup bot hangs. I have addressed your concerns in http://hg.python.org/cpython/rev/8c77117f41a9 -- ___ Python tracker ___

[issue19344] ReStructuredText error in whatsnew/3.4.rst

2013-10-22 Thread Marius Gedminas
New submission from Marius Gedminas: Trivial syntax fix attached -- assignee: docs@python components: Documentation files: whatsnew-rst-fix.patch keywords: patch messages: 200907 nosy: docs@python, mgedmin priority: normal severity: normal status: open title: ReStructuredText error in wh

[issue18426] Crash when extension does not use PyModule_Create()

2013-10-22 Thread Ivan Johansen
Ivan Johansen added the comment: Probably not. I am setting status to closed with resolution fixed. -- resolution: -> fixed status: pending -> closed ___ Python tracker ___

[issue7442] _localemodule.c: str2uni() with different LC_NUMERIC and LC_CTYPE

2013-10-22 Thread Stefan Krah
Stefan Krah added the comment: Matej Cepl wrote: > Is this the same as when tests with python-3.3.2 fails on me with RHEL-6? If LC_CTYPE is UTF-8 and LC_NUMERIC something like ISO-8859-2 then it's the same issue. -- ___ Python tracker

[issue18321] Multivolume support in tarfile module

2013-10-22 Thread Eduardo Robles Elvira
Eduardo Robles Elvira added the comment: could you please check if my contributor form is already processed? -- ___ Python tracker ___ ___

[issue18321] Multivolume support in tarfile module

2013-10-22 Thread Christian Heimes
Christian Heimes added the comment: You have an asterisk next to your user name. So yes, your form was received and processed. -- nosy: +christian.heimes ___ Python tracker ___

[issue19030] inspect.getmembers and inspect.classify_class_attrs mishandle descriptors

2013-10-22 Thread Stefan Krah
Stefan Krah added the comment: Here's the fix for --without-doc-strings (can't commit right now). -- Added file: http://bugs.python.org/file32297/issue19030-without-docstrings.patch ___ Python tracker _

[issue7442] _localemodule.c: str2uni() with different LC_NUMERIC and LC_CTYPE

2013-10-22 Thread Matej Cepl
Matej Cepl added the comment: Hmm, so with this patch diff -up Python-3.3.2/Lib/test/test_format.py.fixFormatTest Python-3.3.2/Lib/test/test_format.py --- Python-3.3.2/Lib/test/test_format.py.fixFormatTest 2013-10-22 10:05:12.253426746 +0200 +++ Python-3.3.2/Lib/test/test_format.py201

[issue7442] _localemodule.c: str2uni() with different LC_NUMERIC and LC_CTYPE

2013-10-22 Thread Matej Cepl
Matej Cepl added the comment: To #200912: now, system locale is UTF-8 all the way: santiago:python3 (el6) $ locale LANG=en_US.utf8 LC_CTYPE="en_US.utf8" LC_NUMERIC=en_IE.utf8 LC_TIME=en_IE.utf8 LC_COLLATE="en_US.utf8" LC_MONETARY=en_IE.utf8 LC_MESSAGES="en_US.utf8" LC_PAPER=en_IE.utf8 LC_NAME="en

[issue19331] Revise PEP 8 recommendation for class names

2013-10-22 Thread Ethan Furman
Ethan Furman added the comment: Attached patch combines Paul's, Antoine's, and Nick's suggestions/observations. -- ___ Python tracker ___

[issue19331] Revise PEP 8 recommendation for class names

2013-10-22 Thread Ethan Furman
Changes by Ethan Furman : -- keywords: +patch Added file: http://bugs.python.org/file32298/issue19331.stoneleaf.01.patch ___ Python tracker ___ __

[issue19331] Revise PEP 8 recommendation for class names

2013-10-22 Thread Ethan Furman
Changes by Ethan Furman : -- stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue19341] locale.getdefaultencoding() returns wrong locale and encoding for ca_ES@valencia

2013-10-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This is a duplicate of issue5815. -- nosy: +serhiy.storchaka resolution: -> duplicate stage: -> committed/rejected status: open -> closed superseder: -> locale.getdefaultlocale() missing corner case ___ Python tr

[issue19325] _osx_support imports many modules

2013-10-22 Thread Esa Peuha
Esa Peuha added the comment: Actually Lib/_osx_support.py directly imports only five modules: os, re and sys at top level, and contextlib and tempfile in _read_output(). These last two aren't really needed at all, and there's no point even trying to avoid importing os and sys, so the only real

[issue19325] _osx_support imports many modules

2013-10-22 Thread Christian Heimes
Christian Heimes added the comment: For distutils function you can move the import of re inside the function body. It's not elegant but it does the trick w/o much slowdown or inconveniences. -- ___ Python tracker

[issue5815] locale.getdefaultlocale() missing corner case

2013-10-22 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.

[issue19346] Build fails when there are no shared extensions to be built

2013-10-22 Thread Alan Hourihane
New submission from Alan Hourihane: When building python with static extensions and therefore there are no shared extensions to be built the extension list can be NULL, and therefore 0 length. This results in this error running build running build_ext INFO: Can't locate Tcl/Tk libs and/or

[issue19347] PEP 453 implementation tracking issue

2013-10-22 Thread Nick Coghlan
New submission from Nick Coghlan: This is the overall tracking issue for the implementation of PEP 453. The following subtasks will be created as separate issues: - update the Installing Python Modules documentation to reference www.pip-installer.org in Python 2.7, 3.3 and 3.4 (ncoghlan) - ini

[issue19325] _osx_support imports many modules

2013-10-22 Thread Ned Deily
Ned Deily added the comment: Yes, there are various tricks to be done. I have another solution in mind that should eliminate the use re altogether for most cases. (BTW, _osx_support was implemented to centralize functions in anticipation of the introduction of distutils2/packaging in Python

[issue19347] PEP 453 implementation tracking issue

2013-10-22 Thread Nick Coghlan
Nick Coghlan added the comment: One more task to track - updating to the latest upstream pip before beta 2. -- ___ Python tracker ___

[issue19348] Building _testcapimodule as a builtin results in compile error

2013-10-22 Thread Alan Hourihane
New submission from Alan Hourihane: When building _testcapimodule.c as a builtin module, the build fails with this error because it doesn't take into account Py_BUILD_CORE from datetime.h. m68k-atari-mint-gcc -I. -IInclude -I/j/var/tmp/portage/dev-lang/python-2.7.5-r2/work/Python-2.7.5/Include

[issue7442] _localemodule.c: str2uni() with different LC_NUMERIC and LC_CTYPE

2013-10-22 Thread Stefan Krah
Stefan Krah added the comment: Matej Cepl wrote: > To #200912: now, system locale is UTF-8 all the way: > santiago:python3 (el6) $ locale > LANG=en_US.utf8 > LC_CTYPE="en_US.utf8" > LC_NUMERIC=en_IE.utf8 > LC_TIME=en_IE.utf8 > LC_COLLATE="en_US.utf8" > LC_MONETARY=en_IE.utf8 > LC_MESSAGES="en_US

[issue19347] PEP 453 implementation tracking issue

2013-10-22 Thread Nick Coghlan
Changes by Nick Coghlan : -- nosy: +dstufft, loewis, ned.deily, vinay.sajip ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue7442] _localemodule.c: str2uni() with different LC_NUMERIC and LC_CTYPE

2013-10-22 Thread STINNER Victor
STINNER Victor added the comment: This issue is very close to the issue #13706 which I solved with the new function PyUnicode_DecodeLocale(): see get_locale_info() in Python/formatter_unicode.c. We might copy/paste the code, or we should maybe add a private API to get locale information: get_

[issue7442] _localemodule.c: str2uni() with different LC_NUMERIC and LC_CTYPE

2013-10-22 Thread Matej Cepl
Matej Cepl added the comment: >>> import locale >>> locale.localeconv() {'p_cs_precedes': 127, 'n_sep_by_space': 127, 'n_sign_posn': 127, 'n_cs_precedes': 127, 'grouping': [], 'positive_sign': '', 'mon_grouping': [], 'p_sep_by_space': 127, 'mon_thousands_sep': '', 'currency_symbol': '', 'mon_d

[issue17294] compile-flag for single-execution to return value instead of printing it

2013-10-22 Thread Albert Zeyer
Albert Zeyer added the comment: Thanks a lot for the long and detailed response! I didn't meant to start a header war; I thought that my request was misunderstood and thus the header changes were by mistake. But I guess it is a good suggestion to leave that decision to a core dev. I still thi

[issue17276] HMAC: deprecate default hash

2013-10-22 Thread Christian Heimes
Christian Heimes added the comment: I've changed the deprecation warning to PendingDeprecationWarning. Please review my wording and grammar. -- Added file: http://bugs.python.org/file32299/17276-3.patch ___ Python tracker

[issue19335] codeop misclassifies incomplete code with 'nonlocal'

2013-10-22 Thread Nick Coghlan
Nick Coghlan added the comment: The comment at the top of codeop explains the problem (and why Terry is interested in what the C code is doing, since it's clearly different): === Compile three times: as is, with \n, and with \n\n appended. If it compiles as is, it's complete. If i

[issue7442] _localemodule.c: str2uni() with different LC_NUMERIC and LC_CTYPE

2013-10-22 Thread Matej Cepl
Matej Cepl added the comment: Perhaps version of glibc might be interesting as well? glibc-2.12-1.107.el6_4.5.i686 -- ___ Python tracker ___ _

[issue17276] HMAC: deprecate default hash

2013-10-22 Thread STINNER Victor
STINNER Victor added the comment: I would prefer to directly raise an exception in Python 3.4. Developers will not notice a warning, warning are hidden by default. How many developers run their tests using -Werror? Having to add a parameter to hmac() in applications to port them to Python 3.4

[issue19349] Not so correct exception message when running venv

2013-10-22 Thread Vajrasky Kok
New submission from Vajrasky Kok: In Lib/venv/__init__.py, line 348: raise ValueError('This script is only for use with Python 3.3') But I am running Python 3.4. Attached the patch to make it better. raise ValueError('This script is only for use with Python >= 3.3') If you feel it does not fe

[issue19335] codeop misclassifies incomplete code with 'nonlocal'

2013-10-22 Thread Nick Coghlan
Nick Coghlan added the comment: As a potential fix (albeit an ugly hack), try changing this part of codeop._maybe_compile: if not code1 and repr(err1) == repr(err2): raise err1 To something like: if not code1 and repr(err1) == repr(err2): if isinstance(err1, SyntaxErro

[issue17276] HMAC: deprecate default hash

2013-10-22 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Having to add a parameter to hmac() in applications to port them to > Python 3.4 should not be so hard. And using MD5 is really a major > security issue, don't you think so? Some uses of md5 don't have anything to do with security. I'm -1 on removing the defau

[issue17400] ipaddress should make it easy to identify rfc6598 addresses

2013-10-22 Thread Nick Coghlan
Nick Coghlan added the comment: The docs patch doesn't look quite right - Peter, did you mean to copy the "is_private" docs before modifying them? As far as caching goes, perhaps we can just drop functools.lru_cache into the relevant property implementations? @property @lru_cache()

[issue17276] HMAC: deprecate default hash

2013-10-22 Thread Christian Heimes
Christian Heimes added the comment: HMAC-MD5 is still fine for legacy support. I wouldn't use it in new program, though -- ___ Python tracker ___ ___

[issue18742] Abstract base class for hashlib

2013-10-22 Thread Roundup Robot
Roundup Robot added the comment: New changeset 72d7b2185771 by Christian Heimes in branch 'default': Issue #18742: Rework the internal hashlib construtor to pave the road for ABCs. http://hg.python.org/cpython/rev/72d7b2185771 -- nosy: +python-dev ___

[issue18742] Abstract base class for hashlib

2013-10-22 Thread Roundup Robot
Roundup Robot added the comment: New changeset 27da6e790c41 by Christian Heimes in branch 'default': Issue #18742: Expose the internal hash type object for ABCs. http://hg.python.org/cpython/rev/27da6e790c41 -- ___ Python tracker

[issue19331] Revise PEP 8 recommendation for class names

2013-10-22 Thread Nick Coghlan
Nick Coghlan added the comment: Hmm, review link doesn't appear to be available, so just commenting here. For the "overriding principle" part, you can't switch from a class to a factory function (as that's a backwards incompatible change due to breaking subclassing and isinstance and issubcla

[issue19335] codeop misclassifies incomplete code with 'nonlocal'

2013-10-22 Thread R. David Murray
R. David Murray added the comment: A complete fix is going to require setting a flag that we have a pending non-local, and check that flag when the code input is complete to raise the SyntaxError at that point if the non-local hasn't been set. -- nosy: +r.david.murray

[issue7442] _localemodule.c: str2uni() with different LC_NUMERIC and LC_CTYPE

2013-10-22 Thread Stefan Krah
Stefan Krah added the comment: Matej Cepl wrote: > >>> import locale > >>> locale.localeconv() > {'p_cs_precedes': 127, 'n_sep_by_space': 127, 'n_sign_posn': 127, > 'n_cs_precedes': 127, 'grouping': [], 'positive_sign': '', 'mon_grouping': > [], 'p_sep_by_space': 127, 'mon_thousands_sep': '',

[issue19347] PEP 453 implementation tracking issue

2013-10-22 Thread Vinay Sajip
Vinay Sajip added the comment: venv shouldn't need any changes. The pyvenvex.py [1] script I posted to distutils-sig installs setuptools and pip into venvs, and it can be used to update pyvenv (where AFAICT changes are only required to change where the pip to be installed comes from). [1] htt

[issue19331] Revise PEP 8 recommendation for class names

2013-10-22 Thread Paul Moore
Paul Moore added the comment: +1 on switching the wording in the overriding principle section to say "factory function to class". Although the fact that I made that mistake reflects my point that if I'm thinking of class->wrapper as an "internal change" then I'm not anticipating or supporting

[issue19350] macurl2path coverage

2013-10-22 Thread Colin Williams
New submission from Colin Williams: Ported the tests built into the library requiring manual verification over to the testing framework. Those tests only provided 77% coverage, so I improved that up to 99%. Can't get the last line because it's only reachable on older model macs. --

[issue19335] codeop misclassifies incomplete code with 'nonlocal'

2013-10-22 Thread Nick Coghlan
Nick Coghlan added the comment: codeop compiles the whole pending statement every time, so that part shouldn't be needed (from the compiler's point of view, this input looks complete - there's nothing dangling, any more than there is for a normal syntax error like "name name"). As far as I can te

[issue19030] inspect.getmembers and inspect.classify_class_attrs mishandle descriptors

2013-10-22 Thread Ethan Furman
Ethan Furman added the comment: Stefan, do the other tests in PydocWithMetaClasses continue to work on your FreeBSD 9.0 box without docstrings? Because they all fail on my Linux Ubuntu 13.04 box. -- ___ Python tracker

[issue19347] PEP 453 implementation tracking issue

2013-10-22 Thread Nick Coghlan
Nick Coghlan added the comment: Check PEP 453 again: http://www.python.org/dev/peps/pep-0453/#changes-to-virtual-environments Rather than only changing pyvenv, the API in the PEP is to add "with_pip" parameters to the venv module API, so that anyone building pyvenv style tools on top of venv

[issue19350] macurl2path coverage

2013-10-22 Thread Senthil Kumaran
Changes by Senthil Kumaran : -- nosy: +orsenthil ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue19334] test_asyncio hanging for 1 hour (non-AIX version)

2013-10-22 Thread Nick Coghlan
Nick Coghlan added the comment: I started "strace ./python -m test -vF test_asyncio" running under screen on the RHEL6 buildbot (so it will keep running when I log out in a moment). If I don't report back the results in the next day or two, ping the issue to remind me to log back in and see if

[issue19030] inspect.getmembers and inspect.classify_class_attrs mishandle descriptors

2013-10-22 Thread Stefan Krah
Stefan Krah added the comment: Ethan Furman wrote: > Stefan, do the other tests in PydocWithMetaClasses continue to work on your > FreeBSD 9.0 box without docstrings? Because they all fail on my Linux Ubuntu > 13.04 box. I tested on Debian, and the remaining tests seem to work (I did not bot

[issue18742] Abstract base class for hashlib

2013-10-22 Thread Christian Heimes
Christian Heimes added the comment: I have checked in some of the basic and non-controversal parts of the PEP (optimization, expose type object). The ABCs are still missing. In order to cope with keyed and non-keyed CHF I have added a common base class for both and separate ABCs for keyed and

[issue7442] _localemodule.c: str2uni() with different LC_NUMERIC and LC_CTYPE

2013-10-22 Thread STINNER Victor
STINNER Victor added the comment: Title: _localemodule.c: str2uni() with different LC_NUMERIC and LC_CTYPE Oh, I just realized that the issue is a LC_NUMERIC using an encoding A with a LC_CTYPE using an encoding B. It looks like the glibc does not support this setup, at least for the fi_FI loc

[issue19351] python msi installers - silent mode

2013-10-22 Thread Jason Bray
New submission from Jason Bray: Hello, I am working in an IT group, attempting to automate our management of python. This issue applies to both Python 3.4 and Python 2.7.5 and Python 2.7.4 On a Windows machine (both 7 and 8.1 have been tested) when python msi's are installed from the command l

[issue19351] python msi installers - silent mode

2013-10-22 Thread Christian Heimes
Changes by Christian Heimes : -- assignee: -> loewis components: +Windows nosy: +loewis type: -> behavior ___ Python tracker ___ ___

[issue19347] PEP 453 implementation tracking issue

2013-10-22 Thread Nick Coghlan
Nick Coghlan added the comment: Just clarifying how I plan to track this: as we start specific tasks, we'll create new issues and make this one depend on them. That seems better to me than creating a whole raft of issues up front that are then depending on each other. -- ___

[issue7442] _localemodule.c: str2uni() with different LC_NUMERIC and LC_CTYPE

2013-10-22 Thread STINNER Victor
STINNER Victor added the comment: msg95988> Hi, the following works in 2.7 but not in 3.x: ... Sure it works because Python 2 pass the raw byte string, it does not try to decode it. But did you try to display the result in a terminal for example? Example with Python 2 in an UTF-8 terminal: $

[issue18603] PyOS_mystricmp unused and no longer available

2013-10-22 Thread Benjamin Peterson
Benjamin Peterson added the comment: Someone would have to be trying fairly hard to use those functions on Windows because this is in the header: #ifdef MS_WINDOWS #define PyOS_strnicmp strnicmp #define PyOS_stricmp stricmp #else #define PyOS_strnicmp PyOS_mystrnicmp #define PyOS_stricmp PyOS_m

[issue19030] inspect.getmembers and inspect.classify_class_attrs mishandle descriptors

2013-10-22 Thread Ethan Furman
Ethan Furman added the comment: Actually, you @skipif clued me in as to what was happening with the other pydoc tests and their skipif clauses. Added appropriate skipifs to the new tests and mimicked the docstring in/exclusion. All tests now passing with and without docstrings, with and with

[issue7442] _localemodule.c: str2uni() with different LC_NUMERIC and LC_CTYPE

2013-10-22 Thread Stefan Krah
Stefan Krah added the comment: STINNER Victor wrote: > The following PostgreSQL issue looks to be the same than this Python issue: > http://www.postgresql.org/message-id/[email protected] > > The fix changes temporarly the LC_CTYPE encoding: So does my patch. :) --

[issue7442] _localemodule.c: str2uni() with different LC_NUMERIC and LC_CTYPE

2013-10-22 Thread Matej Cepl
Matej Cepl added the comment: What I did: 1) run the build (it is a building of Fedora Rawhide python3 package on RHEL), and see it failed in this test. 2) see below santiago:python3 (el6) $ cd Python-3.3.2/build/optimized/ santiago:optimized (el6) $ ./python -m test test_format [1/1] test_for

[issue19334] test_asyncio hanging for 1 hour (non-AIX version)

2013-10-22 Thread STINNER Victor
STINNER Victor added the comment: > I started "strace ./python -m test -vF test_asyncio" running under screen on > the RHEL6 buildbot (so it will keep running when I log out in a moment). Trace also child processes: add -f. And add maybe also timestamps: -tt. -- __

[issue19030] inspect.getmembers and inspect.classify_class_attrs mishandle descriptors

2013-10-22 Thread Roundup Robot
Roundup Robot added the comment: New changeset 64d94b21e731 by Ethan Furman in branch 'default': Issue #19030: fix new pydoc tests for --without-doc-strings http://hg.python.org/cpython/rev/64d94b21e731 -- ___ Python tracker

[issue19352] unittest loader barfs on symlinks

2013-10-22 Thread Antoine Pitrou
New submission from Antoine Pitrou: unittest.loader has the following snippet: if realpath.lower() != fullpath_noext.lower(): module_dir = os.path.dirname(realpath) mod_name = os.path.splitext(os.path.basename(full_path))[0]

[issue19352] unittest loader barfs on symlinks

2013-10-22 Thread Antoine Pitrou
Antoine Pitrou added the comment: Attaching patch. -- keywords: +patch Added file: http://bugs.python.org/file32304/unittest_loader_symlinks.patch ___ Python tracker ___

[issue19352] unittest loader barfs on symlinks

2013-10-22 Thread Michael Foord
Michael Foord added the comment: Good catch and fix Antoine. Thanks. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue17400] ipaddress should make it easy to identify rfc6598 addresses

2013-10-22 Thread Antoine Pitrou
Antoine Pitrou added the comment: Sorry for chiming in a bit late, but what's the rationale for including 100.64.0.0/10 in the "is_private" set, rather than *only* excluding it from the "is_global" set? The rationale for RFC 6598 is precisely that 100.64.0.0/10 is *not* private in the common

[issue7442] _localemodule.c: str2uni() with different LC_NUMERIC and LC_CTYPE

2013-10-22 Thread Stefan Krah
Stefan Krah added the comment: Victor, thanks for the comments. I also think we should set LC_CTYPE closer to the actual call to mbstowcs(), otherwise there are many API calls in between. So it should happen somewhere in PyUnicode_DecodeLocaleAndSize(). Perhaps we can create _PyUnicode_DecodeLo

[issue7442] _localemodule.c: str2uni() with different LC_NUMERIC and LC_CTYPE

2013-10-22 Thread Stefan Krah
Stefan Krah added the comment: Matej Cepl wrote: > santiago:optimized (el6) $ ./python -m test test_format > [1/1] test_format > 1 test OK. It looks like some other test in the test suite did not restore a changed locale. If you're motivated enough, you could try if it still happens in 3.4 and

[issue19345] Unclear phrasing in whatsnew/3.4.rst

2013-10-22 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue7442] _localemodule.c: str2uni() with different LC_NUMERIC and LC_CTYPE

2013-10-22 Thread STINNER Victor
STINNER Victor added the comment: "So it should happen somewhere in PyUnicode_DecodeLocaleAndSize(). Perhaps we can create _PyUnicode_DecodeLocaleAndSize() which would take an LC_CTYPE parameter?" For this issue, it means that Python localeconv() will have to change the LC_CTYPE locale many t

[issue19345] Unclear phrasing in whatsnew/3.4.rst

2013-10-22 Thread STINNER Victor
STINNER Victor added the comment: > The PyThreadState.tick_counter field has been value: its value was > meaningless since Python 3.2 (“new GIL”). oops, "has been removed" :-) -- ___ Python tracker __

[issue19294] test_asyncio fails intermittently on OS X 10.4

2013-10-22 Thread Guido van Rossum
Guido van Rossum added the comment: If the buildbot is still green, can you close this? I don't think it's worth trying to formulate and test a more precise theory about the root cause, given that it's most likely a platform bug anyway. -- ___ Pyth

[issue19353] on RHEL6 simple build fails with test_linux_constants (test.test_resource.ResourceTest)

2013-10-22 Thread Matej Cepl
New submission from Matej Cepl: With pure clone of https://github.com/python/cpython.git (no patches applied whatsoever, and the last commit is https://github.com/python/cpython/commit/650406fe7373f31b595b381d4f2f02065607386a) and pure ./configure && make -j2 && make -j2 test I get one failed

  1   2   >