GithubHelp home page GithubHelp logo

String formatting about filbert HOT 7 OPEN

differentmatt avatar differentmatt commented on May 27, 2024
String formatting

from filbert.

Comments (7)

GlenDC avatar GlenDC commented on May 27, 2024

I'll work on this @nwinter with the vocal support of @differentmatt. Will keep you up to date how it goes.

from filbert.

nemoyatpeace avatar nemoyatpeace commented on May 27, 2024

I was looking at this, looks like in python 3, the newer format method might be a better way to go?

'My name is {0}'.format(name)

I have no idea which would be easier to implement and I'd be happy with either version.

http://stackoverflow.com/questions/5082452/python-string-formatting-vs-format

from filbert.

GlenDC avatar GlenDC commented on May 27, 2024

@nemoyatpeace thank you for the input. The .format method is a way better approach as it seems. It can do more, it is easier to use and it will also be easier to implement as far as I can see. So I'll go with this one first.

@nwinter @differentmatt if you guys want, I can also try to implement the % modula format version, although python users are actually saying that you should only use it when you don't know about the .format version or when you want to support backwards compatibility to old python versions (such as 2.5). Let me know what you guys think about this!

from filbert.

differentmatt avatar differentmatt commented on May 27, 2024

I'll defer to @nwinter, since he opened this issue.

from filbert.

GlenDC avatar GlenDC commented on May 27, 2024

Was going to start on it yesterday. But my hdd died. Going to try to find a new one. Will keep you posted.

from filbert.

GlenDC avatar GlenDC commented on May 27, 2024

Ok my laptop is working again with an ssd and i'm installed in the UK. Will start digging into the code while I start solving this solution, so that I can move on to new issues soon. Will keep you posted.

from filbert.

differentmatt avatar differentmatt commented on May 27, 2024

Great, keep us posted!

from filbert.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.