Opened 7 years ago

Closed 7 years ago

Last modified 5 years ago

#11316 closed (fixed)

Changeset [10966] broken python 2.3 support

Reported by: Kyle Fuller Owned by: Kyle Fuller
Component: Database layer (models, ORM) Version: master
Severity: Keywords:
Cc: Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

"FutureWarning: x<<y losing bits or changing sign will return a long in Python 2.4 and up"

Changeset [10966] used 1<<32 which will return 0 in python 2.3, and 4294967296L in newer versions. I have simply changed 1<<32 and hard coded the value in (4294967296L)

Attachments (1)

301ab5fb6095ef19c1c0cb12a3879e597d2317ee.diff (562 bytes) - added by Kyle Fuller 7 years ago.
Patch attached and on my git repo at github http://github.com/kylef/django/commit/301ab5fb6095ef19c1c0cb12a3879e597d2317ee

Download all attachments as: .zip

Change History (4)

comment:1 Changed 7 years ago by Alex Gaynor

milestone: 1.0.31.1
Needs documentation: unset
Needs tests: unset
Patch needs improvement: unset
Triage Stage: UnreviewedAccepted
Version: 1.0SVN

comment:2 Changed 7 years ago by Gary Wilson

Resolution: fixed
Status: newclosed

(In [11004]) Fixed #11316 -- Fixed a Python 2.3 compatibilty issue with [10966] (in Python 2.3 on 32-bit machines, 1<<32 is 0). Thanks to kylef for the report and patch.

comment:3 Changed 5 years ago by Jacob

milestone: 1.1

Milestone 1.1 deleted

Note: See TracTickets for help on using tickets.
Back to Top