Package: python2.6
Version: 2.6.6-8+b1
Severity: normal
hi,
here's an example of what I mean:
Python 2.6.6 (r266:84292, Dec 27 2010, 00:02:40)
[GCC 4.4.5] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import uuid
>>> f = open('shutdown_commands.txt', 'rb')
>>> uuid.uuid5(uuid.NAMESPACE_DNS, f.read())
UUID('c050cb63-a991-5181-bf32-ed537b7babab')
>>> uuid.uuid5(uuid.NAMESPACE_DNS, f.read())
UUID('4ebd0208-8328-5d69-8c44-ec50939c0967')
>>> f = open('shutdown_commands.txt', 'rb')
>>> uuid.uuid5(uuid.NAMESPACE_DNS, f.read())
UUID('c050cb63-a991-5181-bf32-ed537b7babab')
>>> uuid.uuid5(uuid.NAMESPACE_DNS, f.read())
UUID('4ebd0208-8328-5d69-8c44-ec50939c0967')
If I make the interpreter re-read the file, the UUID is what's expected,
but calling uuid.uuid5 again prints out that bogus one. I get the same
bogus one on another file, regardless what it is.
>>> f = open('protobuf-net.pdb', 'rb')
>>> uuid.uuid5(uuid.NAMESPACE_DNS, f.read())
UUID('a67df96a-a717-5459-a006-276d369bed46')
>>> uuid.uuid5(uuid.NAMESPACE_DNS, f.read())
UUID('4ebd0208-8328-5d69-8c44-ec50939c0967')
I've tried it on another file, and does the same thing.
thanks,
Simon
-- System Information:
Debian Release: 6.0
APT prefers unstable
APT policy: (995, 'unstable'), (990, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.37-rc4-acahkos
Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages python2.6 depends on:
ii libbz2-1.0 1.0.5-6 high-quality block-sorting file co
ii libc6 2.11.2-7 Embedded GNU C Library: Shared lib
ii libdb4.8 4.8.30-3 Berkeley v4.8 Database Libraries [
ii libexpat1 2.0.1-7 XML parsing C library - runtime li
ii libncursesw5 5.7+20100313-4 shared libraries for terminal hand
ii libreadline6 6.1-3 GNU readline and history libraries
ii libsqlite3-0 3.7.4-2 SQLite 3 shared library
ii mime-support 3.51-1 MIME files 'mime.types' & 'mailcap
ii python2.6-minimal 2.6.6-8+b1 A minimal subset of the Python lan
python2.6 recommends no packages.
Versions of packages python2.6 suggests:
ii binutils 2.20.1-15 The GNU assembler, linker and bina
ii python2.6-doc 2.6.6-8 Documentation for the high-level o
pn python2.6-profiler <none> (no description available)
-- no debconf information
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]