Re: [CherryPy]Serve dynamic binary file in cherrypy?

2005-03-09 Thread mep
Resolved. Simplely specifiy content mime type before return.


-- 
Best Regards,
Wang Kebo

http://www.huihoo.org/~mep


"mep" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]
> Hi,
> After lookup in cherrypy site and google for a while, I haven't
> found any information about cherrypy how to serve dynamic binary
> file(some generated charts).Is there any easy way to do this?
>  In cherrypy 2.0 & python 2.4
>
> -- 
> Best Regards,
> Wang Kebo
>
> http://www.huihoo.org/~mep
>
>


-- 
http://mail.python.org/mailman/listinfo/python-list


Re: removing command prompt excecuting python

2005-03-09 Thread mep
Change python file extension from .py to .pyw


-- 
Best Regards,
Wang Kebo

http://www.huihoo.org/~mep


"Raghul" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> friends
> When i execute the python bu dbleclick in windows  a command
> prompt run s at back what to do to stop the command prompt running back
> when running python.
>
> pls give me a solution
>


-- 
http://mail.python.org/mailman/listinfo/python-list


[CherryPy]Serve dynamic binary file in cherrypy?

2005-03-09 Thread mep
Hi,
After lookup in cherrypy site and google for a while, I haven't
found any information about cherrypy how to serve dynamic binary
file(some generated charts).Is there any easy way to do this?
 In cherrypy 2.0 & python 2.4

-- 
Best Regards,
Wang Kebo

http://www.huihoo.org/~mep


-- 
http://mail.python.org/mailman/listinfo/python-list


Re: wanted: C++ parser written in Python

2005-02-24 Thread mep

"mep" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]
> Try ANTLR with python code generation:
> http://www.antlr.org/
>
> And C++ grammers:
> http://www.antlr.org/grammar/cpp
>
> You can generate a c++ parser in python with the above.
^
Sorry. Haven't look into the stuff carefully.
That grammer file requires some c++ code.

>
> -- 
> Best Regards,
> Wang Kebo
>
> http://www.huihoo.org/~mep
>
>
> "Franz Steinhaeusler" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> > Hello NG,
> >
> > has anyone written such a thing in python?
> > Where could I look for?
> >
> > (I need it for an editor written in wxPython to display function names,
> > include, global variables, classes, ... in a sidepanel).
> >
> > kind regards,
> > -- 
> > Franz Steinhaeusler
>
>


-- 
http://mail.python.org/mailman/listinfo/python-list


Re: wanted: C++ parser written in Python

2005-02-24 Thread mep
Try ANTLR with python code generation:
http://www.antlr.org/

And C++ grammers:
http://www.antlr.org/grammar/cpp

You can generate a c++ parser in python with the above.

-- 
Best Regards,
Wang Kebo

http://www.huihoo.org/~mep


"Franz Steinhaeusler" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hello NG,
>
> has anyone written such a thing in python?
> Where could I look for?
>
> (I need it for an editor written in wxPython to display function names,
> include, global variables, classes, ... in a sidepanel).
>
> kind regards,
> -- 
> Franz Steinhaeusler


-- 
http://mail.python.org/mailman/listinfo/python-list


Re: ActivePython 2.3.5.236 and ActivePython 2.4.0.244 are available

2005-02-12 Thread mep
Got it. Thanks.I'm just curious.:)


"Trent Mick" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> mep wrote:
> > ActivePython-2.4.0-243-win32-ix86.msi : 29M
> > ActivePython-2.4.0-244-win32-ix86.msi : 18M
> > What make so much difference of the size of them, which distinct  monir
> > version number for 1 only.
> > Any explaination?
> >
>
>
> Yes, build 243 accidentally included some debug-build bits from
> the included PyWin32 build in the package. These debug bits are
> only intended for the separate Windows "debug" package. I fixed
> this for build 244.
>
> $ diff -qr ActivePython-2.4.0-243-win32-ix86
ActivePython-2.4.0-244-win32-ix86 | grep "Only in"
> Only in
ActivePython-2.4.0-243-win32-ix86/INSTALLDIR/Lib/site-packages/isapi:
PyISAPI_loader_d.dll
> Only in
ActivePython-2.4.0-243-win32-ix86/INSTALLDIR/Lib/site-packages/isapi:
PyISAPI_loader_d.pdb
> Only in
ActivePython-2.4.0-243-win32-ix86/INSTALLDIR/Lib/site-packages/pythonwin:
dde_d.pdb
> Only in
ActivePython-2.4.0-243-win32-ix86/INSTALLDIR/Lib/site-packages/pythonwin:
dde_d.pyd
> Only in
ActivePython-2.4.0-243-win32-ix86/INSTALLDIR/Lib/site-packages/pythonwin:
Pythonwin_d.exe
> Only in
ActivePython-2.4.0-243-win32-ix86/INSTALLDIR/Lib/site-packages/pythonwin:
Pythonwin_d.pdb
> Only in
ActivePython-2.4.0-243-win32-ix86/INSTALLDIR/Lib/site-packages/pythonwin:
scintilla_d.dll
> Only in
ActivePython-2.4.0-243-win32-ix86/INSTALLDIR/Lib/site-packages/pythonwin:
win32ui_d.pdb
> Only in
ActivePython-2.4.0-243-win32-ix86/INSTALLDIR/Lib/site-packages/pythonwin:
win32ui_d.pyd
> Only in
ActivePython-2.4.0-243-win32-ix86/INSTALLDIR/Lib/site-packages/pythonwin:
win32uiole_d.pdb
> Only in
ActivePython-2.4.0-243-win32-ix86/INSTALLDIR/Lib/site-packages/pythonwin:
win32uiole_d.pyd
> Only in
ActivePython-2.4.0-243-win32-ix86/INSTALLDIR/Lib/site-packages/win32:
dbi_d.pdb
> Only in
ActivePython-2.4.0-243-win32-ix86/INSTALLDIR/Lib/site-packages/win32:
dbi_d.pyd
> Only in
ActivePython-2.4.0-244-win32-ix86/INSTALLDIR/Lib/site-packages/win32/Demos:
BackupRead_BackupWrite.py
> Only in
ActivePython-2.4.0-244-win32-ix86/INSTALLDIR/Lib/site-packages/win32/Demos:
BackupSeek_streamheaders.py
> Only in
ActivePython-2.4.0-243-win32-ix86/INSTALLDIR/Lib/site-packages/win32/libs:
pywintypes_d.lib
> Only in
ActivePython-2.4.0-243-win32-ix86/INSTALLDIR/Lib/site-packages/win32:
mmapfile_d.pdb
> Only in
ActivePython-2.4.0-243-win32-ix86/INSTALLDIR/Lib/site-packages/win32:
mmapfile_d.pyd
> Only in
ActivePython-2.4.0-243-win32-ix86/INSTALLDIR/Lib/site-packages/win32:
odbc_d.pdb
> Only in
ActivePython-2.4.0-243-win32-ix86/INSTALLDIR/Lib/site-packages/win32:
odbc_d.pyd
> Only in
ActivePython-2.4.0-243-win32-ix86/INSTALLDIR/Lib/site-packages/win32:
perfmondata_d.dll
> Only in
ActivePython-2.4.0-243-win32-ix86/INSTALLDIR/Lib/site-packages/win32:
perfmondata_d.pdb
> Only in
ActivePython-2.4.0-243-win32-ix86/INSTALLDIR/Lib/site-packages/win32:
perfmon_d.pdb
> Only in
ActivePython-2.4.0-243-win32-ix86/INSTALLDIR/Lib/site-packages/win32:
perfmon_d.pyd
> Only in
ActivePython-2.4.0-243-win32-ix86/INSTALLDIR/Lib/site-packages/win32:
pythonservice_d.exe
> Only in
ActivePython-2.4.0-243-win32-ix86/INSTALLDIR/Lib/site-packages/win32:
pythonservice_d.pdb
> Only in
ActivePython-2.4.0-243-win32-ix86/INSTALLDIR/Lib/site-packages/win32/scripts
: setup_d.py
> Only in
ActivePython-2.4.0-243-win32-ix86/INSTALLDIR/Lib/site-packages/win32:
servicemanager_d.pdb
> Only in
ActivePython-2.4.0-243-win32-ix86/INSTALLDIR/Lib/site-packages/win32:
servicemanager_d.pyd
> Only in
ActivePython-2.4.0-244-win32-ix86/INSTALLDIR/Lib/site-packages/win32/test:
test_win32event.py
> Only in
ActivePython-2.4.0-243-win32-ix86/INSTALLDIR/Lib/site-packages/win32:
timer_d.pdb
> Only in
ActivePython-2.4.0-243-win32-ix86/INSTALLDIR/Lib/site-packages/win32:
timer_d.pyd
> Only in
ActivePython-2.4.0-243-win32-ix86/INSTALLDIR/Lib/site-packages/win32:
win2kras_d.pdb
> Only in
ActivePython-2.4.0-243-win32-ix86/INSTALLDIR/Lib/site-packages/win32:
win2kras_d.pyd
> Only in
ActivePython-2.4.0-243-win32-ix86/INSTALLDIR/Lib/site-packages/win32:
win32api_d.pdb
> Only in
ActivePython-2.4.0-243-win32-ix86/INSTALLDIR/Lib/site-packages/win32:
win32api_d.pyd
> Only in
ActivePython-2.4.0-243-win32-ix86/INSTALLDIR/Lib/site-packages/win32:
win32clipboard_d.pdb
> Only in
ActivePython-2.4.0-243-win32-ix86/INSTALLDIR/Lib/site-packages/win32:
win32clipboard_d.pyd
> Only in
ActivePython-2.4.0-243-win32-ix86/INSTALLDIR/Lib/site-packages/win32:
win32event_d.pdb
> Only in
ActivePython-2.4.0-243-win32-ix86/INSTALLDIR/Lib/site-packages/win32:
win32event_d.pyd
> Only in
ActivePython-2.4.0-243-win32-ix86/INSTALLDIR/Lib/site-packages/win32:
win32evtlog_d.pdb
> Only in
ActivePython-2.4.0-243-win32-ix86/INSTALLDIR/Lib/site-packa

Re: ActivePython 2.3.5.236 and ActivePython 2.4.0.244 are available

2005-02-10 Thread mep

ActivePython-2.4.0-243-win32-ix86.msi : 29M
ActivePython-2.4.0-244-win32-ix86.msi : 18M
What make so much difference of the size of them, which distinct  monir
version number for 1 only.
Any explaination?

-- 
Best Regards,
Wang Kebo

http://www.huihoo.org/~mep


"Trent Mick" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I'm pleased to announce that ActivePython 2.3.5 build 236 and
> ActivePython 2.4.0 build 244 are now available from:
>
>  http://www.ActiveState.com/Products/ActivePython
>
> ActivePython 2.3.5.236 is a bug-fix release matching core Python 2.3.5.
> ActivePython 2.4.0.244 is a bug-fix release matching core Python 2.4.0.
> Both of these releases contain an important security fix for
> SimpleXMLRPCServer as detailed here:
>
>  http://www.activestate.com/Products/ActivePython/advisory.plex
>  http://www.python.org/security/PSF-2005-001/
>
> Builds for Linux, Solaris and Windows are available.
>
> We would welcome any and all feedback to:
>  [EMAIL PROTECTED]
> Please file bugs against ActivePython at:
>  http://bugs.ActiveState.com/ActivePython
>
>
> What is ActivePython?
> -
>
> ActivePython is ActiveState's quality-assured binary build of Python.
> Builds for Windows, Linux and Solaris and made freely available.
>
> ActivePython includes the Python core and core extensions (zlib 1.2.1,
> bzip2 1.0.2, bsddb 4.2.52, Tk 8.4.4, and Tix 8.1.4). On Windows,
> ActivePython includes the PyWin32 suite of Windows tools developed by
> Mark Hammond, including bindings to the Win32 API and Windows COM, the
> Pythonwin IDE, and more.
>
> ActivePython also includes a wealth of Python documentation, including:
> - the core Python docs
> - Andrew Kuchling's "What's New in Python" series
> - the Non-Programmer's Tutorial for Python
> - Mark Pilgrim's excellent "Dive into Python", and
> - a snapshot of the Python FAQs, HOWTOs and PEPs.
>
> An online version of the docs can be found here:
>  http://aspn.activestate.com/ASPN/docs/ActivePython/2.3/welcome.html
>  http://aspn.activestate.com/ASPN/docs/ActivePython/2.4/welcome.html
> In particular the Release Notes:
>  http://aspn.activestate.com/ASPN/docs/ActivePython/2.3/relnotes.html
>  http://aspn.activestate.com/ASPN/docs/ActivePython/2.4/relnotes.html
> and the Installation Guide:
> http://aspn.activestate.com/ASPN/docs/ActivePython/2.3/installnotes.html
> http://aspn.activestate.com/ASPN/docs/ActivePython/2.4/installnotes.html
>
>
> Extra Bits
> --
>
> This release of ActivePython also includes the following packages:
>
> - a Windows "debug" package: debug-built binaries for ActivePython
>users building debug versions of their binary Python extensions
> - ActivePython23.chm & ActivePython24.chm: an MS compiled help
>collection of the full ActivePython documentation set. Linux
>users of applications such as xCHM might find this useful.
>
> These packages are available from:
>  ftp://ftp.activestate.com/ActivePython/etc/
>
> On behalf of the team at ActiveState,
> Thanks, and enjoy!
>
> -- 
> Trent Mick
> [EMAIL PROTECTED]
>
>
>
>
>


-- 
http://mail.python.org/mailman/listinfo/python-list


Python with no significant whitespace

2005-01-25 Thread mep
Hi,all
Is there anybody trying to release a modification version to current
python source code with no significant whitespace, say replacing whitespace
by {}
like C or java. I do *NOT* mean whitespace is good or bad, just
want to know.

Best Regards,
mep


-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Python in debug version?

2004-12-07 Thread mep
Hi,
There is a columen named "Debug" for python.exe and python23.dll."Yes"
is there.
And if you open python.exe or python23.dll, you'll see:

C:\sf\python\dist23\src\PCbuild\python.pdb

at the tail of file.That means a debug version?

-- 
Best Regards,
Wang Kebo

http://www.huihoo.org/~mep


"Martin v. Löwis" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> mep wrote:
> > I view my python 2.3.4 from python.org by VC6's dependency walker
tool.
> > What suprise me is that python.exe and python32.dll are built into
*DEBUG*
> > version.
>
> What precisely did the tool report? To my knowledge, the DLLs are not in
> the debug version.
>
> Regards,
> Martin



-- 
http://mail.python.org/mailman/listinfo/python-list


Python in debug version?

2004-12-06 Thread mep
Hi, all
I view my python 2.3.4 from python.org by VC6's dependency walker tool.
What suprise me is that python.exe and python32.dll are built into *DEBUG*
version.
Is it intend to do so?Is a release version faster?

-- 
Best Regards,
Wang Kebo

http://www.huihoo.org/~mep


-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Please help here: python <==> COM

2004-12-05 Thread mep
Resolved. Thanks anyway


-- 
Best Regards,
Wang Kebo

http://www.huihoo.org/~mep


"mep" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]
> Hi,all
> I'm scripting flashget (A download management tool,
> http://www.amazesoft.com/) using
> python win32 extension, opening a downloading dialog.
> The following pythong code NOT work:
> CODE BEGIN
>  #!/usr/bin/env python
>  # -*- coding: cp936 -*-
>
>  import win32com.client
>
>  flashget = win32com.client.Dispatch('JetCar.Netscape')
>  params = ('http://test.com/1',
>'http://test.com/2',
>'http://test.com/3',
>'http://test.com/4',
>'http://test.com/5')
>
>  flashget.AddUrlList(params)
> CODE END
>
> It complaints the following:
>   File "", line 2, in AddUrlList
> pywintypes.com_error: (-2147352567, 'Exception occurred.', (0, None, None,
> None,  0, -2146828283), None)
>
> But the following VBS code does the tricky:
> CODE BEGIN
>  Dim params(4)
>  set flashget=CreateObject("JetCar.Netscape")
>
>  params(0) = "http://test.com/1";
>  params(1) = "http://test.com/2";
>  params(2) = "http://test.com/3";
>  params(3) = "http://test.com/4";
>  params(4) = "http://test.com/5";
>
>  flashget.AddUrlList params
> CODE END
>
> Any hints?
>
> -- 
> Best Regards,
> Wang Kebo
>
> http://www.huihoo.org/~mep
>
>


-- 
http://mail.python.org/mailman/listinfo/python-list


Please help here: python <==> COM

2004-12-04 Thread mep
Hi,all
I'm scripting flashget (A download management tool,
http://www.amazesoft.com/) using
python win32 extension, opening a downloading dialog.
The following pythong code NOT work:
CODE BEGIN
 #!/usr/bin/env python
 # -*- coding: cp936 -*-

 import win32com.client

 flashget = win32com.client.Dispatch('JetCar.Netscape')
 params = ('http://test.com/1',
   'http://test.com/2',
   'http://test.com/3',
   'http://test.com/4',
   'http://test.com/5')

 flashget.AddUrlList(params)
CODE END

It complaints the following:
  File "", line 2, in AddUrlList
pywintypes.com_error: (-2147352567, 'Exception occurred.', (0, None, None,
None,  0, -2146828283), None)

But the following VBS code does the tricky:
CODE BEGIN
 Dim params(4)
 set flashget=CreateObject("JetCar.Netscape")

 params(0) = "http://test.com/1";
 params(1) = "http://test.com/2";
 params(2) = "http://test.com/3";
 params(3) = "http://test.com/4";
 params(4) = "http://test.com/5";

 flashget.AddUrlList params
CODE END

Any hints?

-- 
Best Regards,
Wang Kebo

http://www.huihoo.org/~mep


-- 
http://mail.python.org/mailman/listinfo/python-list


Re: UML and OO design tool with Python support

2004-11-30 Thread mep
Any free UML modelling tools that generate python code?


-- 
Best Regards,
Wang Kebo

http://www.huihoo.org/~mep



"Paul McGuire" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I just found out that my favorite UML modeling tool, Enterprise Architect,
> has just released a new version, *with* Python code support.  You can
> download EA at http://www.sparxsystems.com.au.  It is not free, but I
think
> it is very reasonably priced for the features it provides (under $200
gives
> you good UML graphical modeling, including sequence and class diagrams,
with
> code reverse engineering and round-tripping, vs. $000's for comparable
> Rational environment).
>
> Well, as it turns out, the Python support is still a bit buggy but I have
> already gotten good mileage from this tool in other applications, most
> notably reverse engineering C++ and C# code, so the Python additions are
> icing on the cake.  But it is certainly another reassuring note, to see
the
> inclusion of Python support into this commercial software development
tool.
>
> I've already started to forward bug reports for some of the Python import
> errors.  Perhaps if they get more feedback from other Python users, it
will
> help reinforce their opinion of Pythonistas as a valuable target market
> segment.
>
> -- Paul
>
>
> Note: I am *not* an employee or in any way connected with the supplier of
> this code, other than as a satistifed customer.
>
> Note2: the Python support is not an obvious product feature.  It requires
> installation of a separate (free) add-in, downloaded from the Sparxsystems
> web site.  The add-in must be separately "add-in"ed to each project, too,
> instead of just being a globally installed plug-in.  My first couple of
> attempts failed at completely reverse engineering my pyparsing module,
> although I did get a nice first-pass class inheritance diagram for PIL.
We
> take what we can get...
>
>


-- 
http://mail.python.org/mailman/listinfo/python-list