Python is a dynamic, high-level language. Its design focuses on clear syntax, an intuitive approach to object-oriented programming, and making the right way to do things obvious. Python supports modules, exceptions, had an extensive standard module library. Python can also be embedded in other ...

learn more… | top users | synonyms (1)

0
votes
2answers
84 views

Executables and Python

I've started learning my first language recently, Python, and I became interested in how it differed from the myriad of other programming languages. I've been able to find most of it out with some ...
0
votes
0answers
39 views

How to share control of links/domains on an open source project with many collaborators?

I'm trying to help the Rebol project re-engineer its web presence now that it is open source as Apache 2 — after nearly two decades of proprietary license! The language's creator currently has ...
5
votes
3answers
242 views

How to sync clocks over networking for game development?

I'm writing a game that has a lot of time based aspects. I use time to help estimate player positions when the network stalls and packets aren't going through (and the time between packet's being ...
2
votes
1answer
406 views

XMPP— openfire, PHP and python web service

I am planning to integrate real time notifications into a web application that I am currently working on. I have decided to go with XMPP for this and selected openfire server which I thought to be ...
1
vote
4answers
233 views

Can I perform a code review although I am very inexperienced? [closed]

I have been teaching myself Python as a first language for 2 years now. So far I have done some online courses (NLP, Design of a Computer Program etc.) and solved some puzzles but never worked with ...
5
votes
1answer
137 views

Duck typing, data validation and assertive programming in Python

About duck typing: Duck typing is aided by habitually not testing for the type of arguments in method and function bodies, relying on documentation, clear code and testing to ensure correct use. ...
2
votes
1answer
70 views

Tests for emptiness vs tests for nothingness

Is there any consensus between languages how tests for emptiness are distinct from tests for noneness? In python the following expression is false: {} is {} However this expression evaluates to True ...
11
votes
4answers
852 views

Why store a function inside a python dictionary?

I'm a python beginner, and I just learned a technique involving dictionaries and functions. The syntax is easy and it seems like a trivial thing, but my python senses are tingling. Something tells me ...
2
votes
2answers
170 views

How can I keep a production Python environment secure?

Most of my work is creating websites in Django (a Python web framework) and deploying them to my own or clients' servers. I work from a virtualenv to separate site from system packages and have ...
-2
votes
0answers
27 views

Python or java random number generator from array [closed]

I'm trying to write a random number generator from scratch, but I need it to follow these rules: it needs randomly select 3 numbers from an array producing every possible outcome of groups of three ...
-2
votes
0answers
22 views

python random number generator listing all out comes of 25 numbers in groups of three [closed]

I'm trying to write a random number generator from scratch, but I need it to follow these rules. it needs randomly select 3 numbers from an array producing every possible outcome of groups of three ...
1
vote
0answers
26 views

Python Multiprocessing with Queue vs ZeroMQ IPC

I am busy writing a Python application using ZeroMQ and implementing a variation of the Majordomo pattern as described in the ZGuide. I have a broker as an intermediary between a set of workers and ...
1
vote
2answers
289 views

Notify players every x seconds in a multiplayer game

I'm working on a realtime multiplayer game using Django and gevent-socketio, I'm facing some issues: I need to send an update of the game state to connected players every X seconds (~4 seconds), so ...
0
votes
0answers
166 views

Why is Ruby considered elegant language and Python not? [closed]

Can someone explain me what is elegant in ruby? Because these two languages have both good simplicity, readability, writability, maintainability. What makes ruby elegant and python not?
-2
votes
1answer
62 views

best way to learn python/php to implement my Idea [closed]

I am new to WebSite development.But I have great skills and experience in Java and C.I have gained sufficient knowledge in HTML,CSS and JavaScript. I have an idea about creating a social website and ...
2
votes
3answers
164 views

Pros of start learning programming with Python if what I really want is Javascript?

A friend of mine seeks to learn Javascript programming but he never programmed before. I've found Python as a quite nice language that takes most unneeded "strangeness" out of learning programming ...
15
votes
6answers
8k views

Why is Python written in C and not in C++?

In Python's tutorial one can read that Python's original implementation is in C; On the other hand, the Python implementation, written in C, (...) I'm very curious why was Python written in C ...
14
votes
3answers
880 views

How to solve the problem of nested comments

It appears in not just one language that comments can't be nested. Do you have a good solution for this problem? One workaround in C/C++ and Java is to only use the single-line comment but it becomes ...
-2
votes
1answer
63 views

Can I run command-line commands within a python script? [closed]

Basically I've downloaded this package that deals with text files that is run from the terminal, but the command I need takes in two arguments. I also need to do this many times (5000+). I need to ...
0
votes
0answers
54 views

Why complex is better than complicated? [duplicate]

In python, when you "import this", you can get The Zen of Python. It says "Complex" is better than "Complicated". Why is that? What's the difference between complex and complicated in programming ...
0
votes
1answer
144 views

Should I use webKit or is there a better technology to make a browser in Windows [closed]

I create web applications most in RoR and PHP. About a year ago a company wanted to use my app but in a stand alone browser window in Linux, so I wrote one in python using webkit, locked it down to ...
0
votes
0answers
41 views

Watching file changes/additions/removal, but with an eye on partial transfer

I would like to monitor the filesystem in python, so that my application gets warned of the new file addition, file removal, or file change. Once the file is detected, the application starts ...
-1
votes
0answers
69 views

I need to use code to group matching words in 2 columns [closed]

Wondering if anyone can assist me with this,I'm a new python programmer. If I have an excel (well I use LibreOffice. Ubuntu 12.04) file with 2 columns and need to specific words in rows with another, ...
-2
votes
0answers
20 views

serial data to print on window using python [closed]

This is the code to receive serial data and to print on the window. Here the window will open and the serial data which is received at certain time periods will print on the window. the first ...
0
votes
2answers
194 views

How my website should use it's own API?

Im building small web-service which will provide my users with data through API. Also, some data will be available right on my website. The question is about how to use my own API? Should my website ...
0
votes
1answer
61 views

How to deal with database connections in a Python library module

I have created a library in Python that contains functions for accessing a database. This is a wrapper library around a third party application database, written due to the fact that the third party ...
-2
votes
0answers
21 views

Mapnik and tilecache performance issue [closed]

I am working on GIS based web application using Mapnik and Tilecache with backend python. To display map in the browser, openlayers is used. Maps are generated by calling tilecache cgi url. I am ...
-2
votes
0answers
32 views

Load testing my Django App [closed]

so i have a Django app that is not optimized yet and i am doing some load testing using Jmeter. For now i am only doing a simple GET to my index.html. I am trying to interpret the results, and from ...
6
votes
1answer
240 views

Object oriented vs vector based programming

I am torn between object oriented and vector based design. I love the abilities, structure and safety that objects give to the whole architecture. But at the same time, speed is very important to me, ...
3
votes
5answers
251 views

The rationale behind Falsy values [closed]

I'm wondering what the arguments for/against Falsy values are. On what principles would you decide to add or exclude them from a language? Are there any problems you could see them causing off-hand? ...
2
votes
1answer
326 views

Python simulation-scripts architecture

Situation: I've some scripts that simulate user-activity on desktop. Therefore I've defined a few cases (workflows) and implemented them in Python. I've also written some classes for interacting with ...
10
votes
10answers
1k views

Do I have to learn html and javascript to create web applications?

I am an experienced Java programmer, and I want to create a complex web application requiring dynamic pages, drawings, etc (take SO as an example). Do I have to learn javascript/html in order to ...
4
votes
4answers
392 views

How to create different paths for users to take through the pages in my site?

I have a website where users are directed to go through a sequence of pages to perform a sequence of work tasks (transcribe a paragraph, answer a survey, interact with another user, etc). For short, ...
3
votes
3answers
179 views

How to rotate an array of bits

I currently have a PIL Image object which I store as an array of bits (1's and 0's). However I now would like to be able to rotate that image 45 degrees. One way to do it is take the original PIL ...
0
votes
3answers
204 views

Object design where hard-coded values are used to instantiate objects?

I'm creating the design for a browser bookmark merging program and I've ran into a design problem that I've seen before yet I've never come up with a good solution for it. So lets say I have a ...
-2
votes
0answers
85 views

Learning django and Python GUI [closed]

Can anybody suggest me some good user-interactive sites like Codecademy, for learning Django. And also some good resources for learning python GUI programming.
2
votes
2answers
171 views

Developing Python on Windows and deploying to Linux

I have a client who would prefer to host their application on Linux. However, my coworkers and I have very little experience with Linux. This is a short project with a low budget, so making choices ...
2
votes
1answer
144 views

What's the best way to create a static utility class in python? Is using metaclasses code smell?

Ok so I need to create a bunch of utility classes in python. Normally I would just use a simple module for this but I need to be able to inherit in order to share common code between them. The common ...
3
votes
2answers
407 views

How does key-based caching work?

I recently read an article on the 37Signals blog and I'm left wondering how it is that they get the cache key. It's all well and good having a cache key that includes the object's timestamp (this ...
-1
votes
0answers
61 views

Key Logger Problems [closed]

So I'm fairly new to programming in python (only started half a year ago) and recently I wanted to put my skills on a test and decided to code together a simple key logger. import pythoncom import ...
1
vote
3answers
146 views

Architecting Python application consisting of many small scripts

I am building an application which, at the moment, consists of many small Python scripts. Each Python script processes items from one Amazon SQS queue. Emails come into an initial queue and are ...
-5
votes
0answers
51 views

For viewing in online how to handle a document? [closed]

Internet full of several documents like this. http://files.swaroopch.com/python/byte_of_python.pdf different type of document from online shows in different mode in different browser. Some browser ...
-5
votes
0answers
39 views

Multi-column layout handling with pdfminer pdf2txt.py module [closed]

So far I am using pdfminer pdf2txt.py module with success. But a problem arises in pdf files formatted in two columns. The module retrieves text into a single column which results into many split ...
3
votes
2answers
191 views

What is the way to go to extract data from websites?

I've been thinking about a side project that envolves web data scraping. Ok, I read the Getting data from a webpage in a stable and efficient way question and the discussion gave me some insights. ...
9
votes
5answers
2k views

Moving to Python (SciPy and NumPy) for Scientific Computing [duplicate]

Just read a presentation about using Python for Scientific Computing. I am currently using MATLAB (student license FTW, which will expire when I graduate soon). So I was wondering how matured SciPy ...
-2
votes
0answers
35 views

Advantages of pdb vs IDLE debugger [closed]

What are the advantages to using the PDB module within a program, as opposed to IDLE's debugger? Does IDLE just provide a GUI while running PDB under the hood? Apologies if this is a blindingly ...
134
votes
24answers
46k views

What are the drawbacks of Python? [closed]

Python seems all the rage these days, and not undeservingly - for it is truly a language with which one almost enjoys being given a new problem to solve. But, as a wise man once said (calling him a ...
12
votes
5answers
913 views

Do you think that GAE alone is enough to justify learning Python over Ruby?

Considering the fact that you don't have to get involved in setting up/buying a server or even buying a domain, do you think that fact alone is enough to choose one over the other? I don't ...
0
votes
1answer
111 views

Programming a telnet application

I'm very new to programming (I'm a network guy professionally) but lately the appeal of studying code has become more and more apparent to me. So I'd like to start by programming a telnet application ...
-1
votes
0answers
113 views

Learn Python or C/C++ or Objective-C first? [closed]

I'm going to university in the fall and I'll be studying computer science. I really love the idea of programming and making software in OSs. I've done some beginners programming in python/c/objective ...

1 2 3 4 5 12