Re: Building Python (2.4.x) with Visual C++ 2005 Express Edition?

2006-05-06 Thread Vincent Wehren
ceforge.net/tracker/index.php?func=detail&aid=1350409&group_id=5470&atid=305470 which apparently has been applied to 2.5a2 - which started fine after building debug. Maybe this helps? Regards, Vincent Wehren -- http://mail.python.org/mailman/listinfo/python-list

Re: Getting .NET SDK to work with Python 2.4.2

2006-03-19 Thread Vincent Wehren
"Dave" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] | So this means that I have to download .NET 1.1 SDK. Visual Studio 8 | comes with msvcrt.lib, but im assuming it's the wrong version. | Yes, I'd say so. -- Vincent Wehren -- http://mail.python.o

Re: How to check if a directory is exist in python?

2006-03-19 Thread Vincent Wehren
"Vincent Wehren" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] | <[EMAIL PROTECTED]> wrote in message | news:[EMAIL PROTECTED] ||I check the documentation here, but it does not say how to check if a || directory is exist in python? || http://docs.python.or

Re: How to check if a directory is exist in python?

2006-03-19 Thread Vincent Wehren
rg/lib/module-os.path.html} | | And why mkdir fails if the directory already exists? If you prefer a "more friendly" approach you may wanna take a look at Trent Mick's _mkdir which is located at http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/82465 | Regards, Vincen

Re: Getting .NET SDK to work with Python 2.4.2

2006-03-19 Thread Vincent Wehren
extensions | with mingw32? | I used the free MS Visual C++ Toolkit 2003 successfully to compile extenstions before I had access to VS. There's a how to here: http://www.vrplumber.com/programming/mstoolkit/ Regards, Vincent Wehren -- http://mail.python.org/mailman/listinfo/python-list

Re: How do I tell if I'm running in the PyWin interpreter?

2006-01-28 Thread vincent wehren
ndle it | separately on initialization so I get a real raw input and not the | redefined Tkinter version. | import sys import os if os.path.basename(sys.executable) == 'Pythonwin.exe': #Pythonwin specific initialization else: #Other HTH, Vincent Wehren -- http://mail.python.org/mailman/listinfo/python-list

Re: python encoding bug?

2005-12-31 Thread Vincent Wehren
k the current UnicodeData.txt (on http://www.unicode.org/Public/UNIDATA/) you'll find: 009D;;Cc;0;BN;N;OPERATING SYSTEM COMMAND Regards, Vincent Wehren | | The same happens if I use 'latin-1' instead of 'iso8859_1'. | | This caught me by surprise, since I

Re: Guido working on Pypy?

2005-12-30 Thread Vincent Wehren
the same applies to Google. In addition, PyPy is not being developed "on behalf of the EU" but is subsidized by the EU. See http://codespeak.net/pypy/dist/pypy/doc/news.html for more info on PyPy." Regards, Vincent Wehren -- http://mail.python.org/mailman/listinfo/python-list

Re: what does 0 mean in MyApp(0)

2005-10-01 Thread vincent wehren
ames, make sure you you position them correctly, i.e., a filename should only be positioned as /second/ argument. HTH, -- Vincent Wehren | Alex | -- http://mail.python.org/mailman/listinfo/python-list

Re: what does 0 mean in MyApp(0)

2005-09-30 Thread vincent wehren
,640)) |frame.Show(true) |self.SetTopWindow(frame) |return true | | app = MyApp(0) | app.MainLoop() | | Everything is explained nicely except the zero parameter in MyApp(0). | Anybody knows what that zero refers to? See: http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/334

Re: PyEphem on winXP

2005-09-21 Thread vincent wehren
1, but is | this the same as Visual Studio 7.1? It should work. Did you follow the instructions as per http://www.vrplumber.com/programming/mstoolkit/ ? I've had success using that approach... HTH, -- Vincent Wehren | | If so, can Visual Studio 7.1 be obtained for free? | If not, is there a

Re: I am not able to setup pydb2 ! Any help !

2005-09-21 Thread vincent wehren
ed Windows Binaries for pydb2 (try Googling for them or the pyDB2 mailing list). HTH, -- Vincent Wehren -- http://mail.python.org/mailman/listinfo/python-list

Re: I am not able to setup pydb2 ! Any help !

2005-09-21 Thread vincent wehren
"vj" <[EMAIL PROTECTED]> schrieb im Newsbeitrag news:[EMAIL PROTECTED] |I am new to Python . Please let me where should I issue the command | "setup.py install". | | I have been using the IDLE to run Python scripts. You need to open the command prompt (e.g. by entering "cmd" in the "Run" input b

Re: I am not able to setup pydb2 ! Any help !

2005-09-21 Thread vincent wehren
2 ...] | or: setup.py --help-commands | or: setup.py cmd --help | | error: no commands supplied | >>> | | Please let me know , what should have been the issue. You need to say "setup.py install" instead of just setup.py HTH, -- Vincent Wehren | | Thanks in advance. | | Vj | -- http://mail.python.org/mailman/listinfo/python-list

Re: Problems with Python for Windows extensions

2005-09-03 Thread vincent wehren
t know if it is just a typo, but make sure you follow the rules of backslash literals in path names. In other words: "K:\Development\Fabricbase\prod\Test.doc" should read either r"K:\Development\Fabricbase\prod\Test.doc" (note the leading r for raw string or &quo

Re: zlib + Windows 32 service problem (ImportError)

2005-08-16 Thread vincent wehren
"Laszlo Zsolt Nagy" <[EMAIL PROTECTED]> schrieb im Newsbeitrag news:[EMAIL PROTECTED] | vincent wehren wrote: | | >"Laszlo Zsolt Nagy" <[EMAIL PROTECTED]> schrieb im Newsbeitrag | >news:[EMAIL PROTECTED] | >| Sorry, I realized that the import zlib was no

Re: zlib + Windows 32 service problem (ImportError)

2005-08-15 Thread vincent wehren
not a Python extension* is in sys.path *before* zlib.pyd. Python will try to import this zlib.dll and find the dll doesn't export a initzlib: for more info see http://mail.python.org/pipermail/python-list/2004-October/thread.html#248107 HTH, Vincent Wehren -- http://mail.python.org/mailman/listinfo/python-list

Re: py2exe windows apps path question

2005-08-02 Thread vincent wehren
"Gregory Piñero" <[EMAIL PROTECTED]> schrieb im Newsbeitrag news:[EMAIL PROTECTED] > If you need something that works both on a frozen app as well as an > (unfrozen) python > script, you'd be better off using something like: > >> def getAppPrefix(): >> """Return the location the app is runnin

Re: py2exe windows apps path question

2005-08-02 Thread vincent wehren
"Grant Edwards" <[EMAIL PROTECTED]> schrieb im Newsbeitrag news:[EMAIL PROTECTED] | On 2005-08-02, vincent wehren <[EMAIL PROTECTED]> wrote: | > | > "Grant Edwards" <[EMAIL PROTECTED]> schrieb im Newsbeitrag | > news:[EMAIL PROTECTED] | >|I have s

Re: py2exe windows apps path question

2005-08-02 Thread vincent wehren
ys.executable)[0] else: appPrefix = os.path.split(os.path.abspath(sys.argv[0]))[0] return appPrefix Now you can use the return value of getAppPrefix() everywhere you need to calculate paths relative to your app, regardless if it involves a regular script or py2exe'ified one.

Re: py2exe windows apps path question

2005-08-02 Thread vincent wehren
dll's they use from the install | directory. AFAIK, Windows normally *does* search the directory where the executable module for the current process lives in for dlls. What sort of dlls are given you trouble? -- Vincent Wehren | | Is there some way to temporarily add the app's i

Re: Running Python scripts under W2K with I/O redirection

2005-06-25 Thread vincent wehren
voked by Windows in my problem situation rather than an inherent | fault within Python itself. Your suspicion is correct see: http://support.microsoft.com/default.aspx?kbid=321788 -- Vincent Wehren | | Does anyone have any idea what the problem could be and how to fix it? | I know its a rea

Re: tab 2 into tab 4 ?

2005-06-19 Thread vincent wehren
<[EMAIL PROTECTED]> schrieb im Newsbeitrag news:[EMAIL PROTECTED] | Hello, | | I have python code which use tab=2. Recently I would like to change it | into tab=4. | | Anyone has suggestion to convert easily and safely ? Look at "reindent.py" in Tools\Scripts. -- Vincent W

Re: How to get/set class attributes in Python

2005-06-12 Thread vincent wehren
27;m sure you know that has become a no-no in Python 2.4+ ;) >>> None = 1 SyntaxError: assignment to None >>> -- Vincent Wehren -- http://mail.python.org/mailman/listinfo/python-list

Re: DB API 2.0 and transactions

2005-06-07 Thread vincent wehren
languages" *must* be doing something wrong! ;) ( Auto-commit set to "on" perhaps? ) Regards, - Vincent Wehren | -- http://mail.python.org/mailman/listinfo/python-list

Re: Python Exercises for Newbee

2005-05-30 Thread vincent wehren
ndows admin, you may also be interested in looking at Tim Golden's Python Stuff: http://tgolden.sc.sabren.com/python/index.html Enjoy! -- Vincent Wehren | | I appreciate if any one can give me such exersices or any link for the | same. | | | Thank You , | Kanthi Kiran | -- http://ma

Re: need help of RE

2005-05-29 Thread vincent wehren
(Word2|woRd3)" parts = re.split('\W+', s) print [p for p in parts if p] -- Vincent Wehren -- http://mail.python.org/mailman/listinfo/python-list

Re: Problem redirecting stdin on Windows

2005-05-25 Thread vincent wehren
list/2004-August/024920.html -- Vincent Wehren -- http://mail.python.org/mailman/listinfo/python-list

Re: install python 2.4.1

2005-05-22 Thread vincent wehren
) or komodo ide ? Don't know.. -- Vincent Wehren | | | pujo | -- http://mail.python.org/mailman/listinfo/python-list

Re: Is Python suitable for a huge, enterprise size app?

2005-05-18 Thread vincent wehren
application are properties that need to be matched the language(s) of choice, as well. Again, here Python is a more than serious contender. Regards, -- Vincent Wehren | The big attraction to me is the developer productivity. It seems that | if Python can handle it, then we could gain a

Re: iso_8859_1 mystery/tkinter

2005-05-18 Thread vincent wehren
port Tkinter root = Tkinter.Tk() t = Tkinter.Text() t.pack() t.insert(0.0, '%c' % 0xb0) root.mainloop() which shows a vertical bar in the Text widget. Changing: t.insert(0.0, '%c' % 0xb0) to t.insert(0.0, u'%c' % 0xb0) should do the trick though. -- Regards, Vincent Wehren | | Regards, | Martin | -- http://mail.python.org/mailman/listinfo/python-list

Re: Multiple "cmp"s chained one after another

2005-05-14 Thread vincent wehren
"Volker Grabsch" <[EMAIL PROTECTED]> schrieb im Newsbeitrag news:[EMAIL PROTECTED] | vincent wehren wrote: | > | > If you don't care about the year, why not just "normalize" the year | > to all be the same using the replace method of the date instance? |

Re: Multiple "cmp"s chained one after another

2005-05-14 Thread vincent wehren
"Volker Grabsch" <[EMAIL PROTECTED]> schrieb im Newsbeitrag news:[EMAIL PROTECTED] | Hello! | | Ich just found a very nice 'pythonic' solution for an often appearing | problem. I didn't find it documented anywhere, so I'm posting it here. | If this isn't new in any way, I'd really like to get to

Re: Proxy Design Advice Needed

2005-05-11 Thread vincent wehren
. > So, what do you think of this code and how should I improve it? > > Thanks a lot for your help! > > -Matthias This may be help: http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/366254 -- Vincent Wehren > > > Code (just copy and pasts and it should run): > &g

Re: computer unable to load _pysvn.pyc

2005-05-08 Thread vincent wehren
heck if the .dll has any dependencies that are not present on the host system (using depends.exe for example) -- i.e. function calls that are not supported. -- Vincent Wehren | note this is py2exe package made on a windows xp system | -- http://mail.python.org/mailman/listinfo/python-list

Re: a cx_Oracle ORA-01036 problem

2005-05-05 Thread vincent wehren
kd, INVOICE_DATE=datum_g, | PAYMENT_DEADLINE=datum_d, POINTS=bodovi) |c = db.cursor() |c.execute(SQL, **args) Shouldn't that be c.execute(SQL, args) (no **-unpacking of the dictionary)? -- Vincent Wehren | Same thing. | | Everything works If I use python string subst

Re: Looking for Example of wxFontEnumerator Use

2005-05-05 Thread vincent wehren
ou should. You can get your version from http://wxpython.org/download.php. Regards, -- Vincent Wehren | | Thanks, | | Weston | -- http://mail.python.org/mailman/listinfo/python-list

Re: trouble with lists

2005-05-03 Thread vincent wehren
same type as s). Note also that the copies are shallow; nested structures are not copied. This often haunts new Python programmers; consider: >>> lists = [[]] * 3 >>> lists [[], [], []] >>> lists[0].append(3) >>> lists [[3], [3], [3]]"""etc. -- Vincent Wehren -- http://mail.python.org/mailman/listinfo/python-list

Re: [Errno 9] Bad File Descriptor on Windows 2003 Server & Py 2.4.1

2005-05-03 Thread vincent wehren
at the rest of script: Try using either escaped backslashes as in: a = os.stat('C:\\WINDOWS\\System32\\config\\%s' %log) or a raw string (as long as it doesn't end with a single backslash) as in: a = os.stat(r'C:\WINDOWS\System32\config\%s' %log) or simply use forward sla

Re: using locales

2005-04-20 Thread vincent wehren
wrap the appropriate functions living in winnls.h (or the version of winnls.h contained in the platform SDK) - some of which may have already found there way into the Python for Win32 Extensions (GetDateFormat for example). Regards, -- Vincent Wehren | | Anyway, I'd love to have a

Re: Encoding Questions

2005-04-19 Thread vincent wehren
in any languages in | this way and return them when requested using utf-8 encoding? | | 3. Does python 2.4 support all encodings? See http://docs.python.org/lib/standard-encodings.html for an overview. | | By the way, I have set my default encoding in Python to utf8. | Why would you want to do t

Re: String manipulation

2005-04-13 Thread vincent wehren
ions ord() and chr() -- Chapter 2.1 of the manual. >> s = 'x' >> c = ord(s) >> c 120 >> c+=1 >> s2 = chr(c) >> s2 'y' -- Vincent Wehren | | NG | -- http://mail.python.org/mailman/listinfo/python-list

Re: Doubt regarding sorting of a list specific field

2005-04-12 Thread vincent wehren
#x27;], [2234, 'name2']] # Or to sort by the name index print sortSeqOfSeqs(seq, 1) # prints [[1234, 'name1'], [2234, 'name2'], [1432, 'name3']] Is this what you we're looking for? -- Vincent Wehren | | with regards | Prabahar | | | | | |

Re: How to minimize the window

2005-04-12 Thread vincent wehren
m tray. You can take look at "Main.py" in the wx Demo. Look for "class DemoTaskBarIcon(wx.TaskBarIcon)" and how it is used in the "wxPythonDemo" class. | Is there any way to let the window have 4 attributes? | "." "_" "O " "x&qu

Re: help with wxPython and wxGrid

2005-04-10 Thread vincent wehren
not the best, but that how I got started | ;) -- any help owuld be appreciated | | Try: from wxPython.wx import * from wxPython.grid import * or import wx import wx.grid -- Vincent Wehren -- http://mail.python.org/mailman/listinfo/python-list

Re: How to detect windows shutdown

2005-04-07 Thread vincent wehren
you got, | > and the answer could well point directly to a cause that | > is different than you think it is.) | > | > -Peter Does this problem also occur when you "manually" exit the program (provided you have a function to do so)? If so, make sure you do something lik

Re: Performance issue

2005-04-02 Thread vincent wehren
ted(word.lower())) if sorted_word == sorted_anagram: found.append(word) if found: print "Anagrams of %s:" % anagram for w in found: print w else: print "No anagrams for %s" % anagram -- Vincent Wehren -- http://mail.python.org/mailman/listinfo/python-list

Re: AttributeError: ClassA instance has no attribute '__len__'

2005-03-30 Thread vincent wehren
digit', 'islower', 'isspace', 'istitle', 'isupper', 'join', 'ljust', 'lower', 'lstrip', 'replace', 'rfind', 'rindex', 'rjust', 'rsplit', 'rstrip', 'split', 'splitlines', 'startswith', 'strip', 'swapcase', 'title', 'translate', 'upper', 'zfill'] If you want len(self.y) to work, self.y must be an object that implements a __len__ method. In other words, your "ClassA" needs a __len__ method. A trivial example: class ClassA: def __init__(self, text): self.text = text def __len__(self): #return something useful return len(self.text) y = ClassA("Hello") print len(y) # prints 5 Regards, -- Vincent Wehren | | Thanks in advance | | Mack | -- http://mail.python.org/mailman/listinfo/python-list

Re: [Python-Dev] RELEASED Python 2.4.1, release candidate 1

2005-03-13 Thread Vincent Wehren
Martin v. Löwis wrote: Vincent Wehren wrote: is there a reason why msiexec iterates through what looks like all (?) files and directories in/under the destination directory? There is massive file I/O going on there (OK, by now you know I didn't de-install 2.4 before trying ;-)) which exp

Re: Tkinter WEIRDNESS or Python WEIRDNESS?

2005-03-11 Thread Vincent Wehren
#x27;global' statement, as in: >>> my_global = 1 >>> def some_func(): ...global my_global ...my_global += 1 >> some_func() >> my_global 2 -- Vincent Wehren -- http://mail.python.org/mailman/listinfo/python-list

Re: [Python-Dev] RELEASED Python 2.4.1, release candidate 1

2005-03-11 Thread Vincent Wehren
ns the 100% CPU usage and the time it takes for the Next button to respond. -- Vincent Wehren -- http://mail.python.org/mailman/listinfo/python-list

Re: determine directories with wildcard

2005-03-08 Thread Vincent Wehren
'c:/Python23\\Lib\\site-packages\\ZopeUndo', 'c:/Python23\\Lib\\site-packages\\_xmlplus', 'c:/Python24\\Lib\\site-packages\\ChartDirector', 'c:/Python24\\Lib\\site-packages\\elementtidy', 'c:/Python24\\Lib\\site-packages\\elementtree', 'c:/Python24\\Lib\\site-packages\\isapi', 'c:/Python24\\Lib\\site-packages\\py2exe', 'c:/Python24\\Lib\\site-packages\\pythonwin', 'c:/Python24\\Lib\\site-packages\\pywin32_system32', 'c:/Python24\\Lib\\site-packages\\win32', 'c:/Python24\\Lib\\site-packages\\win32com', 'c:/Python24\\Lib\\site-packages\\win32comext', 'c:/Python24\\Lib\\site-packages\\wx-2.5.3-msw-unicode'] -- Vincent Wehren -- http://mail.python.org/mailman/listinfo/python-list

Re: basic tkinter/Windows question

2005-02-22 Thread Vincent Wehren
te a shortcut to that file. The file will be opened using pythonw.exe instead of python.exe. -- Vincent Wehren Is there a simple way to do that? I didn't see anything in the Python docs about it. I suspect that this is really a dumb Windows question, but I avoid Windows whenever I can, so

Re: Chart Director?

2005-02-18 Thread Vincent Wehren
- 2.4, and the license generally encompasses all other language bindings, too (all being at version 4.0 except for the C++ version which is currently still at 3.04). Still, you should just try it for what you are planning to use it /for/ and see if it meets /your/ specific needs. -- Vincent Wehren

Re: How to I access the filename with TkFileDialog?

2005-02-17 Thread Vincent Wehren
d anyone help me? Thanks, Alex openfilename=tkFileDialog.askopenfilename(filetypes=[("all files", "*")]) -- Vincent Wehren -- http://mail.python.org/mailman/listinfo/python-list

Re: win2k multiple versions config question

2005-02-17 Thread Vincent Wehren
he OpenGL module uses 2.3, which should be correct, but maybe I'm reading it wrong. Can anybody set me on the right track here? When you enter "python" in the command line, does python 2.4 appear, or python 2.3? If it's 2.4, be explicit about wanting 2.3 and run the script li

Re: connecting to Sybase/MsSQL from python

2005-02-12 Thread vincent wehren
I'm guessing that I need sybase develop lib's but I > don't know where they are to be found. > > So is there a kind sole out there that can help with instructions on what > is > needed to get python talking to MsSQL. > > jOHN Use mxODBC? -- Vincent Wehren -- http://mail.python.org/mailman/listinfo/python-list

Re: Commerical graphing packages?

2005-02-12 Thread Vincent Wehren
all pretty straight-forward, well-documented, and the license fee is a bargain compared to other packages we've used in the past. What it is not suitable for is maybe allowing for 3d-views of data cubes - changeable on the fly. -- Vincent Wehren -- http://mail.python.org/mailman/listinfo/python-list

Re: Trouble with the encoding of os.getcwd() in Korean Windows

2005-02-09 Thread Vincent Wehren
e. Using "mbcs", which is short for "multi-byte character set", the conversions to and from Unicode (decode/encode) are internally handled by the corresponding win32 api functions. -- Vincent Wehren I thought it might be and so I surfed around (http://foundationsto

Re: Multiple constructors

2005-02-06 Thread vincent wehren
Reinhold Birkenfeld wrote: vincent wehren wrote: Philip Smith wrote: Call this a C++ programmers hang-up if you like. I don't seem to be able to define multiple versions of __init__ in my matrix class (ie to initialise either from a list of values or from 2 dimensions (rows/columns)). Ev

Re: Word for a non-iterator iterable?

2005-02-06 Thread vincent wehren
ng the sequence protocol, so it's not quite right. How about 'reiterable'? -- Vincent Wehren -- http://mail.python.org/mailman/listinfo/python-list

Re: Multiple constructors

2005-02-06 Thread vincent wehren
omList(seq) etc.. Regards -- Vincent Wehren Thanks Phil -- http://mail.python.org/mailman/listinfo/python-list

Re: Printing Filenames with non-Ascii-Characters

2005-02-03 Thread vincent wehren
characters to the output, Python at least let's you respond to conversion problems/errors. All in all I agree, however. That's good to hear ;) -- Vincent Wehren Ciao, MM -- http://mail.python.org/mailman/listinfo/python-list

Re: Generating .pyc/.pyo from a make file

2005-02-02 Thread vincent wehren
*.py? files contain the full pathname of the *.py they have been compiled from. Copying them to other path locations will give you the wrong __file___ information in tracebacks. -- Vincent Wehren -- http://mail.python.org/mailman/listinfo/python-list

Re: Printing Filenames with non-Ascii-Characters

2005-02-02 Thread vincent wehren
ow this all seems awkward at first, but Python's drive towards uncompromising explicitness pays off big time when you're dealing with multilingual data. -- Vincent Wehren -- http://mail.python.org/mailman/listinfo/python-list

Re: Printing Filenames with non-Ascii-Characters

2005-02-01 Thread vincent wehren
if you ever distribute them, programs relying on this setting may fail on other people's Python installations. -- Vincent Wehren I am running Python 2.3.4 on Windows XP and I want to run the program on Debian sarge later. Ciao, MM -- http://mail.python.org/mailman/listinfo/python-list

Re: tk global bindings

2005-01-29 Thread vincent wehren
vincent wehren wrote: Gabriel B. wrote: I'm starting to write a POS application UI's module. In Tk here are three levels of binding: instance binding, class binding, and application binding represented by the bind, bind_class, and bind_all methods. You're probably looking for t

Re: tk global bindings

2005-01-29 Thread vincent wehren
are three levels of binding: instance binding, class binding, and application binding represented by the bind, bind_class, and bind_all methods. You're probably looking for the the bind_all method, as in self.bind_all("", self.onSomeKey) HTH, -- Vincent Wehren Thanks, Gabrie

Re: Open Folder in Desktop

2005-01-25 Thread vincent wehren
lt.asp?url=/library/en-us/shellcc/platform/shell/reference/enums/csidl.asp -- Vincent Wehren Jimmy -- http://mail.python.org/mailman/listinfo/python-list

Re: snakespell and myspell

2005-01-25 Thread vincent wehren
vincent wehren wrote: Fuzzyman wrote: I'm looking to implement a plugin spell checker. I'm probably going to go with PyEnchant, as it looks to be the most promising currently maintained spell checker. What I would like to know about PyEnchant is how to handle non-ascii input. Thr

Re:snakespell and myspell

2005-01-25 Thread vincent wehren
quot; is? I just wondered if anyone knew what happened to snakespell and myspell. Don't know about that. But than there also is a pyrex-driven aspell binding at http://sourceforge.net/projects/uncpythontools Regards, -- Vincent Wehren Both seem to have dissapeared from the net. People have rep

Re: module for 'po' files

2005-01-25 Thread vincent wehren
Sara Fwd wrote: Hi all Is there a module for processing & handling '.po' files in python? Don't know exactly what you mean by "processing & handling". What do you want to do? -- Vincent Wehren __ Do you Yahoo!? Read onl

Re: how to find site-packages path (Michael Hoffman) - use distutils

2005-01-18 Thread vincent wehren
entirely. Also, you may want to consider using Inno Setup as deployment tool (if Windows is your target platform). Using distutils for a *.py-less installer seems pretty pointless. Regards, -- Vincent Wehren - pls go to philippecmartin.com/applications.html for my _small_ contributions :-)

Re: how to find site-packages path (Michael Hoffman) - use distutils

2005-01-17 Thread vincent wehren
ather this shoudl be easy enough) 2) copy already compiled (.pyc) and source (.py) files to those directories Why would you want to copy any *.pyc instead of compiling them on site? -- Vincent Wehren 3) create directories and copy files in a directory kept in an environment variable Can distutils do

Re: how to find site-packages path

2005-01-17 Thread vincent wehren
= [sys.prefix] sitedir = None # make sure sitedir is initialized because of later 'del' ... etc. -- Vincent Wehren Any clue ? Regards, Philippe -- http://mail.python.org/mailman/listinfo/python-list

Re: py2exe Excludes

2005-01-12 Thread vincent wehren
Just a guess: What happens if you remove everything that's in the "build" directory before running setup.py? There may still be files around from an earlier build that *did* include the Dabo modules. -- Vincent Wehren ___/ / __/ / / Ed Leafe http://leafe.com/ http://dabodev.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: exceptions and items in a list

2005-01-10 Thread vincent wehren
Steve Holden wrote: vincent wehren wrote: rbt wrote: If I have a Python list that I'm iterating over and one of the objects in the list raises an exception and I have code like this: try: do something to object in list except Exception: pass Does the code just skip the bad objec

Re: exceptions and items in a list

2005-01-10 Thread vincent wehren
list, or does it stop? Thanks Fire up a shell and try: >>> seq = ["1", "2", "a", "4", "5", 6.0] >>> for elem in seq: ... try: ...print int(elem) ... except ValueError: ...pass and see what happens... -- Vincent Wehren -- http://mail.python.org/mailman/listinfo/python-list

Re: Developing Commercial Applications in Python

2005-01-03 Thread vincent wehren
user exits, reporting, data access/replication, autotests, and apart from that, everywhere we need something done fast ;-). I'm sure that its liberal license was among the main drivers to use it in the first place! -- Vincent Wehren -- http://mail.python.org/mailman/listinfo/python-list

Re: Unicode entries on sys.path

2004-12-30 Thread vincent wehren
ful of unicode APIs. FindFirstFile does not seem to be one of them - unless the list on htpp://msdn.microsoft.com/library/default.asp?url=/library/en-us/mslu/winprog/other_existing_unicode_support.asp) is bogus (?). -- Vincent Wehren Thomas -- http://mail.python.org/mailman/listinfo/python-list

Re: Unicode entries on sys.path

2004-12-24 Thread vincent wehren
Just wrote: In article <[EMAIL PROTECTED]>, "Martin v. Lowis" <[EMAIL PROTECTED]> wrote: Hm, maybe more a windows question than a python question... The real question here is: why does Python not support arbitrary Unicode strings on sys.path? It could, in principle, atleast on Windows NT+ (and al

Re: sql server support from linux

2004-12-20 Thread vincent wehren
DB-API 2.0 compiant. Does anyone in this list ever connect to SQL Server from Linux, using Python? If so, what is your solution? Using mx.ODBC? -- Vincent Wehren I'm going nuts over here! Sw. -- http://mail.python.org/mailman/listinfo/python-list

Re: Easy "here documents" ??

2004-12-18 Thread vincent wehren
some {$foo->bar[1]}. This should print a capital 'A': \x41 EOT; AFAIK, there is no direct Python equivalent for this kind of syntax. Using a mapping like you suggested or the string.Template class in Python 2.4 still maybe improvements over what OP calls that "wacky" business. -

Re: Distutils vs. Extension header files

2004-12-09 Thread vincent wehren
ude setup.py include setup.cfg recursive-include src *.c *.h recursive-include docs *.html *.css *.gif *.jpg *.txt prune someolddir HTH, -- Vincent Wehren If I do a bdist_rpm, the source files get copied into the build directory and the build starts, but the header files aren't copied with the s

Re: Problem while trying to extract a directory from a zipfile.

2004-12-08 Thread vincent wehren
when i try to extract an zipfile with a directory in it the code returns me an IOErro exception: "It is a directory" Please how can i solve it ? You need to create any directories yourself. Maybe the recipe at http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/252508 gives you

Re: after embedding and extending python (using swig) problem importing (non-core) modules

2004-12-07 Thread vincent wehren
bug mode? If so, make sure you have the debug versions of those dll's in your path (i.e. _sre_d.pyd etc.)... HTH -- Vincent Wehren It does not look like a path-problem to me, so I'm clueless right now. I could work around this extending some functions to python and use them, but then I lo

Re: simple GUI question

2004-12-07 Thread vincent wehren
to disable this, or is there an alternate way of doing things? OK call me anal, but it bothers me. You want somthing like: root = Tkinter.Tk() root.withdraw() msg = tkMessageBox.showwarning("Ooops", "Some warning") -- Vincent Wehren Another thing I would *like* but is not strictl