Giter VIP home page Giter VIP logo

Comments (4)

GoogleCodeExporter avatar GoogleCodeExporter commented on August 18, 2024
My patches on github.com: https://github.com/terencehonles/fusepy probably fix 
what you need (Ideally my patches will be pushed upstream)

Original comment by [email protected] on 24 Apr 2012 at 8:10

from fusepy.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 18, 2024
Also, the Python 3 module (fuse3.py, and memory3.py example) is getting quite 
out of date -- many fixes have been made to fuse.py that have not been applied 
to fuse3. The long-term solution is to do what Terence is suggesting and have 
just one file that works on both 2 and 3. But his changes are quite drastic, 
and somewhat broken, so in the short term, I am providing two minimalistic 
patches that get this code working properly in Python 3.

First, python3-merge-to-r65.patch simply takes all of the changes to fuse.py 
and memory.py from SVN r37 to r65, and applies them to fuse3.py and memory3.py.

Then (once that first patch is applied), python3-unicode-fixes.patch fixes up 
the string encoding issues in fuse.py and memory.py so that it works in Python 
3.2. I have not forward-ported the other examples but I could do so.

Important note about str vs bytes: I have quite deliberately forced the user's 
code to deal with bytes objects. My patch will not work if users expect or 
produce str values -- you must deal with bytes values. I explained the 
reasoning for this on Issue 32 
(http://code.google.com/p/fusepy/issues/detail?id=32#c5) -- POSIX filenames are 
bytes, not Unicode strings (not specifically UTF-8) and therefore, when you 
write a Fuse module in Python 3, you must deal with bytes, not strs. Note that 
Terence's patch doesn't satisfy this requirement.

Original comment by [email protected] on 14 Jul 2012 at 1:29

Attachments:

from fusepy.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 18, 2024
Sorry, I found some more places (in the default implementations of Operations 
methods) that needed to be turned into bytes literals. Attaching new patch.

Original comment by [email protected] on 14 Jul 2012 at 2:47

Attachments:

from fusepy.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 18, 2024
Oh, I just noticed that the website states that development has moved to 
GitHub. I suppose this is the official branch now? If this is so, ignore my 
patches here. I'll file a new issue on GitHub.

Original comment by [email protected] on 15 Jul 2012 at 1:01

from fusepy.

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.