python 2.7.12 on Linux behaving differently than on Windows
BartC
bc at freeuk.com
Tue Dec 6 12:36:23 EST 2016
On 06/12/2016 17:00, MRAB wrote:
> On 2016-12-06 13:52, BartC wrote:
>> Some special syntax is known about: | < and > for example. % less so
>> (I've never, ever used it in live input AFAIK).
>>
> [snip]
>
> You've never used ImageMagick?
>
> If you want to shrink an image to half its size:
>
> convert dragon.gif -resize 50% half_dragon.gif
No. But that '50%' is seen by apps (eg. with Python's 'print sys.argv')
on both Windows and Linux.
However, I can imagine that a calculator app might have trouble with
some expressions:
calculate 3*5
This expression might be seen as 345 if there happens to be file called
'345' lying around.
--
Bartc
More information about the Python-list
mailing list