« first day (710 days earlier)      last day (1478 days later) » 

12:48 AM
0
Q: Python Module Help please

DemetrisHello my name is Demetris. I was wondering if anyone could possible help me how to download modules and pip. I have a windows 10 64bit, python 3.5.

 
1:31 AM
0
Q: Object-oriented web scraping with Python

PydermanI usually write function-only Python programs, but have decided on OOD approach (my first thereof) for my current program, a web-scraper. Here is the fully-working code developed by me, which I am looking to have critiqued: import csv import urllib2 NO_VACANCIES = ['no vacancies', 'not hiring']...

 
 
3 hours later…
4:13 AM
2 messages moved from Core Python & Related Architecture
 
4:52 AM
yaha v bakchodi kare kya
 
1 message moved from talkies
 
6:00 AM
1
Q: Dijkstra's algorithm using collections.namedtuple

amigoSo I decided to try out some named tuples by implementing Dijkstra's algorithm to find the cheapest routes in a file like this (where each line represents node_a is connected with node_b with a cost of n): 1 6 14 1 2 7 1 3 9 2 3 1 2 4 15 3 6 2 3 4 11 4 5 6 5 6 9 However, something that caught ...

 
 
3 hours later…
9:17 AM
0
Q: Python Micro-services Architecture

TanayI have a Python-Flask webapp that stores data in MongoDB using an ORM. I want to extend this app and add a Apache Storm based micro-service that will require read & write access to dbs of the Flask app. If I decide to use ORM for MongoDB access in the Storm micro-service, I will need to have th...

 
 
5 hours later…
 
1 hour later…
4:02 PM
1 message moved from Java::chat ><> & Chips
 
 
3 hours later…
6:34 PM
0
Q: make this code into the least amount of lines as possible (maths quiz)

Richard FletcherHellooo, if its possible im not sure if it is, but could this code possibly be shortened but still work, or even better be recreated in to the fewest lines of code possible?? please help Import random import csv import random import math import operator as op name=input("What is your name: ...

 
1 message moved from Core Python & Related Architecture
 
 
2 hours later…
8:22 PM
 
1 message moved from SO Close Vote Reviewers
 
8:48 PM
0
Q: Dynamic class instancing (with conditional parameters and methods) based on a dictionary

Lucas SiqueiraIn a RPG game I'm developing, after building a base Weapon class, instead of having many subclasses of Weapon, I want the weapons to be built upon dictionary parameters. Many of them will be simple static informations (weight, value, etc.), but others will have conditionally defined parameters, w...

 
9:22 PM
0
Q: Can someone my programing and explain to me please?

user96470Hi I am currently a student in collage. I am new to python and programing can someone explain to what when wrong i tried to do it and everytime it runsit says TypeError: 'module' object is not callable can someone please help? import random print "Scissor-Rock-Paper (SRP) Game" raw_input("Play...

 
9:56 PM
0
Q: How could I learn to Ethical hacking?

Demetris*Where could I possibly learn to do ethical hacking for free, also what could I use I'm currently learning python to learn simply how coding works. I'm a amateur so sorry :( I use a window 10 operating system and also python 3.5 I've searched every where for any possible sites and tutorial but ...

 
10:17 PM
0
Q: Is this python / kivy code pythonic?

Eric MacLeodI'm making a scraper/web crawler using kivy when I run the code it works but I'm not sure if what I'm doing is pythonic because all the language I can find is about using the kivy language. I'm unsure about putting the functions to bind the widgets to inside the build method. Is there a better wa...

-3
Q: This code is for finding the real solutions to a quadratic

GUTdef main(): print("This program finds the real solutions to a quadratic") print() a, b, c = eval(input("Please enter the coefficients (a, b, c): ")) discRoot = math.sqrt(b * b - 4 * a * c) root1 = (-b + discRoot ) / (2 * a) root2 = (-b - discRoot) / (2 * a) print() print("The real solutions are:"...

 
11:13 PM
0
Q: Create a python 2.7 LRU caching decorator that caches in the instance and in a shared cache

mjbramsI needed a caching decorator, that could be used with methods and functions, that could take typed args and kwargs, and that was python 2.7 compatible. Therefore I started with a backport of the lru_cache from python 3.3. However I also needed the ability to incorporate a shared cache (I am doi...

 

« first day (710 days earlier)      last day (1478 days later) »