Re: how to present Python's OO feature in design?

2005-11-12 Thread Florian Diesch
Ben Sizer <[EMAIL PROTECTED]> wrote: > I don't know if there are any tools that convert UML to Python code, dia2code Floriaa -- Einen Troll zu füttern ist das gleiche als würde man einen Haufen Hundescheisse sehen, absichtlich reinsteigen und sich dann besch

Re: Rename files with numbers

2005-11-13 Thread Florian Diesch
[EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Ok, so the function simplifyed without loops: > > def renamer(folder, band): > archive = #file to transform > rest = archive[3:] > print band + " -",rest.capitalize() > > > obs: the file names came this way(with spaces or apostrophes)

Re: Python, Linux, Desktop Environment

2005-11-17 Thread Florian Diesch
[EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > So, I've written my first GUI app in python. I've turned it into a > binary .exe and .app that runs on Windows and Mac respectively, but on > my Linux box, where I wrote the thing, I still have to drop to the > command line and ./myscript.py. What ca

Re: New WYSIWYG Python IDE in the works

2005-06-19 Thread Florian Diesch
McBooCzech <[EMAIL PROTECTED]> wrote: > sorry for bothering you with my comment. From my point of view, the > situation on the IDE (GUI??) development field for Python is really > strange. Just try to imagine the same situation around the Python. > Plenty of different approaches, versions, philosop

Re: latex/bibtex python paper?

2005-07-07 Thread Florian Diesch
[EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Does anyone have a good template that I might use for writing a python > paper in latex/bibtex? I've got the paper mostly done, but am having > issues with the references. I am definitely not an expert at > latex/bibtex. Right now, I have references

Re: computer algebra packages

2005-07-11 Thread Florian Diesch
François Pinard <[EMAIL PROTECTED]> wrote: >> > Mascyma is (trying to be) a user-friendly graphical frontend for >> > the Computer Algebra System GNU MAXIMA. > >> I was not successful googling for this one. Would you have an URL handy? > > Oops, OK! Found it at http://cens.ioc.ee/~pearu/misc/m

Re: Replacing last comma in 'C1, C2, C3' with 'and' so that it reads 'C1, C2 and C3'

2005-07-13 Thread Florian Diesch
Ric Da Force <[EMAIL PROTECTED]> wrote: > I have a string such as 'C1, C2, C3'. Without assuming that each bit of > text is of fixed size, what is the easiest way to change this list so that > it reads: > 'C1, C2 and C3' regardless of the length of the string. >>> import re >>> data = "the fir

Re: OO design

2005-07-20 Thread Florian Diesch
chris <[EMAIL PROTECTED]> wrote: > I've been scripting with python for a while now. Basically writing a few > functions and running in the ipython shell. That's been very useful. But the > more I do this the more I see that I'm doing more or less the same thing > over and over again. So its feels l

Re: Python IDE

2005-07-20 Thread Florian Diesch
linuxfreak <[EMAIL PROTECTED]> wrote: >Got going with python...and i must say its a pretty cool language. > Been using Xemacs to write me programs. But I want an IDE that would I'm using GNU emacs > give me auto-completion, Read the manual about tags and abbrevs Emacs Language Sensitive Edi

Re: wxPythin installation woes

2005-07-22 Thread Florian Diesch
linuxfreak <[EMAIL PROTECTED]> wrote: > > Sybren Stuvel wrote: >> linuxfreak enlightened us with: >> > Turns out that libstdc++.so.5 is needed but I checked and i see >> > that libstdc++.so.6 is installed on my system. >> >> On my system (Ubuntu, based on Debian), I can have multiple versions >> o

Re: Emacs skeletons

2005-07-27 Thread Florian Diesch
Michael Hoffman <[EMAIL PROTECTED]> wrote: > Does anyone have any Emacs skeletons they find useful for Python? I > Googled a little but didn't find anything enticing. I already have a > script that sets up script/module templates, so those aren't all that > useful. else-mode

Re: Spreadsheet with Python scripting and database interface?

2005-08-11 Thread Florian Diesch
Wolfgang Keller <[EMAIL PROTECTED]> wrote: > I'm looking for a spreadsheet application (MacOS X prefered, but > Windows, Linux ar available as well) with support for Python scripting > (third-party "plug-ins" are ok) and a database interface. > > Applications that I know of (that they exist) are: >

Re: graphical or flow charting design aid for python class development?

2005-09-01 Thread Florian Diesch
William Gill <[EMAIL PROTECTED]> wrote: > Being somewhat new to Python, and having a tendency to over complicate > things in my class design, I was wondering if anyone can suggest a > simple graphical or flowcharting tool that they use to organize their > class and program design? Because of a

Re: PYTHONDOCS

2006-01-09 Thread Florian Diesch
J. D. Leach <[EMAIL PROTECTED]> wrote: > Peter Otten wrote: > >> >> You are getting no match rather than the wrong one. Have you verified that >> a subdirectory >> >> /usr/share/doc/python-2.4/html/lib >> >> exists on your system? If not, the documentation may not be properly >> installed. > > I

Re: People's names (was Re: sqlite3 error)

2006-10-17 Thread Florian Diesch
"Hendrik van Rooyen" <[EMAIL PROTECTED]> wrote: > "Lawrence D'Oliveiro" <[EMAIL PROTECTED]> wrote: > > >> In message <[EMAIL PROTECTED]>, Hendrik van >> Rooyen wrote: >> >> > "Lawrence D'Oliveiro" <[EMAIL PROTECTED]> wrote: >> > >> > 8< >> >

Re: Python tools for managing static websites?

2006-11-04 Thread Florian Diesch
"Chris Pearl" <[EMAIL PROTECTED]> wrote: > Are there Python tools to help webmasters manage static websites? > > I'm talking about regenerating an entire static website - all the HTML > files in their appropriate directories and sub-directories. Each page > has some fixed parts (navigation menu, h

Re: How to choose the right GUI toolkit ?

2006-11-11 Thread Florian Diesch
"Dan Lenski" <[EMAIL PROTECTED]> wrote: > So, is there another toolkit I should be looking at? Having something > that can run easily on Cygwin and native Windows is a priority so that > I can quickly move programs to new measurement computers. I like GTK a > lot and Tk is growing on me too.. ar

Re: ideas for programs?

2006-06-04 Thread Florian Diesch
Brandon McGinty <[EMAIL PROTECTED]> wrote: > I've been learning python for the past couple of months and writing > misc scripts here and there, along with some web apps. > I'm wondering if anyone has ideas of programs I might try my hand at making? Something I wanted a few days ago: I have a gra

Re: alternate language

2006-12-15 Thread Florian Diesch
Bryan <[EMAIL PROTECTED]> wrote: > what is a good alternate language to learn? i just want something to > expand my mind and hopefully reduce or delay any chance of > alzheimer's. i would especially like to hear from those of you who > learned python _before_ these languages. > > haskell, erlang,

Re: Python re expr from Perl to Python

2007-01-07 Thread Florian Diesch
"Michael M." <[EMAIL PROTECTED]> wrote: > In Perl, it was: > > > ## Example: "Abc | def | ghi | jkl" > ## -> "Abc ghi jkl" > ## Take only the text betewwn the 2nd pipe (=cut the text in the 1st > pipe). > $na =~ s/\ \|(.*?)\ \|(.*?)\ \|/$2/g; > > ## -- remove [ and ] in text > $n

Re: OS.MKDIR( ) Overwriting previous folder created...

2006-02-04 Thread Florian Diesch
Ernesto <[EMAIL PROTECTED]> wrote: > NEVERMIND ! Here is the solution... > > # > if (os.path.isdir("C:\\MyNewFolder") == 0): > os.mkdir("C:\\MyNewFolder") > # - M

Re: Too Many if Statements?

2006-02-09 Thread Florian Diesch
Alan Morgan <[EMAIL PROTECTED]> wrote: > In article <[EMAIL PROTECTED]>, > Bryan Olson <[EMAIL PROTECTED]> wrote: >>Alan Morgan wrote: >>> slogging_away wrote: >>> Hi - I'm running Python 2.4.2 (#67, Sep 28 2005, 12:41:11) [MSC v.1310 32 bit (Intel)] on win32, and have a script that makes

Re: Printing a file

2006-03-03 Thread Florian Diesch
Fabian Steiner <[EMAIL PROTECTED]> wrote: > I am currently working on an application where the user is able to > create new worksheets and to delete existing ones. All of these > worksheets have the same structure (--> template?), only some values > should be changed. A minimal example would be

Re: computer algebra packages

2005-06-09 Thread Florian Diesch
Rahul <[EMAIL PROTECTED]> wrote: > Well is there an open source computer algebra system written in python > or at least having a python interface? > I know of 2 efforts: pythonica and pyginac...are there any others? Probably this is usable for you (I never used any of them): Package: mascyma De

Re: How to overcome automatic cyrillic-to-/hex convert

2005-06-12 Thread Florian Diesch
<[EMAIL PROTECTED]> <[EMAIL PROTECTED]> wrote: > But when I enter some Bulgarian (actually cyrillic) text as a string, > it > seems that Python automatically converts it to '\x00..\x00 ' and once > converted that way I can't get it back into its original look. The only > way to get it right is usin

Re: Distinguishing attributes and methods

2007-12-11 Thread Florian Diesch
MonkeeSage <[EMAIL PROTECTED]> wrote: > It seems that I've got a short-circuit somewhere here. I understand > that everything is an object and the the storage/lookup system is > object-agnostic, and that it is only the descriptors (or "tags" as I > called them generically) that determine how an at

Re: Best way to protect my new commercial software.

2007-12-12 Thread Florian Diesch
farsheed <[EMAIL PROTECTED]> wrote: > Thanks. But I ask this question technically, I mean I know nothing is > uncrackable and popular softwares are not well protected. But my > software is not that type and I don't want this specific software > popular. > It is some kind of in house tool and I wan

Re: Problem untaring python2.5

2007-12-20 Thread Florian Diesch
abhishek <[EMAIL PROTECTED]> wrote: > Hi everyone , i am not able to untar python 2.5 source code using " > tar -xvzf " . Is it a problem with my system settings or python 2.5 > itself. > > When i tried to do it it resulted in following errors -- > > tar: Skipping to next header > Python-2.5/Mac/R

Re: pydoc - how to generate documentation for an entire package?

2007-12-20 Thread Florian Diesch
kirillrd <[EMAIL PROTECTED]> wrote: > On Nov 20, 4:28 pm, Jens <[EMAIL PROTECTED]> wrote: >> On 20 Nov., 08:19, Marc 'BlackJack' Rintsch <[EMAIL PROTECTED]> wrote: >> >> > On Mon, 19 Nov 2007 10:50:28 -0800, Jens wrote: >> > > Generating documentation form code is a nice thing, but this pydoc.py >

Re: exception message output problem

2007-12-23 Thread Florian Diesch
Lie <[EMAIL PROTECTED]> wrote: > # Python have an odd (read: broken) singleton implementation > # single member tuple must have a comma behind it Otherwise (1+2)+(3+4) would evaluate to (3, 7) instead of 10. Florian --

Re: Hooking things up in GUI application

2006-04-29 Thread Florian Diesch
"Ryan Ginstrom" <[EMAIL PROTECTED]> wrote: >> Behalf Of sturlamolden >> If you use PyGTK (it also runs on Windows), you can design >> the GUI with >> GLADE and then use libglade to import the gui as an xml-resource. > > Yes, I've tried something similar with wxGlade. Nice, but it doesn't seem to

Re: python rounding problem.

2006-05-13 Thread Florian Diesch
"Thomas Bartkus" <[EMAIL PROTECTED]> wrote: > "Grant Edwards" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] >> On 2006-05-08, Thomas Bartkus <[EMAIL PROTECTED]> wrote: >> >> >> does python support true rations, which means that 1/3 is a >> >> true one-third and not 0.3 roun

Re: Python - Web Display Technology

2006-05-19 Thread Florian Diesch
bruno at modulix <[EMAIL PROTECTED]> wrote: > SamFeltus wrote: >> I am trying to figure out why so little web development in Python uses >> Flash as a display technology. It seems most Python applications >> choose HTML/CSS/JS as the display technology, yet Flash is a far more >> powerful and ele

Re: where do my python files go in linux?

2008-01-13 Thread Florian Diesch
"Jorgen Bodde" <[EMAIL PROTECTED]> wrote: > I am trying to make a debian package. I am following the tutorial by > Horst Jens > (http://showmedo.com/videos/video?name=linuxJensMakingDeb&fromSeriesID=37) > and it is very informative. However one thing my app has and his > doesn't, is multiple pyth

Re: Linux Journal Survey

2008-02-04 Thread Florian Diesch
Albert van der Horst <[EMAIL PROTECTED]> wrote: > In article <[EMAIL PROTECTED]>, > Russ P. <[EMAIL PROTECTED]> wrote: >>On Jan 23, 7:42 pm, George Sakkis <[EMAIL PROTECTED]> wrote: >>> On Jan 23, 8:14 pm, [EMAIL PROTECTED] wrote: >>> >>> > The annual Linux Journal survey is online now for any Lin

Re: dream hardware

2008-02-13 Thread Florian Diesch
Jeff Schwab <[EMAIL PROTECTED]> wrote: >> On Feb 12, 2008 1:05 PM, <[EMAIL PROTECTED]> wrote: >>> What is dream hardware for the Python interpreter? > > Warren Myers wrote: >> A Cray? >> >> What are you trying to do? "dream" hardware is a very wide question. > > The only "dream hardware" I know o

Re: Where to get BeautifulSoup--www.crummy.com appears to be down.

2008-04-30 Thread Florian Diesch
John Nagle <[EMAIL PROTECTED]> wrote: >Perl has CPAN, which is reasonably comprehensive and presents modules > in a uniform way. If you need a common Perl module that's not in the > Perl distro, it's probably in CPAN. "Installing a new module can be as > simple as typing perl -MCPAN -e 'insta

Re: formating a filesystem with python

2008-09-11 Thread Florian Diesch
"Ricardo Tiago" <[EMAIL PROTECTED]> wrote: > is there a package in python that allows to mount/umount and format > (to ext3) a filesystem? I know that this is possible by just calling > the os commands 'mount/umount and mkfs' but this would imply to have > to change sudoers to run the script as no

Re: Type Hinting vs Type Checking and Preconditions

2006-03-10 Thread Florian Diesch
"Tom Bradford" <[EMAIL PROTECTED]> writes: > Let me first say that I'm sure that this subject has come up before, > and so forgive me for beating a dead horse. Secondly, let me say that > Python's strength is its dynamic nature, and I don't believe that it > should ever require a precondition sca

Re: UML from py sources

2006-03-24 Thread Florian Diesch
"Ravi Teja" <[EMAIL PROTECTED]> writes: > Not to interrupt the valuable lesson with Google :-) > Boa Constructor. dia and dia2code Florian -- Es gibt Leute, die von sich behaupten "wenn ich Kaffee trinke, kann ich nicht schlafen!". Bei mir ist das umgekehrt: Wenn ich schlafe, kann ich keine

Re: detecting drives for windows and linux

2006-03-27 Thread Florian Diesch
[EMAIL PROTECTED] (Alex Martelli) wrote: > Max <[EMAIL PROTECTED]> wrote: > >> BWill wrote: >> >> > oh, I wasn't expecting a single solution for both platforms, just some >> > good solutions >> > >> > thanks >> >> Are you aware that this idea is somewhat foreign to Linux? (Maybe you >> are and

Re: detecting drives for windows and linux

2006-03-29 Thread Florian Diesch
[EMAIL PROTECTED] (Alex Martelli) wrote: > Florian Diesch <[EMAIL PROTECTED]> wrote: >... >> >> are and want to do it anyway?) Linux puts the whole file system >> >> (including mounted iPods, ISOs and NTFS drives) in one hierarchy. >> > &g

Re: Scripting (was Re: Python books, literature etc)

2010-01-08 Thread Florian Diesch
Jorgen Grahn writes: > Regarding the book's title: is it just me, or are Python programmers > in general put off when people call it "scripting"? > > I won't attempt a strict definition of the term "scripting language", > but it seems like non-programmers use it to mean "less scary than what > yo

Re: restructuredText editor ?

2010-01-08 Thread Florian Diesch
Peter writes: > What editor do people out there use to edit .rst files for > sphinx-python documentation ? Emacs with ReST mode and YASnippet Florian -- -- http://mail.python.org/mailman/listinfo/python-list

Re: Sort list of dictionaries by key (case insensitive)

2010-01-13 Thread Florian Diesch
Nico Grubert writes: > Hi there > > I have the following list 'mylist' that contains some dictionaries: > > mylist = [{'title':'the Fog', 'id':1}, > {'title':'The Storm', 'id':2}, > {'title':'the bible', 'id':3}, > {'title':'The thunder', 'id':4} > ] > > How

Re: Rounding up to the next 100

2010-01-21 Thread Florian Diesch
noydb writes: > If one has a floating number as a string, is there a spiffy way to > round that string-number UP to the nearest 100? > > XstrNmbr = 3579.127893 -- would want to round that to 3600. math.ceil(3579.127893/100)*100 Florian -- GUIs programmieren mit Python und Glade:

Re: Distributing Python-programs to Ubuntu users

2009-09-25 Thread Florian Diesch
Ben Finney writes: > Olof Bjarnason writes: > >> - any geeks visiting my blog that are non-Ubuntu (i'll just provide >> the source code and tell them to apt-get python-pygame) > > Note that for several years now the recommended command-line tool for > package installation is not ‘apt-get’, but

Re: How to get live streaming of friends tweets??

2010-04-23 Thread Florian Diesch
has some explanations about how to use real-time stream API >"eka (Esteban)" writes: > > IMO the real time update is your work to do. > > You can poll, to say, each 1 minute or less

Re: ubuntu dist-packages

2009-08-26 Thread Florian Diesch
Robin Becker writes: > I was surprised a couple of days ago when trying to assist a colleage > with his python setup on a ubuntu 9.04 system. > > We built our c-extensions and manually copied them into place, but > site-packages wasn't there. It seems that ubuntu now wants stuff to go > into lib/

Re: ubuntu dist-packages

2009-08-27 Thread Florian Diesch
Robin Becker writes: > Florian Diesch wrote: > . >> >>>From /usr/lib/python2.6/site.py: >> >> , >> | For Debian and derivatives, this sys.path is augmented with directories >> | for packages distributed within the distribution. Local a