[issue2292] Missing *-unpacking generalizations

2015-01-30 Thread Neil Girdhar
Neil Girdhar added the comment: Another bug, another test. -- Added file: http://bugs.python.org/file37926/starunpack29.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2292 ___

[issue23348] distutils.LooseVersion fails to compare two valid versions

2015-01-30 Thread Guillaume
Guillaume added the comment: Do you mean http://bugs.python.org/issue14894 ? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23348 ___ ___

[issue23284] Improve termcap detection in setup.py

2015-01-30 Thread Stefan Krah
Stefan Krah added the comment: FWIW, even http://www.linuxfromscratch.org/lfs/view/stable/chapter06/readline.html enforces -ncurses linking of readline. [They should be compiling ncurses with tinfo split out though and use -tinfo instead.] -- ___

[issue23351] socket.settimeout(5.0) does not have any effect

2015-01-30 Thread Antoine Pitrou
Antoine Pitrou added the comment: The test script works on Ubuntu 14.10 as well. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23351 ___ ___

[issue2292] Missing *-unpacking generalizations

2015-01-30 Thread Neil Girdhar
Neil Girdhar added the comment: Fixed a bug in ceval.c; added a test to test_unpack_ex. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2292 ___

[issue2292] Missing *-unpacking generalizations

2015-01-30 Thread Neil Girdhar
Changes by Neil Girdhar mistersh...@gmail.com: Added file: http://bugs.python.org/file37924/starunpack28.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2292 ___

[issue2292] Missing *-unpacking generalizations

2015-01-30 Thread Neil Girdhar
Changes by Neil Girdhar mistersh...@gmail.com: Added file: http://bugs.python.org/file37925/starunpack28.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2292 ___

[issue23353] gnerator bug with exception: tstate-exc_value is not cleared after an except block

2015-01-30 Thread STINNER Victor
STINNER Victor added the comment: I simplified the script even more: 287 lines (6 functions/generators, 7 classes/exceptions) = 28 lines (1 generator)! -- Added file: http://bugs.python.org/file37923/excinfo_bug6.py ___ Python tracker

[issue23348] distutils.LooseVersion fails to compare two valid versions

2015-01-30 Thread Éric Araujo
Éric Araujo added the comment: Thanks for the report. I think there’s already a long discussion in another ticket but don’t have time to search right now. -- resolution: - duplicate ___ Python tracker rep...@bugs.python.org

[issue2292] Missing *-unpacking generalizations

2015-01-30 Thread Guido van Rossum
Guido van Rossum added the comment: For the PEP update, please check out the PEP repo at hg.python.org and send a patch to p...@python.org. On Jan 30, 2015 3:54 AM, Neil Girdhar rep...@bugs.python.org wrote: Neil Girdhar added the comment: Is it possible to edit the PEP to reflect the

[issue2292] Missing *-unpacking generalizations

2015-01-30 Thread Neil Girdhar
Changes by Neil Girdhar mistersh...@gmail.com: Removed file: http://bugs.python.org/file37924/starunpack28.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2292 ___

[issue23349] PyBuffer_ToContiguous() off-by-one error for non-contiguous buffers

2015-01-30 Thread Stefan Krah
Stefan Krah added the comment: Looks good, here's a patch with tests. -- Added file: http://bugs.python.org/file37927/issue23349-2.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23349

[issue14894] distutils.LooseVersion fails to compare number and a word

2015-01-30 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- assignee: eric.araujo - versions: +Python 3.5 -Python 3.3, Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14894 ___

[issue23055] PyUnicode_FromFormatV crasher

2015-01-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Backported tests exposed off-by-one error in PyUnicode_FromFormatV. This error was fixed in 3.x in changeset ac768c8e13ac (issue7228). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23055

[issue23348] distutils.LooseVersion fails to compare two valid versions

2015-01-30 Thread Éric Araujo
Éric Araujo added the comment: Yes, thanks. Please weigh in on the other ticket. -- status: open - closed superseder: - distutils.LooseVersion fails to compare number and a word ___ Python tracker rep...@bugs.python.org

[issue2292] Missing *-unpacking generalizations

2015-01-30 Thread Joshua Landau
Joshua Landau added the comment: Special-cased `(*i for i in x)` to use YIELD_FROM instead of looping. Speed improved, albeit still only half as fast as chain.from_iterable. Fixed error message check in test_syntax and removed semicolons. -- Added file:

[issue23055] PyUnicode_FromFormatV crasher

2015-01-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset 245c9f372a34 by Serhiy Storchaka in branch '2.7': Issue #23055: Fixed read-past-the-end error in PyUnicode_FromFormatV. https://hg.python.org/cpython/rev/245c9f372a34 New changeset 9fe1d861f486 by Serhiy Storchaka in branch '3.2': Issue #23055:

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

2015-01-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here are results of the benchmark which measures dump and load time for all pyc files in the stdlib (including tests). https://bitbucket.org/storchaka/cpython-stuff/src/default/marshal/marshalbench.py $ find * -name __pycache__ -exec rm -rf '{}' + $

[issue23055] PyUnicode_FromFormatV crasher

2015-01-30 Thread Stefan Krah
Stefan Krah added the comment: I think in 2.7 there's a slight problem since e6b9e277fbf4: [1/1] test_unicode Debug memory block at address p=0x7f4ebba3fae0: API 'o' 100 bytes originally requested The 7 pad bytes at p-7 are FORBIDDENBYTE, as expected. The 8 pad bytes at

[issue23352] PyBuffer_IsContiguous() sometimes returns wrong result if suboffsets != NULL

2015-01-30 Thread Richard Hansen
Richard Hansen added the comment: People might rely on the fact that contiguous implies suboffsets==NULL. Cython (currently) relies on all-negatives being acceptable and equivalent to suboffsets==NULL. See: https://github.com/cython/cython/pull/367

[issue23055] PyUnicode_FromFormatV crasher

2015-01-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Yes, I think following patch will help. -- Added file: http://bugs.python.org/file37929/issue23055_2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23055

[issue23055] PyUnicode_FromFormatV crasher

2015-01-30 Thread Stefan Krah
Stefan Krah added the comment: issue23055_2.patch looks good. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23055 ___ ___ Python-bugs-list

[issue11578] Increase test coverage for timeit.py

2015-01-30 Thread koobs
Changes by koobs koobs.free...@gmail.com: -- versions: +Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11578 ___ ___ Python-bugs-list

[issue23055] PyUnicode_FromFormatV crasher

2015-01-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset e5d79e6deeb5 by Serhiy Storchaka in branch '2.7': Issue #23055: Fixed off-by-one error in PyUnicode_FromFormatV. https://hg.python.org/cpython/rev/e5d79e6deeb5 -- ___ Python tracker

[issue2292] Missing *-unpacking generalizations

2015-01-30 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: -eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2292 ___ ___ Python-bugs-list

[issue11578] Increase test coverage for timeit.py

2015-01-30 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- nosy: +serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11578 ___ ___

[issue20306] Lack of pw_gecos field in Android's struct passwd causes cross-compilation for the pwd module to fail

2015-01-30 Thread Matt Frank
Matt Frank added the comment: Apologies. That last patch includes diffs to generated files (configure and pyconfig.h.in). This version just patches Modules/pwdmodule.c and configure.ac. After applying the patch please run autoheader and autoconf to correctly regenerate configure and

[issue23055] PyUnicode_FromFormatV crasher

2015-01-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you Stefan for pointing on tests failure. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23055 ___ ___

[issue23055] PyUnicode_FromFormatV crasher

2015-01-30 Thread Stefan Krah
Stefan Krah added the comment: I think I still get a problem in 2.7: [1/1] test_unicode ==23430== Invalid read of size 1 ==23430==at 0x484541: PyUnicodeUCS2_FromFormatV (unicodeobject.c:736) ==23430==by 0x485C75: PyUnicodeUCS2_FromFormat (unicodeobject.c:1083) 736 for (f =

[issue22986] Improved handling of __class__ assignment

2015-01-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset c0d25de5919e by Benjamin Peterson in branch 'default': allow changing __class__ between a heaptype and non-heaptype in some cases (closes #22986) https://hg.python.org/cpython/rev/c0d25de5919e -- resolution: - fixed stage: patch review -

[issue23349] PyBuffer_ToContiguous() off-by-one error for non-contiguous buffers

2015-01-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset a9305102c892 by Stefan Krah in branch '2.7': Issue #23349: Fix off-by-one error in PyBuffer_ToContiguous(). Initial patch https://hg.python.org/cpython/rev/a9305102c892 -- nosy: +python-dev ___ Python

[issue16318] FTP_TLS in ftplib not supporting prot_p storlines in FTP7.5

2015-01-30 Thread Lukasz Szybalski
Lukasz Szybalski added the comment: Hello, We are having issues usign ftplib for implicit TLS over port 990 I'm referencing a solution that states For the implicit FTP TLS/SSL(defualt port 990), our client program must build a TLS/SSL connection right after the socket is created. But

[issue8534] multiprocessing not working from egg

2015-01-30 Thread Davin Potts
Davin Potts added the comment: The example demonstrating the issue is reproducible on Windows (tested on Windows 7 64-bit, specifically) with 2.7.9. Complications arising from how multiprocessing creates new processes on Windows combined with conventions in the import system in 2.7.9 result

[issue11578] Increase test coverage for timeit.py

2015-01-30 Thread Stefan Krah
Stefan Krah added the comment: I think all 2.7 bots are broken. :) -- nosy: +skrah ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11578 ___ ___

[issue23352] PyBuffer_IsContiguous() sometimes returns wrong result if suboffsets != NULL

2015-01-30 Thread Sebastian Berg
Sebastian Berg added the comment: Numpy does not understand suboffsets. The buffers we create will always have them NULL. The other way around To be honest, think it is probably ignoring the whole fact that they might exist at all :/, really needs to be fixed if it is the case.

[issue23055] PyUnicode_FromFormatV crasher

2015-01-30 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- status: closed - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23055 ___ ___

[issue23350] Content-length is incorrect when request body is a list or tuple

2015-01-30 Thread Demian Brecht
Demian Brecht added the comment: On 2015-01-29 9:51 PM, Martin Panter wrote: The documentation currently says “Content-Length header should be explicitly provided when the body is an iterable”. See Lib/urllib/request.py:1133 for how it is done for urlopen(), using memoryview(), which is

[issue14613] time.time can return NaN

2015-01-30 Thread matham
matham added the comment: Ok, first, I was able to make it happen outside of kivy using only my code. However, I'm not sure it's of much help because it's using my ffmpeg based code (https://github.com/matham/ffpyplayer) which is not a simple script :) The issue happens when ffmpeg emits logs

[issue11578] Increase test coverage for timeit.py

2015-01-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset aa6f8e067ec3 by Serhiy Storchaka in branch '2.7': Use float division to avoid deprecation warning in test_timeit (issue #11578). https://hg.python.org/cpython/rev/aa6f8e067ec3 -- ___ Python tracker

[issue23353] generator bug with exception: tstate-exc_value is not cleared after an except block

2015-01-30 Thread STINNER Victor
STINNER Victor added the comment: Last major change related to generators in Python/ceval.c: --- changeset: 47594:212a1fee6bf9 parent: 47585:b0ef00187a7e user:Benjamin Peterson benja...@python.org date:Wed Jun 11 15:59:43 2008 + files: Doc/library/dis.rst

[issue20169] random module doc page has broken links

2015-01-30 Thread Berker Peksag
Changes by Berker Peksag berker.pek...@gmail.com: -- nosy: +berker.peksag versions: +Python 3.5 -Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20169 ___

[issue23353] generator bug with exception: tstate-exc_value is not cleared after an except block

2015-01-30 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: -- nosy: +pitrou, serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23353 ___ ___

[issue17188] Document 'from None' in raise statement doc.

2015-01-30 Thread Berker Peksag
Changes by Berker Peksag berker.pek...@gmail.com: -- nosy: +berker.peksag stage: needs patch - patch review versions: +Python 3.5 -Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17188

[issue23353] generator bug with exception: tstate-exc_value is not cleared after an except block

2015-01-30 Thread STINNER Victor
STINNER Victor added the comment: Attached gen_exc_value_py27.patch: Patch for Python 2.7. No unit test yet. The full test suite of trollius pass on the patched Python 2.7 and on the patched Python 3.5. The full test suite of asyncio also pass on the patched Python 3.5. -- Added

[issue23350] Content-length is incorrect when request body is a list or tuple

2015-01-30 Thread Martin Panter
Martin Panter added the comment: Sorry my comment was a bit rushed. I wasn’t saying this feature shouldn’t be added. I guess I was pointing out two things: 1. Someone should updated the documentation to say that Content-Length no longer has to be explicitly provided for lists and tuples. 2.

[issue14613] time.time can return NaN

2015-01-30 Thread STINNER Victor
STINNER Victor added the comment: I'm interested to investigate this issue, but right now I have no idea how to reproduce it. If I cannot reproduce the issue, I cannot investigate it. Are you able to write a short Python script to reproduce the issue? Did you modify manually the system time?

[issue23353] generator bug with exception: tstate-exc_value is not cleared after an except block

2015-01-30 Thread STINNER Victor
STINNER Victor added the comment: Attached gen_exc_value.patch changes how generators handle the currently handled exception (tstate-exc_value). The patch probably lacks tests to test the exact behaviour of sys.exc_info(). The 3 examples below can be used to write such tests. But before

[issue23353] generator bug with exception: tstate-exc_value is not cleared after an except block

2015-01-30 Thread STINNER Victor
STINNER Victor added the comment: Oh, by the way: keeping the exception after the except block is also a tricky reference leak. In Python 3, since exceptions store their traceback, this issue may keep a lot of objects alive too long, whereas they are expected to be destroyed much earlier.

[issue23353] generator bug with exception: tstate-exc_value is not cleared after an except block

2015-01-30 Thread STINNER Victor
STINNER Victor added the comment: See also: * PEP 3134: Exception Chaining and Embedded Tracebacks (Python 3.0) * Issue #3021: Lexical exception handlers (Python 3.0) -- thread: https://mail.python.org/pipermail/python-3000/2008-May/013740.html * PEP 380: Syntax for Delegating to a

[issue23353] generator bug with exception: tstate-exc_value is not cleared after an except block

2015-01-30 Thread Antoine Pitrou
Antoine Pitrou added the comment: Currently, a generator inherits the currently handled exception from the caller This is expected, since this is how normal functions behave. -- ___ Python tracker rep...@bugs.python.org

[issue23353] generator bug with exception: tstate-exc_value is not cleared after an except block

2015-01-30 Thread STINNER Victor
STINNER Victor added the comment: Currently, a generator inherits the currently handled exception from the caller This is expected, since this is how normal functions behave. Do you see how to fix the issue without changing the behaviour? --

[issue23354] Loading 2 GiLOC file which raises exception causes wrong traceback

2015-01-30 Thread Ethan Furman
Changes by Ethan Furman et...@stoneleaf.us: -- nosy: +ethan.furman ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23354 ___ ___ Python-bugs-list

[issue23355] rsplit duplicates split behavior

2015-01-30 Thread eryksun
eryksun added the comment: The result of str.split and str.rsplit can differ depending on the optional 2nd parameter, maxsplit: 'a b c'.split(None, 1) ['a', 'b c'] 'a b c'.rsplit(None, 1) ['a b', 'c'] https://docs.python.org/2/library/stdtypes.html#str.rsplit --

[issue23353] generator bug with exception: tstate-exc_value is not cleared after an except block

2015-01-30 Thread Antoine Pitrou
Antoine Pitrou added the comment: Attached patch fixes the test script and doesn't break any test. -- Added file: http://bugs.python.org/file37933/gen_exc_state_restore.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23353

[issue23353] generator bug with exception: tstate-exc_value is not cleared after an except block

2015-01-30 Thread Antoine Pitrou
Antoine Pitrou added the comment: Note the patch also fixes the reference leak in test_asyncio. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23353 ___

[issue23354] Loading 2 GiLOC file which raises exception causes wrong traceback

2015-01-30 Thread SoniEx2
New submission from SoniEx2: I loaded a file with 2 GiLOC followed by assert False and this was the error/traceback: Traceback (most recent call last): File test.py, line -2147483647, in module AssertionError -- components: Interpreter Core messages: 235079 nosy: SoniEx2 priority:

[issue23355] rsplit duplicates split behavior

2015-01-30 Thread kai keliikuli
New submission from kai keliikuli: 'a b'.split() == 'a b'.rsplit() -- messages: 235080 nosy: kai.keliikuli priority: normal severity: normal status: open title: rsplit duplicates split behavior type: behavior versions: Python 2.7 ___ Python tracker

[issue23355] rsplit duplicates split behavior

2015-01-30 Thread Zachary Ware
Changes by Zachary Ware zachary.w...@gmail.com: -- resolution: - not a bug stage: - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23355 ___

[issue15955] gzip, bz2, lzma: add option to limit output size

2015-01-30 Thread Martin Panter
Martin Panter added the comment: Nikolaus, do you still plan on doing the bzip module? If not, I could have a go when I get a chance. I’m also keen for the GzipFile decompression to be fixed, if anyone wants to review my gzip-bomb.patch. -- ___

[issue23320] devguide should mention rules about paragraph reflow in the documentation

2015-01-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: For normal paragraphs, long and short lines make no difference to Sphinx and subsequent output. I would like to know and have documented when (how uneven the lines) a reflow is otherwise considered necessary. -- nosy: +georg.brandl, terry.reedy

[issue23320] devguide should mention rules about paragraph reflow in the documentation

2015-01-30 Thread Georg Brandl
Georg Brandl added the comment: For patches to be reviewed (whether submitted by a core developer or not), there should be as little spurious changes as possible. In the final commit, it's ok, but not mandatory, to reflow the paragraphs. -- ___

[issue23308] a bug in Instructions section 4.1

2015-01-30 Thread Zachary Ware
Zachary Ware added the comment: I'm not seeing any problem with any section 4.1. If you can provide a direct link to the problem and a description of it, please reopen the issue. -- nosy: +zach.ware resolution: - not a bug stage: - resolved status: open - closed

[issue23316] Incorrect evaluation order of function arguments with *args

2015-01-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: I expect left to right as documented (and designed by Guido). His OK or clarification would be to intentionally do differently. -- nosy: +terry.reedy ___ Python tracker rep...@bugs.python.org

[issue11578] Increase test coverage for timeit.py

2015-01-30 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11578 ___ ___

[issue23337] Run python with restricted rights

2015-01-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: I agree that this would have been better asked on python-list. However... I would like a better handle on when this occurs to either make it happens less or better document workarounds. How did you install python? The .msi installer from python.org? Which

[issue23055] PyUnicode_FromFormatV crasher

2015-01-30 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23055 ___ ___

[issue14613] time.time can return NaN

2015-01-30 Thread matham
matham added the comment: Hi guys, I'm running into this issue on windows 7 using python 2.7.8 (x86) from the python website. The following exception occurs while cython code calls a python function which emits a log. When replaying the same code it happens consistently: Traceback (most

[issue23353] gnerator bug with exception: tstate-exc_value is not cleared after an except block

2015-01-30 Thread STINNER Victor
New submission from STINNER Victor: Since my changeset a5efd5021ca1, the Python test suite starts to fail randomly. Running test_asyncio modifies sys.exc_info(): it is not (None, None, None) after the execution of test_asyncio. The problem comes from

[issue23352] PyBuffer_IsContiguous() sometimes returns wrong result if suboffsets != NULL

2015-01-30 Thread Stefan Krah
Stefan Krah added the comment: For the record: I'm myself guilty of accepting all-negative suboffsets in memoryview.c (see init_slice()) and I think there's even a test for it. However, while it's ok for a specific function to accept this corner case, I'm not sure about is_contiguous().

[issue23349] PyBuffer_ToContiguous() off-by-one error for non-contiguous buffers

2015-01-30 Thread Stefan Krah
Changes by Stefan Krah ste...@bytereef.org: -- nosy: +skrah ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23349 ___ ___ Python-bugs-list mailing

[issue23284] Improve termcap detection in setup.py

2015-01-30 Thread Stefan Krah
Stefan Krah added the comment: Ok thanks, I understand the issue now. I'm focusing this issue on the termcap detection. For the other parts of the patch you'd have to open separate issues. As an aside, the ncurses maintainer seems to endorse a distro enforced choice for libreadline's

[issue23351] socket.settimeout(5.0) does not have any effect

2015-01-30 Thread Charles-François Natali
Charles-François Natali added the comment: The way socket timeouts are implemented is by using select() to determine whether the socket is ready for read/write. In this case, select() probably marks the socket ready even though the queue is full, which later raises EAGAIN. Indeed, and

[issue2292] Missing *-unpacking generalizations

2015-01-30 Thread Neil Girdhar
Neil Girdhar added the comment: Ready for a code review: Blocked f(*x for x…) as requested. Polished up parsermodule.c. -- Added file: http://bugs.python.org/file37920/starunpack26.diff ___ Python tracker rep...@bugs.python.org

[issue23285] PEP 475 - EINTR handling

2015-01-30 Thread Charles-François Natali
Charles-François Natali added the comment: With eintr-2.diff, fast!: Victory \°/. Instrumented test_send, 3 socket.send calls, many socket.recv_into calls: Yep, that's expected. I think we should keep the default socket buffer size: it increases the test coverage, and it's probably not

[issue23352] PyBuffer_IsContiguous() sometimes returns wrong result if suboffsets != NULL

2015-01-30 Thread Stefan Krah
Stefan Krah added the comment: PEP-3118 says: Py_buffer.suboffsets: If all suboffsets are negative (i.e. no de-referencing is needed, then this must be NULL (the default value). I would be inclined to go with the PEP here and make a doc fix instead. --

[issue2292] Missing *-unpacking generalizations

2015-01-30 Thread Neil Girdhar
Neil Girdhar added the comment: Is it possible to edit the PEP to reflect the current design decisions? Specifically: * Remove: Because of the new levity for * and ** unpackings, it may be advisable to lift some or all of these restrictions. (in both abstract and specification) * Extend:

[issue2292] Missing *-unpacking generalizations

2015-01-30 Thread Neil Girdhar
Neil Girdhar added the comment: Fixed a bug and added a test. -- Added file: http://bugs.python.org/file37921/starunpack27.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2292 ___