This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author mark.dickinson
Recipients ajaksu2, mark.dickinson, theller, vdupras
Date 2009-04-19.21:10:45
SpamBayes Score 3.7747583e-15
Marked as misclassified No
Message-id <1240175447.43.0.871452977964.issue1741130@psf.upfronthosting.co.za>
In-reply-to
Content
It looks as though this was sort-of fixed sometime between 2.6.1 and 
2.6.2.  In 2.6.2, I get the following (and results from trunk and 3.0.1 
are similar):

Python 2.6.2+ (release26-maint:71755, Apr 19 2009, 22:06:02) 
[GCC 4.0.1 (Apple Inc. build 5490)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import struct
>>> struct.pack('L', 'not an integer')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: unsupported operand type(s) for &: 'str' and 'long'

That error message suggests that there's something nasty happening 
somewhere, though.  It looks as though we're getting the right type of 
exception, but for the wrong reasons.
History
Date User Action Args
2009-04-19 21:10:47mark.dickinsonsetrecipients: + mark.dickinson, theller, ajaksu2, vdupras
2009-04-19 21:10:47mark.dickinsonsetmessageid: <1240175447.43.0.871452977964.issue1741130@psf.upfronthosting.co.za>
2009-04-19 21:10:46mark.dickinsonlinkissue1741130 messages
2009-04-19 21:10:45mark.dickinsoncreate