On Sep 11, 4:19 pm, Fredrik Lundh <[EMAIL PROTECTED]> wrote:
> [EMAIL PROTECTED] wrote:
>
> > I wonder if there is a platform written in python. The equivalent of
> > the Netbeans platformhttp://platform.netbeans.org/in the Python
> > world. Do you know such a thi
On Sep 11, 11:13 am, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:
> On Sep 11, 4:19 pm, Fredrik Lundh <[EMAIL PROTECTED]> wrote:
>
>
>
> > [EMAIL PROTECTED] wrote:
>
> > > I wonder if there is a platform written in python
Insider information, fackbook labs open today, we the first to
register!
www.fackbooklabs.com
--
http://mail.python.org/mailman/listinfo/python-list
Hi !
I need some help to create backup with python.
I want to backup some bases on DVD - RW .
How i make this with python ?
I want to use python because the program is write on python .
Thank you !
--
http://mail.python.org/mailman/listinfo/python-list
Enjoy seeing
with
new
video pictures
http://nagaaraja.blogspots.com\
--
http://mail.python.org/mailman/listinfo/python-list
Start saving, best online pharmacy here
http://gjlabeh.cuchezfarg.com/?cdfikmabehxwvrsygzchcmjl
--
http://mail.python.org/mailman/listinfo/python-list
Start saving, best online pharmacy here
http://gjlabeh.cuchezfarg.com/?cdfikmabehxwvrsygzchcmjl
--
http://mail.python.org/mailman/listinfo/python-list
Ultimate Destination For All Online Job Seekers.
Online cash online money without investments online
paid surveys earn money online.
Earn with FUN!!!
For More Details Check the Links Below:
http://www.tips2internetmarketing.blogspot.com/
http://www.80kpermonth.blogspot.com
--
http://mail.python.or
Ultimate Destination For All Online Job Seekers.
Online cash online money without investments online
paid surveys earn money online.
Earn with FUN!!!
For More Details Check the Links Below:
http://www.tips2internetmarketing.blogspot.com/
http://www.80kpermonth.blogspot.com
--
http://mail.python.or
Ultimate Destination For All Online Job Seekers.
Online cash online money without investments online
paid surveys earn money online.
Earn with FUN!!!
For More Details Check the Links Below:
http://www.tips2internetmarketing.blogspot.com/
http://www.80kpermonth.blogspot.com
--
http://mail.python.or
return
===
queuemanager.py
from testqueue import JobQueue
from SimpleXMLRPCServer import *
class QM:
def __init__(self, filename):
self.jq = JobQueue("queue.txt")
def addJob(self, jobname):
self.jq.addJob(jobname, "[EMAI
.
Contact us at [EMAIL PROTECTED]
Thanks,
-Maurice Ling
Co-Editor In Chief, The Python Papers
--
http://mail.python.org/mailman/listinfo/python-list
http://groups.google.com/group/comp.lang.python/browse_thread/thread/33f3659cc4d30b22#
http://groups.google.com/group/comp.lang.python/browse_thread/thread/33f3659cc4d30b22#
http://groups.google.com/group/comp.lang.python/browse_thread/thread/33f3659cc4d30b22#
http://groups.google.com/group/comp.la
Greetings,
I've been trying to figure out if it's possible to attach a Python
script to an action via Mac OSX Leopard's File Actions system. I'm
wanting to call a Python script every time a file is added to the
monitored folder. Just adding a .py file doesn't seem to do anything
at all, and I can'
On Sep 24, 3:21 pm, "Dmitry S. Makovey" <[EMAIL PROTECTED]> wrote:
> Hi,
>
> after hearing a lot about decorators and never actually using one I have
> decided to give it a try. My particular usecase is that I have class that
> acts as a proxy to other classes (i.e.
I have string like follow
12560/ABC,12567/BC,123,567,890/JK
I want above string to group like as follow
(12560,ABC)
(12567,BC)
(123,567,890,JK)
i try regular expression i am able to get first two not the third one.
can regular expression given data in different groups
--
http://mail.python.org
news from
http://www.mrchat.net/myblog/myblog/small-accidents-mean-big-trouble-for-supercollider.html
Small Accidents Mean Big Trouble for Supercollider
Image
Scientists expect startup glitches in the massive, complex machines
they use to smash atoms.
But the unique qualities of the world's l
Thanks Black Jack
Working
--
http://mail.python.org/mailman/listinfo/python-list
On Sep 28, 2:29 pm, process <[EMAIL PROTECTED]> wrote:
> I have heard some criticism about Python, that it is not fully object-
> oriented.
>
> What is not an object in Python?
>
Parts of the syntax aren't objects. e.g. "=" or ":" aren't ob
Maybe you need to close the socket somewhere else, rather than to
close it when you receive the your response.
On 9月30日, 上午7时01分, Ali Hamad <[EMAIL PROTECTED]> wrote:
> Hello All :
>
> A socket question from a networking newbie. I need to create
> a server that:
>
> 1
On Oct 2, 2:27 pm, process <[EMAIL PROTECTED]> wrote:
> i just downloaded 2.6 and when running the gui nothing happens.
>
> anyone else with the same problem?
I have no idea what "gui" you're referring to.
However, when I try to run Python on vista, I get:
The a
Hello.
I'm using SimpleHTTPServer (work well) but it always sends "Server"
header in response:
"Server: SimpleHTTP/0.6 Python/2.5.1"
How can I remove that ?
I tried:
self.server_version = ""
self.sys_version = ""
but the header is still sent, empty.
I there a way to remove the "Server:" head
I saw this (close to this anyway) lieing around on the internet and
was wanting to use it to define a start point exc but I need the
graphics to stay within a set y coords and I am not realy sure how to
do that. I have no idea on how to bind a min/max y to it. (the
concept is inspired by the java
On 3 oct, 20:17, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote:
> > [EMAIL PROTECTED] wrote:
> >> I'm using SimpleHTTPServer (work well) but it always sends "Server"
> >> header in response:
> >> How can I remove that ?
>
>
-
(Apologies for cross-posting)
International Journal of Imaging (IJI)
http://www.ceser.res.in/iji.html
ISSN 0974-0627
We would appreciate if you could distrib
I'm not 100% sure what is a library in python. Your example above is
importing a module.
Someone else can correct me, but I use libraries to refer to underlying
c/c++ code that is required for the python modules to function. So in
pure python you are really only dealing with modules.
string.rep
Hello fellow python users,
I've been working on a basic implementation of a privilege separated
web server, and I've goto the point of running a basic cgi script.
Basically when the execCGI function in my Unpriv.py program is called a
few things should happen, it should fork (which it does), the s
Is there any advantage to a language having a nice mathematically
compact grammar like LISP does? (or at least used to?)
Many have admired the mathematically simple grammar of LISP
in which much of the language is built up from conses IIRC.
Python's grammar seems complicated by comparison.
Is th
Rich wrote:
> Anyway, my question is: what experience you people have with working
> with different languages at the same time?
At any given time, I'm doing a fair amount of Python and C work. I
also do a lot of bash scripting for supporting frameworks. Beyond that
I use a fair number of domain-
Hello everyone,
I recently made the plunge to an mactel platform because, well, it was
new laptop time. I have a few python projects I need to get going and,
for the most part, things are a-ok. I have been using a source
compiled copy of 2.4.2. I feel slightly uncomfortable doing this,
mainly b
Thanks for the reply Donn,
It seems logical enough to me that finding #!/usr/bin/env python in the
script file with the chroot I have used, is the problem. Once again
thank you for the help.
Regards,
Gavin
--
http://mail.python.org/mailman/listinfo/python-list
>Is the standard output thread-safe?
No.
You'll need to synchronize access.
--
http://mail.python.org/mailman/listinfo/python-list
>Can I make an executable with just the standard distribution, or do I
>need a separate module?
Check out py2exe: http://www.py2exe.org/
--
http://mail.python.org/mailman/listinfo/python-list
pyregex is a command line tools for constructing and testing Python's
regular expression. Features includes text highlighting, detail break
down of match groups, substitution and a syntax quick reference. It is
released in the public domain.
Screenshot and download from
http://tungwaiyip.info/soft
Hello,
I'm trying to create an addin for Outlook 2002 using the one provided
in the demo of win32com as a starting point. I've been able to do my
addin and test it if I go the "standard" way (using the python
interpreter). But now, I want other poeple to use it to I want to
freeze it for windows u
I have a little py module that implements the Composite pattern to
represent xml file contents. My class is called ExtensionRegistry
because that's what I use it for, you could rename it to whatever you
wanted. After parsing, this allows me to access my xml file contents
like this:
xmlFile = Exten
Here is a simple function that epydoc does not like:
def test():
"""
Return an XML string that looks like this::
123
D
...
@return: XML string.
"""
pass
[EMAIL PROTECTED]:daplib]$ epydoc test.py
Importing 1 modules
Is there a recommended way to specify the permissions and ownership of
scripts installed from distutils? Also, I'm currently just using this
config in setup.cfg to control where the scripts go:
[install]
install-scripts = /opt/mcad/bin
But it would be very helpful if I could install some of the
Doh. That was too easy.
Thanks!
jw
--
http://mail.python.org/mailman/listinfo/python-list
i have a huge database that contains large amounts of html that i need
to translate to ascii..
i have tried using html2text.py:
http://www.aaronsw.com/2002/html2text/
but i could not figure out how to import it and use it as a library
without getting errors everywhere..
so i decided to try usin
Are you by any chance referring to the "cmd" module?
--
http://mail.python.org/mailman/listinfo/python-list
I am running Mac OS X. I have Tcl/Tk installed. I can run the Aqua
version (TkAqua) of wish by typing 'wish' at a terminal prompt. I can
run the X11 version (TkX11) of wish by typing 'wish8.4-X11' in an
x-term. If I run python and import Tkinter it always grabs the TkAqua
version. How can I ge
Should't the changeSex method be:
def changeSex(self, newsex=""):
self.sex = newsex
return self.sex
You're creating a new instance variable at the moment i.e 'self.mysex'
doesn't exist until you call changeSex.
--
http://mail.python.org/mailman/listinfo/python-list
When capturing a keystroke using pyhook or other methods, any key
pressed after is not recognized. Is there a way around this?
--
http://mail.python.org/mailman/listinfo/python-list
> Install python using fink, and invoke that. Should work against X11 for
> all GUI-Toolkits.
I prefer not to do this. Darwin is already a Unix, and Apple provides
a version of X11 that works well with it. Fink seems like an
unecessary layer that I would rather not mess with. Tcl/Tk has a very
>Bertrand Mansion said
>Now, there are also new features we might want:
>
> - documentation with user comments (like in PHP, Postgres, MySQL...)
> - RSS feeds
> - Efficient search engine (hyperestraier ?)
> - Database backend and CMS
Add examples in the documentation to your list also!!
Yes the p
Would rsync into a remote encrypted filesystem work for you?
--
http://mail.python.org/mailman/listinfo/python-list
perfect!
that worked great!
thank you!
--
http://mail.python.org/mailman/listinfo/python-list
>Is there any editor or IDE in Python (either Windows or Linux) which
>has very good debugging facilites like MS VisualStudio has or something
>like that.
I've been using Eclipse with PyDev and am very happy with it.
--
http://mail.python.org/mailman/listinfo/python-list
Nick Kew wrote:
> Tony Houghton wrote:
>...
> But regardless of whether it's 'safe' amongst current devices,
> you're setting yourself up for a Y2K-family bug. Except it'll
> be a real one, not a storm-inna-teacup.
>
Hey, hey, don't go spouting off like one of those ignorant journalists!
I and a
try gocr?
command line ocr for linux
Not very pythonic, but I am unaware of any ocr implementations in
python.
It is gpl, so it should be to hard to write python wrappers if you
really want to do it right.
--
http://mail.python.org/mailman/listinfo/python-list
assuming you have a button instantiated and named myButton
in 2.6 (namespace is relevant I think prior to 2.4 you had a diff
namespace for wx) for this example i am guessing you are creating the
button as part of a panel or some other object you are extending (ie
self)
self.myButton.Bind(wx.E
I was searching the net about SSL support in Python, and it seems that
a few years ago that the native SSL functions were broken or badly
wanting in comparison to third party libraries such as m2crypto, POW
and pyOpenSSL. What is the state of native support now?
I'd like to use Python's native SS
Background:
The problem I'm trying to solve is.
There is a 5x5 grid.
You need to fit 5 queens on the board such that when placed there are
three spots left that are not threatened by the queen.
My thinking:
I created a list, named brd, that represents the board.
I made it such that brd[1] would be
The python code below generates a cartesian product subject to any
logical combination of wildcard exclusions. For example, suppose I want
to generate a cartesian product S^n, n>=3, of [a,b,c,d] that excludes
'*a*b*' and '*c*d*a*'. See below for details.
CHALLENGE: generate an equivalent in ruby,
Well the first thing to note is that the maximum record length in SSL
is exactly 16384. SSL/TLS does not preserve message boundaries - it is
up to the application to determine if there are multiple messages in a
single record, or a single message spanning multiple records. Sounds
like the particu
Thank you very much guys!
Just for clarification it wasn't homework, just extra credit :)
I can't beleive I didn't realize that I didn't clear the GLOBAL
variable :D
--
http://mail.python.org/mailman/listinfo/python-list
Flame war? Absolutely not. My reason is to learn. There are many sites
dedicated to reasonably objective comparisons between languages. Here
are two examples:
http://www.smallscript.org/Language%20Comparison%20Chart.asp
http://www.jvoegele.com/software/langcomp.html
The wildcard exclusion problem
The point is to submit elegant code that showcases the features of each
language. And the problem is, just to clarify, given a set WC of
wildcards in any logical combination, and if WC(S^n) is the set all s
in S^n that matches the wildcards, then efficiently generate the
complement S^n\WC(S^n). You
What I have in mind is the efficient, generation of the
complement S^n/WC(S^n). A good program should initialize, generate, and
terminate.
T=cartprodex(S,n,WC); //initialize
for all i in T do
what you want with i
test to see if any more
terminate if not
and it should do this without explic
The asterisk '*' matches any sequence of elements, not just one
element. The wildcard '*1*2*' would then correspond to a tuple with a 1
preceding a 2 in any positions. The wc '1*2' would correspond to a
starting 1 and an ending 2 with anything in between. The wc *12* would
correspond to a 1 adjacen
vbgunz wrote:
> I am afraid that this is the first time in which I would probably need
> something explained to me as if I were a little child. I am having a
> hard time getting this through my thick skull. What in the world is
> wrong with this!?
>
> ''' ##
-- The states are lists of regular expressions
-- where [a,b,..] means match a or b or...
I haven't run or studied your program yet myself but what I had in mind
was that the list of wc's are *all* to be excluded, so the list
[wc1..wcn] is to correspond generating all tuples matching not(wc1 and
.
Sorry to bring this up again, but I decided to try to re-create the
program, using the 2d array.
However, I ran into a slight problem.
How will the permutation function have to be modified?
I'm having issues trying to figure out how it works, and how it would
need to be modified to use it correct
You may be interested in, or already know about
http://www.lambdassociates.org/
http://www.lambdassociates.org/aboutqi.htm
http://www.lambdassociates.org/webbook/contents.htm
http://www.lambdassociates.org/prolog.htm
Let me know what you think.
--
http://mail.python.org/mailman/listinfo/python-
It would seem that your program is just filtering the full cartesian
product, right? The solution I'm looking for generates the elements
one-by-one so that it could be used in a loop.
--
http://mail.python.org/mailman/listinfo/python-list
Hi
I have python cgi script, but when I call it I got server internal
error. The log in my apache is
[Sat Mar 18 04:17:14 2006] [error] [client 127.0.0.1] (13)Permission
denied: exec of '/srv/www/cgi-bin/helo.cgi' failed
[Sat Mar 18 04:17:14 2006] [error] [client 127.0.0.1] Premature end of
scrip
I'm using OS X 10.4.5. I have an easy problem that I can't solve:
I have two versions of python installed. 2.3 came with the OS and 2.4 I
installed via fink.
When I call python from the command-line it calls 2.4.
When I just call a *.py file like test.py, it calls 2.3.
1. How do I make both thes
Thanks for the fast responses.>mp
--
http://mail.python.org/mailman/listinfo/python-list
Using OSX 10.4.5
This is more of a unix/tcsh question than a python question.
Somehow I got to the point where I have two files 'a.py' and 'b.py'
which have identical contents and permissions, but one refuses to
execute:
[blah:/Library/WebServer/CGI-Executables] me% a.py
tcsh: a.py: Command not f
For more details about the plan for Python 2.5, see:
http://www.python.org/doc/peps/pep-0356/
The highlights are that we are hoping to put out the first alpha Real
Soon Now, hopefully in a week or two. If there's something you really
think just must be in 2.5 and can't wait until 2.6, now is
Hello,
I hav a question..How do I write a webbot that logs onto some website,
fills text into a textbox and submit that form, Sorry I am a novice in
python, apparently I have to use urllib, but I hav a few queries on
this, What happens when there are more input interfaces..does urllib
make somekind
Yes, the program is quite a jumble: but it works. And I didn't post to
python newsgroup since I was limited to just 5 newsgroups and didn't
feel like doing multiple postings to multiple newsgroups.
--
http://mail.python.org/mailman/listinfo/python-list
Thanx for the info..i'll let you know when it works
--
http://mail.python.org/mailman/listinfo/python-list
Here is an nice intro to K:
http://www.kuro5hin.org/?op=displaystory;sid=2002/11/14/22741/791
"This is where K starts to set itself from apart from most of the
common programming languages in use today. You rarely write loops in K
(KDB is 100% loop-free), instead you use adverbs. An adverb modi
The cardinality of excluding '*a*b*' from S^n should be
(m-1)^(n-1)*(m+n-1), where m=|S|. For m=5 this becomes 4^(n-1)*(n+4),
and your table fits this formula. As far as generating and testing, an
'ideal' solution would be to 'start from the ground up', as in
excluding length 2 wc, and then length
Nice! How to put it in a loop? I'm totally a newbie to Lisp myself,
just gettng into Graham and Touretzky. Let's create a problem. Suppose
after excluding I want to know if the digits sum to 12, say, like maybe
they're part of a partition. S={0,..6}, S^5, excluding "*1*5*" and
"1*2*3*", say. How w
I have written a C module which implements a new Python type, and
implemented data attributes for the type using PyGetSetDef/tp_getset.
However, I want to allow instances of this type to have additional data
attributes which also have get() and set() functions. (This might be
better suited to use
OK, a bad case of RTFM. I saved your file as WildCartesian.hs and then
1) command line: ghci WildCartesian.hs
2) Get some loading messages
3) command line: test
and it works! But how do I compile it to get a program with command
line arguments? I'm looking through Daume's tutorial right now.
--
Hi all.
Here's the problem: I've got a black box and a bunch of particles in
an environment. The particles go into the black box, follow a path,
and pop out the end after some processing. They are processed
first-in-first-out, like a queue.
Inside the black box is a physical layout that can be
Sorry accidently replying using my other google account
[EMAIL PROTECTED] wrote:
> >
> > assuming you are running this python script the standard cgi way and not
> > through modpython or fastcgi.
> yes I'm running it in standard cgi way coz my provider only allow me
&
Well, the homepage of Pycrypto (http://www.amk.ca/python/code/crypto)
was modified las in December 2005 - quite recent imo. It is used e.g.
in the paramiko package (http://www.lag.net/paramiko/) for the most(?)
used ssh implementation in Python, so my guess it is active.
--
http://mail.python.org
It is depending on the classes you try to compare, and on how the
comparison functions (see
http://docs.python.org/ref/customization.html) are implemented in
these, see example below:
py> class wrong(object):
... def __init__(self, x):
... self.x = x
... def __cmp__(self, other):
.
I'm not sure about osx, but I know linux uses a proc virtual
filesystem. ( freebsd is probably closer, and it doesn't either but you
can mount it via mount_linprocfs none /proc)
But if you know if you have a proc file system, you can check it to see
if you are under power...
IE if I remember righ
Oops -- just asked a buddy, osx doesn't have /proc
But you could look into sysctl
I'll boot up my laptop and check out if there is anything regarding the
battery, but I suspect you should investigate
sysctl -a | grep acpi
--
http://mail.python.org/mailman/listinfo/python-list
Hi,
I had error in my script like "sudden EOF in MultiFile readline()"
Why such error occur
--
http://mail.python.org/mailman/listinfo/python-list
Good news!
I asked a buddy that runs osx, and he whipped up a script for you :)
I understand it's not python, but it gets you close, you should be able
to use popen or subprocess.call to complete this.
function is_charger_plugged_in()
{
sleep 3;
BATTINFO=`ioreg -l -w 0 | grep IO
After the basic fact of generating the exclusion - a considerable
achievement - the program should be interactive. What if the target set
has thousands or millions of elements? There should be a loop-like way
('do' in Haskell, for example) to peel off the elements one-by-one and
then terminate.
-
i use a blackberry as my pda, and was wondering fi there was anything
going on in the python world for blackberry..
i googled a bit, but it seems like most of the area is untapped..
anyone else have anything they know about?
thanks!
--
http://mail.python.org/mailman/listinfo/python-list
I'm writing a scipt that need to interact with the user.
Lets say I have the:
"Do you want to continue [Y|n]"
Where just pressing return means Yes (since its uppercase).
Its easy to write a function for this, but perhaps something like this
already exists. Could someone point me to a class that
lies to XP, mine is Win2k).
In HKEY_CLASSES_ROOT\Python.File\shell\open\command
the (Default) key does indeed contain the string
"C:\Python24\python.exe" "%1" "%~2"
but there was another key named command that contained
the following binary data:
62 00 33 00 36
Ross Ridge wrote:
> Tim Golden wrote:
> > python.file="C:\Python24\python.exe" "%1" %*
>
> [EMAIL PROTECTED] wrote:
> > So now I got to decide whether the file association should be
> > set to "%2" "%3" "%4" "%5&q
Marco Aschwanden wrote:
> This is actually a c++ problem. Got no satisfying answer on comp.lang.c++.
> Maybe you can help better because I know, there are many c++-converts ;).
>
> Suppose you've got the following list (first line has field names, second
> line has types and any row after is data):
> Try to trim down your script to the minimal code that produces the error
> and post both. Copy'n'paste code and traceback, don't retype it.
The code is kinda bit long so you can see the whole idea. I use some
libgmail and twisted web
#code start
def displayComment(request):
gmc = libgmail.G
I often need to re-code for myself a small code snippet to define
string.upto() and string.from(), which are used like :
# canonical examples
> "1234456789".upto("45")
'1234'
> "123456dd987".from('d')
'd987'
# if not found, return whole string
> "hello, world !".upto("#")
"hello, world !"
> u"hel
Sure, you're right I forgot about rsplit !
I guess the negative indexes & al could be done with
sep.join(xyz.split(sep)[:index])
Thanks !
--
http://mail.python.org/mailman/listinfo/python-list
"And it doesn't really matter what language you use to implement this
algorithm, it's the idea that counts. Notation aside, all
implementations will be quite similar."
I'll guess I'll get out my Turing tape. ;)
What are some good references for finite state machines? Minimization?
--
http://mai
John Salerno wrote:
> Ok, here's a problem I've sort of assigned to myself for fun, but it's
> turning out to be quite a pain to wrap my mind around. It's from a
> puzzle game. It will help if you look at this image:
>
> http://www.johnjsal.devisland.net/switches.jpg
>
> Here's the situation: Each
Hello,
The solution that would have the most utility would be one where the
elements are generated one-by-one, loop-like, so that they can be used
in the body of a loop, and to avoid the fact that even with exclusion
the cardinality of the target set EX^n could be in the millions even
with a full
>For instance: "import my.path.module" would load module from
>./my/path/module.py?
Yeah, just do that. I don't understand the question, it works just like
this today.
--
http://mail.python.org/mailman/listinfo/python-list
4701 - 4800 of 4919 matches
Mail list logo