2

When I try using triple quotes python-mkdebian crashes loudly with apport appearing after quickly package [--extras] and when I just make multiline string in single quotes the latter stops silently.

2 Answers 2

3

You can use the + operator to join strings. Here's an extract of how I do it in the setup.py file of my app:

long_description="Qreator enables you to easily create your " +
                 "own QR codes to encode different types of information " +
                 "in an efficient, compact and cool way.",
2

You can also use Python's implicit line continuation like this:

long_description=(
    "Qreator enables you to easily create your "
    "own QR codes to encode different types of information "
    "in an efficient, compact and cool way."
),

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .