dan_roman wrote:
> Hi,
> I developed a script with a nice interface in Tkinter that allows me to
> edit some formulas and to generate an Excel worksheet with VBA macros
> within it. The script runs perfectlly in Office 2000, but in Office
> 2003 crash at line: "wbc = workbook.VBProject.VBComponents
le Python is free (at least
> for the package I am using - ActivePython).
>
> Please discuss where Python shines.
> Gord
>
>
Big three? ... not sure even Bill agrees with you.
Code in Python and decide for yourself ... but again, nowadays, you're
to compare with C#, V
hg wrote:
> gord wrote:
>> As a complete novice in the study of Python, I am asking myself where this
>> language is superior or better suited than others. For example, all I see in
>> the tutorials are lots of examples of list processing, arithmetic
>> calcu
Chandra wrote:
> Hi,
>
> Is there a way to execute a python script(file) in ASP.NET application
> (programmatically)??
>
> Regards,
> Chandra
>
pythondotnet@python.org ?
--
http://mail.python.org/mailman/listinfo/python-list
know wxPython does that and I assume PyQT also does.
I do not think Tkinter is more portable than the above two anymore ...
just easier to install since built-in.
hg
--
http://mail.python.org/mailman/listinfo/python-list
want to test your problem on an NTFS
file system and see if the problems are similar.
Regards,
hg
--
http://mail.python.org/mailman/listinfo/python-list
Hi,
Is there such a thing ?
Trying to understand the various strings I get hereunder
Thanks,
hg
from nntplib import *
s = NNTP('news.central.cox.net')
resp, count, first, last, name = s.group('comp.lang.python')
print 'Group', name, 'has', count, &
Gabriel Genellina wrote:
> At Wednesday 11/10/2006 14:46, hg wrote:
>
>> Is there such a thing ?
>>
>> Trying to understand the various strings I get hereunder
>
> A basic understanding of the protocol would help a lot. The RFC 977
> itself is not so hard
Rob wrote:
> I have Python 2.4.3 installed on Windows XP on both a real computer and a
> virtual machine under VMware. Just recently, IDLE stopped working. I would
> select IDLE from the start menu or right click on a .PY file and open it in
> IDLE, but nothing happens. I just uninstalled Python
ntroduction to python
(http://www.diveintopython.org/) ... and then there are a billion of
good books.
hg
--
http://mail.python.org/mailman/listinfo/python-list
Teja wrote:
> I have an application which uses COM 's Dispatch to create a COM based
> object. Now I need to upgrade the application to a threaded one. But
> its giving an error that COM and threads wont go together. Specifically
> its an attribute error at the point where COM object is invoked. An
Teja wrote:
> hg wrote:
>
>> Teja wrote:
>>> I have an application which uses COM 's Dispatch to create a COM based
>>> object. Now I need to upgrade the application to a threaded one. But
>>> its giving an error that COM and threads wont go together
me to read them and
> I think they're good but seemed not so practical to me.
>
> Any recommendations?
Sure, there are tons of pure-Python modules out there.
hg
--
http://mail.python.org/mailman/listinfo/python-list
Paddy wrote:
> Wijaya Edward wrote:
>> Can we make loops control in Python?
>> What I mean is that whether we can control
>> which loops to exit/skip at the given scope.
>>
>> For example in Perl we can do something like:
>>
>> OUT:
>> foreach my $s1 ( 0 ...100) {
>>
>> IN:
>> foreach my $s
look of it seems very sparse for some reason.
I'm testing them both now ... Wing IDE is in front (but I'm testing the
pro version).
hg
--
http://mail.python.org/mailman/listinfo/python-list
arse for some reason.
>
> But that's really a good thing.
>
> -- Theerasak
I'm really interested: my *small* company is ready to spend the ~300$ in
the process, but Komodo looks _very_ sparse.
How do you go about it? ... I have resources to look at it for one or
two days.
h
Theerasak Photha wrote:
> On 10/13/06, hg <[EMAIL PROTECTED]> wrote:
>
>> I'm really interested: my *small* company is ready to spend the ~300$ in
>> the process, but Komodo looks _very_ sparse.
>>
>> How do you go about it? ... I have resources to loo
Theerasak Photha wrote:
> On 10/13/06, hg <[EMAIL PROTECTED]> wrote:
>
>> I have spend the past two years with eclipse/pydev ... a few issue are
>> still troublesome to me (speed, search for definitions ... being a few
>> of them) ... and until two days ago I ha
Hendrik van Rooyen wrote:
> Hi,
>
> I want to do the equivalent of the after thingy in tkinter - setting up in
> effect a timed call back.
>
> My use case is as a "supervisory" timer - I want to set up an alarm, which I
> want to cancel if the expected occurrence occurs - but its not a GUI app.
>
Ralf wrote:
> Is their anybody with xperience in using the both and can provide me with
> some xamples.
>
> Thx a lot
> Ralf
>
>
I suggest you buy the book from Mark Hammond
hg
ex (major cut and paste):
#***
how about
import time
"%08X"% (int)(time.mktime(time.localtime()))
hg
--
http://mail.python.org/mailman/listinfo/python-list
Carsten Haese wrote:
> On Tue, 2006-10-17 at 08:49, hg wrote:
>> import time
>> "%08X"% (int)(time.mktime(time.localtime()))
>
> Have you not had your coffee yet or are you trying to win an obfuscated
> python programming competition? ;)
>
>
Tim Chase wrote:
>> Is there a problem with the Python and wxPython web sites?
>> I cannot seem to get them up
>
> Sounds like someone needs some pyagra...
>
> (grins, ducks, and runs)
>
> the-red-or-blue-pill'ly yers,
>
> -tkc
>
>
>
>
to find some documentation...
>>
>> Thanks,
>> Mike
>
I still do get mails from the list
hg
--
http://mail.python.org/mailman/listinfo/python-list
Carl Wenrich wrote:
> I installed python 2.4.4 from source. When I try to
> run the demo tkinter (hello.py) script, I get a
> message saying my python may not be configured for Tk.
Under *nix ?
Make sure you have the tcl/tk source installed also.
hg
--
http://mail.python.org/mailman
better ... :)
>
> Mark
Can you suggest tools (.el) to add to emacs for large projects
management / browsing ?
Thanks,
hg
--
http://mail.python.org/mailman/listinfo/python-list
Simon Forman wrote:
> David Isaac wrote:
>> I'm aware of
>> http://cheeseshop.python.org/pypi/pytnef/
>> but it uses the tnef utility, and I'd like a pure Python solution
>> (along the lines of http://www.freeutils.net/source/jtnef/ ).
>>
>> Is there one?
>>
>> Thanks,
>> Alan Isaac
>
> A place I
nk the current installer modifies at
least the .py .pyw file association.
hg
--
http://mail.python.org/mailman/listinfo/python-list
his might be happening and
> if it was possible to change it.
>
>
> _
> PrivatePhone - FREE telephone number & voicemail.
> A number so private, you can make it public.
> http://www.privatephone.com
>
threads.
My gut feeling is to use threads (note: each transaction is finite, so
the process/thread die fairly quickly).
Any insight ?
hg
--
http://mail.python.org/mailman/listinfo/python-list
hg wrote:
> Hi,
>
> I am writing a transaction server (socket-based) under windows.
>
> I use mysqldb to log info into MySQL.
>
> It is all working and I need now to decide whether to use forks
> (CreateProcess I guess) or threads.
>
> I saw in another thread
Hi,
I am not sure whether this is a python-related question.
If I have device A than sends XX bytes to device B, and device B does a
recv(XX) using the default timeout, what could make device B wake-up
with less than XX bytes received ?
Regards,
hg
--
http://mail.python.org/mailman/listinfo
Jean-Paul Calderone wrote:
> On Wed, 13 Sep 2006 08:13:43 -0500, hg <[EMAIL PROTECTED]> wrote:
>> Hi,
>>
>> I am not sure whether this is a python-related question.
>>
>> If I have device A than sends XX bytes to device B, and device B does a
>> recv(X
Diez B. Roggisch wrote:
> hg wrote:
>
>> Hi,
>>
>> I am not sure whether this is a python-related question.
>>
>> If I have device A than sends XX bytes to device B, and device B does a
>> recv(XX) using the default timeout, what could make device B w
Hi,
Is there a way to:
1) open the class browser automatically on the file opening
2) have the class browser updated when functions/classes ... are added
to the file
3) have a vertical scroll bar
4) have line numbers
Thanks,
Philippe
--
http://mail.python.org/mailman/listinfo/python-list
descriptor in _dummy.
I tried using plain threads with the same problem.
Any clue ?
Thanks,
hg
--
http://mail.python.org/mailman/listinfo/python-list
hg wrote:
> Hi,
>
> I have two classes, one listens and accepts connections, gets the
> socket, reads the first byte from the opened socket then launches a
> thread (threading) and gives it the socket identifier.
>
> The first time the thread attempts to read from the give
John Purser wrote:
> Hello,
>
> I'm working on a script to gather data from our servers and then present
> the data as part of daily maintenance. Pretty straight forward stuff.
> However one of the limitations of an earlier design was presentation of
> the data so I'm working to make this version
Antoine De Groote wrote:
> Hi everybody,
>
> is there a python equivalent for the ruby %w operator?
> %w{a b c} creates an array with strings "a", "b", and "c" in ruby...
>
> Thanks a lot
> Regards,
> antoine
Why would they want to make such an obscure API ? ... didn't they have
Python to learn
MonkeeSage wrote:
> hg wrote:
>> Why would they want to make such an obscure API ? ... didn't they have
>> Python to learn from (I am truly amazed - nothing cynical ...just ...
>> why ?)
>
> In ruby there are several special literal notations, just like pyt
hg wrote:
> MonkeeSage wrote:
>> hg wrote:
>>> Why would they want to make such an obscure API ? ... didn't they have
>>> Python to learn from (I am truly amazed - nothing cynical ...just ...
>>> why ?)
>> In ruby there are several special lit
MonkeeSage wrote:
> hg wrote:
>> But today ? what is the cost of replacing %w("blah blah") by
>> Hi_I_Want_To_Split_The_String_That_Follows( "blah blah")
>
> How about r'blah', u'blah', """blah""", and
27;t find an
> active mailing list and the last release are a couple of year old.
>
> Can some one guide me how to fix the problem above or point me to
> another Cyrptography library that I can use easily ?
>
> Thanks.
>
I use pycrypto under *nix and Windows. Under wi
jim wrote:
> where can I find a free decompile that I can run in windows xp
>
Hey Jim, where can you find a free "decompile" that you can run in
windows xp ?
hg
--
http://mail.python.org/mailman/listinfo/python-list
done in wxDesigner at the beginning of the
project, and seldom have to get back into it to twick the interface.
hg
--
http://mail.python.org/mailman/listinfo/python-list
for other languages (never tried)
: c++, c#, perl
PPS: I'm not getting any money from them ;-)
hg
king kikapu wrote:
> I didn't know about this product you mention (wxDesigner).
> I download the trial and it seems pretty good, reminds me the wxGlade.
>
> So you make the G
27;à' is
included in the extended ASCII table, and thus can be stored in one byte.
Any clue ?
hg
# -*- coding: utf-8 -*-
import string
def convert(mot):
print len(mot)
print mot[0]
print '%x' % ord(mot[1])
table =
string.maketrans('àâäéèêëîïôöùüû',&
Fredrik Lundh wrote:
> hg wrote:
>
>> We noticed that len('à') != len('a')
>
> sounds odd.
>
>>>> len('à') == len('a')
> True
>
> are you perhaps using an UTF-8 editor?
>
> to keep your sanity, no matter w
hg wrote:
> Fredrik Lundh wrote:
>> hg wrote:
>>
>>> We noticed that len('à') != len('a')
>> sounds odd.
>>
>>>>> len('à') == len('a')
>> True
>>
>> are you perhaps using an UTF-8 editor?
&
Duncan Booth wrote:
> hg <[EMAIL PROTECTED]> wrote:
>
>>> or in other words, put this at the top of your file (where "utf-8" is
>>> whatever your editor/system is using):
>>>
>>># -*- coding: utf-8 -*-
>>>
>>> a
Fredrik Lundh wrote:
> hg wrote:
>
>> How would you handle the string.maketrans then ?
>
> maketrans works on bytes, not characters. what makes you think that you
> can use maketrans if you haven't gotten the slightest idea what's in the
> string?
>
>
pass
>
> if __name__ == "__main__":
> main()
>
Run gets called only once: you need to put your logic in a "while True"
or something equivalent/define some escape clause.
Right now you just get into the implicit "else" and get out.
hg
im
here any other IDE's that are better,
> in your opinion, than Eric version 3. I'm using gnome and eric is built
> for KDE. I don't care it there open source or Id I have tp puchase one.
>
> Thanks again,
>
> Steve
I like Eclipse/Pydev better
hg
--
http://mail.python.org/mailman/listinfo/python-list
John Machin wrote:
> Steve Thompson wrote:
>> Hello all,
>>
>> I was wondering the differnced there were betwee Active State's python and
>> the open source version of python. Would I have to unistall my opend souce
>> python? Additonally, how does Active State's Komodo IDE vs. the eric3 IDE
>> unl
Hi,
Can one tell me what the status of this project is ?. I did google ...
but not much out there.
Regards,
hg
--
http://mail.python.org/mailman/listinfo/python-list
Trent Mick wrote:
> hg wrote:
>> Hi,
>>
>> Can one tell me what the status of this project is ?. I did google ...
>> but not much out there.
>
> PyXPCOM source is in the main Mozilla CVS tree. It is being maintained
> by Mark Hammond (the original developer of
enging.
>
> Trent
>
Exactly ... are you saying I need to distribute Firefox compiled
differently in order to achieve that ?
This is less a python issue clearly if that is the case: would I have
the same issues to resolve if I were to write the module in C++ ?
Thanks,
hg
--
http://mail.python.org/mailman/listinfo/python-list
umber 2 from top to bottom and
> extract it into a txt file...
>
> Does anyone know how i can create this type of script or has like a
> sample that i can use.. I am having a hard time starting the script..
>
> hope someone can help
>
> Thanks agian
>
You might wan
Trent Mick wrote:
> hg wrote:
>> Trent Mick wrote:
>>>> My need is as follows: I have developed an activex component to
>>>> access a
>>>> smart card on the client side / do some web site logon.
>>>>
>>>> Are xpcom / pyxpc
ed to change project as with Visual Studio, I just
run/debug whatever I need with a few clicks ... have not touched Konsole
in weeks.
I also, after weeks of testing, decided to invest in the pydev
extensions / the bugs it has found for me already justify the investment.
hg
--
http://mail.python.org/mailman/listinfo/python-list
e
IDE can bring functions that an editor, however powerful, cannot (I
still use emacs).
I have tried Komodo, Wing, Eric3, Idle, emacs, (not vi ;-) ), SPE,
boa-constructor, and many more - I like most of them but am really
addicted to eclipse + pydev.
... but even without pydev, I would not use java just because of eclipse.
hg
--
http://mail.python.org/mailman/listinfo/python-list
krishnakant Mane wrote:
> hello all.
> finally I got the accessibility issue out from wxpython. actually
> almost got it out, but that's another story.
> now my problem is that I can't gind a downloadable version of wxpython
> api reference for the latest version or the latest api reference at
>
- both very easy to learn and
production libraries ... I never know whether PyQT is commercial or not
under windows (trollteck changed their QT license I think).
I strongly suggest looking at wxPython - and start with their demo package
which runs also under *nix and windows.
hg
--
http://mail.python.org/mailman/listinfo/python-list
progman wrote:
>
> is there a VB-alike tool for python to create forms??
http://wxglade.sourceforge.net/
http://boa-constructor.sourceforge.net/
http://www.activestate.com/Products/Komodo/
http://www.roebling.de/
hg
--
http://mail.python.org/mailman/listinfo/python-list
Hi,
must I parse argv[0] to get it, or is there an easier way (that works under
Windows and *nix)?
Ex:
python /home/hg/test/test.py ==> test.py #knows it is in /home/hg/test
Thanks,
hg
--
http://mail.python.org/mailman/listinfo/python-list
hg wrote:
> Hi,
>
> must I parse argv[0] to get it, or is there an easier way (that works
> under Windows and *nix)?
>
> Ex:
>
> python /home/hg/test/test.py ==> test.py #knows it is in /home/hg/test
>
> Thanks,
>
> hg
got it: os.path.dirname(sy
Rob Wolfe wrote:
>
> hg wrote:
>> Hi,
>>
>> must I parse argv[0] to get it, or is there an easier way (that works
>> under Windows and *nix)?
>>
>> Ex:
>>
>> python /home/hg/test/test.py ==> test.py #knows it is in /home/hg/test
>
&g
d.
Note that if you handle both SPIN and UP or DOWN events, you will be
notified about each of them twice: first the UP/DOWN event will be
receieved and then, if it wasn't vetoed, the SPIN event will be sent. See
also
hg
--
http://mail.python.org/mailman/listinfo/python-list
[EMAIL PROTECTED] wrote:
> Okay, since everyone ignored the FAQ, I guess I can too...
>
> Mark Tarver wrote:
>> How do you compare Python to Lisp? What specific advantages do you
>> think that one has over the other?
>
> (Common) Lisp is the only industrial strength language with both pure
> co
[EMAIL PROTECTED] wrote:
> can I download Python Imaging Library (PIL) for linux.
http://effbot.org/downloads/Imaging-1.1.6.tar.gz
--
http://mail.python.org/mailman/listinfo/python-list
[EMAIL PROTECTED] wrote:
>
> After 394 postings in this thread, you all have convinced me. I am
> dropping all of my python code and switching to Lisp.
>
> thank-you
>
>
> The information contained in this message and any attachment may be
> proprietary, confidential, and privileged or subjec
[EMAIL PROTECTED] wrote:
> paramiko
http://www.lag.net/paramiko/docs/
__str__ ?
--
http://mail.python.org/mailman/listinfo/python-list
Hi,
Are there modules out there (ex: scintilla for editor ...) ?
Thanks
hg
--
http://mail.python.org/mailman/listinfo/python-list
susan wrote:
> Hi,
> Anybody knows how to bind a command to the open button at a file
> browser dialog? I want to add selected files to a scrolllist.
>
> Like this:
>
> def browseFile(self):
>
> file = askopenfilename(filetypes = [("TDF Files", "*.TDF"),
> ("All Files", "*.*")],multipl
DES
If that may reassure you ;-) I use PyCrypto to "talk" to smart cards without
any problem.
hg
--
http://mail.python.org/mailman/listinfo/python-list
hg wrote:
> Ning wrote:
>
>> I'm trying to write an IM client which sends encrypted messages to the
>> server. I tried to use pycrypto library, but when I came to 3DES
>> cypher I was confused about the keysize to use. In the standard it
>> said that it sh
t;><><><><><><><><><><><><><>
> # Call the lane finder utility
> NumLanes = GetNumLanes(Lanes)
> #<><><><><><><><><><><><><><
hen"
> print "reconnect it and try again."
> sys.exit(1)
>
> p.setBaudrate(19200)
> p.setTimeout(3) #set timeout to 1.5 seconds
>
> # finish opening the port and assign a file handle
> p.open()
> return p
>
>
>
> On Dec 15, 1:07 pm
am not certain it is, but besides some deprecation warnings, it seems to
be complete/functional
hg
--
http://mail.python.org/mailman/listinfo/python-list
test it on all platforms if I were
you: no coding and you see stuff right away / decide whether it is a good
choice.
... I know it is mine (although I must confess I never tried it on a mac).
hg
--
http://mail.python.org/mailman/listinfo/python-list
that a python script or
a .sh / .bat ? ... from what you're writing, it seems you're calling some
external entity which just might launch a bunch of processes)
So do you or not control the inner workings of that external script ?
If you don't, then "killing" might be the way as posted / clearly the
methord will change from environment to environment.
hg
--
http://mail.python.org/mailman/listinfo/python-list
t; ---
>
> Here, this "classes" are all at the same position in memory. So there
> are no different classes in the array.
>
> So I access with s1[0], s1[1], s1[2], etc. always the same data.
>
> Any idea?
>
> --
> Michael
do you mean object ?
your append should be append(Word()) as you need to create instances.
hg
--
http://mail.python.org/mailman/listinfo/python-list
.
>
> Maybe you know a source (URL) "Python for c/c++ programmers" or things
> like that.
>
>
> Yes, I konw whats an object is...
A struct in C is unrelated to a struct in C++ as a struct in C++ _is_ a
class.
hg
--
http://mail.python.org/mailman/listinfo/python-list
Neil Cerutti wrote:
> On 2007-01-03, Jussi Salmela <[EMAIL PROTECTED]> wrote:
>> hg kirjoitti:
>>> mm wrote:
>>>
>>>> Yes, it was the (), equivalent to thiks like new() create new object
>>>> from class xy.
>>>>> s1.appen
'm traveling soon and need to be able to work on this on my
> macbook, so it's down to panic time. Any help is GREATLY appreciated.
>
> Thanks,
> Matt
I'd get rid of the warnings first by installing the correct librairies
(PyPar, MySQLDB, pgdb) who knows what the side effect are ?
hg
--
http://mail.python.org/mailman/listinfo/python-list
Hi,
Is there an easy way for a script being executed (from anywhere) to know
where is is ... something in os.path ?
Thanks,
hg
--
http://mail.python.org/mailman/listinfo/python-list
hg wrote:
> Hi,
>
> Is there an easy way for a script being executed (from anywhere) to know
> where is is ... something in os.path ?
>
> Thanks,
>
> hg
oops: os.path.abspath(sys.argv[0])
hg
--
http://mail.python.org/mailman/listinfo/python-list
plevel-
eval ('import ' + s)
File "", line 1
import test.py
Any clue ?
Thanks
hg
--
http://mail.python.org/mailman/listinfo/python-list
Laszlo Nagy wrote:
> hg i'rta:
>> Hi,
>>
>> Is there an easy way for a script being executed (from anywhere) to know
>> where is is ... something in os.path ?
>>
> __file__
>
> You can also use os.argv[0] but that is not the same...
>
&
hg wrote:
> Hi,
>
> I have the following problem.
>
> I find in a directory hierarchy some files following a certain sets of
> rules:
>
> .../.../../plugin/name1/name1.py
>
> .../.../../plugin/namen/namen.py
>
> each file will in turn have a clas
eval ('import ' + s)
>> File "", line 1
>> import test.py
>>
Thanks,
What I am doing is adding plugin support to PyCrust ... so I'm looking for a
mechanism where anyone can develop a plugin and have it loaded by pycrust.
the .py was a typo
why the "...Have at least an empty plugin/name1/__init__.py file..." ?
Thanks,
hg
--
http://mail.python.org/mailman/listinfo/python-list
> Laszlo
Many thanks Laszlo, it looks like I got it to work ... result will be on
www.snakecard.com/PY for those interested ... in the next few days
hg
--
http://mail.python.org/mailman/listinfo/python-list
and did see someone asking the same question, but
> haven't found a good solution to this problem. Could anyone give me a
> hint? Thanks a lot!
Hi,
I can only say that it runs fine under Mandriva 2007 ... and that Mandriva
went to gcc V4 long after 9.2 ... maybe an issue here.
Regards,
hg
--
http://mail.python.org/mailman/listinfo/python-list
that stupid, should you be programming
> in any language? The most widely used language is still C, and there is
> no concept of private data in C either, nor is it needed.
void test(void)
{
static int i;
}
Do you agree that i is "private" to test ?
hg
--
http://mail.python.org/mailman/listinfo/python-list
Xah Lee wrote:
> I don't know OpenGL, but i think it is a low-level crap, and have done
> the industry huge irreparable damage the same way unix has.
So you _are_ psychic ! is the end of the world be in 2007 ?
--
http://mail.python.org/mailman/listinfo/python-list
code is here: http://snakecard.com/rtb/
Any clue ?
Thanks,
hg
--
http://mail.python.org/mailman/listinfo/python-list
Hi,
Is there a clean way to figure out that a .exe was actually generated by
pyexe ?
hg
--
http://mail.python.org/mailman/listinfo/python-list
hg wrote:
> Hi,
>
> Is there a clean way to figure out that a .exe was actually generated by
> pyexe ?
>
> hg
I should gave writtent "definite" instead of "clean"
hg
--
http://mail.python.org/mailman/listinfo/python-list
John Machin wrote:
> On Jun 10, 11:25 am, John Machin <[EMAIL PROTECTED]> wrote:
>> On Jun 10, 10:38 am, hg <[EMAIL PROTECTED]> wrote:
>>
>> > hg wrote:
>> > > Hi,
>>
>> > > Is there a clean way to figure out that a .exe was actua
My_Stdout()
print 'toto'
import test_redir
test_redir.test()
**** Question:
print 'toto' does go to "res.txt" while "Hello from an extention!\n" goes to
the console.
Any clue ?
Thanks,
hg
--
http://mail.python.org/mailman/listinfo/python-list
1 - 100 of 217 matches
Mail list logo