[issue26943] Datetime.strptime crash

2016-05-04 Thread Jens de Bruijn
New submission from Jens de Bruijn: Datetime crashes while running script from the command line. When running the same date string from the interpreter (Ubuntu 16.04) it does not crash. date = datetime.datetime.strptime('May 01 23:59:59 + 2016', '%b %d %H:%M:%S + %Y') -- compo

[issue26922] build from fresh checkout fails

2016-05-04 Thread Antoine Pitrou
Antoine Pitrou added the comment: Le 04/05/2016 05:10, Nick Coghlan a écrit : > > Does strace give any potentially useful hints? > > For me: > > $ strace -e trace=file ./python -c "pass" Ah, thanks. It seems this was failing due to a pyvenv.cfg in the parent directory, which I removed. -

[issue26929] android: test_strptime fails

2016-05-04 Thread Xavier de Gaye
Xavier de Gaye added the comment: Here is the result of running on android:

[issue26923] asyncio.gather drops cancellation

2016-05-04 Thread Mathias Arens
Changes by Mathias Arens : -- nosy: +tatellos ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue26881] modulefinder should reuse the dis module

2016-05-04 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: modulefinder in 2.7 should be compatible with Python 2.2 (see PEP 291). Thus we can't just add new function in dis and reuse it in modulefinder. We should duplicate this function in modulefinder. I don't know if there is corresponding rule for 3.x. Should mo

[issue26932] RTLD_* macros are not defined on Android

2016-05-04 Thread Xavier de Gaye
Xavier de Gaye added the comment: test_rtld_constants is now ok at the tip of the default branch. Thanks Chi Hsuan Yen. I will enter a separate issue for test_getgroups and reference it here as well as in issue #26865. -- ___ Python tracker

[issue26929] android: test_strptime fails

2016-05-04 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: 1904 52 6 1904 52 6 1905 01 0 1904 53 7 ^^ 1906 52 0 1906 52 7 1906 52 1 1907 53 1 strftime() on Android incorrectly formats %V or %G for the last or the first incomplete week in a year. --

[issue26865] Meta-issue: support of the android platform

2016-05-04 Thread Xavier de Gaye
Xavier de Gaye added the comment: Tests that fail on an android emulator running an x86 system image at API level 21: issue #26944: android: test_posix fails -- ___ Python tracker __

[issue26932] RTLD_* macros are not defined on Android

2016-05-04 Thread Xavier de Gaye
Xavier de Gaye added the comment: > I will enter a separate issue for test_getgroups and reference it here as > well as in issue #26865. issue #26944: android: test_posix fails. -- ___ Python tracker _

[issue26922] build from fresh checkout fails

2016-05-04 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-

[issue26944] android: test_posix fails

2016-05-04 Thread Xavier de Gaye
New submission from Xavier de Gaye: test_posix fails on an android emulator running an x86 system image at API level 21. On android we have instead of a list of group IDs: root@generic_x86:/data/local/tmp # id -G uid=0(root) gid=0(root) groups=1003(graphics),1004(input),1007(log),1011(adb),101

[issue26944] android: test_posix fails

2016-05-04 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: See more information in comments in issue26932. Since the id tool looks fixed in Android 6.x we should skip the test on Android <6.x. -- components: +Tests -Cross-Build, Library (Lib) dependencies: +android: add platform.android_ver() nosy: +serhiy.st

[issue26932] RTLD_* macros are not defined on Android

2016-05-04 Thread Xavier de Gaye
Xavier de Gaye added the comment: > Xavier, please check that issues with ctypes and threading are not gone. No ctypes still crashes and threading still hangs. -- ___ Python tracker ___

[issue26873] xmlrpclib raises when trying to convert an int to string when unicode is available

2016-05-04 Thread Roundup Robot
Roundup Robot added the comment: New changeset 0d015f6aba8b by Serhiy Storchaka in branch '3.5': Issue #26873: xmlrpc now raises ResponseError on unsupported type tags https://hg.python.org/cpython/rev/0d015f6aba8b New changeset 8f7cb3b171f3 by Serhiy Storchaka in branch 'default': Issue #26873:

[issue26873] xmlrpclib raises when trying to convert an int to string when unicode is available

2016-05-04 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ _

[issue26924] android: test_concurrent_futures fails

2016-05-04 Thread Xavier de Gaye
Xavier de Gaye added the comment: On android: root@generic_x86:/data/local/tmp # python Python 3.6.0a0 (default:811ccdee6f87+, May 4 2016, 10:31:14) [GCC 4.9 20140827 (prerelease)] on linux Type "help", "copyright", "credits" or "license" for more information. >>> from _multiprocessing import

[issue26826] Expose new copy_file_range() syscall in os module.

2016-05-04 Thread Marcos Dione
Marcos Dione added the comment: Sorry for the delay. Based on suggestions in the mailing list, I changed the *count* handling as if it were a ssize_t, and I added a note about ignored output parameters. -- title: Expose new copy_file_range() syscal in os module. -> Expose new copy_fil

[issue26926] Large files are not supported on Android

2016-05-04 Thread Xavier de Gaye
Xavier de Gaye added the comment: The relevant part of the output of configure on x86: checking size of int... 4 checking size of long... 4 checking size of void *... 4 checking size of short... 2 checking size of float... 4 checking size of double... 8 checking size of fpos_t... 4 checking size

[issue26926] Large files are not supported on Android

2016-05-04 Thread Xavier de Gaye
Xavier de Gaye added the comment: On android x86: >>> import resource >>> resource.setrlimit(resource.RLIMIT_FSIZE, (2**31, 2**31)) Traceback (most recent call last): File "", line 1, in OverflowError: Python int too large to convert to C long >>> resource.setrlimit(resource.RLIMIT_FSIZE, (2*

[issue26919] android: test_cmd_line fails

2016-05-04 Thread Xavier de Gaye
Xavier de Gaye added the comment: There is a related issue #4388 although different, and issue #22747 may also be related. -- nosy: +haypo ___ Python tracker ___ ___

[issue26945] difflib.HtmlDiff().make_file() treat few change as whole line change

2016-05-04 Thread Fairuz Zack
New submission from Fairuz Zack: html diff threat 2.011 as whole line added instead of only "11" is changed. example file i want to diff is under bug_report.txt. seems the diff not reasonable for other line in the txt as well. -- components: Library (Lib) files: bug_report.txt messages

[issue26924] android: test_concurrent_futures fails

2016-05-04 Thread Berker Peksag
Berker Peksag added the comment: It normally should raise an ImportError if sem_unlink is not available. Could you try the attached patch please? -- keywords: +patch nosy: +berker.peksag Added file: http://bugs.python.org/file42710/sem_unlink.diff __

[issue26696] Document collections.abc.ByteString

2016-05-04 Thread Xiang Zhang
Xiang Zhang added the comment: Add collections.abc.ByteString's document. -- keywords: +patch Added file: http://bugs.python.org/file42711/ByteString_doc.patch ___ Python tracker ___

[issue26946] os.path.realpath.__name__ is 'abspath'

2016-05-04 Thread Jon Morris
New submission from Jon Morris: A minor issue, but the name property for realpath is actually 'abspath'. Python 2.7.8 on Windows 6.1.7601 (7 sp1) -- messages: 264804 nosy: Jon Morris priority: normal severity: normal status: open title: os.path.realpath.__name__ is 'abspath' type: behav

[issue26947] Documentation improvement needed

2016-05-04 Thread mPython
New submission from mPython: On following page: https://docs.python.org/3/glossary.html#term-hashable sentence "All of Python’s immutable built-in objects are hashable, while no mutable containers (such as lists or dictionaries) are." is not complete - probably a word "not" is needed on the en

[issue26439] ctypes.util.find_library fails when ldconfig/glibc not available (e.g., AIX)

2016-05-04 Thread Michael Felt
Michael Felt added the comment: reworked patch. To assist port to Python3 that changes in __init__.py and util.py are minimal. There is a new file: aixutil.py I have only tested on Python-2.7, so there may be issues for Python3. My goal is to have a single file for both versions. The main cha

[issue26439] ctypes.util.find_library fails when ldconfig/glibc not available (e.g., AIX)

2016-05-04 Thread Michael Felt
Michael Felt added the comment: implements ctypes.aixutil.find_library() In a separate file as both __init__.py as util.py needs it's logic. -- Added file: http://bugs.python.org/file42713/aixutil.py ___ Python tracker

[issue23228] Crashes when tarfile contains a symlink and unpack directory contain it too

2016-05-04 Thread Michael Vogt
Michael Vogt added the comment: Anything I can do to help moving this issue forward? -- ___ Python tracker ___ ___ Python-bugs-list ma

[issue26948] Simplify PyImport_ImportModuleLevelObject: avoid temporary tuple of str.partition/rpartition

2016-05-04 Thread STINNER Victor
New submission from STINNER Victor: Attached patch simplifies PyImport_ImportModuleLevelObject to avoid the temporary tuple created by str.partition/rpartition(). I don't expect any difference on the performance, it's more to cleanup the code. -- files: import.patch keywords: patch mes

[issue26949] IDLE restarts when one debugs code raising SystemExit

2016-05-04 Thread ppperry
Changes by ppperry : -- components: IDLE nosy: ppperry priority: normal severity: normal status: open title: IDLE restarts when one debugs code raising SystemExit type: behavior versions: Python 3.4 ___ Python tracker

[issue26946] os.path.realpath.__name__ is 'abspath'

2016-05-04 Thread ppperry
ppperry added the comment: Also is true on python 3.4. Why does this matter anyway? -- nosy: +ppperry versions: +Python 3.4 ___ Python tracker ___ ___

[issue23228] The tarfile module crashes when tarfile contains a symlink and unpack directory contain it too

2016-05-04 Thread ppperry
Changes by ppperry : -- title: Crashes when tarfile contains a symlink and unpack directory contain it too -> The tarfile module crashes when tarfile contains a symlink and unpack directory contain it too ___ Python tracker

[issue23275] Can assign [] = (), but not () = []

2016-05-04 Thread Berker Peksag
Berker Peksag added the comment: Here is an updated patch. I moved the test into test_unpack and added additional tests. sequence -> iterable changes should probably be applied to 3.5 as well. Thanks for the review, Martin. -- type: behavior -> enhancement Added file: http://bugs.pyth

[issue26946] os.path.realpath.__name__ is 'abspath'

2016-05-04 Thread Berker Peksag
Berker Peksag added the comment: It's because realpath is defined as # realpath is a no-op on systems without islink support realpath = abspath under Windows. -- nosy: +berker.peksag ___ Python tracker __

[issue26860] Make os.walk and os.fwalk yield namedtuple instead of tuple

2016-05-04 Thread ppperry
Changes by ppperry : -- title: os.walk and os.fwalk yield namedtuple instead of tuple -> Make os.walk and os.fwalk yield namedtuple instead of tuple ___ Python tracker ___ _

[issue26947] Documentation improvement needed

2016-05-04 Thread Xiang Zhang
Xiang Zhang added the comment: I think the original is OK. Adding "not" means the opposite. -- nosy: +xiang.zhang ___ Python tracker ___ _

[issue26948] Simplify PyImport_ImportModuleLevelObject: avoid temporary tuple of str.partition/rpartition

2016-05-04 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: LGTM, but I left a couple of minor suggestions on Rietveld. I hope they can make the code yet cleaner. -- nosy: +brett.cannon, eric.snow, ncoghlan ___ Python tracker ___

[issue26906] format(object.__reduce__) fails intermittently

2016-05-04 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: A number of other types are not initialized until you request an attribute. Here is larger patch for 2.7 that makes 38 types to be explicitly initialized. -- Added file: http://bugs.python.org/file42716/init_types-2.7.patch __

[issue26950] Typo in unittest.mock > Autospeccing documentation

2016-05-04 Thread Joni Bekenstein
New submission from Joni Bekenstein: In several code examples from unittest.mock > Autospeccing documentation you will find "assret_called_with" instead of "assert_called_with". -- assignee: docs@python components: Documentation messages: 264815 nosy: Joni Bekenstein, docs@python priori

[issue26950] Typo in unittest.mock > Autospeccing documentation

2016-05-04 Thread Berker Peksag
Berker Peksag added the comment: Thanks for the report, but the typos are intentional. Quoting from the documentation: [...] if you misspell one of these assert methods then your assertion is gone: >>> mock = Mock(name='Thing', return_value=None) >>> mock(1, 2, 3) >>> mock.ass

[issue26950] Typo in unittest.mock > Autospeccing documentation

2016-05-04 Thread Joni Bekenstein
Joni Bekenstein added the comment: My bad, didn't see the notice! Makes sense though. Sorry for opening an issue. -- ___ Python tracker ___ __

[issue26951] Unintuitive error when using generator expression in class property

2016-05-04 Thread Corey Farwell
New submission from Corey Farwell: ``` class A: B = range(10) C = frozenset([4, 5, 6]) D = list(i for i in B) E = list(i for i in B if i in C) ``` ``` coreyf@frewbook-pro /tmp [1]> python3 a.py Traceback (most recent call last): File "a.py", line 1, in class A: File "a.

[issue26947] Documentation improvement needed

2016-05-04 Thread Steven D'Aprano
Steven D'Aprano added the comment: Xiang Zhang is correct: the original is technically correct. If you read it like this: "All of Python’s immutable built-in objects are hashable, while no mutable containers (such as lists or dictionaries) are [hashable]." it should be clear. But if you have

[issue26951] Unintuitive error when using generator expression in class property

2016-05-04 Thread Emanuel Barry
Emanuel Barry added the comment: Using a simple metaclass shows that definition order is not at fault here: >>> class PrintOrder(dict): ... def __setitem__(self, item, value): ... print(item, value) ... super().__setitem__(item, value) ... >>> class Show(type): ... def __prepare__(na

[issue26947] Documentation improvement needed

2016-05-04 Thread Eric V. Smith
Eric V. Smith added the comment: I'm a native speaker, and it's not the greatest sentence. How about: All of Python’s immutable built-in objects (such as numbers, strings and tuples) are hashable. None of its mutable containers (such as lists or dictionaries) are hashable. -- nosy: +e

[issue26953] Failed building wheel for greenlet

2016-05-04 Thread Marco
Changes by Marco : -- components: Installation nosy: marcoconte_008 priority: normal severity: normal status: open title: Failed building wheel for greenlet versions: Python 3.4 ___ Python tracker _

[issue26924] android: test_concurrent_futures fails

2016-05-04 Thread Xavier de Gaye
Xavier de Gaye added the comment: Patch tested, it does not fix the problem. This is because in pyconfig.h: /* Define to 1 if you have the `sem_unlink' function. */ #define HAVE_SEM_UNLINK 1 Android declares the function but does not implement it. This is not the only case, for example issue #2

[issue26952] argparse help formatter crashes

2016-05-04 Thread Endre
New submission from Endre: I am using argparse-1.4.0. For this code exception is thrown when the script is started with the -h option: http://pastebin.com/dFF1paFA This exception is thrown: Traceback (most recent call last): File "C:\Users\ebak\Picea\tools\buildsystem\python\kw_set_checkers.p

[issue26953] Failed building wheel for greenlet

2016-05-04 Thread Marco
New submission from Marco: I have tried to install bpython on Linux with this result studio@linux:/usr/bin> pip install bpython ... ... Running setup.py bdist_wheel for greenlet ... error greenlet.h:8:20: fatal error: Python.h: No such file or directory #include ^ com

[issue26953] Failed building wheel for greenlet

2016-05-04 Thread Xiang Zhang
Xiang Zhang added the comment: Hmm, it's not suitable to report such problems here. You'd better google for it. At least you have to apt-get install python-dev or yum install python-devel. -- nosy: +xiang.zhang ___ Python tracker

[issue26953] Failed building wheel for greenlet

2016-05-04 Thread Berker Peksag
Berker Peksag added the comment: Please use greenlet's issue tracker: https://github.com/python-greenlet/greenlet/issues You'll probably need to install Python headers by using your distribution's package manager. -- nosy: +berker.peksag resolution: -> third party stage: -> resolved

[issue26906] format(object.__reduce__) fails intermittently

2016-05-04 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: An alternative way is just call PyType_Ready from _PyType_Lookup if type->tp_mro is NULL. Here is a patch against 2.7 that restores the solution from issue551412, but returns NULL if type->tp_mro is still NULL after calling PyType_Ready. I found one place i

[issue20120] Percent-signs (%) in .pypirc should not be interpolated

2016-05-04 Thread Jason R. Coombs
Jason R. Coombs added the comment: I just confirmed only Python 3.5 gets bugfixes, so I'll apply this to 3.5 and default. -- versions: +Python 3.6 ___ Python tracker ___ ___

[issue26951] Unintuitive error when using generator expression in class property

2016-05-04 Thread Steven D'Aprano
Steven D'Aprano added the comment: On snap! Nicely found! This seems to have something to do with the way generator expressions are run inside their own scope. In Python 2.7, a list comprehension in a class sees the locals correctly: py> class K: ... a = 2; x = [a+i for i in range(a)] ...

[issue20120] Percent-signs (%) in .pypirc should not be interpolated

2016-05-04 Thread Roundup Robot
Roundup Robot added the comment: New changeset eae59b6bf133 by Jason R. Coombs in branch '3.5': Issue #20120: Use RawConfigParser for .pypirc parsing, removing support for interpolation unintentionally added with move to Python 3. Behavior no longer does any interpolation in .pypirc files, matc

[issue26952] argparse help formatter crashes

2016-05-04 Thread Xiang Zhang
Changes by Xiang Zhang : -- nosy: +xiang.zhang ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue26951] Unintuitive error when using generator expression in class property

2016-05-04 Thread Xiang Zhang
Changes by Xiang Zhang : -- nosy: +xiang.zhang ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue26954] Add Guido's rejection notice to the "with" FAQ

2016-05-04 Thread Steven D'Aprano
New submission from Steven D'Aprano: The FAQs include a discussion of the rejected Pascal "with" statement (different from the Python `with`). From time to time people propose variants of it, such as using a leading dot to make it unambiguous. Guido has just firmly rejected the latest such pro

[issue20120] Percent-signs (%) in .pypirc should not be interpolated

2016-05-04 Thread Jason R. Coombs
Jason R. Coombs added the comment: Fixed now. I'll watch the buildbots to assure acceptance. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ __

[issue26952] argparse help formatter crashes

2016-05-04 Thread Berker Peksag
Berker Peksag added the comment: I don't think add_mutually_exclusive_group and add_argument_group are designed to work together. Did this worked with argparse 1.3.0 or stdlib version of argparse before? I'm getting the same traceback in 2.7 and 3.4+. -- nosy: +berker.peksag _

[issue26952] argparse help formatter crashes

2016-05-04 Thread Xiang Zhang
Xiang Zhang added the comment: This error occurs due to there is no action belong to the mutexGroup, the code requires at least one. You can simply add mutexGroup.add_argument('--foo', action='store_true') and you'll see the error disappears. I have no idea that this behaviour is intended

[issue26955] Implement equivalent to `pip.locations.distutils_scheme` in distutils

2016-05-04 Thread Sylvain Corlay
New submission from Sylvain Corlay: When installing a python package that has `headers`, these headers are usually installed under the main python include directory, which can be retrieved with `sysconfig.get_path('include')` or directly referred to as 'include' when setting the include direct

[issue26956] About Idle-x version not updated for 1.13

2016-05-04 Thread Jeff Peters
New submission from Jeff Peters: The help| about idleX | popup still lists the version as 1.12 this throws off the check for updats functionality -- components: IDLE messages: 264838 nosy: Jeff Peters priority: normal severity: normal status: open title: About Idle-x version not up

[issue26906] format(object.__reduce__) fails intermittently

2016-05-04 Thread Guido van Rossum
Guido van Rossum added the comment: Serhiy, I'm happy to help, but I'm not sure what you're asking me to do. Decide between different patches? I can't even repro the issue. -- ___ Python tracker __

[issue26952] argparse help formatter crashes

2016-05-04 Thread Endre
Endre added the comment: Hi, Thanks for taking a look at it. I have only tried it with argparse-1.4.0. "I don't think add_mutually_exclusive_group and add_argument_group are designed to work together." Yes, it really works strange in this case. I guess the framework should raise an exception

[issue26952] argparse help formatter crashes

2016-05-04 Thread Xiang Zhang
Changes by Xiang Zhang : -- nosy: +bethard ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.

[issue26952] argparse help formatter crashes

2016-05-04 Thread Xiang Zhang
Xiang Zhang added the comment: I agree with Berker. Even without any exceptions, the help message given is not what add_argument_group and add_mutually_exclusive_group intend. You can see usage: argparse_test.py [-h] [--foo] -u URL -p PROJECT [--dump] --mergeInput MERGE

[issue26943] Datetime.strptime crash

2016-05-04 Thread SilentGhost
SilentGhost added the comment: Jens, the issue seems to be related to the locale under which your script is operating. You could try to ensure that the locale is suitable for the %b switch. In any case this doesn't look like a datetime bug. -- nosy: +SilentGhost resolution: -> not a b

[issue26956] About Idle-x version not updated for 1.13

2016-05-04 Thread SilentGhost
Changes by SilentGhost : -- nosy: +kbk, roger.serwy, terry.reedy type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailin

[issue26955] Implement equivalent to `pip.locations.distutils_scheme` in distutils

2016-05-04 Thread SilentGhost
Changes by SilentGhost : -- components: +Distutils nosy: +dstufft, eric.araujo ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue26696] Document collections.abc.ByteString

2016-05-04 Thread Brett Cannon
Changes by Brett Cannon : -- assignee: docs@python -> brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue26943] datetime.datetime.strptime() raises an exception

2016-05-04 Thread Brett Cannon
Changes by Brett Cannon : -- title: Datetime.strptime crash -> datetime.datetime.strptime() raises an exception ___ Python tracker ___ __

[issue26946] os.path.realpath.__name__ is 'abspath'

2016-05-04 Thread Brett Cannon
Changes by Brett Cannon : -- resolution: -> not a bug status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue26945] difflib.HtmlDiff().make_file() treat few change as whole line change

2016-05-04 Thread SilentGhost
SilentGhost added the comment: This seems to do with the percentage of affected characters, the threshold seems to be about a quarter. Not sure this is a bug. -- nosy: +SilentGhost ___ Python tracker _

[issue26949] IDLE restarts when one debugs code raising SystemExit

2016-05-04 Thread SilentGhost
Changes by SilentGhost : -- nosy: +kbk, roger.serwy, terry.reedy stage: -> test needed ___ Python tracker ___ ___ Python-bugs-list ma

[issue26906] format(object.__reduce__) fails intermittently

2016-05-04 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : Removed file: http://bugs.python.org/file42717/init_type_in_pytype_lookup.patch ___ Python tracker ___ ___ Pytho

[issue26906] format(object.__reduce__) fails intermittently

2016-05-04 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Added a check for Py_TPFLAGS_READYING to prevent recursive calling. -- Added file: http://bugs.python.org/file42718/init_type_in_pytype_lookup.patch ___ Python tracker __

[issue26906] format(object.__reduce__) fails intermittently

2016-05-04 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The problem is that format() fails for instances of some classes, because the type still is not initialized. The simplest example -- list iterator. >>> format(iter([])) Traceback (most recent call last): File "", line 1, in TypeError: Type listiterator doe

[issue26951] Unintuitive error when using generator expression in class property

2016-05-04 Thread Mark Dickinson
Mark Dickinson added the comment: The outer for loop in a generator expression is evaluated immediately; everything after that is evaluated lazily. This was a deliberate design choice: see https://www.python.org/dev/peps/pep-0289/#early-binding-versus-late-binding for some rationale. This expl

[issue26811] segfault due to null pointer in tuple

2016-05-04 Thread Roundup Robot
Roundup Robot added the comment: New changeset a98ef122d73d by Serhiy Storchaka in branch '3.5': Issue #26811: gc.get_objects() no longer contains a broken tuple with NULL https://hg.python.org/cpython/rev/a98ef122d73d New changeset 3fe1c7ad3b58 by Serhiy Storchaka in branch 'default': Issue #26

[issue26002] make statistics.median_grouped more efficient

2016-05-04 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7b2fafd78c1d by Steven D'Aprano in branch 'default': Issue 26002 and 25974 https://hg.python.org/cpython/rev/7b2fafd78c1d -- nosy: +python-dev ___ Python tracker _

[issue26957] Docs: remove duplicate "the" in description of `%z` in datetime docs

2016-05-04 Thread Alex Chan
New submission from Alex Chan: The description of the `%z` format code in the datetime docs reads: > UTC offset in the form +HHMM or -HHMM (empty string if the the object is > naive). This tiny patch removes the second "the". The current wording goes at least as far back as Python 2.6; see h

[issue26926] Large files are not supported on Android

2016-05-04 Thread Xavier de Gaye
Xavier de Gaye added the comment: Here is a patch that uses resource.setrlimit() to check whether large file may not be supported. -- keywords: +patch Added file: http://bugs.python.org/file42720/large_file.patch ___ Python tracker

[issue26765] Factor out common bytes and bytearray implementation

2016-05-04 Thread Roundup Robot
Roundup Robot added the comment: New changeset 41969033eb9d by Serhiy Storchaka in branch 'default': Issue #26765: Moved common code and docstrings for bytes and bytearray methods https://hg.python.org/cpython/rev/41969033eb9d -- nosy: +python-dev ___

[issue26958] Suggestion to imporve queue.full reliability

2016-05-04 Thread Sudharsan R
New submission from Sudharsan R: I was browsing through the code for queue.full and queue.put methods. The queue.full method claims it is not a reliable one. But, the same internal implementation - _qsize is used for put as well as full. "put" is thread safe and reliable and "full" is not. Why

[issue26958] Suggestion to imporve queue.full reliability

2016-05-04 Thread SilentGhost
Changes by SilentGhost : -- components: +Library (Lib) nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue26855] android: add platform.android_ver()

2016-05-04 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: Several questions on implementation: 1. Should Android 4.1 supported? If not pass_fds and logics for deriving it can be removed. 2. I can't find ro.build.version.full on any device/emulator I have access to. Maybe it should be removed due to low popularity? Som

[issue26958] Suggestion to imporve queue.full reliability

2016-05-04 Thread Sudharsan R
Sudharsan R added the comment: Just add on to it.. q=queue.Queue() with q.not_full: q.put_nowait(1) this will hang. So if we acquire the not_full while computing size, all puts will wait. Same is the case for q.empty() and q.not_empty method and condition respectively. -- ___

[issue26855] android: add platform.android_ver()

2016-05-04 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 04.05.2016 21:47, Chi Hsuan Yen wrote: > 1. Should Android 4.1 supported? If not pass_fds and logics for deriving it > can be removed. According to http://www.droid-life.com/tag/distribution/ the Jelly Bean versions (4.1, 4.2 and 4.3) still have a sizabl

[issue26918] android: test_pipes fails

2016-05-04 Thread Xavier de Gaye
Xavier de Gaye added the comment: The attached patch fixes this. -- keywords: +patch Added file: http://bugs.python.org/file42722/no_tr_skipped.patch ___ Python tracker ___ _

[issue26855] android: add platform.android_ver()

2016-05-04 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: Version 2 attached. Removed ro.build.version.full. -- Added file: http://bugs.python.org/file42723/android_ver.patch ___ Python tracker ___ _

[issue26765] Factor out common bytes and bytearray implementation

2016-05-04 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : Added file: http://bugs.python.org/file42724/bytes_methods_stage2.patch ___ Python tracker ___ ___ Python-bugs-l

[issue26765] Factor out common bytes and bytearray implementation

2016-05-04 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is the second part of the patch. It moves common code for replace() method to template file Objects/stringlib/transmogrify.h. -- ___ Python tracker

[issue26957] Docs: remove duplicate "the" in description of `%z` in datetime docs

2016-05-04 Thread Roundup Robot
Roundup Robot added the comment: New changeset 580ddeccd689 by Berker Peksag in branch '3.5': Issue #26957: Remove duplicate 'the' from datetime documentation https://hg.python.org/cpython/rev/580ddeccd689 New changeset 3a069e5593ef by Berker Peksag in branch 'default': Issue #26957: Remove dupl

[issue26957] Docs: remove duplicate "the" in description of `%z` in datetime docs

2016-05-04 Thread Berker Peksag
Berker Peksag added the comment: Thanks! -- nosy: +berker.peksag resolution: -> fixed stage: -> resolved status: open -> closed type: enhancement -> behavior versions: +Python 3.5, Python 3.6 ___ Python tracker _

[issue26893] ValueError exception raised when using IntEnum with an attribute called "name" and @unique decorator

2016-05-04 Thread Berker Peksag
Changes by Berker Peksag : -- resolution: -> fixed stage: needs patch -> resolved status: open -> closed ___ Python tracker ___ ___ P

[issue26918] android: test_pipes fails

2016-05-04 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Is tr not available on Android?! I would suggest to use sed instead, but I afraid sed is not available too. What commands are available at all? -- nosy: +serhiy.storchaka ___ Python tracker

[issue26949] IDLE restarts when one debugs code raising SystemExit

2016-05-04 Thread Terry J. Reedy
New submission from Terry J. Reedy: To be more specific: if one runs a file, the shell is restarted (with the file name). In the file, raise SystemExit is normally the same as running off the end of the file, and a prompt is printed. If one runs a file with debugger on, [DEBUG ON] is printed

[issue26956] About Idle-x version not updated for 1.13

2016-05-04 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- stage: -> resolved ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue26956] About Idle-x version not updated for 1.13

2016-05-04 Thread Terry J. Reedy
Terry J. Reedy added the comment: This is the wrong tracker for this report. Idle-X is a 3rd party IDLE extension maintained elsewhere. -- resolution: -> third party status: open -> closed ___ Python tracker ___

  1   2   >