• 16 Posts
  • 145 Comments
Joined 1 year ago
cake
Cake day: June 10th, 2023

help-circle





  • alyth@lemmy.worldtoLemmy Shitpost@lemmy.worldque
    link
    fedilink
    arrow-up
    6
    ·
    1 month ago

    I asked my friend from Morocco. He says the cat is asking for mouse flavored “Jumbo”. Jumbo is a brand of stock cubes which normally come in flavors like beef, chicken or lamb. The shopkeeper replies “que” in Spanish which means “what?”









  • Thanks for sharing this. I took the time to read through the documentation of the re module. Here’s my review of the functions.

    Useful:

    • re.finditer returns an iterator over all Match objects
    • re.search returns the first Match object or None if there are no matches.
    • r'' use raw strings for patters so you don’t have to worry about backslashes
    • the optional flags argument modifies the behaviour (case insensitive, multiline)

    Utility:

    • re.sub replace each match in the string
    • re.split split a string by a regular expression

    The Match object:

    • match.groups(0) returns the portion of text matched by the pattern
    • match.groups(1) returns the first capturing group
    • match.groups(2) returns the second capturing group, and so on

    I don’t understand why these exist:

    • re.match like search, but only matches at the beginning of the string. why not just use ‘^’ or ‘\A’ in the pattern you pass to ‘search’?
    • re.fullmatch like ‘search’, but only if the full string matches. Why not just use ‘\A’ and ‘\Z’ in the pattern you pass to ‘search’?
    • re.findall Returns all matches. It seems like a shitty version of ‘finditer’. The function has three different return types which depend on the pattern you pattern you pass to the function. Who wants to work with that?



  • Thank you for sharing our history 💜 Kurdistan is one of the most progressive places in the Middle East. No one in my family told me what god to believe in if any. My parents taught me values of feminism, human rights and peace, and I see the same values shared by my siblings and cousins in Europe. Of course there are problems, but as my parents taught me, take from our culture what is good and do better than the things we did wrong. Long live Kurdistan!





  • Of course it should be optional, no one said it should be mandatory

    I made the distinction because English and French were mandatory at my school in Germany. Many more languages were offered though if they had a teacher available. I remember Spanish, Italian and Chinese, I just can’t remember if Turkish was one of them.

    I feel like the defensiveness of that argument is not entirely accidental.

    My family is Kurdish, so I admit that maybe there’s a subconscious bias when learning Turkish comes up, if you know anything about the situation in Turkey and Kurdistan 🙂

    as if learning french in school would be relevant to the migration of germans to france.

    French skills are extremely valuable to Germans who want to work in Switzerland or Luxembourg

    Btw, ben de biraz türkçe biliyorum, ama çok konuşmiyorum… in my daily life 😅 Dunno how to say that last part