« first day (1569 days earlier)      last day (3383 days later) » 

11:00 PM
Guys can I get a hand with this problem again? I'm still hitting a wall... I have a gist at gist.github.com/anonymous/8510b2919270ee81bea4 to show the code I'm working with. The problem is that I'm trying to convert this character to its HTML entity - but it won't convert
It will convert the 1 but not the ©
Pardon the single character variables, it's not the code I'm trying to use but it's just to show what I'm working with
 
>>> yea("©1")
'®one'
Didn't we go through this yesterday? I can't reproduce the problem :(
 
I know! I'm trying now on both Ubuntu as well as Windows
What are you using?
 
Windows, running it in IDLE
 
7 or 8?
 
11:08 PM
I'm on 8 but I doubt that's a difference
 
my console throws fits about the copyright symbol -- could that be the issue?
 
What does it say?
 
it pastes in a c
instead of the copyright symbol
pasted into my console and copied back out: yea("c1")
 
Thats weird
When I use IDLE I get ©one
Can I force a character by referencing it some other way than with a string?
 
user559633
11:32 PM
what do you mean force a character?
 
user559633
what encoding is IDLE set to use?
 
user559633
(version of python being used is pretty important for this as well)
 
11:57 PM
I'm currently trying to port a fairly sizable chunk of code someone else wrote from python 2.7 to 3.4. I've come across some things I'm not sure how to best port. For example in a test case I see this:
    def __setitem__(self, index, value):
        if index.__class__ in ((0).__class__, (0L).__class__):
As far as I can tell, long is gone in python 3 so can I just safely remove the (0L).__class__ here?
 

« first day (1569 days earlier)      last day (3383 days later) »