Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make existing code Py3 compatible (WIP) #142

Closed
wants to merge 1 commit into from

Conversation

boegel
Copy link
Member

@boegel boegel commented Sep 15, 2014

This effectively makes vsc-base require Python 2.6, so be careful when merging this in (EasyBuild, which needs vsc-base will only move to Python 2.6 early 2015).

Currently WIP, not all unit tests pass yet with Python3 (but they still do using Python2.6).

Maybe this should include a bump to v2.0?

@@ -188,4 +190,9 @@ def send_all(p, data):
sent = p.send(data)
if sent is None:
raise Exception(MESSAGE)
data = buffer(data, sent)
try:
if isinstance(data, str):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this should not be part of the try block

@stdweird
Copy link
Member

seems ok, but there's never a need to copy/paste code.

@boegel
Copy link
Member Author

boegel commented Mar 9, 2015

I still care about this, should I revive it and fix the remark,s @stdweird?

I hope to have Python 3 support in EB v3.

@stdweird
Copy link
Member

stdweird commented Mar 9, 2015

we should wait after jens his talk.
@JensTimmerman you can look at this PR and add some examples how to move during the presentation?

@boegel
Copy link
Member Author

boegel commented Mar 9, 2015

OK, on hold until further notice then.

There are a couple of more involved things I couldn't figure out, so this PR is certainly not complete, but it a major step forward towards Py3 compatibility.

data = data.encode()
data = memoryview(data) #[:sent] # sent?
except NameError:
data = buffer(data, sent)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this really what you intended?
data could be encoded here, or maybe not.

@boegel
Copy link
Member Author

boegel commented Jun 20, 2016

@JensTimmerman you were looking into an approach with six?

@boegel boegel closed this Jun 20, 2016
@hpcugentbot
Copy link

All tests PASSed.

See https://jenkins1.ugent.be/job/vsc-base-prbuilder/57/console for more details.

@boegel
Copy link
Member Author

boegel commented Jun 20, 2016

follow-up in #231

@boegel boegel deleted the py3_compatibility branch June 20, 2016 13:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants