Questions tagged [python-2.1]

For issues relating to development in Python, version 2.1

The Python 2.1 release (2001) introduced nested scopes and was the last release only having old style classes.

Use this tag if your question is specifically about . If your question applies to Python in general, use the tag . If your question applies to Python 2.x but not to Python 3, use the tag . If you aren't sure, tag your question and mention which version you're using in the body of your question.

4 questions
0
votes
1 answer

python __import__() imports from 2 different directories when same module exists in 2 locations

I have a python application , which has directory structure like this. -pythonapp -mainpython.py -module1 -submodule1 -file1.py -file2.py -submodule2 -file3.py -file3.py …
0
votes
1 answer

Reading XML on python 2.1

So, i'm trying to process a XML file on python. I'm using minidom as I'm in python 2.1 and there's no change to updating to 3.6. Currently, I have this import xml.dom.minidom as minidom import socket print 'Getting the xml file' # Get the xml…
CJLopez
  • 5,495
  • 2
  • 18
  • 30
0
votes
1 answer

Sorting a list based on another list with DSU

For a class project, I need to use python 2.1, and I'll probably have to use DSU for sorting, which I'm not familiar with. So I'd like some help if possible. I have a list for storing vertexes and their coordinates. for example vertex = [(2, 2), (3,…
htcoelho
  • 65
  • 7
0
votes
2 answers

exceptions.AttributeError : SMTP instance has no attribute 'login' :

Hey I have a windows server running python CGI scripts and I'm having a little trouble with smtplib. The server is running python 2.1 (unfortunately and I can not upgrade it). Anyway I have the following code: session =…
Jiaaro
  • 74,485
  • 42
  • 169
  • 190