Hi,A couple days ago I put in the beginnings of a test suite for xlwt into a pull request on github. Using the tests I made a port that is working on both 2.7 and 3.3. I haven't yet tested with earlier versions of Python. I think it ought to work back to 2.6 at least. Anyway, I figured a pull request might be premature so I thought I'd just share the repository. You can find the port at <https://github.com/hansrwl/xlwt/tree/py3>. There is one test that's currently failing on Python 3 but it's just a result of dict ordering and maybe the test should be fixed.Thanks,Hans--
You received this message because you are subscribed to the Google Groups "python-excel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python-excel...@googlegroups.com.
To post to this group, send an email to python...@googlegroups.com.
Visit this group at http://groups.google.com/group/python-excel?hl=en-GB.
For more options, visit https://groups.google.com/groups/opt_out.
send an email to python-excel+unsubscribe@googlegroups.com
<mailto:python-excel%2Bunsu...@googlegroups.com>.
To post to this group, send an email to
Visit this group at
http://groups.google.com/group/python-excel?hl=en-GB.
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to the Google
Groups "python-excel" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to python-excel+unsubscribe@googlegroups.com.
To post to this group, send an email to python...@googlegroups.com.
Visit this group at http://groups.google.com/group/python-excel?hl=en-GB.
For more options, visit https://groups.google.com/groups/opt_out.
______________________________________________________________________
This email has been scanned by the Symantec Email Security.cloud service.
For more information please visit http://www.symanteccloud.com
______________________________________________________________________
Hi Tony,
Yeah, reasons we binned the 2to3 approach for xlrd:
- maintaining two forks is untenable
- having 2to3 run as part of setup.py is ridiculously slow and causes other annoyances (I can't remember them offhand).
What we did for xlrd (and which is the way to go for xlwt) is to have a compat.py (it's called timemachine.py in xlrd for historical reasons) and then write code that works in py2.6-2.7,3.2+ which is not a hard target at all.
For those stuck on 2.5 or less (which is actually a surprisingly tiny number of people now) we offer to do bugfix releases if requested, but none have ever been requested...
Chris
On 13/05/2013 13:18, Tony Roberts wrote:
lib2to3 == 2to3
If you don't want to use that you might want to just run it once and
keep the resulting python 3 code as a separate fork. I've used it for
quite a few packages that were previously python 2 only and found it to
be pretty helpful; guess you must have had other experiences if it's
caused you 'major suck'.
cheers,
Tony
On Mon, May 13, 2013 at 1:10 PM, Chris Withers <ch...@simplistix.co.uk
<mailto:ch...@simplistix.co.uk>> wrote:
Hi Guys,
Very keen to see this all happen, and very interested in reviewing
pull requests with the following caveats:
- no pre-compilation steps (2to3, etc), they cause major suck.
- no added external dependencies (six, etc), since we don't want to
have xlrd or xlwt have other mandatory dependencies other than the
stdlib.
What is lib2to3?
Chris
On 12/05/2013 22:41, Tony Roberts wrote:
Hi Hans,
you might want to take a look at my pull request from the other
day, or
take a look at https://github.com/__tonyroberts/xlwt
<https://github.com/tonyroberts/xlwt>. I've not tested as
many features, but it's working well enough for what I need. I just
thought I'd mention it as I chose to make as few changes as
possible and
use lib2to3 to do the rest (so you have to build it using
setup.py in
order for it to work). It doesn't use six so will work with python
versions prior to 2.4 and has no other additional dependencies.
I'm happy for you to pick and chose anything you want from it,
or ignore
as you see fit.
cheers,
Tony
On Sun, May 12, 2013 at 5:06 PM, Hans Lawrenz
<hrla...@gmail.com <mailto:hrla...@gmail.com>
<mailto:hrla...@gmail.com <mailto:hrla...@gmail.com>>> wrote:
Hi,
A couple days ago I put in the beginnings of a test suite
for xlwt
into a pull request on github. Using the tests I made a
port that is
working on both 2.7 and 3.3. I haven't yet tested with earlier
versions of Python. I think it ought to work back to 2.6 at
least.
Anyway, I figured a pull request might be premature so I
thought I'd
just share the repository. You can find the port at
<https://github.com/hansrwl/xlwt/tree/py3>>. There is one test
that's
currently failing on Python 3 but it's just a result of dict
ordering and maybe the test should be fixed.
Thanks,
Hans
--
You received this message because you are subscribed to the
Groups "python-excel" group.
To unsubscribe from this group and stop receiving emails
from it,
send an email to
python-excel+unsubscribe@__googlegroups.com
<mailto:python-excel%2Bunsu...@googlegroups.com>
<mailto:python-excel%__2Bunsu...@googlegroups.com
<mailto:python-excel%252Bunsubscribe@googlegroups.com>__>.
<mailto:python-excel@googlegroups.com><mailto:python-excel@__googlegroups.com http://groups.google.com/__group/python-excel?hl=en-GB
<http://groups.google.com/group/python-excel?hl=en-GB>.
For more options, visit
https://groups.google.com/__groups/opt_out
<https://groups.google.com/groups/opt_out>.
--
You received this message because you are subscribed to the Google
Groups "python-excel" group.
To unsubscribe from this group and stop receiving emails from
it, send
an email to python-excel+unsubscribe@__googlegroups.com
<mailto:python-excel%2Bunsu...@googlegroups.com>.
To post to this group, send an email to
python...@googlegroups.com
http://groups.google.com/__group/python-excel?hl=en-GB
<http://groups.google.com/group/python-excel?hl=en-GB>.
For more options, visit
https://groups.google.com/__groups/opt_out
<https://groups.google.com/groups/opt_out>.
__________________________________________________________________________
This email has been scanned by the Symantec Email Security.cloud
service.
For more information please visit http://www.symanteccloud.com
__________________________________________________________________________
--
Simplistix - Content Management, Batch Processing & Python Consulting
- http://www.simplistix.co.uk
______________________________________________________________________
This email has been scanned by the Symantec Email Security.cloud service.
For more information please visit http://www.symanteccloud.com
______________________________________________________________________
To unsubscribe from this group and stop receiving emails from it, send an email to python-excel...@googlegroups.com.
To post to this group, send an email to python...@googlegroups.com.
Visit this group at http://groups.google.com/group/python-excel?hl=en-GB.
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to the Google Groups "python-excel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python-excel+unsubscribe@googlegroups.com.
Cool, I'm neutral on six.py:
- I don't think we'll need most of it, the xlrd compat stuff ended up
being very small
- If it was used in a pull request, I would NOT reject the pull request
based on that ;-)