Giter Club home page Giter Club logo

Comments (9)

ArcXeon avatar ArcXeon commented on May 12, 2024

I am interested in contributing to this resource compilation, so if you like this suggestion could you assign it to me?

from ultimate-python.

huangsam avatar huangsam commented on May 12, 2024

Hi @ArcXeon thanks for raising up your interest. How were you planning to teach file handling concept(s) to people?

Also, what did you think of these lessons?

I'd like to know if there's more that can be done in those lessons to showcase file handling / file formats.

from ultimate-python.

ArcXeon avatar ArcXeon commented on May 12, 2024

Hi @huangsam, the context_manager.py provides a good example of how to create and use context managers in Python, specifically for handling file-like objects using the StringIO class. But I think it doesn't directly demonstrate all aspects of file handling basics (like reading, writing, or appending to files on disk).

An additional code can be created to demonstrate reading from, writing to, or appending to real files on disk using the built-in open function and various modes like "r" (read), "w" (write), and "a" (append). This would give new learners a more comprehensive understanding of file handling in Python. I think this code can be added in the syntax with beginner level difficulty.

from ultimate-python.

huangsam avatar huangsam commented on May 12, 2024

I think that file oriented stuff is complex. Not sure if it's what I would teach early on. Also we'd likely want to limit to in-memory file manipulation due to the nature of this repo

Do you think adding code or comments to the later lessons could help here?

from ultimate-python.

ArcXeon avatar ArcXeon commented on May 12, 2024

So maybe it can be added in advanced or maybe just adding it as an external resource along with the context manager or data format.

from ultimate-python.

huangsam avatar huangsam commented on May 12, 2024

Yea how does that sound?

from ultimate-python.

huangsam avatar huangsam commented on May 12, 2024

Hi @ArcXeon do you have any additional Qs or concerns? If not, feel free to create the PR in the next few weeks. Looking forward to more collaborations together!

from ultimate-python.

ArcXeon avatar ArcXeon commented on May 12, 2024

@huangsam So like I should proceed with my last suggestion and make a PR ?

from ultimate-python.

huangsam avatar huangsam commented on May 12, 2024

Yes you can make a PR

from ultimate-python.

Related Issues (13)

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.