thon/Lib', '/usr/lib/python2.4',
'/usr/lib/python2.4/site-packages']
>>>
so it uses Python 2.4 libs. I am fearing to mix the 2.4 and 2.5 libs.
I need to load CPython 2.5 libs by adding it in site.py file of
ironpython. Maybe I should go experimenting and let you people know
about it.
--
-=Ravi=-
--
http://mail.python.org/mailman/listinfo/python-list
ary.net/pyPdf/
Noted for my reference. Thanks :)
> > -Which XML Library is pure python based.
> >
>
> ElementTree
So ElementTree solved one part. thanks friend.
--
-=Ravi=-
--
http://mail.python.org/mailman/listinfo/python-list
person calls the pages
providing the right path, they are able to execute files in the
framework, though since those configs and other files doesn't return
anything, tere is no result.
--
-=Ravi=-
--
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
27; copies of a single project for
'n' users, and assume all developers are checking out all sources. God
knows.
So is there any good implementation for such situation.
--
-=Ravi=-
--
http://mail.python.org/mailman/listinfo/python-list
G etc, not like
2.3KG)
"""
I thought it would really be good to solve it by python, and right now on
the mid-way solving using very dirty approach.
But I feel, using SETs with python in such would solve it better.
Can anyone come with good solution, and maybe solution showing usage
I need an architecture in a project using Django and Python + MySQL, so that
when I put a python script in specified directory, that should be loaded and
its methods/functions can be used.
As far as i have thought on this, I am going to scan that particular
directory, list out the files, import th
f you are learning the python at
any level, go for IDLE.
What you do, you write every step of statements and that is executed as soon
as you finish the block. So you have chance to understand the things step by
step. Just like learning by debugging..
Try it self, no one's review can
...
>>> hello = 123
>>> a(hello)
hello
## pretty cool.
It's totally useless but I wanted to do it for logging purposes. It
will still return weird results if you have two labels pointing to the
same object but I'm not sure how to get around that, any ideas?
Regar
Of course I wouldn't, it is a total hack, mostly useless but fun. I
tried to do it after someone in #python efnet said it was impossible!
On Jul 21, 9:56 pm, Marc 'BlackJack' Rintsch <[EMAIL PROTECTED]> wrote:
> On Mon, 21 Jul 2008 09:01:10 -0700, Ravi Kotecha wrote
proxy'] to
the same settings which I use, but I could not succeed. The login() method
reports error about no addreess associated with it.
Please help me solve it. I used the proxy settings, but it didnt work. so
any workaround, and what sort of thing I am missing.
--
-=Ravi=-
--
http://mail.
very clever
uses of Python there.
I like it a lot for when I haven't got anything better to code:
http://projecteuler.net/
- Ravi
--
http://mail.python.org/mailman/listinfo/python-list
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
Here is an outstandingly well written article, with examples, from
Stephen Ferg:
http://www.ferg.org/papers/debugging_in_python.html
Ravi
--
http://mail.python.org/mailman/listinfo/python-list
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
No! That is NOT correct Python. For one thing, you do not declare the
types in dynamically typed languages. Secondly, if you want floating
point division, you need to enter atleast one of the numbers as float.
For example
10.0/6
or
10./6
or
float(10)/6
You will find the following helpful.
http://
JyotiC wrote:
> I want to make a stand alone gui. Whose work is to get the diff options
> from user and run a shell script based on them.
>
> I wanna know which one is better to use Tkinter or PyGTK, in terms of
> efficiency and functionality.
>
> I hv read about Tkinter, but it takes too much ti
This may help
http://search.cpan.org/~gaas/pyperl-1.0/perlmodule.pod
You can always use pipes (os.popen) to keep things simple.
--
http://mail.python.org/mailman/listinfo/python-list
Not from here.
A highly unscientific measurement, using execution time from SciTe on
my 3.5 yr old box.
Python startup - 0.272 sec
With your snippet for Tk - 0.402 sec
0.13 sec is trivial in my book.
--
http://mail.python.org/mailman/listinfo/python-list
> editor and even then it's still difficult. Stuffing it into Python
> strings is a double pain because you have to figure out how may times
> you have to quote your percent signs depending on how may times you
> render a string.
You don't need to do that. You can always use your favorite templat
http://xmlstar.sourceforge.net/
Not Python, but just the tool for the job.
For Python, 4Suite has some validators. But parts of it were written in
C and might not be helpful if you want to look at the Python source
code. You might want to check
http://www.leuthe.homepage.t-online.de/minixsv/minixs
Documentation isn't his only contribution, BTW. He wrote a whole bunch
of highly useful modules for Python as well.
http://effbot.org/downloads/
--
http://mail.python.org/mailman/listinfo/python-list
If you are looking for ways to access C++ code in Python, there are
several (Boost, SIP, CXX, SWIG, Weave etc). Unless your needs are
somehow unique, this is the preferred approach.
People usually convert higher level languages to lower level
languages for performance (For example Python to C+
binary package).
--
-=Ravi=-
--
http://mail.python.org/mailman/listinfo/python-list
On Sat, Mar 20, 2010 at 7:27 PM, Brian J Mingus
wrote:
> Moderating this stuff requires moderating all messages. It would take a
> team of volunteers.
>
You are right... Form the team of volunteers. More people in it, better it
would be - since no one would have to be dedicated.
-
www.workfrominter.com
--
http://mail.python.org/mailman/listinfo/python-list
201 - 280 of 280 matches
Mail list logo