🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.python
Article #28480

Re: pygame i wielkość obrazka

#28480
From: AK
Date: Thu, 17 Oct 2013 19:56
15 lines
1527 bytes
Użytkownik "Parasit" <bartosz.bubak@gmail.com> napisał:

> Ten duży to był rzeczywiście jpg, ale ten mały to był png.
> Tak czy inaczej sprowadzanie obiektu do tekstu to chyba
> nadal kiepski pomysł na sprawdzenie zajętości pamięci :/

Spróbuj:

view = memoryview(obrazek)
print len(view)

PS: 'obrazek' musi wspierac "buffer protocol"
      Nie uzywam pygame wiec nie jestem w stanie sprawdzic czy wspiara/zadziala.

AK
Technical Details
Message-ID: <l3pfe4$3o6$1@node1.news.atman.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!agh.edu.pl!news.agh.edu.pl!newsfeed2.atman.pl!newsfeed.atman.pl!.POSTED!not-for-mail
References: <d8074ea2-d705-4e3f-87ca-c52841601398@googlegroups.com> <slrnl5kmc4.3c5.mikmach@blacher.nos> <6c16bc19-df17-4c83-a4ac-d317254ef226@googlegroups.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!agh.edu.pl!news.agh.edu.pl!newsfeed2.atman.pl!newsfeed.atman.pl!.POSTED!not-for-mail
From: "AK" <nobody@nowhere.com>
Newsgroups: pl.comp.lang.python
Subject: Re: pygame i wielkość obrazka
Date: Thu, 17 Oct 2013 21:56:51 +0200
Organization: ATMAN - ATM S.A.
Lines: 16
Message-ID: <l3pfe4$3o6$1@node1.news.atman.pl>
References: <d8074ea2-d705-4e3f-87ca-c52841601398@googlegroups.com> <slrnl5kmc4.3c5.mikmach@blacher.nos> <6c16bc19-df17-4c83-a4ac-d317254ef226@googlegroups.com>
NNTP-Posting-Host: ppp37-72-122-052.ostnet.pl
Mime-Version: 1.0
X-Trace: node1.news.atman.pl 1382039812 3846 37.72.122.52 (17 Oct 2013 19:56:52 GMT)
X-Complaints-To: usenet@atman.pl
NNTP-Posting-Date: Thu, 17 Oct 2013 19:56:52 +0000 (UTC)
In-Reply-To: <6c16bc19-df17-4c83-a4ac-d317254ef226@googlegroups.com>
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Windows Mail 6.0.6002.18197
X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6002.18463
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit