;; This file is part of Hy, which is free software licensed under the Expat
;; license. See the LICENSE.
;; This Hy module is intended to concisely demonstrate all of
;; Python's major syntactic features for the purpose of testing hy2py.
(setv mystring(*"foo"3))
(setv long-string"This is a very long string literal, which would surely exceed any limitations on how long a line or a string literal can be. The string literal alone exceeds 256 characters. It also has a character outside the Basic Multilingual Plane: 😂. Here's a double quote: \".Herearesomeescapednewlines:\n\n\nHereis aliteralnewline:
CallmeIshmael.Someyearsago—nevermindhowlongprecisely—havinglittleornomoneyin mypurse, andnothingparticulartointerestmeonshore, IthoughtIwouldsailaboutalittleandseethewaterypartoftheworld.Itis awayIhaveofdrivingoffthespleenandregulatingthecirculation.WheneverIfindmyselfgrowinggrimaboutthemouth; whenever it is a damp, drizzly November in my soul; whenever I find myself involuntarily pausing before coffin warehouses, and bringing up the rear of every funeral I meet; and especially whenever my hypos get such an upper hand of me, that it requires a strong moral principle to prevent me from deliberately stepping into the street, and methodically knocking people’s hats off—then, I account it high time to get to sea as soon as I can. This is my substitute for pistol and ball. With a philosophical flourish Cato throws himself upon his sword; I quietly take to the ship. There is nothing surprising in this. If they but knew it, almost all men in their degree, some time or other, cherish very nearly the same feelings towards the ocean with me.")