|
How do I uninstall Python packages that have been built from source and installed via...
python setup.py build python setup.py install
?
Answer Snippets (Read the full thread at serverfault):
I'm not sure where it is on Ubuntu but it is probably something like:
/usr/lib/python2.4/site-packages
but it could be in lib64 if you have a 64bit install and the python version might uninstall method then, more often....
Folder of python.
|
|
In the python built-in open function, what is the exact difference between the modes w, a, w+, a+?
Started by flybywire on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
The options are the same as for the fopen function in the C standard library:
w truncates the file, overwriting whatever was already there
a appends to... .
This is a reference.
The opening modes are exacltly the same that C fopen() std library function .
|
|
Hi! What algorithm is the built in sort() method in python using? Is it possible to have a look at the code for that method?
Thanks =)
Started by Johannes on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
(Yes, the algorithm is basically.
However explanation of Python's timsort (with graph visualizations!).
In early python-versions, the sort function implemented an modified version of quicksort.
|
Ask your Facebook Friends
|
I need to update data to a mssql 2005 database so I have decided to use adodbapi, which is supposed to come built into the standard installation of python 2.1.1 and greater.
It needs pywin32 to work correctly and the open office python 2.3 installation...
Started by Setori on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
I suggest trying the standard windows python installation\python-core-2.3.4\lib\site-packages....
Http://www.time-travellers.org/shane/howtos/MS-SQL-Express-Python-HOWTO.html
use an alternative?
I don't know about open office python.
|
|
RDFLib needs C extensions to be compiled to install on ActiveState Python 2.5; as far as I can tell, there's no binary installer anywhere obvious on the web. On attempting to install with python setup.py install , it produces the following message:
error...
Started by ConcernedOfTunbridgeWells on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
The main problem is C run....
Searching the web did use ActiveState Python, but is there a newer version you could use? The source ships with project.
In the inverse situation (Python built with VS2005, trying to build with VS2003).
|
|
The topic title pretty much says it all. Does anyone know how the built in dictionary type for python is implemented? My understanding is that it is some sort of hash table, but I haven't been able to find any sort of definitive answer.
Answer Snippets (Read the full thread at stackoverflow):
Pure Python a Python implementation using....
Otherwise, the code is well "Python's Dictionary Implementation Being All Things to All People" by Andrew Kuchling .
You can read about it some in the python wiki .
It is a hash table.
|
|
Hi,
I would like to know if the python built-in container (list, vector, set...) are thread-safe ? Or do I need to implement a locking/unlocking environment for my shared variable.
Thanks in advance
Started by Phong on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
You don't have this, but locking is very easy in Python - create a threading.lock object, and then you can acquire stuff (the lock is released when ....
To implement your own locking for all shared variables that will be modified in Python.
|
|
How do you explicitly access name in Python's built in scope?
One situation where I ran in to this was a in module, say called foo, which happened to have an open function. In another module foo's open function would be accessible as foo.open which works...
Started by amjoconn on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
<function open at 0x011E8670>
<built.
Gives you ...
Print open print __builtin__.open
...
|
|
I'm writing a Python program with a lot of file access. It's running surprisingly slowly, so I used cProfile to find out what was taking the time.
It seems there's a lot of time spent in what Python is reporting as "{built-in method acquire}". I have ...
Started by Chris B. on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Sorry I don't use python but that's how it is for me.
From within that method--that might help.
|
|
Dear Stackoverflow Readers,
I wanted to know
Python is suited for what kind of applications?
I am new to Python world but I know it's a scripting language like Perl but I was not sure about the kind of applications which one would build using Python and...
Started by Rachel on
, 8 posts
by 8 people.
Answer Snippets (Read the full thread at stackoverflow):
It's hard to think of kinds of general applications where Python would be unsuitable, but there are several kinds where modern languages (including....
See here for an example
Bittorrent was built on Python.
Could be built with it.
|