de.comp.lang.python
  Home FAQ Contact Sign in
de.comp.lang.python only
 
Advanced search
January 2008
motuwethfrsasuw
 123456 1
78910111213 2
14151617181920 3
21222324252627 4
28293031    5
2008
 Jan   Feb   Mar   Apr 
 May   Jun   Jul   Aug 
 Sep   Oct   Nov   Dec 
2008 2007 2006  
total
de.comp.lang.python Profile…
RELATED GROUPS

POPULAR GROUPS

more...

 Up
  Löschen von versteckten Dateien ...         


Author: Konrad Mühler
Date: Jan 30, 2008 00:18

Hi,

ich würde gerne mit shutil.rmtree einen ganzen Verzeichnisbaum löschen.
Das geht auch fast.
Allein versteckte Dateien wie beispielsweise die Folder vom svn (.svn)
bleiben bestehen und werden nicht gelöscht.

Gibt es eine Möglichkeit in Python, wirklich alle Dateien und Folder in
einem Baum zu löschen?

Habt vielen Dank
Konrad
2 Comments
  Gnumeric/Ubuntu/Python Installationsproblem         


Author: Thomas Preymesser
Date: Jan 29, 2008 12:52

Hallo,

ich wollte (u.a.) gnumeric installieren und stoße dabei auf die
folgende Fehlermeldung, aus der ich nicht so ganz schlau werde:

Richte gnumeric ein (1.7.11-1ubuntu3) ...
Traceback (most recent call last):
File "/usr/sbin/gconf-schemas", line 8, in
import sys,os,os.path,shutil,tempfile
File "/usr/lib/python2.5/tempfile.py", line 33, in
from random import Random as _Random
File "/usr/lib/python2.5/random.py", line 43, in
from math import log as _log, exp as _exp, pi as _pi, e as _e,
ceil as _ceil
ImportError: No module named math
dpkg: Fehler beim Bearbeiten von gnumeric (--configure):
Unterprozess post-installation script gab den Fehlerwert 1 zurück
Fehler traten auf beim Bearbeiten von:
gnumeric
E: Sub-process /usr/bin/dpkg returned an error code (1)
Show full article (1.15Kb)
6 Comments
  UnicodeDecodeError: Mal ja, mal nein         


Author: Michael Schmarck
Date: Jan 28, 2008 13:15

Hallo.

Ich habe hier ein Python Programm, welches die f-spot photos.db per
pysqlite einliest und dann "entsprechendes" macht. Rufe ich das Programm
auf einem Debian Server auf, so erhalte ich folgende Fehlermeldung:

DEBUG:cherrypy.error.4147713484:[28/Jan/2008:21:54:57] getting thumbnail for 3627: filename=/home/Ausflüge/Mainau.jpg, version=None
DEBUG:cherrypy.error.4147713484:[28/Jan/2008:21:54:57] HTTP Traceback...
Show full article (2.46Kb)
14 Comments
  Import von cvs Files         


Author: Frank Knappe
Date: Jan 27, 2008 16:02

Hallo!

Meine bisherige Wahl zur Auswertung von Messdaten war/ist bisher Matlab.
Im Unterschied zur Uni sind jedoch die Anzahl der verfuegbaren Lizenzen
stark begrenzt. Da die Auswertungen relativ einfach sind (und um auch was
Neues zu probieren) wollte ich mal Python (mit Scipy und Numpy)
ausprobieren. Im Moment scheitere ich jedoch schon am Einlesen der Daten.

Die Messdaten sind meistens einfache ACSII Files mit unterschiedlichen
Trennzeichen und Kommentaren.

Versucht habe ich bisher folgendes:
import csv
records = csv.reader(open("test3.txt", "rb"))
a = [record[0] for record in records]
print a

Funktioniert auch.
Ein nun folgendes
b = [record[1] for record in records]
liefert mir jedoch nicht die zweite Spalte.
Show full article (1.25Kb)
4 Comments
  PEP8: var is None vs. var==None         


Author: Thomas Guettler
Date: Jan 24, 2008 00:41

Hallo,

ich habe gerade den Python Style Guide gelesen:
http://www.python.org/dev/peps/pep-0008/

'''- Comparisons to singletons like None should always be done with
'is' or 'is not', never the equality operators.
'''

Ich verwende seit Jahren 'var==None'. Warum sollte man
lieber 'var is None' nehmen?

Thomas
1 Comment
  Berliner Python Treffen am 23.1.         


Author: Stephan Diehl
Date: Jan 21, 2008 09:31

Wir treffen uns wieder am 23.1. um 19 Uhr im newthinking store.
Einzelheiten koennt ihr http://wiki.python.de/User_Group_Berlin entnehmen.

Bis (hoffentlich) Mittwoch

Stephan
no comments
  [ANN] Python FTP Server Library 0.3.0 released         


Author: Giampaolo Rodola'
Date: Jan 18, 2008 04:03

Hi,
I'm pleased to announce release 0.3.0 of Python FTP Server library
(pyftpdlib).
http://code.google.com/p/pyftpdlib/

=== About ===

Python FTP server library provides an high-level portable interface to
easily write asynchronous FTP servers with Python.
Based on asyncore framework pyftpdlib is currently the most complete
RFC959 FTP server implementation available for Python programming
language.

=== Major changes ===

- Implemented more recent FTP commands like MLST, MLSD, FEAT and
OPTS.
- Iterators are now used for calculating requests requiring long time
to complete (LIST and MLSD commands).
- Extended the set of assignable user permissions.

A complete list of changes including enhancements, bug fixes and
instructions for porting old code is available here:
http://code.google.com/p/pyftpdlib/wiki/ReleaseNotes03
Show full article (1.27Kb)
no comments
  [ANN] Python FTP Server Library 0.3.0 released         


Author: Giampaolo Rodola'
Date: Jan 18, 2008 03:46

Hi,
I'm pleased to announce release 0.3.0 of Python FTP Server library
(pyftpdlib).
http://code.google.com/p/pyftpdlib/

=== About ===

Python FTP server library provides an high-level portable interface to
easily write asynchronous FTP servers with Python.
Based on asyncore framework pyftpdlib is currently the most complete
RFC959 FTP server implementation available for Python programming
language.

=== Major changes ===

- Implemented more recent FTP commands like MLST, MLSD, FEAT and
OPTS.
- Iterators are now used for calculating requests requiring long time
to complete (LIST and MLSD commands).
- Extended the set of assignable user permissions.

A complete list of changes including enhancements, bug fixes and
instructions for porting old code is available here:
http://code.google.com/p/pyftpdlib/wiki/ReleaseNotes03
Show full article (1.27Kb)
no comments
  PyQt Signal & Slots         


Author: Martin Gysel
Date: Jan 16, 2008 02:10

Hallo

Ich beschäftige mich seit kurzem mit python und pyqt. in meiner
applikation will ich mehrere threads einsetzten, welche in einer kette
zusammengeschalten sind.

thread0(daten erfassen) -> thread1 -> thread2 -> ... -> threadX -> gui

empfiehlt es sich hier die daten mittels signal&slot durch die einzelnen
threads zu schleussen oder ist es besser dass ganze mit mehreren fifo
queues zu lösen oder gibts es da noch elegantere methoden?
sind signal/slot überhaupt effizient für datenaustausch (nicht nur
click'event) zwischen einzelnen threads?

danke

g
martin
1 Comment
  Unicode, utf-8 und keine Ahnung...         


Author: christian
Date: Jan 11, 2008 16:07

Hallo Liste,

bin erst vor einer Woche zu Python gekommen.

Da ich aber gewachsenen Systeme übernehmen soll, muss es sein, mir
Python anzueignen.

mein Problem:
ich muss aus einer csv-datei eine xml-datei erzeugen. das klappt auch.
was allerdings nicht klappt ist, dass in der csv-datei werte mit ä, ö, ß
enthalten sind.

nachdem ich die daten ausgelesen habe und in eine datei schreibe, sind
ä,ö usw. verunstalltet.

wenn ich dann mit encode("utf-8") auf das gewünschte ergebnis zu kommen
versuch, bekomm ich als fehlermeldung, dass ascii das nicht kann. ???

ich verwende Python25 unter Windows2000.

danke im voraus und
schönes Wochenende,

Christian
1 Comment
1 2