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)

-2
votes
1answer
41 views

Python scripts link to GUI using an IDE [on hold]

I am studying python. Now I can write python scripts(codes) to some extent. I am interested in making GUI to those written programs.I like to do it using an IDE rather than using PyGTK or Tkinter. Can ...
-3
votes
0answers
50 views

auto browsing in javascript or python? [on hold]

I would like to write a kind of spider to browse some site automatically. The target would be to simulate human browsing to confuse data collection of big providers. Do you think it's better to write ...
0
votes
0answers
87 views

RPC protocols comparison

I have to select a protocol/technology to use for communicating a client-server architecture, with support both for Python and C. The main requirements are: Symmetrical communication in between ...
0
votes
0answers
31 views

How to study for an Informatics Olympiad [on hold]

One of my goals for next year is to participate in the Australian Informatics Olympiad. As far as I'm aware, it is not too different from Informatics Olympiads in other countries. What would be the ...
-1
votes
0answers
29 views

Check validity Partition in python

I have a question, I really don't understand about partition of set. There are 3 definition that we have to know, and I don't know how to implement the definition into python language. In my case, I ...
1
vote
1answer
130 views

How Python random shuffle works?

How shuffle from random works in Python? I ask because it works very fast. When I try to write shuffle it works 1 minute for 10^6 element, but Python shuffle does that in 8 sec?
-1
votes
0answers
17 views

Understanding a codebase [duplicate]

What kind of practices should one employ to increase his understanding of a codebase. I will be a bit more specific and narrow down the question to the domain of an application that includes ...
0
votes
1answer
49 views

Naming a predicate: “precondition” or “precondition_is_met”?

In my web app framework, each page can have a precondition that needs to be satisfied before it can be displayed to the user. For example, if user 1 and user 2 are playing a back-and-forth ...
-2
votes
0answers
47 views

How to determine python object size in bytes [closed]

How can I determine the size in bytes of memory occupied by Python objects, specifically sets, dicts, and lists?
-1
votes
3answers
189 views

Browser-based GUI for a python application [closed]

I want to create a web/browser-based GUI for a command-line python application. The goal is to make use of HTML/JS technologies to create this GUI. As the application itself, it needs to run on Linux ...
1
vote
1answer
148 views

Tips for Tail Call Recursion in Python [duplicate]

Ok, Python doesn't have tail call optimization. But for those who think better recursively than "looply", whats the best practices to write code?? 1000 stack calls are enough for many cases, but ...
0
votes
0answers
16 views

Handling large integers in python [migrated]

I had written a program in python to find b such that a prime number p divides b^2-8. The range for b is [1, (p+1)/2]. For small integers it works, say only up to 7 digits. But not for large ...
-1
votes
0answers
42 views

How to parse floating point number arguments passed via CLI? [migrated]

As you know floats use different decimal separators on different locales. But I wonder if I should care when user passes floating point in native locale. At first I thought I should try to parse ...
1
vote
1answer
171 views

Is ZeroMQ a good choice to make a Python app and a C# managed assembly work together?

I have a task that involves talking to a .NET-based API (namely AutoCAD) to retrieve data, send commands, and react to events. I want to separate the API operations and the proper program logic ...
-4
votes
0answers
166 views

Make an “actual” for loop in Python? [migrated]

As you should know, in Python, the following is a valid for loop in Python: animals = [ 'dog', 'cat', 'horse' ] # Could also be a dictionary, tuple, etc for animal in animals: print animal + " ...

15 30 50 per page