carnal0wnage / weirdAAL

WeirdAAL (AWS Attack Library)
773 stars 92 forks source link

python2 & 3 compatibility #15

Closed carnal0wnage closed 6 years ago

carnal0wnage commented 6 years ago

we should do our best to make sure this code works for both or decide to make it python3 right now

http://python-future.org/compatible_idioms.html

cktricky commented 6 years ago

I think it only makes sense to support Python3 because we use boto3 which afaik is only a Python3 thing

carnal0wnage commented 6 years ago

embarrassed to post this but i've been using boto3 with 2.7 and its been working. python3 it is

carnal0wnage commented 6 years ago

Full Python 3 support Boto3 was built from the ground up with native support for Python 3 in mind. With each build, it is fully tested with Python versions 3.4, 3.3, 2.7, and 2.6.5+.

looks like it works with both. back to the question at hand then :-/

cktricky commented 6 years ago

Ahh, I probably misunderstood. But my vote would be only Python3. Don't like supporting multiple versions of languages. Too much work for not enough benefit. People can install both versions on their machines if they have some need for Python 2.7 still - so its not like us saying 'we only support python3' screws up their environment.

carnal0wnage commented 6 years ago

i asked because there will be some shit that breaks unless we are super careful. What brought this up was input() vs raw_input() when i was setting up the sqlite3 database. it will be much simpler to just say works with python3 and may/should work with 2.7

carnal0wnage commented 6 years ago

3 it is..closing :-)