Changes between Initial Version and Version 1 of Ticket #26237
- Timestamp:
- Feb 18, 2016, 2:04:07 PM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #26237
- Property Resolution → invalid
- Property Status new → closed
-
Ticket #26237 – Description
initial v1 3 3 Once I did the test suggested to me on SO, it became clear that this was not a json issue. That test was as follows: 4 4 5 In [5]: e.uuid 6 Out[5]: UUID('61877565-5fe5-4175-9f2b-d24704df0b74') 7 In [6]: uuid.UUID(61877565-5fe5-4175-9f2b-d24704df0b74) 8 File "<ipython-input-6-56137f5f4eb6>", line 1 9 uuid.UUID(61877565-5fe5-4175-9f2b-d24704df0b74) 10 ^ 11 SyntaxError: invalid syntax # It doesn't show here for some reason, but the caret is pointing to the 4th '5' in the 12th position, from left to right. 5 {{{ 6 In [5]: e.uuid 7 Out[5]: UUID('61877565-5fe5-4175-9f2b-d24704df0b74') 8 In [6]: uuid.UUID(61877565-5fe5-4175-9f2b-d24704df0b74) 9 File "<ipython-input-6-56137f5f4eb6>", line 1 10 uuid.UUID(61877565-5fe5-4175-9f2b-d24704df0b74) 11 ^ 12 SyntaxError: invalid syntax # It doesn't show here for some reason, but the caret is pointing to the 4th '5' in the 12th position, from left to right. 13 }}} 12 14 13 15 It did not matter if I copy pasted the uuid or retyped the whole thing by hand, I got the same error. If I quoted the uuid, I got a different error: 14 16 15 In [7]: uuid.UUID('61877565-5fe5-4175-9f2b-d24704df0b74') 16 --------------------------------------------------------------------------- 17 NameError Traceback (most recent call last) 18 <ipython-input-7-3b4d3e5bd156> in <module>() 19 ----> 1 uuid.UUID('61877565-5fe5-4175-9f2b-d24704df0b74') 17 {{{ 18 In [7]: uuid.UUID('61877565-5fe5-4175-9f2b-d24704df0b74') 19 --------------------------------------------------------------------------- 20 NameError Traceback (most recent call last) 21 <ipython-input-7-3b4d3e5bd156> in <module>() 22 ----> 1 uuid.UUID('61877565-5fe5-4175-9f2b-d24704df0b74') 20 23 21 NameError: name 'uuid' is not defined 24 NameError: name 'uuid' is not defined 25 }}} 22 26 23 27 I am using Ubuntu 15.10, Django 1.9.1, Postgresql 9.4 and Python 2.7.10. I don't know if this a Python issue rather than a Django issue, but it can't, or shouldn't, be that Django/Python can't accept, recognize, or evaluate a uuid it generated seconds earlier.