Geting error using python 3.5 : a_token = r.json() mention below

2016-12-20 Thread Akbar Shaikh
import io import csv import glob import os.path import requests import subprocess import urllib.request import json import time import xlwt import xlrd import datetime from datetime import date, timedelta def main(): """ Run the whole toolchain for all accounts. """ _clean()

finding monitor or screen resolution in Linux with standard python module

2007-03-07 Thread akbar
I googled and searched in archive. All I can find is finding resolution with Tkinter and pygame. Any idea to find monitor resolution with standard python module? I can check from output of: xprop -root _NET_DESKTOP_GEOMETRY(CARDINAL) . The problem is when you use Beryl or Xgl, it is not correct any

should I distribute .pyc files?

2006-12-18 Thread akbar
Hi, I am creating not-so-important opensource application written in python for Linux. I have two files python source in src directory, named blabla1.py and blabla2.py. There are byte compiled files too, named blabla1.pyc and blabla2.pyc. Should I distribute these files (pyc files) to users? If I

gettext newbie frustration

2006-07-05 Thread akbar
Hi, I try to learn gettext and python. This is the simple program #simplehello.py import locale import gettext APP = 'simplehello' DIR = 'locale' locale.setlocale(locale.LC_ALL, '') gettext.bindtextdomain(APP, DIR) gettext.textdomain(APP) _ = gettext.gettext print _('Hello World') After that I d

custom xml pretty print

2005-11-20 Thread akbar
Hi, I have Document. If I print it like this: print doc.toprettyxml(" ") I will get this: blablablabla What do I have to do if I want to print it like this: blablablabla Thank you. -- http://mail.python.org/mailman/listinfo/python-list

Re: "import socket" error

2005-10-09 Thread akbar
Fedora Core 4. -- http://mail.python.org/mailman/listinfo/python-list