Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #38416
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!goblin3!goblin2!goblin.stu.neva.ru!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <demianbrecht@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.013 |
| X-Spam-Evidence | '*H*': 0.97; '*S*': 0.00; 'python,': 0.02; 'though:': 0.07; 'incorrect': 0.09; 'cc:addr:python-list': 0.10; 'assume': 0.11; '"terry': 0.16; 'assumptions': 0.16; 'received:209.85.210.42': 0.16; 'reedy"': 0.16; 'wrote:': 0.17; 'shape': 0.17; 'memory': 0.18; 'fairly': 0.21; "i'd": 0.22; 'cc:2**0': 0.23; "i've": 0.23; 'seems': 0.23; 'cc:no real name:2**0': 0.24; 'cc:addr:python.org': 0.25; 'header:In-Reply- To:1': 0.25; 'header:User-Agent:1': 0.26; 'wondering': 0.26; 'question': 0.27; 'reporting': 0.29; 'source': 0.29; "i'm": 0.29; 'that,': 0.34; 'received:google.com': 0.34; 'doing': 0.35; 'pm,': 0.35; 'received:192.168.0': 0.35; 'received:209.85': 0.35; 'something': 0.35; 'there': 0.35; 'but': 0.36; 'message- id:@gmail.com': 0.36; 'too': 0.36; 'charset:us-ascii': 0.36; 'subject: (': 0.36; 'quite': 0.37; 'received:209': 0.37; 'far': 0.37; 'received:192': 0.39; 'received:192.168': 0.40; 'safe': 0.63; 'times': 0.63; 'skip:n 10': 0.63; 'making': 0.64; 'subject:. ': 0.66; 'felt': 0.75; 'bitten': 0.84; 'findings': 0.91 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:user-agent:date:subject:from:to:cc:message-id :thread-topic:in-reply-to:mime-version:content-type :content-transfer-encoding; bh=tdP6wy5M+6wpZ7gwOIqPYMwV+uRc/0j4Btu9BLD0HYk=; b=aQWkK259/8/fmP3VQiT7gDJZX43VEGXQr2n2NjWEEZs2PL8udohWfhtnMHjUMl+2Q0 L2q52oqR0QT/pVGgpwWoP1jLoAlrJvrbHiiEwlaYCboSC/87QdBMy/g1CFjw/rumCu7n JVUuQwpKH+q9sd2xmzV3L1wMXHszihyA01ipA7ZeiRwL72E86I3f0z72hg+PvqRLV9+w SdWFtu2galmSkT6HOC88IE1agHXFUfX8WSuRFhPv0xVK3cbaboXfJO/rHcpRKYv+zDN/ GmKTOVqV8JmU3lOx/kbPw/7d4EbvD6wsa2YolJk8glfQAsI74R1AILEc5fZjbxmzei9V 7oaA== |
| X-Received | by 10.66.85.103 with SMTP id g7mr13897662paz.45.1360304696315; Thu, 07 Feb 2013 22:24:56 -0800 (PST) |
| User-Agent | Microsoft-MacOutlook/14.3.0.121105 |
| Date | Thu, 07 Feb 2013 22:24:49 -0800 |
| Subject | memoryview (was "len() on mutables vs. immutables") |
| From | Demian Brecht <demianbrecht@gmail.com> |
| To | Terry Reedy <tjreedy@udel.edu> |
| Thread-Topic | memoryview (was "len() on mutables vs. immutables") |
| In-Reply-To | <51147F71.2050706@udel.edu> |
| Mime-version | 1.0 |
| Content-type | text/plain; charset="US-ASCII" |
| Content-transfer-encoding | 7bit |
| Cc | python-list@python.org |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.15 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.1483.1360304707.2939.python-list@python.org> (permalink) |
| Lines | 18 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1360304707 news.xs4all.nl 6940 [2001:888:2000:d::a6]:36615 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:38416 |
Show key headers only | View raw
On 2013-02-07 8:30 PM, "Terry Reedy" <tjreedy@udel.edu> wrote: >So you may assume I've been bitten far too many times by incorrect assumptions about implementations that ended up actually doing something quite silly. Having said that, I felt fairly safe in making that assumption with Python, but figured I'd write something about my findings as I dug around the source in order to answer the question for myself. Still wondering about memoryview though: If a memoryview (3+) is representing a non-continuguous block of memory (> 1 ndim), will len(obj) not return incorrect results? It seems to be reporting the shape of the 0th dim at the moment.. Or is there something that I'm missing altogether?
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
memoryview (was "len() on mutables vs. immutables") Demian Brecht <demianbrecht@gmail.com> - 2013-02-07 22:24 -0800
csiph-web