[Tutor] Making Doubly Linked List with Less Lines of Code.
Steven D'Aprano
steve at pearwood.info
Fri Jan 2 07:50:28 CET 2015
On Fri, Jan 02, 2015 at 12:28:38AM -0500, Dave Angel wrote:
> On 01/01/2015 11:48 PM, WolfRage wrote:
> >Final Code Using 2d List instead of Doubly Linked List.
[...]
> Is there a reason you doublespaced the whole thing? And why did you
> retype it instead of just copy/pasting it? And why lose the
> indentation, so nobody can actually try it without guessing at your
> indentation?
I think the reason can be spelled:
"Bloody Gmail"
Wolfrage, you will have a lot fewer problems if you can get your Gmail
to send "plain text" rather than "rich text", "formatted text" or
whatever they call it these days. (It's actually HTML code, like
websites use.) Otherwise your code gets screwed up by Gmail:
class GameTile():
def __init__(self, id, **kwargs):
# id is (X,Y)
self.id = id
instead of:
class GameTile():
def __init__(self, id, **kwargs):
# id is (X,Y)
self.id = id
--
Steven
More information about the Tutor
mailing list