= int(string_value)
Ravi Teja.
--
http://mail.python.org/mailman/listinfo/python-list
in the future then apache better be
there but as I said that is no need if pythone can do it on a stand
alone basis.
Use mod_python with some xmlrpc handler. There is more than one around.
Google for them. That way you can keep Apache for both Python and PHP.
Ravi Teja.
--
http://mail.python.org/mailman
modules (ShedSkin supports os, stat, string, time),
it might just work. ShedSkin translates your Python code to fast C++
code that can be compiled to a tight app.
http://sourceforge.net/projects/shedskin/
Ravi Teja.
--
http://mail.python.org/mailman/listinfo/python-list
be bear with my novice
queries.
thanks in advance,
Mohit
Start Here
http://www.diveintopython.org/soap_web_services/index.html
Example Client
http://www.diveintopython.org/soap_web_services/first_steps.html
Ravi Teja
--
http://mail.python.org/mailman/listinfo/python-list
-Modified/If-Modified-Since in the next page
Ravi Teja.
--
http://mail.python.org/mailman/listinfo/python-list
with normal users in mind.
Ravi Teja.
--
http://mail.python.org/mailman/listinfo/python-list
for a detailed explanation.
Ravi Teja.
--
http://mail.python.org/mailman/listinfo/python-list
.)
Ravi Teja.
--
http://mail.python.org/mailman/listinfo/python-list
Thomas Ploch wrote:
Ravi Teja schrieb:
Thomas Ploch wrote:
Hi folks,
I have a data structure that looks like this:
d = {
'url1': {
'emails': ['a', 'b', 'c',...],
'matches': ['d', 'e', 'f',...]
},
'url2': {...
}
This dictionary will get
king kikapu wrote:
hi to all folks here,
i am learning Python, just finished a book and i am starting to write
programs.
I just want to ask, is the correct way to deploy my programs to other
computers, the .pyc files ??
I now that with the -m compileall . switch can compile a .py file
Ivan Voras wrote:
Ramdas wrote:
Well,
I need to add users from a web interface for a web server, which runs
only Python. I need to add users, set quotas and in future even look at
managing ip tables to limit bandwidth.
I know os.system(), but this has to be done through a form
How about invoking scripts with SUID root set?
Linux seems to ignore SUID bit on scripts:
Yes. My bad. The work around was to use native launchers. I don't
remember the details. Perhaps with the interpreter embedded to launch
it in-process and to hard code the script paths (or at least a
to embed Python in my C application.
Thanks,
Vertilka
A bit of both :-)
http://www.python.org/doc/ext/extending-with-embedding.html
Ravi Teja.
--
http://mail.python.org/mailman/listinfo/python-list
Kajsa Anka wrote:
I would like some advice, I'm going to build a small app that will, among
other things, scale images so that they can be published on a web site. I've
never done any image processing in python before so I would like to ask what
is the best way of doing this, I will not do
Scripter47 wrote:
Hey!
I know there is a module named SendKeys.
SendKeys module it can type strings as you where typing it, on the keyboard.
But is there a module that does the reverse. A module that gets
_anything_ what the keyboard writes.
For example. If i type hey on my keyboard. Will
[EMAIL PROTECTED] wrote:
I need a function (blocking or non-blocking) that tells me if a key has
been pressed (even before it has been released etc.). Also, I would of
course like to know _which_ key has been pressed.
I know that this probably does not exist in the Python library already
as
Xah Lee wrote:
Regarding VisualPython... i saw a demo in 2002 by a professor
friend. I think it is good. Though, why is its licensing not GPL or
otherwise Open Source? That's kinda odd since Pyhton is.
You are confusing VPython with Activestate's Visual Python IDE plugin
for Visual Studio.
Jean-Paul Calderone wrote:
On 11 Dec 2006 03:01:32 -0800, Ravi Teja [EMAIL PROTECTED] wrote:
Timofei Shatrov wrote:
[snip]
Of course, doctest is hardly the ultimate testing solution. But it does
an admirable job for many cases where you don't need to setup elaborate
tests.
It's
Robert Uhl wrote:
Ravi Teja [EMAIL PROTECTED] writes:
Mark Tarver wrote:
seems to show that Python is a cut down (no macros) version of Lisp
with a worse performance.
By that standard, every other mainstream dynamically typed language
for you is a cut-down version of Lisp
Kaz Kylheku wrote:
Paddy wrote:
http://en.wikipedia.org/wiki/Doctest
I pity the hoplelessly anti-intellectual douche-bag who inflicted this
undergraduate misfeature upon the programming language.
This must be some unofficial patch that still has a hope of being shot
down in flames,
Timofei Shatrov wrote:
But, you have to admit that it looks horrible (at least at the first glance).
If
there's some programming style that I absolutely can't stand, it would be the
one where programmer writes a huge block of commentary describing what a
function does, followed by one-liner
Mark Tarver wrote:
Paul Rubin wrote:
Mark Tarver [EMAIL PROTECTED] writes:
How do you compare Python to Lisp? What specific advantages do you
think that one has over the other?
http://google.com/search?q=python+lispbtnI=I'm+feeling+lucky
Thanks; a quick read of your reference
are written in
Python. Else, use CORBA or ICE with DMI. All of these are simple to use
for simple remote object invocations although distributed computing in
general does have a learning curve.
Ravi Teja.
--
http://mail.python.org/mailman/listinfo/python-list
[EMAIL PROTECTED] wrote:
How do I compile omniORBpy 3.0 on Windows? The readme.txt file seems
to talk only about how to do this on Unix. Unfortenuately, I can not
use the binary because I need to use Python 2.3.5. (and the binary
requires that I use Python 2.4).
I tried to copy the
purple wrote:
I have installed the Eclipse and the plug-in Pydev. Also, I have add an
python program in the external tools. When I run the python program in
the external tools, i can type python command just like in the python
shell.But when I finished running a python file, in the console, I
On Nov 21, 11:20 am, Sai Krishna M [EMAIL PROTECTED] wrote:
there are certainly client/server interactions.
But are they cross-language interactions?
This is how I would choose to distribute code.
Same machine, all in Python - organize in modules in Python path.
Different machines, all in
Thuan Seah Tan wrote:
Hi all,
I am new to python and currently I am working on a traffic simulation
which I plan to define the various agents using scripting. It's kind of like
scripting for non-playable character in games. I am thinking of using python
for this but I am concerned with
Personally, I've never gotten jpype to work. Is it just me, or is it
a troublesome install?
Harry George
PLM Engineering Architecture
It works fine for me now. However, I do recall having an issue a while
ago (most likely me, rather than JPype).
--
Omar wrote:
I'm looking for a programming language or module that sorta looks and
feels like MS Excel (I love and think in tables), yet has the power and
open-endedness of python or javascript. I'm still pretty new to
python.
PyCells
http://pycells.pdxcb.net/
1) I'm also learning to program flash movies while I learn to do
python. How can one implement flash movies into their python code?
Depending on what implementing flash movies into Python code means.
Python and Flash can be complementary. You can develop the UI in Flash
and have it talk to
Stephen Eilert wrote:
Hi all,
There has been much hype lately about web megaframeworks, like
TurboGears, Django and Rails(Ruby side). Those are all fantastic
frameworks, nicely integrated so that the user can focus on solving his
problem, instead of doing all the scaffolding and framework
Ralf wrote:
Is their anybody with xperience in using the both and can provide me with
some xamples.
Googling for python ado returns this simple tutorial
http://www.markcarter.me.uk/computing/python/ado.html
COM access in Python is straight forward with win32all.
--
In most cases, carefully examine why you need native code at all. Since
a good number of performance sensitive CPython modules are in fact
written in C to begin with, the improvements may not always be
significant.
I don't know about your application but here are some general
observations.
A trivial question - I have a working Python script that I have to
invoke from C++ code. No fancy stuff - just run the whole script with
its parameters. No callbacks, no signalling - nada, just
stupid,primitive, straightforward call.
And while there is a lot of help on embedding, I could not
A trivial question - I have a working Python script that I have to
invoke from C++ code. No fancy stuff - just run the whole script with
its parameters. No callbacks, no signalling - nada, just
stupid,primitive, straightforward call.
And while there is a lot of help on embedding, I could not
Someone said about VNC... I'll take a look, but since it is an
exercise I need to do it,
Exercises typically need you to implement, not invent (leave that for a
thesis or a dissertation). Rather than invent VNC, you could just
implement it on your own from the specs.
I need to write a software that allow to see the desktop
That would be the VNC protocol. Don't reinvent the wheel.
VNC is relatively efficient in that it only updates the portions of the
screen that changed.
Maybe this project could be your starting point.
PyVNC
is it possible in python to include another python source file into the
current namespace, i.e.completely analogous to the #include statement
in C.
By using a pre-processor, like C does.
http://www.freenet.org.nz/python/pyp/
If you are new to Python, keep in mind that this is for special
[EMAIL PROTECTED] wrote:
Has anyone tried this thing..
http://www.regular-expressions.info/regexbuddy.html
If I had $30 would this be worth getting or should I just try to learn
the manual. (I was hopeing the essential refrence would clear things
up but I am downloading a gilgillion pages
Chris Smith wrote:
Does anyone know of any python scripts that can help me automatically
navigate through some forms so I can schedule the download the file at the
end of all the questions?
ClientForm
http://wwwsearch.sourceforge.net/ClientForm/
--
Tim Williams wrote:
At this time right now I prefer to do something that works the quickest
possible...
I never had any experience with CGI, do I need to set up a web server
for that ?
can you point me some usefull reading material so I can get a start ?
I will post for a comment at
John Salerno wrote:
Ravi Teja wrote:
???
In the same file, near the top.
keywordclass.python=and assert break class continue def del elif \
else except exec finally for from global if import in is lambda None \
not or pass print raise return try while yield
I could add my own
John Salerno wrote:
Ravi Teja wrote:
Stick to SciTE. It takes almost no learning effort and meets everyone
of those requirements. As far as customerization goes, SciTE can be
customerized quite well. In fact, it can even be scripted with Lua. You
seem to be using the single file
The reason for the a seperate persistant check is because it will be
used to enable software to be installed in whole lab of PCs but only
allow a predifined number to run the software at any time one time.
And then when a user stop using the software a licence will become
available to for
Laurentiu wrote:
hello!
i am searching for a free python editor with
autocorrection capabillities.
for example: the wrong setfocus() call to become
SetFocus(), etc.
thanks
Python is a dynamic language, which means that methods that may not
exist in your source code may spring to being
I also just started using Scite, and I really like it, except I find its
syntax highlighting to be very inflexible. You aren't able to define
your own groups of words -- you have to use what's given, basically. One
thing I like about UltraEdit is that you simply define as many groups of
gel wrote:
Hi
I have written a python client server app that keeps an eye on
processes starting and ending on a client and makes decision on what to
do based on information from the server end. I want to run the client
end of the app more or less invisibly (no console) on the XP clients
[EMAIL PROTECTED] wrote:
Thanks for the script. Are there any online python intrepreters?
I'd like to play around with the script. I don't have access to my home
PC.
You probably will have to wait till you get to yours. There were some
AJAXian ones but I doubt that you will find a free
asincero wrote:
Is there anyway to catch the following type of bug in Python code:
message = 'This is a message'
# some code
# some more code
if some_obscure_condition:
nessage = 'Some obscure condition occured.'
# yet more code
# still more code
print message
In the above example,
To learn SQL SQLite should be enough - it has all the basics, just as
MySQL, while it doesn't require any server/client configuration
(encoding configuration in MySQL is real PITA). But if you want any
serious SQL, go with any freely available *real SQL server*, like
Firebird or PostgreSQL.
Jim Jones wrote:
I am looking for a system in Python that will easily allow me to distribute
processes across multiple systems?So, if I have a function 'foo', I'd
like to be able to call something along the lines of
distribute(foo(x))
And have the system figure out which node is
In general, I'm mainly interested in a template engine for dynamic web
pages but would like a general purpose one to avoid learning yet
another package for generating e-mail messages, form letters, source
code, whatever.
In particular, does anyone have much experience with the Python
But I must say the one thing I miss about Perl is my ability to stay on
top of all the latest modules and apps in one place: CPAN. With Python,
code is EVERYWHERE - people's local boxes, sourceforge, freshmeat,
codezoo, parnassus, etc, etc.
Python CheeseShop is equivalent to CPAN
Philippe Martin wrote:
John Mary Cook wrote:
I just installed Python on Windows XP Pro. When I enter 'python' at the
prompt in Pythonwin IDE I get the following:
Traceback (most recent call last):
File interactive input, line 1, in ?
Name Error: name 'python' is not defined
Is this kind of cleverness what is usually known as magic?
I suspect that this has something to do with it, but not completely
sure...
:-). It must be. Now Django has a magic removal branch.
--
http://mail.python.org/mailman/listinfo/python-list
'Clever is not considered a compliment in Python.' (don't know where I
read that...)
On a similar note.
Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are, by
definition, not smart enough to debug it.
-- Brian
I am looking to use python to talk to JMS. Can some please point me to
such resources if this is possible.
JPype
http://jpype.sourceforge.net/
Jython
http://www.jython.org/
--
http://mail.python.org/mailman/listinfo/python-list
Alan Kennedy wrote:
[tksri2000]
I am looking to use python to talk to JMS. Can some please point me to
such resources if this is possible.
PyHJB is the python-to-JMS gateway. ... via HJB, the HTTP JMS bridge.
http://hjb.python-hosting.com/
HJB (HTTP JMS Bridge)
http://hjb.berlios.de/
Uwe Grauer wrote:
Does anyone know if something similar to Python for Delphi
does exist for lazarus?
Thanks for any pointers,
Uwe
Python for Delphi does support Lazarus since Version 3.29
http://mmm-experts.com/VersionHistory.aspx?ProductId=3
--
Gregory Piñero wrote:
That's interesting, Ben. So we'd be better off making a new library
similiar to Pygame in functionality but designed from the ground up to
work in a browser.
In open source community, that would be YOU since you are the one with
the need :-). Maybe you can make Python
bruce wrote:
hi...
does python provide regex handling similar to perl. can't find anything in
the docs i've seen to indicate it does...
-bruce
It helps to learn to search before asking for help.
Typing the words - python regex (words from your post) into Google
gives you plenty of results
gavino wrote:
This seems easy but I have been asking tcl and python IRC chat all day
and no one gave an answer.
I have 100 servers which need a new backup server added to a text file,
and then the backup agent restarted.
If I have a list of the servers, all with same root password, and the
LittlePython wrote:
Does this require a ssh client or server?
I use authpf to open up my PF firewall for internet use. Generally I just
open up putty and make a connection to the FW ( which open the ports) and
minize it till I am done. When I close putty authpf losses the ssh session
i've got the python app:
http://www.boddie.org.uk/python/downloads/libxml2dom-0.3.3.tar.gz
and i've downloaded it, an untarred it...
i have the dir structure, but i don't know what needs to be done now!!! i
have a setup.py. does it get run?
the Readme file didn't tell me how to build the
gavino wrote:
list of servers L.txt
#cat L.txt
config file is /var/bkupexec/agent.cfg need to add tell epobackup to
bottom of file
# cat tell epobackup /var/bkupexec/agent.cfg
agent is /etc/init.d/agent.ini stop (and then start)
# /etc/init.d/agent.init stop
# /etc/init.d/agent.init
Here is a click and go installer built for Windows that I found from
Google.
http://users.skynet.be/sbi/libxml-python/binaries/libxml2-python-2.6.22.win32-py2.4.exe
Oops! That is for libxml2, not libxml2dom.
--
http://mail.python.org/mailman/listinfo/python-list
Paul Boddie wrote:
Ravi Teja wrote:
1.) XPath is not a good idea at all with malformed HTML or perhaps
web pages in general.
import libxml2dom
import urllib
f = urllib.urlopen(http://wiki.python.org/moin/;)
s = f.read()
f.close()
# s contains HTML not XML text
d
bruce wrote:
hi...
never used perl, but i have an issue trying to resolve some html that
appears to be dirty/malformed regarding the overall structure. in
researching validators, i came across the beautifulsoup app and wanted to
know if anybody could give me pros/cons of the app as it
[EMAIL PROTECTED] wrote:
What is the difference between
import string
and
from string import *
Here is an explanation.
http://effbot.org/zone/import-confusion.htm
--
http://mail.python.org/mailman/listinfo/python-list
a wrote:
what do you guys prefer for ajax?
dojo
mochikit
prototype
or somehting else/
I am using OpenLaszlo for a project with a Karrigell (Python) ReST
backend. Now strictly speaking, this is not AJAX at the moment. It
uses Flash but has the same asynchronous updates from the server
model.
I missed this reply earlier.
Fredrik Lundh wrote:
there might be cognitive theories that argue that the length of the
symbols used to describe something is more important than the symbols
you use and how they can be chunked by the brain
Expert communication is known to work differently. For
I don't think that distinction is very meaningful. As a programmer I
have to understand both.
I understand the Python compiler well, and it gives me reasonably good
feedback when I
get things wrong, and it has a lot of flexibility along several
orthogonal lines.
We're talking about
Or... maybe to be more specific, the hard work later on goes into
*code*. If you are enhancing your model, you do so with methods on the
model classes, and those methods don't effect the DSL, they are just
code. You create some raw XML in the beginning, but quickly it's
just a matter of
BJörn Lindqvist wrote:
community has no interest in it. When I absolutely need macros, I will
go elsewhere.
I *like* 1..5 (ada, ruby) instead of range(5). If I had macros, I would
have done it myself for *my* code.
I think this example more is a symptom of a childish need to get
Kay Schluehr wrote:
Ravi Teja wrote:
People have however written various language interpreters (Scheme,
Forth and yes, even Basic) in Python, just for kicks. Still does not
make it a DSL language anymore than it makes C a DSL language.
At present, the closest thing to writing a DSL
Paddy wrote:
Ravi Teja wrote:
BJörn Lindqvist wrote:
Personally, I would like to see macros in Python (actually Logix
succeeding is good enough). But I am no language designer and the
community has no interest in it. When I absolutely need macros, I will
go elsewhere.
One
Fredrik Lundh wrote:
Ravi Teja wrote:
Web frameworks, which seem to be the rage now in Python community could
have benefited tremendously from Macro capabilities since they have a
lot of boiler plate.
they do? methinks you haven't done much web programming lately...
/F
You blogged
Paddy wrote:
Anton Vredegoor wrote:
With the inclusion of ElementTree (an XML-parser) in Python25 and recent
developments concerning JSON (a very Pythonesque but somewhat limited
XML notation scheme, let's call it statically typed XML)
SNIP
Your thoughts please.
Anton
Hi Anton.
Anton Vredegoor wrote:
With the inclusion of ElementTree (an XML-parser) in Python25 and recent
developments concerning JSON (a very Pythonesque but somewhat limited
XML notation scheme, let's call it statically typed XML) Python seems to
have reached a stage where it now seems to be possible
[EMAIL PROTECTED] wrote:
I found a way to create Open File or Open Folder windows dialog
boxes, but not to create an easier Yes / No dialog box...
Maybe someone has a solution for this?
Assuming you are on MS Windows.
import win32api, win32con
win32api.MessageBox(0, Question, Title,
BJörn Lindqvist wrote:
Personally, I would like to see macros in Python (actually Logix
succeeding is good enough). But I am no language designer and the
community has no interest in it. When I absolutely need macros, I will
go elsewhere.
One must wonder, when is that? When do you
Ok, here's the Hello World example from the Scala website:
object HelloWorld {
def main(args: Array[String]) = {
Console.println(Hello, world!)
}
}
Opening and closing braces?
def main(args: Array[String])?
Console.println?
About the only Pythonic thing I can see here is the
Diez B. Roggisch wrote:
But semantically it is a proper functional language. The features may
not attract Python users who might prefer Boo/Jython/IronPython. But it
does offer something to disillusioned Groovy users.
Are they disillusioned? Just wondering.
Nah! Just a poor passing
Luis M. González wrote:
Diez B. Roggisch wrote:
But semantically it is a proper functional language. The features may
not attract Python users who might prefer Boo/Jython/IronPython. But it
does offer something to disillusioned Groovy users.
Are they disillusioned? Just wondering.
Tim Daneliuk wrote:
So it is claimed:
http://www.infoq.com/news/Scala--combing-the-best-of-Ruby-;jsessionid=CC7C8366455E67B04EE5864B7319F5EC
Has anyone taken a look at this that can provide a meaningful contrast
with Python?
I find the language very interesting but it is not like
I've been hearing a ot about AJAX lately. I may have to build a web
application in the near future, and I was curoius:
How does a web application that uses Python compare with one that uses AJAX?
I've done some basic web page design with HTML and CSS, but never any
web applications. I don't
Bruno Desthuilliers wrote:
python a écrit :
in python , could I accomplish the purpose that a=Console.read() used
in C?
ot mode='pedantic'
There's nothing like Console.read() in ansi-C.
/ot
He probably got it mixed up with C# which ( almost - Console.Read() )
has that.
--
A.M wrote:
Fredrik Lundh [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
A.M wrote:
This is my 1st day that I am seriously diving into Python and I have to
finish this application by the end of today. Maybe it wasn't a good idea
to choose the language that I don't know when
I have a software running on my computer that really looks like notepad
( same interface, different name). I need to write a script that will
capture the content of this software -- the text written inside.
Is it possible using win32 libs? any clue?
http://www.openqa.org/pywinauto/
The
I need C# code for Implementing MD5 Algorithm.
So ask in a C# group.
Python's is here
http://docs.python.org/lib/module-md5.html
please Send... ITs URgent
http://www.catb.org/~esr/faqs/smart-questions.html#urgent
--
http://mail.python.org/mailman/listinfo/python-list
Hi all. I just downloaded and installed the new Office suite from MS
with their new 'ribbon' based UI. I think it's pretty cool and AFT*
for a new UI paradigm. I hope it sticks.
Anyway, I'm wondering how to implement a gui like this with Python.
I haven't seen their new Office suit (apart
i remember seeing this simple python function which would take raw html
and output the content (body?) of the page as plain text (no .. tags
etc)
http://www.aaronsw.com/2002/html2text/
--
http://mail.python.org/mailman/listinfo/python-list
I have a python dictionary file. I want to create a map of that dictionary
and want to use the same in my Java Program.
Can anybody please tell me how to use the same python dictionary in Java as
well as in Python.
Try a JSON parser for Java
http://www.json.org/
Also, IronPython cannot access CPython libraries. So it cannot be used
as a drop-in replacement for CPython in most non-trivial apps. Python
for .NET however allows you to both use both CPython and .NET
libraries.
It will be able to access the standard libraries, as long as they are
Can you recommend a book or a link for a person learning Python on
Windows who does not yet know C# or .NET?
Since Python is cross-platform, any Python book will do. If you need to
do MS Windows specific programming (COM and OLE automation, Windows
Services etc), you can use Mark Hammond's
I'm new to python.
I would like to know whether is it possible to access Java/C++ APIs from
python.
I have two applications written in Java and API, I wanted to call the APIs
of these applications from Python.
I'm developing web-based application using Zope.
CPython can access Java through
Also, IronPython cannot access CPython libraries. So it cannot be used
as a drop-in replacement for CPython in most non-trivial apps. Python
for .NET however allows you to both use both CPython and .NET
libraries.
Ironpython is not a first class .NET language.
That means that although you can
I would like to know whether it is possible to develop web based application
using Python.
Any general purpose language may be used for developing web
applications. Even your favorite shell language. You should really at
least read the python.org main page before asking this question. It
Is there any reason why there isn't any python library that makes
using soap as easy as how microsoft .net makes it.
SOAP with Python is easy too in a different sort of way. I don't know
about the equivalent for autogenerating WSDL bit as in .NET.
#!/usr/bin/env python
def hello():
return
[EMAIL PROTECTED] wrote:
hi
say i have a text file
line1
line2
line3
line4
line5
line6
abc
line8 ---to be delete
line9 ---to be delete
line10 ---to be delete
line11 ---to be delete
line12 ---to be delete
line13 ---to be delete
xyz
line15
line16
line17
line18
I wish to
101 - 200 of 299 matches
Mail list logo