« first day (747 days earlier)      last day (1441 days later) » 

1:41 AM
0
Q: Python: How to sum up all numbers in a txt file? Invalid Literal?

ZiiThis is my error This is my code The goal is to sum up all numbers in the text file. (They appear at the end in my screenshot, (1 2 3 4 5 6 67)) What am I missing here? I don't know how to fix the invalid literal. All help is greatly appreciated. Yes, I did Google searches, but that didn't he...

 
 
3 hours later…
4:29 AM
-1
Q: Pycharrm game is running with slow FPS on MacBook Pro Retina Display

Patrick CaiWhen running a python game using the pygame module, the game runs with very slow fps on the retina display for my macbook pro. But, I have a external monitor and when I drag the game window to the external display, which is 1920 x 1080, the game runs fine. Any ideas on how to fix this?

 
5:18 AM
0
Q: To Parse a xslx and compare its column value to find files in Recursive dir

Navin DalalPlease help me in reducing time complexity of this code as its talking more time to read input excel. <code> # -*- coding: utf-8 -*- """ Created on Wed Mar 9 14:26:22 2016 @author: DalalNS """ from openpyxl import load_workbook import os import shutil filename = 'test.xlsx' wb = load_workbook(...

 
 
3 hours later…
8:07 AM
1
Q: CLI Twitter Client in Python

bilbo_pingouinHere is a simple client for twitter that I wrote based on the twitter library in python. The aim is to be able to read the feeds from different twitter accounts from the same place in a light way. How could I improve the code? It is available on GitHub. #!/usr/bin/python import sys import o...

 
9:06 AM
0
Q: MAX occurring char in a string

Navin Dalal-- coding: utf-8 -- Please Let me know how to improve this code Further:: """ Created on Thu Mar 10 11:59:14 2016 Input: The first line of input contains an integer T denoting the number of test cases. Each test case consist of a string in 'lowercase' only in a separate line. Output: Print ...

 
 
2 hours later…
11:32 AM
0
Q: Something to store any (standard) data in python

PeterI decided to try make my own way to save normal python data yesterday after coming across the minecraft NBT format, it's more limited than cPickle but appears to produce shorter results and so far works reliably (if a little slower). It works on the type of the input, and is currently compatible ...

 
12:03 PM
0
Q: Few Slots questions in Python

Adi GalWhat those attributes does exactly __get/set/delattr__? Why not to uset just Myclass.NewAtrr = value instand __setattr__? Why Python uses __dict__? It keeps the attributes in the end of dir() anyway.

 
 
7 hours later…
6:53 PM
@Amy SURE
YOU are
done
 
4 messages moved from C#
 
 
5 hours later…
11:52 PM
0
Q: Writing first open source library in Python, What do you think I should know?

Reed JessenI have set out to write and maintain my first open source library. I run a pure-play API company and we are going live with our first RESTful endpoint next month. I am writing a python library to make it super easy for developers to integrate our API into their current systems. I am never writ...

 

« first day (747 days earlier)      last day (1441 days later) »