Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #18484

Re: Spamming PyPI with stupid packages

From Dan Sommers <dan@tombstonezero.net>
Subject Re: Spamming PyPI with stupid packages
Date 2012-01-04 03:06 +0000
References (5 earlier) <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> <CAPTjJmoaA=6yFbyUt3RuDeRJ0m7vV2J+k0919dgDEiBN=euqUQ@mail.gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.4397.1325646423.27778.python-list@python.org> (permalink)

Show all headers | View raw


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*

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Re: Spamming PyPI with stupid packages Peter Otten <__peter__@web.de> - 2012-01-02 13:20 +0100
  Re: Spamming PyPI with stupid packages Ben Finney <ben+python@benfinney.id.au> - 2012-01-03 06:45 +1100
    Re: Spamming PyPI with stupid packages Devin Jeanpierre <jeanpierreda@gmail.com> - 2012-01-02 15:56 -0500
      Re: Spamming PyPI with stupid packages Ben Finney <ben+python@benfinney.id.au> - 2012-01-03 08:59 +1100
        Re: Spamming PyPI with stupid packages Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2012-01-03 08:21 +0000
          Re: Spamming PyPI with stupid packages Ben Finney <ben+python@benfinney.id.au> - 2012-01-04 08:57 +1100
            Re: Spamming PyPI with stupid packages Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2012-01-04 01:37 +0000
              Re: Spamming PyPI with stupid packages Ben Finney <ben+python@benfinney.id.au> - 2012-01-04 12:54 +1100
                Re: Spamming PyPI with stupid packages Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2012-01-04 02:04 +0000
                Re: Spamming PyPI with stupid packages Ben Finney <ben+python@benfinney.id.au> - 2012-01-04 13:42 +1100
                Re: Spamming PyPI with stupid packages Ethan Furman <ethan@stoneleaf.us> - 2012-01-03 19:34 -0800
                Re: Spamming PyPI with stupid packages Rami Chowdhury <rami.chowdhury@gmail.com> - 2012-01-04 12:49 +0000
                Re: Spamming PyPI with stupid packages Ian Kelly <ian.g.kelly@gmail.com> - 2012-01-04 11:39 -0700
                Re: Spamming PyPI with stupid packages Ian Kelly <ian.g.kelly@gmail.com> - 2012-01-04 12:28 -0700
                Re: Spamming PyPI with stupid packages Ian Kelly <ian.g.kelly@gmail.com> - 2012-01-04 13:08 -0700
                Re: Spamming PyPI with stupid packages Arnaud Delobelle <arnodel@gmail.com> - 2012-01-04 20:51 +0000
                Re: Spamming PyPI with stupid packages Rick Johnson <rantingrickjohnson@gmail.com> - 2012-01-05 21:26 -0800
                Re: Spamming PyPI with stupid packages Chris Angelico <rosuav@gmail.com> - 2012-01-04 13:37 +1100
                Re: Spamming PyPI with stupid packages Rick Johnson <rantingrickjohnson@gmail.com> - 2012-01-05 21:22 -0800
                Re: Spamming PyPI with stupid packages Dan Sommers <dan@tombstonezero.net> - 2012-01-04 03:06 +0000
                Re: Spamming PyPI with stupid packages Chris Angelico <rosuav@gmail.com> - 2012-01-04 14:31 +1100
        Re: Spamming PyPI with stupid packages Peter Otten <__peter__@web.de> - 2012-01-03 09:47 +0100
          Re: Spamming PyPI with stupid packages Ben Finney <ben+python@benfinney.id.au> - 2012-01-04 09:11 +1100
    Re: Spamming PyPI with stupid packages Robert Kern <robert.kern@gmail.com> - 2012-01-02 22:43 +0000
    Re: Spamming PyPI with stupid packages Devin Jeanpierre <jeanpierreda@gmail.com> - 2012-01-02 19:10 -0500

csiph-web