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
"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
"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
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
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
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
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
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
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
,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
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
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
"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
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
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
"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
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
"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
"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
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.
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
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
<[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
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
languages" *must* be doing something wrong! ;)
( Auto-commit set to "on" perhaps? )
Regards,
-
Vincent Wehren
|
--
http://mail.python.org/mailman/listinfo/python-list
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
(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
list/2004-August/024920.html
--
Vincent Wehren
--
http://mail.python.org/mailman/listinfo/python-list
) or komodo ide ?
Don't know..
--
Vincent Wehren
|
|
| pujo
|
--
http://mail.python.org/mailman/listinfo/python-list
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
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
"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?
|
"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
.
> 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
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
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
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
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
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
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
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
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
#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
|
|
|
|
|
|
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
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
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
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
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
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
#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
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
'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
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
- 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
d anyone help me?
Thanks,
Alex
openfilename=tkFileDialog.askopenfilename(filetypes=[("all files", "*")])
--
Vincent Wehren
--
http://mail.python.org/mailman/listinfo/python-list
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
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
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
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
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
ng the sequence protocol,
so it's not quite right.
How about 'reiterable'?
--
Vincent Wehren
--
http://mail.python.org/mailman/listinfo/python-list
omList(seq)
etc..
Regards
--
Vincent Wehren
Thanks
Phil
--
http://mail.python.org/mailman/listinfo/python-list
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
*.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
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
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
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
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
lt.asp?url=/library/en-us/shellcc/platform/shell/reference/enums/csidl.asp
--
Vincent Wehren
Jimmy
--
http://mail.python.org/mailman/listinfo/python-list
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
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
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
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 :-)
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
= [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
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
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
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
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
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
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
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
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.
-
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
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
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
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
87 matches
Mail list logo