Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Conversion of npyscreen module to python 3 -- help!

Reply
Thread Tools

Conversion of npyscreen module to python 3 -- help!

 
 
Nicholas
Guest
Posts: n/a
 
      10-05-2009
Dear Pythoners,

Like a loyal python coder, I was attempting to convert a library to
python 3. I have been stung in various ways by the new import
semantics - the tests that used to live happily within the module have
now had to be moved elsewhere. So be it.

But even though I have removed all the obvious things that are causing
it to break, and even refactored the whole file-scheme of the module
to make conversion more straight-forward, I'm still unable to get the
code to work.

I am clearly committing some horrible sin that works well in python 2
but which doesn't in python 3. Despite reading the Release notes and
PEPs over and over, though, I can't see what is wrong.

If anyone could spare the time to have a quick look at the code at

http://code.google.com/p/npyscreen/

over and provide enlightenment, I would be extremely grateful. (the
source code in the hg archive is more recent than the package for
download)

Best wishes,

Nicholas
Nicholas
 
Reply With Quote
 
 
 
 
Gabriel Genellina
Guest
Posts: n/a
 
      10-06-2009
En Mon, 05 Oct 2009 06:54:06 -0300, Nicholas <>
escribió:

> [...] I am clearly committing some horrible sin that works well in
> python 2
> but which doesn't in python 3. Despite reading the Release notes and
> PEPs over and over, though, I can't see what is wrong.
>
> If anyone could spare the time to have a quick look at the code at
>
> http://code.google.com/p/npyscreen/
>
> over and provide enlightenment, I would be extremely grateful.


The package is too large for just a "quick look". What's precisely your
problem? Try to isolate it; remove all unnecesary modules and directories,
try to keep the minimum code that still reproduces the problem.
You may solve it yourself in the process.

--
Gabriel Genellina

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
PSD to XHTML Conversion Services and PSD to HTML CSS ConversionServices, PSD to Joomla, Drupal, Wordpress Conversion xhtml champs Python 0 06-21-2011 11:59 AM
PSD to XHTML Conversion Services and PSD to HTML CSS ConversionServices, PSD to Joomla, Drupal, Wordpress Conversion PSD to XHTML Conversion Services and PSD to HTML CSS Conversion Services, PSD to Joomla, Drupal, Wor VHDL 0 04-25-2011 06:43 AM
conversion operator and conversion ctor subramanian100in@yahoo.com, India C++ 2 09-15-2009 12:46 PM
Re: module docstring, documentation,anything? please note is the module type/object NOT some module Maric Michaud Python 0 06-24-2006 12:42 PM
Python-2.3b1 bugs on Windows2000 with: the new csv module, stringreplace, and the re module Daniel Ortmann Python 4 07-02-2003 03:23 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57