tempfile broken in 2.3.4?

Discussion in 'Python' started by marco, Jun 11, 2004.

  1. marco

    marco Guest

    Hi,

    It's probably me, but I'm really not sure what I'm doing wrong:

    BEFORE:

    bash-2.05b$ python2.2
    Python 2.2.2 (#1, Feb 24 2003, 19:13:11)
    [GCC 3.2.2 20030222 (Red Hat Linux 3.2.2-4)] on linux2
    Type "help", "copyright", "credits" or "license" for more information.
    >>> import tempfile
    >>> tempfile.mktemp()

    '/tmp/@20219.0'
    >>> tempfile.template = 'ham'
    >>> tempfile.mktemp()

    '/tmp/ham1'
    >>>



    AFTER:

    bash-2.05b$ python2.3
    Python 2.3.4 (#1, Jun 10 2004, 19:23:10)
    [GCC 3.2.2 20030222 (Red Hat Linux 3.2.2-5)] on linux2
    Type "help", "copyright", "credits" or "license" for more information.
    >>> import tempfile
    >>> tempfile.mktemp()

    '/tmp/tmpReDZMK'
    >>> tempfile.template = 'ham'
    >>> tempfile.mktemp()

    '/tmp/tmp6PcHuc'
    >>>



    Huh?

    --

    Gunnm: Broken Angel http://amv.reimeika.ca
    http://reimeika.ca/ http://photo.reimeika.ca
     
    marco, Jun 11, 2004
    #1
    1. Advertising

  2. marco

    marco Guest

    marco, Jun 11, 2004
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Pierre Rouleau
    Replies:
    7
    Views:
    373
    David Bolen
    Oct 6, 2003
  2. Steven D'Aprano

    Why are "broken iterators" broken?

    Steven D'Aprano, Sep 21, 2008, in forum: Python
    Replies:
    8
    Views:
    665
  3. Cameron Simpson

    Re: Why are "broken iterators" broken?

    Cameron Simpson, Sep 22, 2008, in forum: Python
    Replies:
    0
    Views:
    593
    Cameron Simpson
    Sep 22, 2008
  4. Fredrik Lundh

    Re: Why are "broken iterators" broken?

    Fredrik Lundh, Sep 22, 2008, in forum: Python
    Replies:
    0
    Views:
    610
    Fredrik Lundh
    Sep 22, 2008
  5. Alex van der Spek

    Difference between tempfile and spooled tempfile?

    Alex van der Spek, Apr 5, 2012, in forum: Python
    Replies:
    2
    Views:
    364
    Steve Howell
    Apr 5, 2012
Loading...

Share This Page