durusmail: quixote-users: string += htmltext
string += htmltext
2004-05-10
2004-05-10
2004-05-10
string += htmltext
Eric Floehr
2004-05-10
Python 2.2.3 with Quixote 1.0b1 on Red Hat Linux has this problem:

Python 2.2.3 (#1, Aug  8 2003, 08:44:02)
[GCC 3.2.3 20030502 (Red Hat Linux 3.2.3-13)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import quixote
>>> quixote.__version__
'1.0b1'
>>> t = 'hi'
>>> t += quixote.html.htmltext('there')
Traceback (most recent call last):
  File "", line 1, in ?
TypeError: cannot concatenate 'str' and 'htmltext' objects
>>>

But Python 2.3.3 with Quixote 1.0b1 on Red Hat Linux does not:

Python 2.3.3 (#1, Feb  7 2004, 17:28:49)
[GCC 3.3.2 20031022 (Red Hat Linux 3.3.2-1)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import quixote
>>> quixote.__version__
'1.0b1'
>>> t = 'hi'
>>> t += quixote.html.htmltext('there')
>>>

Alex Li said:
> Python 2.2.1 on Debian Linux also has this problem:
>
> Python 2.2.1 (#1, Feb 28 2004, 00:52:10)
> [GCC 2.95.4 20011002 (Debian prerelease)] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
>>>> import quixote
>>>> quixote.__version__
> '0.6.1'
>>>> t = 'hi'
>>>> t += quixote.html.htmltext('there')
> Traceback (most recent call last):
>   File "", line 1, in ?
> TypeError: cannot concatenate 'str' and 'htmltext' objects
>>>>
>
> I don't have Python2.3 on my linux, so I can't confirm if it is a python
> thing,
> but very likely...
>
> Regards,
> Alex
>
>
> --- Evan LaForge  wrote:
>>
>> % python
>> Python 2.3.3 (#1, Feb 12 2004, 08:44:01)
>> [GCC 2.95.4 20011002 (Debian prerelease)] on linux2
>> Type "help", "copyright", "credits" or "license" for more information.
>> >>> import quixote
>> >>> quixote.__version__
>> '0.6.1'
>> >>> t = 'hi'
>> >>> t += quixote.html.htmltext('there')
>> >>> t
>> 
>>
>> % python
>> Python 2.2.1 (#2, May 28 2002, 10:43:30)
>> [GCC 2.95.2 19991024 (release)] on sunos5
>> Type "help", "copyright", "credits" or "license" for more information.
>> >>> import quixote
>> >>> quixote.__version__
>> '0.6.1'
>> >>> t = 'hi'
>> >>> t += quixote.html.htmltext('there')
>> Traceback (most recent call last):
>>   File "", line 1, in ?
>> TypeError: cannot concatenate 'str' and 'htmltext' objects
>> >>>
>>
>> ... so it's either a SunOS / Linux thing, or, more likely, an
>> older-python
>> thing.  Things have changed in how python does inplace operators, but I
>> don't know exactly when.  Can anyone else out there with an older python
>> verify this?
>>
>> _______________________________________________
>> Quixote-users mailing list
>> Quixote-users@mems-exchange.org
>> http://mail.mems-exchange.org/mailman/listinfo/quixote-users
>
>
>
>
>
> __________________________________
> Do you Yahoo!?
> Win a $20,000 Career Makeover at Yahoo! HotJobs
> http://hotjobs.sweepstakes.yahoo.com/careermakeover
>
> _______________________________________________
> Quixote-users mailing list
> Quixote-users@mems-exchange.org
> http://mail.mems-exchange.org/mailman/listinfo/quixote-users
>



reply