[issue6560] socket sendmsg(), recvmsg() methods

2011-09-10 Thread Nick Coghlan
Nick Coghlan added the comment: Closing the feature request as complete. The remaining Mac OS X buildbot issues now have their own tracker item: #12958 -- resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed superseder: -> test_socket failures on Mac O

[issue12958] test_socket failures on Mac OS X

2011-09-10 Thread Nick Coghlan
New submission from Nick Coghlan : Several of the new socket tests introduced in #6560 are failing on the Mac OS X buildbots. These appear to be due to platform problems rather than anything in the test suite or the new sendmsg/recvmsg code, but it would be good if a developer on Mac OS X coul

[issue12943] tokenize: add python -m tokenize support back

2011-09-10 Thread Meador Inge
Meador Inge added the comment: Patch against tip. -- assignee: -> docs@python components: +Documentation keywords: +needs review, patch nosy: +docs@python stage: needs patch -> patch review Added file: http://bugs.python.org/file23127/issue12943.patch _

[issue12483] CThunkObject_dealloc should call PyObject_GC_UnTrack?

2011-09-10 Thread Meador Inge
Meador Inge added the comment: This patch seems reasonable, is consistent with the GC docs, and passed all regression tests. Can someone apply? -- nosy: +amaury.forgeotdarc, belopolsky, meadori stage: -> patch review type: -> behavior ___ Python

[issue12881] ctypes: segfault with large structure field names

2011-09-10 Thread Meador Inge
Meador Inge added the comment: Ping. Any thoughts on this one? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue12945] ctypes works incorrectly with _swappedbytes_ = 1

2011-09-10 Thread Meador Inge
Meador Inge added the comment: Yes I can. This seems strange, but it is correct. The little endian case look like: Little endian --- | unsigned short | unsigned short | --- |

[issue12945] ctypes works incorrectly with _swappedbytes_ = 1

2011-09-10 Thread Pavel Boldin
Pavel Boldin added the comment: Yes. Thanks. But here is another error: import ctypes class X(ctypes.Structure): _pack_ = 1 _fields_ = [ ('a', ctypes.c_ubyte, 4), ('b', ctypes.c_ubyte, 4), ('c', ctypes.c_ushort, 4), ('d', ctypes.c_ushort, 12), ] bu

[issue12927] test_ctypes: segfault with suncc

2011-09-10 Thread Meador Inge
Meador Inge added the comment: I am not sure, but it does seem that way considering the most recent libffi says that 3.0.10 was released on Aug-23-11. What is the process for updating libffi anyway? Also, I posted a question concerning the Solaris Studio support on libffi-discuss: http://so

[issue12945] ctypes works incorrectly with _swappedbytes_ = 1

2011-09-10 Thread Meador Inge
Meador Inge added the comment: Pavel, I looked into to this a little more and have some ideas. First off, '_swappedbytes_' is an undocumented implementation detail that is used to implement the LittleEndianStructure and BigEndianStructure types. So using it directly like that is not expecte

[issue12880] ctypes: clearly document how structure bit fields are allocated

2011-09-10 Thread Meador Inge
Meador Inge added the comment: Another example of desperately needed documentation: issue12945. -- components: +ctypes ___ Python tracker ___ ___

[issue12957] mmap.resize changes memory address of mmap'd region

2011-09-10 Thread Alex Gaynor
Changes by Alex Gaynor : -- nosy: +alex ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/

[issue12957] mmap.resize changes memory address of mmap'd region

2011-09-10 Thread Michael Schurter
New submission from Michael Schurter : Since mmap.resize uses MREMAP_MAYMOVE on Linux, it would be nice to warn users that pointers into their memory mapped regions will be invalid after resizes. Linux's manpage offers the following explanation: "If the mapping is relocated, then absolute poin

[issue6560] socket sendmsg(), recvmsg() methods

2011-09-10 Thread Michael Schurter
Changes by Michael Schurter : -- nosy: +schmichael ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue12914] Add cram function to textwrap

2011-09-10 Thread Terry J. Reedy
Terry J. Reedy added the comment: This pretty well summarizes my vague feelings. I originally used a size 30 in my example, getting 'This sentence...made available' and then realized that it was a complete accident that I got complete words. If anything were made publicly available, I might l

[issue12301] Use :data:`sys.thing` instead of ``sys.thing`` throughout

2011-09-10 Thread Bryce Verdier
Bryce Verdier added the comment: No worries, I totally understand. I was working on it a little bit at a time, as life would allow. And being probably more thorough than I needed to be. Here is the patch of everything that I've accomplished. Hope this helps. -- keywords: +patch Added

[issue12927] test_ctypes: segfault with suncc

2011-09-10 Thread Stefan Krah
Stefan Krah added the comment: Nice debugging work! I compiled --with-system-ffi and there the issue seems fixed. Do we have a libffi-3.0.10 release candidate in Modules/_ctypes? The README says libffi-3.0.10, but the last commit for ffi.c was 17 months ago: http://hg.python.org/cpython/log/b2

[issue12956] 2.7.2 build fails with --enable-framework and space in pathname on OS X 10.7.1

2011-09-10 Thread LMO
Changes by LMO : -- components: Build nosy: rzn8tr priority: normal severity: normal status: open title: 2.7.2 build fails with --enable-framework and space in pathname on OS X 10.7.1 versions: Python 2.7 ___ Python tracker

[issue12936] armv5tejl: random segfaults in getaddrinfo()

2011-09-10 Thread Stefan Krah
Stefan Krah added the comment: This is slightly embarrassing: The partition containing the qemu images was full. I don't encounter this often, so it tends to be the last thing I think of. Proudly presenting a core dump. Since the segfault occurs in libpthread, I suggest we close this. What do y

[issue12927] test_ctypes: segfault with suncc

2011-09-10 Thread Meador Inge
Meador Inge added the comment: According to the latest release notes (https://github.com/atgreen/libffi/blob/master/README) the Solaris compiler should be supported for building: 3.0.10 Aug-23-11 Add support for Apple's iOS. Add support for ARM VFP ABI. Add RTEMS suppo

[issue12927] test_ctypes: segfault with suncc

2011-09-10 Thread Meador Inge
Meador Inge added the comment: I see what is going on. I don't think the 'libffi' code can be executed correctly when built by 'suncc'. The code currently requires '__attribute__((regparm(1)))', which AFAICT is not implemented by 'suncc'; only 'gcc'. Take a look at 'ffi_closure_SYSV_inner

[issue11457] Expose nanosecond precision from system calls

2011-09-10 Thread Mark Dickinson
Mark Dickinson added the comment: [about adding float128] > I realize a new float type would be a major undertaking That's an understatement and a half. The only way this could ever be viable is if float128 support becomes widespread enough that we don't have to write our own algorithms for

[issue12955] urllib2.build_opener().open() is not friendly to "with ... as:"

2011-09-10 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti, orsenthil ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue12955] urllib2.build_opener().open() is not friendly to "with ... as:"

2011-09-10 Thread Valery Khamenya
New submission from Valery Khamenya : The following intuitive construction with urllib2.build_opener().open() as: ... leads to AttributeError: addinfourl instance has no attribute '__exit__' http://docs.python.org/library/urllib2.html says almost nothing about concept of closing. Could i

[issue12936] armv5tejl: random segfaults in getaddrinfo()

2011-09-10 Thread Charles-François Natali
Charles-François Natali added the comment: > No such luck. Somehow gdb doesn't dump the core file: What do $ /sbin/sysctl -a | grep "kernel.core" And $ grep core /etc/security/limits.conf return? -- ___ Python tracker

[issue12951] List behavior is different

2011-09-10 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: See also http://docs.python.org/faq/programming.html#how-do-i-create-a-multidimensional-list -- nosy: +amaury.forgeotdarc ___ Python tracker ___

[issue12926] tarfile tarinfo.extract*() broken with symlinks

2011-09-10 Thread Lars Gustäbel
Changes by Lars Gustäbel : -- assignee: -> lars.gustaebel ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue12942] Shebang line fixer for 2to3

2011-09-10 Thread Vlada Peric
Changes by Vlada Peric : -- nosy: +VPeric ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.or

[issue12940] Cmd example using turtle left vs. right doc-bug

2011-09-10 Thread Ezio Melotti
Ezio Melotti added the comment: Fixed, thanks for the report and the patch! 2.7 doesn't have the example, so there's nothing to fix there. -- assignee: docs@python -> ezio.melotti resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed versions: +Python 3.2

[issue12940] Cmd example using turtle left vs. right doc-bug

2011-09-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset 1ab62d3b96d2 by Ezio Melotti in branch '3.2': #12940: fix cmd example. Patch by Tim Chase. http://hg.python.org/cpython/rev/1ab62d3b96d2 New changeset b239b7d9f752 by Ezio Melotti in branch 'default': #12940: merge with 3.2. http://hg.python.org/c