Changes between Initial Version and Version 1 of Ticket #13086, comment 1


Ignore:
Timestamp:
Feb 23, 2017, 5:27:48 PM (7 years ago)
Author:
Jun Omae
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #13086, comment 1

    initial v1  
    11It seems old virtualenv is based on 32-bit python.
    22{{{#!python
    3 Python 2.4.3 (#1, Jan  9 2013, 06:49:54)
    4 [GCC 4.1.2 20080704 (Red Hat 4.1.2-54)] on linux2
    5 Type "help", "copyright", "credits" or "license" for more information.
     3>>> import sys
     4>>> sys.maxsize
     52147483647
     6>>> import platform
     7>>> platform.architecture()
     8('32bit', 'ELF')
    69>>> '%x' % abs(hash('Cool'))
    710'13fc52bf'
     
    1215Use low 32-bit as signed integer to match stored hashed values in .poll file:
    1316{{{#!python
     17>>> import sys
     18>>> sys.maxsize
     199223372036854775807
     20>>> import platform
     21>>> platform.architecture()
     22('64bit', 'ELF')
    1423>>> '%08x' % abs(struct.unpack('>i', struct.pack('>I', hash('Crap') & 0xffffffff))[0])
    1524'73addc7c'