Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.020 X-Spam-Evidence: '*H*': 0.96; '*S*': 0.00; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:80.91.229.12': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'received:lo.gmane.org': 0.09; '"import': 0.16; 'subject:PyPI': 0.16; 'wed,': 0.17; 'wrote:': 0.18; '>>>': 0.18; 'jan': 0.19; 'import': 0.27; 'chris': 0.30; 'received:24': 0.32; 'yet': 0.32; 'header:User-Agent:1': 0.33; 'actually': 0.33; 'header:X -Complaints-To:1': 0.33; 'to:addr:python-list': 0.34; '...': 0.36; 'subject:with': 0.36; 'but': 0.37; 'received:org': 0.38; 'to:addr:python.org': 0.40; 'your': 0.61; 'ready': 0.61; 'back': 0.62; 'order': 0.62; '2012': 0.67; 'war.': 0.91 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Dan Sommers Subject: Re: Spamming PyPI with stupid packages Date: Wed, 4 Jan 2012 03:06:49 +0000 (UTC) References: <87hb0d28j8.fsf@benfinney.id.au> <87aa6522au.fsf@benfinney.id.au> <4f02ba8d$0$29880$c3e8da3$5496439d@news.astraweb.com> <8762gs1mag.fsf@benfinney.id.au> <4f03ad75$0$11122$c3e8da3@news.astraweb.com> <878vloz0zi.fsf@benfinney.id.au> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Gmane-NNTP-Posting-Host: 24.100.92.194 User-Agent: Pan/0.133 (House of Butterflies) X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 18 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1325646423 news.xs4all.nl 6912 [2001:888:2000:d::a6]:38059 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:18484 On Wed, 04 Jan 2012 13:37:24 +1100, Chris Angelico wrote: > And "import pickle" objectifies pickles ... Not quite: "import pickle" merely readies the machinery that objectifies pickles. In order to objectify a pickle, you have to call pickle.loads: >>> import pickle # get ready to objectify a pickle, but don't do it yet >>> x = SomeClass(some_value, some_other_value) >>> s = pickle.dumps(x) # now s contains a pickle >>> y = pickle.loads(s) # this actually objectifies the pickle known as s Sorry. Now back to your regularly scheduled holy war. *sigh*