>> Why don't you use an existing mail server?
Probably because that was his homework assignment for a networking
class. Not uncommon to be told to implement a server from the scratch
from the RFC. Although that does not explain his concern about
performance.
Abhinav, if that is the case, using so
http://mail.python.org/pipermail/python-list/2001-January/025344.html
--
http://mail.python.org/mailman/listinfo/python-list
Pankaj wrote:
> The module which i am creating is like
>
> Part A:
> 1. It does some processing by using python code.
> 2. The result of this python code execution is written to a text file.
> [This part is already compelete]]
>
> Part B:
> 1. I read a text file which is outputted by above python
I actually find Python for .NET most convenient
http://www.zope.org/Members/Brian/PythonNet
I did not try py2exe with these applications, so I cannot comment.
--
http://mail.python.org/mailman/listinfo/python-list
Python for .NET
http://www.zope.org/Members/Brian/PythonNet
--
http://mail.python.org/mailman/listinfo/python-list
Extending
--
http://mail.python.org/mailman/listinfo/python-list
Right. They are complicated(Assuming that you are reading Python API
docs), especially if you have not done a substantial amount of C. You
spent 8 minutes trying to understand them. What did you expect? People
spend days sorting out the API issues.
If you are in a hurry, Pyrex is easiest approch t
Magnus Lycka wrote:
> Ravi Teja wrote:
> > 230 UI screens is a lot. An app of that nature is not something people
> > commonly do in Python (although I would be happy to see people show me
> > wrong).
>
> Maybe not, but I don't doubt that it's reasonable to r
I have Ubuntu which uses the Debian package tree.
I see libapache2-mod-python2.4 with "apt-cache search mod_python"
Perhaps you don't have all the repositories enabled?
--
http://mail.python.org/mailman/listinfo/python-list
swisscheese wrote:
> I have a simple python desktop app with several edit controls and a
> couple of buttons. It just does some math. What's the simplest way to
> make it a server-side app so visitors to my site can run the app via
> their browser?
If the math is simple, you can just use JavaScri
> as it would be so obviously a good thing to have a graphical (or maybe
> curses-base) browser through the dynamic state of a Python program, it's
> probably there.
>
> Can someone point me to something?
If you mean graphical debuggers, most Python specific IDEs have them.
Few examples ..
Python
Oops.
http://www.activestate.com/_images/screenshots/ss_Komodo_rails_large.gif
is the debugger screenshot for Ruby (Komodo supports more than one
language). Python's debugger in Komodo looks exactly the same.
--
http://mail.python.org/mailman/listinfo/python-list
Why is no one talking about ActiveGrid, which at least on the surface
seems to be the most polished way to build web applications in Python
so far. They have a sound financial backing, $10 million when I last
heard, made news on non-Python circles, have a relatively friendly
authoring environment
>> For short : this was kind of a joke... I understand that what you were
looking for is a 'native code' compiler. AFAIK, this could of course be
done, but due to Python's very dynamic nature, it's not sure this would
lead to drastically better performances.
This is a standard response to a rather
Fredrik Lundh wrote:
> Ravi Teja wrote:
>
> > This is a standard response to a rather frequent question here. But I
> > am not sure I ever understood. Scheme / Lisp are about as dynamic as
> > Python.
>
> if that were fully true, it would be fairly trivial to transl
Actually optimizations are not what concern me. I am pretty happy with
Pyrex/Swig etc for that. What I want is the ability to make a native
DLL/SO. A whole lot easier to integrate/embed to other languages.
--
http://mail.python.org/mailman/listinfo/python-list
> So while it would be possible to apply the same strategy to
> Python, it likely wouldn't gain any performance increase over
> the interpreter.
Thanks,
That was quite illustrative. But as I posted elsewhere, I am looking at
the other advantages of native compilation rather than speed. Python's
ab
You have not stated where the Python code needs to reside.
On the server, you can use XML-RPC or SOAP. Flash either supports them
natively or has libraries for those. Your web service servers can be
written in Python. This is the perhaps the best approach.
On the client, Python can be installed a
Martin v. Löwis wrote:
> Ravi Teja wrote:
> > But more often I am looking to use Python libraries
> > in other languages since I am more familiar with them and they
> > typically tend to be more high level (the way I like it) than the
> > standard libraries of others
Actually, py2exe (from version 0.6.1) onwards does create single file
exes without ANY additional dependencies.
--
http://mail.python.org/mailman/listinfo/python-list
As Peter later pointed out, that is a licencing issue rather than a
tool issue. After browsing through the PyInstaller documentation, I
came across a curious snippet.
"On Windows, this provides support for doing in-process COM servers. It
is not generalized. However, embedders can follow the same
ziggy wrote:
> Just wondering if there is something out there like Jedit, but written
> in python ( not just supporting, but actually written in it.. )
>
> Nothing large like Stanzi's or Boa.. Just something quick and simple,
> with code completion, and a debugger..
PythonWin, so long as you are
If what you want is a web IDE that supports visual development, no
standalone Python IDE has such support. But you can use Python in IDEs
that do support these features.
1.) ActiveGrid (http://www.activegrid.com/) - closest visual web IDE
where Python is a first class member.
2.) Use ASP.NET with
This is following the pattern of your previous post on language choice
wrt. writing a mail server. It is very common for beginers to over
emphasize performance requirements, size of the executable etc. More is
always good. Right? Yes! But at what cost?
The rule of thumb for all your Python Vs C qu
Benjamin Niemann wrote:
> Byte wrote:
>
> > How can I make the following code:
> >
> > from random import random
> >
> >
> >
> > def stuff(a, mx):
> > x = 2
> > while x == 2:
> > x = random()
> > if x == mx: print x
> > else: print 'No luck,', x
> > x = 2
>
> Not sure about the "install-packages-until-you-go-blind" thing. Komodo
> doesn't help you install packages into your Python implementation. Nor
I think he is confusing with Visual Package Manager.
Matt, in most cases, installing packages in Python is about as easy as
it gets. As a newbie, you sh
No! It's ..
os.remove(filename) or os.unlink(filename)
--
http://mail.python.org/mailman/listinfo/python-list
Dependency tracking is usually not perfect in exe generators. I don't
recall how good py2exe is at this. If you understand which of those
files will not be used by your program, you can safely delete them. A
bit of trial and error here if you are not sure. Unless you are using
floppies or dialup to
COM is Windows only. (Actually there is DCOM for Linux, but that's
another story).
Read about it here.
http://en.wikipedia.org/wiki/Component_object_model
--
http://mail.python.org/mailman/listinfo/python-list
According to
http://sourceforge.net/project/showfiles.php?group_id=12867
The last release of 2.2a was on July 17, 2005 - about 7 months.
--
http://mail.python.org/mailman/listinfo/python-list
For most purposes Jython 2.1 is just fine. The lack of recent features
is not a show stopper. What do you need metaclasses? decorators? BTW,
there is Jython 2.2 as an alpha release.
There are a number of ways you can use Java code through Python.
Use JPype to start a Java VM
http://jpype.sourcefo
On Apr 19, 3:58 am, Teja <[EMAIL PROTECTED]> wrote:
> On Apr 19, 3:48 pm, Tim Golden <[EMAIL PROTECTED]> wrote:
>
> > Teja wrote:
> > > how to generate CHM files in Boa(Python)???
>
> >http://www.rutherfurd.net/software/rst2chm/index.html
>
> > TJG
>
> Can't I do it in Boa constructor ??? I hav
> > > > Teja wrote:
> > > > > how to generate CHM files in Boa(Python)???
>
> > > >http://www.rutherfurd.net/software/rst2chm/index.html
>
> > > > TJG
>
> > > Can't I do it in Boa constructor ??? I have seen an option in Boa to
> > > create a new helpbook and compile it to CHm and help files, B
;
> thx,
>Uriel Katz
Use soaplib instead of ZSI. It has better WSDL support which makes it
easier to create client stubs from other languages.
http://trac.optio.webfactional.com/
Ravi Teja.
--
http://mail.python.org/mailman/listinfo/python-list
nvenient because
working with typed systems is more convenient in dynamic languages
than it is to work with untyped systems in typed languages. Of course,
if the project is really small, none of this really matters. Pick your
poison.
Ravi Teja.
--
http://mail.python.org/mailman/listinfo/python-list
, although I mainly
used it as a server than a client.
Ravi Teja.
--
http://mail.python.org/mailman/listinfo/python-list
e to the Python world so please 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
, check out ShedSkin. Since you mentioned that you
were using very few 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
there but I thought that if some
> thing needs to be done in php 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
licitly convert yourself. In this case with
int_value = int(string_value)
Ravi Teja.
--
http://mail.python.org/mailman/listinfo/python-list
> while usrinp != "y" or "Y" or "N" or "n": <<<<PROBLEM
Correct way:
while usrinp != "y" or usrinp != "Y" or usrinp != "N" or usrinp != "n":
There has to be a boolean evaluation on both
esources. If you have very basic questions, IRC (freenode has a
Python channel), is a better option. When you post, make the question
as specific as possible. Sometimes typing a good question itself gives
you an answer.
Ravi Teja.
--
http://mail.python.org/mailman/listinfo/python-list
ile in notepad (or other text editor)? You do not use regex to
search binary files.
Ravi Teja.
--
http://mail.python.org/mailman/listinfo/python-list
>> I've traditionally been a Java developer, although I play around with LISP.
For most java developers, understanding dynamic typing is a big step.
Your Lisp background however would mean that you will pick up Python
very quickly.
>> I recently migrated to Linux and I was exploring Mono as an
op
>>"like the hashtable in java"
People don't give a reference to a language feature only because it
added/invented it but also because it is a popular one that many are
familiar with.
Java did not invent HashTables. They existed long before and were
available to most languages before Java. Neither
> Well, Java does have this great feature called "market-hype"...
I ... concede.
--
http://mail.python.org/mailman/listinfo/python-list
How To Ask Questions The Smart Way
http://www.catb.org/~esr/faqs/smart-questions.html
--
http://mail.python.org/mailman/listinfo/python-list
text[:text.find('Here')].rfind('abc')
--
http://mail.python.org/mailman/listinfo/python-list
No! That's not the way things work. Such code needs to run locally (in
this case, Windows). You can run this program as a daemon on Windows
with some nice simple remote interface (Eg: xmlrpc) and send a message
to trigger the shutdown.
--
http://mail.python.org/mailman/listinfo/python-list
Not much to it. Just follow the SimpleXMLRPCServer example from Python
docs and register your shutdown function. Call it using xmlrpclib
remotely.
Actually, I prefer the telnet method below. Simple and straight forward.
--
http://mail.python.org/mailman/listinfo/python-list
PHP and Python are different languages. They do things differently. You
are just familiar more with one than the other. Give it some time.
The many file approach is the modular design of Python. Having the
standard library separate from the main Python DLL is an advantage, not
a disadvantage. For
Addendum:
Python has zip imports (similar to Java's jar files). You can put all
your *.py files in a zip file and access them from it if this means so
much to you.
--
http://mail.python.org/mailman/listinfo/python-list
No! mod_python needs Python. It is simply an integration module for
Apache and Python, not an interpreter.
--
http://mail.python.org/mailman/listinfo/python-list
If all you have are functions, the easiest is to create a simple dll/so
and load it into Python with ctypes.
http://starship.python.net/crew/theller/ctypes/tutorial.html
For more advanced needs, take a look at some of the extending options
available.
http://www.suttoncourtenay.org.uk/duncan/accu/i
You are working with the debug configuration, use release instead and
python24.lib will suffice.
http://news.hping.org/comp.lang.python.archive/6741.html
--
http://mail.python.org/mailman/listinfo/python-list
> I write applications that use COM and Tkinter to automate basic office
> tasks. My users are thankfully benevolent enough to download and install
> Python on their own. They don't know what PythonWin is, they aren't
> remembering it, and frankly, I don't think it should be their concern.
> It's
> This thing implements a perl interpreter inside python. That seems like
> overkill to me.
It does not *implement* Python, just embeds it. It is not an overkill
if you can get it to work quickly and move on.
If you are Windows, you can use COM. Support is available for both
languages and is fai
> 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
> lin
>> I don't think that's what you really meant ^ 2
Right! That was very buggy. That's what I get for posting past 1 AM :-(.
--
http://mail.python.org/mailman/listinfo/python-list
>> 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
po
> 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 thr
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
> > 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
> 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 "Py
> 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/
http://www.json.org/jav
Everything you need.
http://diveintopython.org/soap_web_services/index.html
--
http://mail.python.org/mailman/listinfo/python-list
You can match if the list contains the legal number of arguments with.
func_variable.func_code.co_argcount
Type checking arguments has to be done manually since Python is a
dynamic language. Perhaps, you could try some typechecking decorators.
http://www.ilowe.net/software/typecheck/
>From the doc
Everything you need.
http://diveintopython.org/soap_web_services/index.html
--
http://mail.python.org/mailman/listinfo/python-list
http://wwwsearch.sourceforge.net/ClientForm/
--
http://mail.python.org/mailman/listinfo/python-list
Have you seen Python's ftplib?
http://effbot.org/librarybook/ftplib.htm
http://docs.python.org/lib/module-ftplib.html
--
http://mail.python.org/mailman/listinfo/python-list
Jarek Zgoda wrote:
> Michael Ekstrand napisa³(a):
>
> > Glade + PyGTK + libglade does the trick. libglade (exposed as gtk.glade
> > in Python) allows you to load Glade interface files (the raw XML Glade
> > saves your interfaces as) and then connect to various signals, access
> > the widgets, etc.
>> Interesting link, but the focus there seems to be encoperating Python into
>> Delphi apps in Windows. My focus is more getting Delphi like GUI building,
>> but coding python on Linux.
According to the web site
http://mmm-experts.com/VersionHistory.aspx?ProductId=3
it supports Lazarus, which
Hashtables (dictonaries) and ArrayLists(lists) are integral parts of
modern languages (for example: Python, Ruby, OCaml, D). They are
builtin data types unlike say, Java or C++, where they are added to the
library as an afterthought.
--
http://mail.python.org/mailman/listinfo/python-list
http://www-inst.eecs.berkeley.edu/~maratb/readings/NoSilverBullet.html
--
http://mail.python.org/mailman/listinfo/python-list
Sigh. I could not have imagined that a link without an offending word
could be taken as an insult. Perhaps the lack on accompanying text
contributed? Anyway, it just was not my day (and not just you).
To me, that article makes many points. I was thinking in terms of
technology stagnation and parti
I did not check prices earlier. There are many other clones. How about
Hyperstudio? $70 for student edition?
--
http://mail.python.org/mailman/listinfo/python-list
Yes! But not many.
http://www.livelogix.net/logix/
Logix also allows you to create your own custom languages for Python's
VM. But for some reason, there does not seem to be much interest in
it's development. Odd, given that it has great potential.
--
http://mail.python.org/mailman/listinfo/pyth
I posted this a few days ago. According to the website
(http://mmm-experts.com/VersionHistory.aspx?ProductId=3), FPC support
has been added since version 3.29.
--
http://mail.python.org/mailman/listinfo/python-list
I did not mean the lack of interest on part of the developer. That was
explained here.
http://www.livelogix.net/logix/future-work.html
His complaints were Efficiency and Security.
I was wondering why the Python community did not show interest in this.
There is tremendous potential in this product.
Yes! XPath is a good bet.
You can also try some Pythonic XML libraries like Amara. You need not
learn any special language even.
There are good database approaches to XML too, especially if you are
going to query a document collection as a whole rather than file by
file. You can try XQuery. I thin
http://msdn.microsoft.com/visualc/vctoolkit2003/
Free.
--
http://mail.python.org/mailman/listinfo/python-list
Only MS can answer those questions.
Even though, Python on Windows is compiled with VC++, you can still use
Mingw32 to compile extensions. There are some articles floating around
on how to do this and I did try it successfully in the past. Please
note that I am not advocating either compiler. Just
Not to interrupt the valuable lesson with Google :-)
Boa Constructor.
--
http://mail.python.org/mailman/listinfo/python-list
Did you read
http://diveintopython.org/soap_web_services/index.html ?
and specifically
http://diveintopython.org/soap_web_services/introspection.html ?
These docs are slightly dated but I doubt much has changed. If there is
a problem, you can always try the older version from the site.
--
http:/
Yes! It does.
Assuming that you are not terribly bandwidth constrained, isn't it
easier for you to try it
yourself on your own machine than wait for other people to assure you,
given that both are free and pretty much run on any platform?
--
http://mail.python.org/mailman/listinfo/python-list
Ah! An overzealous firewall! My sympathies :-). I am using the free
Kerio personal firewall on Windows.
--
http://mail.python.org/mailman/listinfo/python-list
They are very different tools, apples and oranges. Plone is built for
content management needs and TurboGears is built for general
application development purposes.
Both can work behind Apache but are not based on Apache. They use their
own servers.
Plone gives you a lot out of the box, but build
No! That's Python from UML. OP asked for the opposite.
--
http://mail.python.org/mailman/listinfo/python-list
I don't have any dearth of Python needs ( I now, sort of pay my tuition
through Python :-) ). But I use it for fun as well, say gaming. For
example, I have scripts that send keystrokes based on voice commands or
other keystrokes.
Having a productive language like Python at your disposal can help
a
This topic has come up a few dozen times at the least. Please use
google to search for the threads.
People have their preferences. The best way to choose is to try several
by yourself. Most of them are free.
http://wiki.python.org/moin/IntegratedDevelopmentEnvironments
--
http://mail.python.org
1.) Print statements
2.) IDEs
Most Python IDEs provide visual debuggers so that you don't have to use
command line ones such as pdb.
As with all languages that allow to be executated as a script as well,
print statements usually get the job done quite well in most cases.
Please read the Python F
> For example, I've never seen an "object-relational mapping" (technical
> term for cruft that tries to avoid people having to learn and use SQL)
> which doesn't drive me into a murderous, foam-at-mouth rage in a very
> short time -- I *WANT* my SQL, I *LOVE* SQL, it's *WAY* more powerful
> and sui
Finding similar images is not at all a trivial task. Entire PhD
dissertations have been committed to it. The solutions are still very
unreliable as of yet. If you want to find more, you can read the
research out of the ongoing Image CLEF track. I worked with them
briefly a couple of years ago in co
Here's a wrapper for V4L.
http://antonym.org/libfg
--
http://mail.python.org/mailman/listinfo/python-list
Agreed. Mine was hardly a complete list.
Another bit I lost is keeping data operations close to the database. I
am more likely to use multiple languages/frameworks over the same
database than change databases for the same application. I actually
prefer functions and procedures within the DB (even
Last time I tried, BDB XML's Python extension crashed and I did not try
too hard to figure out why and switched to something else that did not
(eXist). BDB has been marketed for long as a fast database and will
probably be faster than 4Suite. I doubt that you will find any
benchmarks comparing thos
>> Out of curiosity, how do I draw functions outside classes with UML? How
module could be drawn in this case?
As a utility class.
>> More theoretical question is if I create classes on the fly, how UML can
reflect that?
"On the fly" usually means "at runtime". I guess you mean if you
"change co
> So, function could be a utility class method. If there are no better ways.
What I mean is <> is the formal notation for a class in which
global functions are aggregated. It's not a hack.
Python is not alone here. Most OO languages aside Java and Smalltalk
have functions outside classes and UML a
> Well, you can have a lot of things happening during the import stage. Is
this 'runtime' or not ?-)
Runtime.
> And you can actually *create* (not 'change') classes at runtime too.
Yes sir! By now I am quite well aware what 'dynamic typing' means. Once
again, round trip tools today model program
101 - 200 of 208 matches
Mail list logo