The python tag has no wiki summary.
11
votes
2answers
402 views
Why is Python used for high-performance/scientific computing (but Ruby isn't)?
There's a quote from a PyCon 2011 talk that goes:
At least in our shop (Argonne National Laboratory) we have three
accepted languages for scientific computing. In this order they are
C/C++, ...
1
vote
0answers
81 views
How to consolidate two Python classes containing methods with identical signatures? [migrated]
I'm working on a REST client library, and recently started working on adding support for sending batch messages.
However, I don't like the current design. It requires you to maintain large Client and ...
0
votes
0answers
51 views
Path forward into Python web application (SaaS)
I currently know a working knowledge of Python and some related libraries (including the included-with-Python SQLite) for the purpose of making desktop applications.
I would now like to start to make ...
-3
votes
0answers
69 views
Does anyone have any experience with any of the python to javascript converters? [closed]
Edit A good interpreter is one that is 1. Not buggy. 2. Performant in that order.
I'm looking for a good python to javascript interpreter/converter. I found a list of alternatives here ...
-1
votes
10answers
708 views
Python is slowly replacing C in universities. Does this move degrade the quality of CS students? [closed]
I believe learning C is one of the most important aspects for any programmer. It's a beautiful combination of a high and low level language. Some universities are moving to stop teaching C in the ...
1
vote
2answers
104 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
36 views
Modify instance variables from another file? [migrated]
It is possible to modify an instance variable from another file?
What I want is to modify an instance variable inside File_1 from File_2.
For example:
//File 1
import File_2
class Main:
...
6
votes
5answers
154 views
Splitting 1 large object into 2 tightly-coupled ones - good, bad?
I have a complex object (call it BusinessLogic) which provides an RPC interface to semi-trusted users. The functions in the RPC interface have to decide which procedure to call, check authorisation ...
2
votes
1answer
81 views
Java or Python for Google App Engine not knowing either language?
I have a few project ideas that I'd like to deploy on GAE. I'm interested in developing a logging application for amateur radio contacts, shortwave, and utility monitoring. More complex projects ...
-3
votes
0answers
22 views
makeTextFile.py problem [closed]
so i'm reading a book on basic python and need help translating this program.
it will be my first program so don't laugh at me place lol
i need a step by step guide with this. i click print and it ...
7
votes
1answer
164 views
Why are Python strings allocated on the stack?
According to this Python code visualizer, Python strings are allocated on the stack and not on the heap.
Why is this? I thought they would be similar to Java where Strings are allocated on the heap.
-1
votes
1answer
130 views
python login form vulnerability?
<HTML>
<HEAD><TITLE>Login Page</TITLE></HEAD>
<BODY>
<CENTER>
<FORM method="POST" action="http://yourserver/cgi-bin/login.py">
<paragraph> Enter ...
1
vote
4answers
297 views
Where to use C++ today? [closed]
Possible Duplicate:
Is there any reason to use C++ instead of C, Perl, Python, etc.?
When to use C over C++, and C++ over C?
I am going to enter university next fall in computer sciences, ...
0
votes
1answer
165 views
Starting with Ruby on Rails? I see a lot of criticism everywhere. Is it okay to start with Rails now in 2012? [closed]
I have worked on C before and have never tried my hands on any web application creating framework. After some convincing from one of my friends I thought of giving Rails a go. Before starting to work ...
7
votes
3answers
629 views
Why doesn't Python need a compiler?
Just wondering (now that I've started with C++ which needs a compiler) why Python doesn't need a compiler?
I just enter the code, save it as an exec, and run it. In C++ I have to make builds and all ...
-4
votes
1answer
233 views
Why Python's popularity in TIOBE INDEX is going down? [closed]
From what I read in Hacker News or other publications for programmers, python is growing steadily and it's being used in more and more scenarios.
So, why its TIOBE INDEX is declining (compared to ...
7
votes
5answers
140 views
Coming up with tokens for a lexer
I'm writing a parser for a markup language that I have created (writing in python, but that's not really relevant to this question -- in fact if this seems like a bad idea, I'd love a suggestion for a ...
3
votes
2answers
80 views
Finding software libraries to solve a problem (Python)
As programmers we don't want to reinvent the wheel so code use and using tested libraries/frameworks are in everyone's best interest (usually). However if you don't know that the "wheel" has been ...
0
votes
1answer
42 views
Networkx / Python : Is using a class for a node better practice than defining multiple attributes?
I've read through the NetworkX tutorial and documentation, but was unable to find real world answers for this question.
Usually when using NetworkX, I might use strings to define nodes, then set ...
-3
votes
4answers
301 views
How can I sell my boss on Python+Django instead of PHP+a different framework? [closed]
My boss has tasked me with a re-write of our intranet website. The existing system is very old PHP that doesn't use a framework. My preference is strongly to do the rewrite in Python and Django but my ...
-3
votes
0answers
68 views
Choosing the good language [closed]
I've already dabbled into Python and bought books, but I found its syntax too abstract (too much like pseudocode) and too strict. Should I learn Ruby instead, considering that: - I also want to learn ...
-1
votes
0answers
62 views
Searching An idea to programm [closed]
I have for now a lot of time (it's relative indeed) to put in a project, so I want to make a program useful for as many people as possible, I can do it in Python and I have notions in C++.
But the ...
-4
votes
0answers
295 views
Usual python interview questions [closed]
Possible Duplicate:
Python interview questions
I was just looking out for questions for a Python programmer interview ie.. the generic things usually ask for a python programmer without any ...
-1
votes
0answers
27 views
Django: Getting succefully deleted message even if deletion is prevented [closed]
class SomeModel(models.Model):
end = models.DateTimeField()
def delete(self, *args, **kwargs):
now = datetime.datetime.now()
if self.end < now:
return # past ...
4
votes
2answers
238 views
Program more professionally (planning, notation, …)
I program a data-analysis framework for my company (20000LOCs by now). There are 2 programmers who help writing individual module for interfaces I have predefined. So far I haven't used much planning ...
5
votes
1answer
135 views
Good open source projects to master Python concurrency [closed]
Concurrent programming in Python is very colorful (and confusing too). There's just too many options with each having it's pros and cons...
Thread based (threading module)
Process based ( ...
8
votes
5answers
305 views
How do Data Scientists Use Python?
Do you know how Data Scientists use Python and if it requires data, where I can get sample data to practice with? I'm currently learning the language and plan on applying for Data Scientists jobs, so ...
-3
votes
0answers
85 views
Learn how to use web2py [closed]
I'm interested in learning a python web framework, and I settled on web2py. However, I really need a guide that walks you through on creating an application. I like to see how everything meshes ...
4
votes
6answers
346 views
Can anyone recommend a test to give to someone that tests their python abilities?
We are in the process of hiring a developer and we are looking for suggestions for a online test that evaluates a candidate's python skills. We are not looking for this test to tell us who is the ...
-3
votes
0answers
99 views
Ruby or Python examples of code to learn web technologies from scratch [closed]
I would like to reach two goals:
Learn a dynamic language - Python or Ruby.
Learn web programming from scratch - by creating own pet web server, own small web framework, REST maybe Comet.
I'd ...
-2
votes
0answers
83 views
Python Module of the Week (PyMOTW) is dead? [closed]
It has not been updated for more than a year, can you recommend a similar blog/website which covers Python's modules functionality in a similar manner.
-1
votes
2answers
135 views
How to exceed the expectations of an interviewer asking coding questions? [closed]
I'm going to try to get programming internship for the summer, and expect to be asked simple to medium level code questions during interviews (I'm not applying to anywhere like Google or Microsoft).
...
-1
votes
1answer
183 views
What's PHP problem, the language itself or the people using it? [closed]
I know that every popular language has its share of criticism (e.g., PHP, C++, Java, C, etc), but PHP tends to top the list. How come?
Some people suggest that the language itself makes it easier for ...
-1
votes
0answers
58 views
How to print ascii extended characters in python? [closed]
I'm taking about character 254 in this list: http://www.theasciicode.com.ar/ascii-table-codes/ascii-codes-254.html
How can I convert that into standard printable string in python?
Thank you very ...
-4
votes
1answer
124 views
What language for me to start with except those…? [closed]
Here's my 1st question:
If I wasn't born to be programming in c++ or any c-like language (including Java),
also I tried python and it's not so powerful so what is my best options to start ...
2
votes
0answers
70 views
Closest to “Mathematica Graphics[]" drawing environment for Python
Being only familiar with Mathematica and its Graphics, I have now to learn to draw Graphics using Python for a server.
Mostly conditional combination of simple shape.
What would be a package for ...
1
vote
1answer
91 views
Difference between Controller and Dispatcher in MVC for web frameworks?
In MVC applied to WSGI or Java EE, is the Servlet a controller, dispatcher, or both? I think I've seen system diagrams where the controller and the dispatcher are different. Could the controller ...
3
votes
1answer
148 views
From where did the symbols *args and **kwargs in Python originate?
I know that *args and **kwargs are ways to feed more arguments into a function in Python.
I am wondering where these terms stem from. Why have all the asterisks in the beginning? What does the kw in ...
7
votes
3answers
414 views
What is the name of ** in python?
When programming Python I sometimes do a ** to make a conversion. I understand what it does but what data structures am I manipulating? A dict and what is the other? An array? Is there a name for the ...
10
votes
6answers
629 views
Why use try … finally without a catch clause?
The classical way to program is with try / catch but when is it appropriate to use try without catch? In Python the following appears legal and can make sense:
try:
#do work
finally:
#do ...
5
votes
3answers
176 views
Various programming concepts (from a Python viewpoint)
Ever since I've started lurking on stackoverflow, I keep coming across programming concepts such as abstract classes, virtual functions, contracts, interfaces, etc., from a questions about other ...
-1
votes
1answer
141 views
What is the best programming language for TCP sockets on Linux? Perl, Python or PHP? [closed]
I am totally new to socket programming. Currently, I am working on a socket server-client TCP connection. My mentor introduced me to sockets in Perl. However, I am a PHP web developer, but know ...
5
votes
5answers
280 views
When and why should one create classes at runtime?
I have read many articles on the creation of dynamic types and classes at run time. For example, the TypeBuilder class in C# lets one create dynamic types. Python has this type function by which one ...
2
votes
1answer
187 views
Starting a new project in python and qt. Where can I find a good code layout for build scaffolding?
I am in the process of starting a new project with python and Qt. The project starts from zero, and it may become a commercial application. While the programming of the code in itself is a task, ...
7
votes
9answers
560 views
Omitting inheritance in programming languages
I am developing my own programming language. It's a general purpose language (think staticlly typed Python for the desktop, i.e. int x = 1; ) not intended for the cloud.
Do you think it's okay not ...
1
vote
7answers
374 views
What is the best offline reference for Python? [closed]
I'm learning Python on a computer with no access to the internet, I have the Python documentation on it but it lacks in several ways (no good introduction to threading, no examples on how to use the ...
26
votes
12answers
1k views
How is Python used in the real world?
I'm looking to get a job as a Python programmer. I know the basics of the language and have created a few games with it using pygame. I've also started to experiment with Django.
However, looking at ...
1
vote
2answers
169 views
How far is the trail from Java to C / C++? [closed]
I want to find out how easy or hard the transition to C / C++ is for a mid-experienced Java programmer.
I've already read the questions about "C++ for Java Programmers" and "Is it necessary for Java ...
3
votes
2answers
410 views
How do I encrypt the source code on the webserver?
I have a web application developed using Python, HTML, CSS & JavaScript.
The customer installs it in any of their own Machine and uses it through their LAN.
In short the customer sets up the ...
1
vote
0answers
86 views
Interactive Tutorial for Learning Python [closed]
Possible Duplicate:
Resource to start with Python quickly?
Ruby Koans is a great interactive tutorial for learning Ruby, which you can download at rubykoans.com.
Is there any similar ...