bonjour,
après bien du mal j'ai réussi à créer une dll pour 4e Dimension
maintenant j'aurai voulu intégré Python à cette dll
j'ai voulu faire simple pour le moment en utilisant l'exemple donné
dans la doc
exemple :
#include
int
main(int argc, char *argv[])
{
Py_Initialize();
PyRun_SimpleSt
James Stroud wrote:
> I would like to get the index of the character closest to the pointer in a
> Text, something like Canvas.find_closest(). I want it to bind to ''.
> Does anybody know how this might be done?
use w.index("@x,y" % (event.x, event.y)) to find the character "under" the
pointer, a
"ÒÊÃÉɽÈË" <[EMAIL PROTECTED]> wrote:
>i have not find the ComboBox in Tkinter,has it? where to get the doc about
> how to use combobox ctrl?
the Tix add-on contains a combobox:
http://docs.python.org/lib/node727.html
see
http://docs.python.org/lib/node725.html
for some information on
Donn Cave wrote:
>In article <[EMAIL PROTECTED]>,
> <[EMAIL PROTECTED]> wrote:
>...
>> I used the python executable from the build directory to run the
>> following program:
>>
>> import os
>>
>> def main():
>> if not (os.path.exists("/")):
>> print "/ does not exist"
> There is no guarantee at all that a .pyc file is good for any purpose
> outside the machine that produced it. In practice, however, you
> *should* be able to rely on no surprises if you have the same platform
> and the same version of Python; do you?
Python 2.3.5 and 2.3.3 on the test machine -
William Park a écrit :
> How do you compare 2 strings, and determine how much they are "close" to
> each other? Eg.
> aqwerty
> qwertyb
> are similar to each other, except for first/last char. But, how do I
> quantify that?
>
> I guess you can say for the above 2 strings that
> - at m
[Thomas Heller]
|
| Tim Golden schrieb:
| > [Thomas Heller]
| >
| > [... snip problems with py2exe & WMI ...]
| >
| > | The OP of the thread Tim mentions here already had a
| solution, if I
| > | understood him correctly, and the other things that were
| suggested
| > | didn't work. Basical
> This may be relevant to the problems you're seeing:
>
> https://sourceforge.net/tracker/?func=detail&atid=305470&aid=774665&group_id=5470
>
> The short story, as the tracker item paints it, is that setting
> LC_NUMERIC to anything other than 'C' can give results like the ones you
> describe
Wibble wrote:
> Thats how common lisp specifies a vector.
>
> Andreas, your link indicates that lisp is a Weakly typed language not
> strong. Theres no compile time type semantics, at least in CommonLisp,
> MacLisp, ZetaLisp or FranzLisp.
>
> (setq foo #(1 2 3))
> (setq foo 1)
> (setq foo "Whate
On 5/24/05, Cameron Laird <[EMAIL PROTECTED]> wrote:
> General principle: if in doubt about the significance of an item in
> "Python-URL!", assume that it's intended in a constructive way.
I find that if you make the same assumption about c.l.py in general,
you are seldom wrong. That's a big part
PROBLEME RESOLU
j'ai résolu le problème en supprimant le commutateur \GZ de le link
http://support.microsoft.com/kb/q191669/
--
http://mail.python.org/mailman/listinfo/python-list
On 5/23/2005 at 7:54:24 PM, alex goldman wrote:
> I'm just curious, what do you mean by strong typing, and which strongly
> typed languages do you know?
"Strongly typed" is not a very useful term, unless your intent is to
generate confusion or start an argument. Unfortunately, there is no
consen
After I installed python 2.4.1 , I found my keyborad Number 1 can't work,but ! is still workingDo You Yahoo!?
150万曲MP3疯狂搜,带您闯入音乐殿堂美女明星应有尽有,搜遍美图、艳图和酷图
1G就是1000兆,雅虎电邮自助扩容!--
http://mail.python.org/mailman/listinfo/python-list
Looking for some confirmation that Python really is a more concise language than most others, I resorted to the ever handy Computer Language Shootout and it's oh so reliable CRAPS scoring system ;)Python comes second, just after OCaml. Both of which are a significantly further ahead of everything e
My thesis, "Localized Type Inference of Atomic Types in Python", was
successfully defended today for my MS in Computer Science at the California
Polytechnic State University, San Luis Obispo. With that stamp of approval I
am releasing it to the world. You can grab a copy at
http://www.drifty.org/
Simon Brunning wrote:
> On 5/24/05, Cameron Laird <[EMAIL PROTECTED]> wrote:
>> General principle: if in doubt about the significance of an item in
>> "Python-URL!", assume that it's intended in a constructive way.
>
> I find that if you make the same assumption about c.l.py in general,
> you are
Dennis Lee Bieber wrote:
> On Tue, 24 May 2005 13:20:01 +0200, Bram Stolk <[EMAIL PROTECTED]>
> declaimed the following in comp.lang.python:
>
>
>>$ cat l.cxx
>
>
> Isn't ".cxx" a "C++" indicator? I think Python is just plain C,
> so you'd have to wrap everything to indicate C style namin
Stelios Xanthakis wrote:
...
>- It's incompatible with CPython. Not all programs run.
...
> - The demo is an x86/linux binary only. You shouldn't trust binaries,
>run it in a chrooted environment not as root!
>
> Hope it works!
Whatever the merits of a system like this, a closed system with b
Hello,
I want to open the file 'configuration.smo' that is in directory dir.
Yet, I don't know on which os my program is being run. On Unix I would
say:
f = open(dir + '/configuration.smo', 'r')
What is the os-independent version of this line?
(I have read the manual of the module os, but I di
I believe you want:
import os
f = open(os.path.join(dir, 'configuration.smo'), 'r')
...
Joerg Schuster wrote:
> Hello,
>
>
> I want to open the file 'configuration.smo' that is in directory dir.
> Yet, I don't know on which os my program is being run. On Unix I would
> say:
>
> f = open(dir
Hi,
it`s
import os
f = open( os.path.join( dir , 'configuration.smo' ), 'r' )
HTH,
Gerald
Joerg Schuster schrieb:
> Hello,
>
>
> I want to open the file 'configuration.smo' that is in directory dir.
> Yet, I don't know on which os my program is being run. On Unix I would
> say:
>
> f = open(d
On 5/23/05, <潍坊风筝> <[EMAIL PROTECTED]> wrote:
> After I installed python 2.4.1 , I found my keyborad Number 1 can't
> work,but ! is still working
How did you type the message then ;)
--
http://mail.python.org/mailman/listinfo/python-list
Thanks, Andrew and Gerald.
Jörg
--
http://mail.python.org/mailman/listinfo/python-list
Gerald Klix schrieb:
> Hi,
> it`s
>
> import os
> f = open( os.path.join( dir , 'configuration.smo' ), 'r' )
*nix-heads everywhere?
For a text file, I would prefer:
f = open( os.path.join( dir , 'configuration.smo' ), 'U' )
and for a binary file:
f = open( os.path.join( dir , 'configuration
Joerg Schuster schrieb:
> Hello,
>
>
> I want to open the file 'configuration.smo' that is in directory dir.
> Yet, I don't know on which os my program is being run. On Unix I would
> say:
>
> f = open(dir + '/configuration.smo', 'r')
>
> What is the os-independent version of this line?
Did You c
Hello,
I tried this code in emacs.
for i in range(3):
time.sleep(1)
print i
It shows the result but total result not second per second.
Any one experiance this problem
pujo
--
http://mail.python.org/mailman/listinfo/python-list
Scott Kirkwood <[EMAIL PROTECTED]> wrote:
>I often can't remember that to remove spaces from a string whether it's
>strip() or trim(), and when finding patterns with the re library
>whether it's find() or search() and when iterating over key, values of
>a dictionary whether it's items() or entries(
Bram Stolk wrote:
> Hi there,
>
> I just built and installed Python-2.4.1 on my Irix machine.
> My compiler, the MipsPro compiler, chokes on the Python.h include file,
> as demonstrated here:
>
>
> $ CC -v
> MIPSpro Compilers: Version 7.41
> $ python -V
> Python 2.4.1
> $ cat l.cxx
> #include
>
Brandt, Servatius wrote:
> The stat values do not make any sense. It seems that the value used for
> the mode is really the numbers of links (I created the two empty
> /usr/local... directories to prevent the os.error exception):
That sort of suggests that the definition of the stat struct is no
Hi All - I'm new to python
Is there an impact analysis tool out there that can cross reference
python -- VB has a couple of these tools (eg. Visual Expert)
TIA, All comments welcome
Dave
--
http://mail.python.org/mailman/listinfo/python-list
Hi all.
How do I tell distutils to run build_ext before build_py when I try to
do a
'python setup.py build' ?
I have a C extension using SWIG, and when I build with setup.py,
build_py runs on the current module.py file before swig
creates/recreates it. I got around it by just putting in another
David a écrit :
> [snip]
> CC=g++
So actually your 'initutm' is '_Z7initutmv' for the linker. Try building
with gcc instead, or declaring
extern "C" PyMODINIT_FUNC initutm(void);
or something like that.
--
http://mail.python.org/mailman/listinfo/python-list
Sion Arrowsmith wrote:
> But can you come up with a method for remembering which way
> round str.find() and str.index() are?
Don't use "str" and you won't have anything to remember:
'foo bar baz'.find('spam')
'spanish inquisition'.index('parrot')
-Peter
--
http://mail.python.org/mailman/listinf
[EMAIL PROTECTED] coughed up:
> Thomas G. Marshall wrote:
>
*Missattributed* --Thomas G. Marshall (I) did /not/ write the following:
>>> I am not familiar with modern Fortran. Surely it at least has
>>> argument prototyping by now?
>
> Since the 1990 standard, if Fortran subroutines and functions
Xah Lee coughed up:
> The Rise of "Static" versus "Instance" variables
You are clearly unable to form a proper argument, *AND* you have irritated
nearly everyone frequently.
Ahthe blessed silence
--
http://mail.python.org/mailman/listinfo/python-list
I don't know about emacs, but this works in PythoWin IDE.
import time
import sys
for i in range(20):
sys.stdout.write(str(i)+' ')
sys.stdout.flush()
time.sleep(1)
-Larry
[EMAIL PROTECTED] wrote:
> Hello,
>
> I tried this code in emacs.
> for i in range(3):
> time.sleep(1)
> prin
Xah Lee wrote:
> The Rise of "Static" versus "Instance" variables
Please do not feed the troll *
> --
> to be continued tomorrow.
Please don't
> This is part of an installment of the article
> "What are OOP's Jargons and Complexities"
> by Xah Lee, 20050128. The full text is at
QOTW: "If you're sick of answering newbie questions, and don't think you
can do so politely, for the sake of the community, DON'T! You're not that
necessary." - Joal Heagney
"Who controls the runtime also controls the language." - Kay Schluehr
Jake tells us about the \r control characte
Hello All,
I am using matplotlib0.8. With the quiver function I
have tried to plot a vector. However for some reason I
do not get what I want.
I have problem with the S (according the comments a
scaling parameter) parameter. When I set it to 0 (S = 0
), I get the correct vector with correct directi
I have a class with a name attribute, which I want to modify using
property.The following code works just fine:
class Portfolio(object):
def __init__( self, name="Port1"):
self.name=name
def getname(self):
return self._name
def setname(self,newname="Port2"):
Has anyone used pure python to upload files to a webdav server over SSL?
I have no control over the server. I can access it with all of the
various webdav GUIs such as Konqueror, Cadaver, etc. by using a URL like
this:
webdavs://dav.hostname.com/user_name/uploads
My goal is to upload files a
Dieter Maurer wrote:
> "Martin v. Löwis" <[EMAIL PROTECTED]> writes on Sun, 22 May 2005 21:24:41
> +0200:
>>...
>>>The application was Zope importing about 2.500 modules
>>>from 2 zip files "zope.zip" and "python24.zip".
>>>This resulted in about 12.500 opens -- about 4 times more
>>>than would be
"rh0dium" wrote:
> Ok so up to here I am ok. I find ( If you want the full xml let me
> know) two blocks of system memory. It MUST be "System Memory" only.
> Now how do I get a list of all of the children "nodes" of this. They
> are named bank:N ( i.e bank:0, bank:1 etc [see below] ). For eac
rbt wrote:
> Has anyone used pure python to upload files to a webdav server over SSL?
We were not using SSL at the time (since it wasn't supported in standard
Python, as I recall), but we successfully used the webdav client that
was part of Zope a few years ago. I suspect you could adapt it to
On 5/24/05, Brett C. <[EMAIL PROTECTED]> wrote:
My thesis, "Localized Type Inference of Atomic Types in Python", wassuccessfully defended today for my MS in Computer Science at the CaliforniaPolytechnic State University, San Luis Obispo. With that stamp of approval I
am releasing it to the world.
UHOSTNET.COM
[EMAIL PROTECTED]
²{±À¥X¥þ·sÀu´f
ªA°Èp¹º¶R¤Q°e¤G¡A¤Z¹wú¤QÓ¤ëªA°È¤ë¶O¡A¦h°e¨âÓ¤ë¡C
²{§Y¥Ñ¨ä¥¦¤½¥qÂà¥Î§ÚÌ¡A§Y¦h°e±z¤TÓ¤ëªA°È¡C
(¥ô¦ó°ì¦WÂಾ)
¤ä´© PHP+MySQL, Access+ASP, ASP.NET, CGI, SSI ¹q¶l¯f¬r¹LÂo, ©U§£¹q¶l¹LÂo ¤Î
WebMail µ¥..
¥»¤ë§C«e¥Ó½ÐW1000§Y°eº¦¸¦w¸ËÁʪ«¨®µ{¦¡ os
I have a simple python script that I need to create a kit for, and it
has one config file.
This is for Unix only, and very restricted use, so here's my relevant
setup.py:
setup(., scripts=['myscript.py'],
data_files=[('/etc', ['myscript.cfg'])],...)
My problem is that when I repeatedly
<[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>I have a class with a name attribute, which I want to modify using
> property.The following code works just fine:
>
> class Portfolio(object):
>
>def __init__( self, name="Port1"):
>self.name=name
>
>def getname(self):
>
[EMAIL PROTECTED] wrote:
> name=property(getname,setname,None,None)
>
> However, it no longer works if I modify getname and setname to
>
> def getname(self):
> return self.name
>
> def setname(self,newname="Port2"):
> self.name=newname
That's because you're actually
Hello,
I wrote a small script which I have been trying to
convert to an Executable. I have tried py2exe and
McMillians. Both will convert it just fine but when I
run it on a machine that does not have Python
installed it will run the script twice. Any ideas on
how I may fix this?
Paras
[EMAIL PROTECTED] wrote:
> I have a class with a name attribute, which I want to modify using
> property.The following code works just fine:
>
> class Portfolio(object):
>
> def __init__( self, name="Port1"):
> self.name=name
This may not do what you think it does (see below)
>
>
When drawing rectangles in Tkinter canvases I've noticed the outer edges
(say 3-5 pixels) don't always draw. For instance, try typing this in an
interactive session (Terminal in OS X or Command Prompt in Windows XP):
>>> import Tkinter as T
>>> root = T.Tk()
>>> f = T.Frame(root)
>>> f.grid()
>>
I'm an old time python user, but just got bitten by namespaces in eval.
If this is an old discussion somewhere, feel free to point me there.
Based on the documentation, I would have expected the following to
work:
def foo(k): print k; print a
ns = {'a':1, 'foo': foo}
eval('foo(2)', ns)
But it d
Hi,
I'm trying to write a regex that matches a \r char if and only if it
is not followed by a \n (I want to translate text files from unix
newlines to windows\dos).
I tried this, but it doesn't work:
p = re.compile(r'(\r)[^\n]', re.IGNORECASE)
it still matches a string such as r'\r\n'
--
http:
Got it! Thank you so much for your much appreciated help.
Bill Carey
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
I may be missing something simple, but is there a way to have
verify_request change the request before it gets processed by the
RequestHandlerClass?
Regards
J
--
http://mail.python.org/mailman/listinfo/python-list
Hello,
I found the solution of my problems. The configure script decided to
switch on large file support, but the #defines set in pyconfig.h caused
an inconsistency between the stat function calls (32 bit versions) and
the stat structures used (64 bit versions). After I switched off the
large fi
Dave Opstad wrote:
> When drawing rectangles in Tkinter canvases I've noticed the outer edges
> (say 3-5 pixels) don't always draw. For instance, try typing this in an
> interactive session (Terminal in OS X or Command Prompt in Windows XP):
>
> >>> import Tkinter as T
> >>> root = T.Tk()
> >>> f
Andrew MacIntyre wrote:
> My suspicion would be directed to a #define that is incorrect, as the
> snippet above suggests that select() appears in two system headers
> (/usr/include/sys/time.h & /usr/include/unistd.h).
thanks for the info.
I need to undef the following from my pyconfig.h to make i
Fernando Rodriguez wrote:
> I'm trying to write a regex that matches a \r char if and only if it
> is not followed by a \n (I want to translate text files from unix
> newlines to windows\dos).
Unix uses \n and Windows uses \r\n, so matching lone \r isn't
going to help you the slighest... (read on
In article <[EMAIL PROTECTED]>,
"pasa" <[EMAIL PROTECTED]> wrote:
> I'm an old time python user, but just got bitten by namespaces in eval.
> If this is an old discussion somewhere, feel free to point me there.
>
> Based on the documentation, I would have expected the following to
> work:
>
> d
Hello fellow Pythonists,
Is there such a thing? My work is thinking of maybe experimenting with
Ruby on Rails for some lesser projects. Naturally, I wonder if Python can
do as good a job or better...
Thanks for the info,
-- C
--
http://mail.python.org/mailman/listinfo/python-list
Christopher J. Bottaro wrote:
> Hello fellow Pythonists,
> Is there such a thing?
As what ?
Oops, sorry, the question is in the subject... May be helpful to repeat
it in the body.
You may want to have a look at Subway
> My work is thinking of maybe experimenting with
> Ruby on Rails for some
In article <[EMAIL PROTECTED]>,
"Fredrik Lundh" <[EMAIL PROTECTED]> wrote:
> to fix this, you can either set the border width to zero, add scrollbars
> to the widget (this fixes the coordinate system), or explicitly reset the
> coordinate system:
>
> w.xview_moveto(0)
> w.yview_moveto(0)
Thanks for the help. I now understand it better. As Bruno points out, I
really don't need a property in this case, as my attribute is public,
and I will remove it.
Thomas Philips
--
http://mail.python.org/mailman/listinfo/python-list
I just ran makepy to create a wrapper for my com object, and it
generated the wrapper with the CLSID.py under
site-packages/win32com/gen_py/
Now, I'm trying to figure out how to invoke it. How do I figure out
what string to give Dispatch?
For instance:
xl = win32com.client.Dispatch("Excel.Applic
Hi All,
I am seeing some interesting behavior with Pyro 2.3. I created a server using
Pyro2.2 and a client on a different machine with Python2.2 and communication
was just fine (I am not using a Name server).
However when I upgraded the client to Pyro2.3 (the server was sill on Pyro2.2)
and tr
Golawala, Moiz M (GE Infrastructure) wrote:
> Hi All,
>
> I am seeing some interesting behavior with Pyro 2.3. I created a server using
> Pyro2.2
> and a client on a different machine with Python2.2 and communication was just
> fine (I
> am not using a Name server). However when I upgraded the c
How can I make a python client script connect to a Web server and
automatically populate form fields and then submit the form?
For example, say I wanted to check and see if 1924 was a leap year...
how would I populate the 'year' field and then submit it for processing?
I have no control of the
"pasa" <[EMAIL PROTECTED]> wrote in message
> Do functions carry their own pointer to global namespace,
> which gets defined at function compile time, or what is
> happening here?
To expand on Just's answer:
For lexical scoping -- resolution of globals in the definition context --
some refer
I looked through all the IIDs in: PythonWin, Tools, COM Object
Browser, RegisteredCategories, Automation Objects.
After looking through all the IIDs I saw one that looked like it might
work... and it did.
-Jim
On 5/25/05, James Carroll <[EMAIL PROTECTED]> wrote:
> I just ran makepy to cre
<[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Thanks for the help. I now understand it better. As Bruno points out, I
> really don't need a property in this case, as my attribute is public,
> and I will remove it.
As much to the point is that your name attribute is static in the
I have a string like:
{'the','dog\'s','bite'}
or maybe:
{'the'}
or sometimes:
{}
[FYI: this is postgresql database "array" field output format]
which I'm trying to parse with the re module.
A single quoted string would, I think, be:
r"\{'([^']|\\')*'\}"
but how do I represent a *sequence* of
On Wednesday 25 May 2005 08:27 am, [EMAIL PROTECTED] wrote:
> Is there an impact analysis tool out there that can cross reference
> python -- VB has a couple of these tools (eg. Visual Expert)
I could be wrong, but my first impression is that that must be
VB jargon for something we might know unde
bruno modulix wrote:
> Christopher J. Bottaro wrote:
>> Hello fellow Pythonists,
>> Is there such a thing?
>
> As what ?
> Oops, sorry, the question is in the subject... May be helpful to repeat
> it in the body.
>
> You may want to have a look at Subway
Cool, that looks like what I'm looking
Thank you Fredrik, this worked beautifully. I had no idea about the "@"
prefix. Incidentally, I had to change the code to
w.index("@%s,%s" % (e.x, e.y))
Maybe the x,y is a python 2.4 thing. I'm still stuck in 2.3.
James
On Wednesday 25 May 2005 12:18 am, Fredrik Lundh wrote:
> w.index("@x,y"
In article <[EMAIL PROTECTED]>,
Fredrik Lundh <[EMAIL PROTECTED]> wrote:
>"ÒÊÃÉɽÈË" <[EMAIL PROTECTED]> wrote:
>
>>i have not find the ComboBox in Tkinter,has it? where to get the doc about
>> how to use combobox ctrl?
>
>the Tix add-on contains a combobox:
>
>http://docs.python.org/lib/node72
gry@ll.mit.edu wrote:
> I have a string like:
> {'the','dog\'s','bite'}
> or maybe:
> {'the'}
> or sometimes:
> {}
>
[snip]
>
> I want to end up with a python array of strings like:
>
> ['the', "dog's", 'bite']
>
> Any simple clear way of parsing this in python would be
> great; I just assume
James Stroud wrote:
> Thank you Fredrik, this worked beautifully. I had no idea about the "@"
> prefix. Incidentally, I had to change the code to
>
> w.index("@%s,%s" % (e.x, e.y))
>
> Maybe the x,y is a python 2.4 thing.
no, it's a think-before-cutting-and-pasting thing. should have
been "@%d,%
Terry Hancock wrote:
> On Wednesday 25 May 2005 08:27 am, [EMAIL PROTECTED] wrote:
>
>>Is there an impact analysis tool out there that can cross reference
>>python -- VB has a couple of these tools (eg. Visual Expert)
>
> I could be wrong, but my first impression is that that must be
> VB jargon
I'm trying to call functions on an automation object, and I've run
makepy to generate a wrapper, and 99% of the calls I make on the
wrapper work great.
my question is: Is my [''] * 10 as close as I can come to a variant
array of pre-allocated empty strings?
I'm trying to call a function called E
gry@ll.mit.edu writes:
> I have a string like:
> {'the','dog\'s','bite'}
> or maybe:
> {'the'}
> or sometimes:
> {}
>
> [FYI: this is postgresql database "array" field output format]
>
> which I'm trying to parse with the re module.
> A single quoted string would, I think, be:
> r"\{'([^']|\\'
After failed attempts at trying to get my code to work with squid.
I did some research into this and came up with some info.
http://www.python.org/peps/pep-0320.txt
"- It would be nice if the built-in SSL socket type
could be used for non-blocking SSL I/O. Currently
packages such as Twisted wh
Problem:
Works fine when running python test.py but fails when executing
test.exe.
test.py:
conn = win32com.client.gencache.EnsureDispatch('ADODB.Connection')
conn.Open("Provider='SQLOLEDB';Data Source='.';Initial
Catalog='mydatabase';User ID='user';Password='pwd';")
.
.
.
setup.py:(same KeyEr
Pyparsing includes some built-in quoted string support that might
simplify this problem. Of course, if you prefer regexp's, I'm by no
means offended!
Check out my Python console session below. (You may need to expand the
unquote method to do more handling of backslash escapes.)
-- Paul
(Downloa
What is the fastest way to code this particular block of code below..
I used numeric for this currently and I thought it should be really
fast..
But, for large sets of data (bx and vbox) it takes a long time and I
would like to improve.
vbox = array(m) (size: 1000x1000 approx)
for b in bx:
vbo
Hi Bernard
My system is a PA 8K series with 4096 MB and 2 processors, running 64
bit mode OS.
I only created the recipe above after 1 week of mistakes :-), but I
don't know if it will work with your branch of patches @ 11.23 version.
I really hate HP-UX >-(, god bless BSD!!! :-D
--
http://mai
Paul McGuire wrote:
text = r"'the','dog\'s','bite'"
def unquote(s,l,t):
>
> ... t2 = t[0][1:-1]
> ... return t2.replace("\\'","'")
> ...
Note also, that the codec 'string-escape' can be used to do what's done
with str.replace in this example:
py> s
"'the','dog\\'s','bite'"
py> s
[EMAIL PROTECTED] wrote:
> vbox = array(m) (size: 1000x1000 approx)
> for b in bx:
> vbox[ b[1], b[0]:b[2] ] = 0
> vbox[ b[3], b[0]:b[2] ] = 0
> vbox[ b[1]:b[3], b[0] ] = 0
> vbox[ b[1]:b[3], b[2] ] = 0
This may not help, but you could try to minimize the number of times you
call
On Tue, 24 May 2005 09:16:02 +0200, Tassilo v. Parseval
<[EMAIL PROTECTED]> wrote:
> Also sprach John W. Kennedy:
[...]
> Most often, languages with strong typing can be found on the functional
> front (such as ML and Haskell). These languages have a dynamic typing
> system. I haven't yet come ac
Hello,
I am looking at configuring vim for Python. Most importantly I
need 4 spaces when the tab is hit. I am searching and getting
a bit confused. Does anyone know where I can find a set of
ready made .vimrc and ~/.vim/syntax/python.vim. If could find
c.vim and cpp.vim these would be useful a
Hi Michael
[...]
>
> Releasing open source means that people *may* fix their own bugs, or
> abandon the code.
[...]
I agree with all the points made.
Moreover let me add that "code is one expression of a set of good
ideas", and ideas want to be free! ;)
I've decided to release the source code
I think you can do
set tabstop=4
also, it's better to
set expandtab
so, the tab will be expanded as space.
HG
On Wed, 25 May 2005 16:36:04 -0700, Leonard J. Reder <[EMAIL PROTECTED]>
wrote:
> Hello,
>
> I am looking at configuring vim for Python. Most importantly I
> need 4 spaces when the
I don't know if the binary editions include the Misc directory, but if
you download the Python source you'll find a directory called Misc. In
it, there's a vimrc file.
--
http://mail.python.org/mailman/listinfo/python-list
Thanks to both you guys. I got scipy up and running yesterday. Here are
the steps I went through:
1. I un-installed some non-official pythons. (Plone and ActiveState)
2. I loaded STANDARD Python 2.3.5
3. I loaded Python for Windows extensions.
4. I Loaded Numeric
5. Loaded SCIPY
6. Tested it by typ
Greetings.
I'm reading "How to think like a computer scientist: Learning with
Python" and there's a question regarding string operations. The
question is, "Can you think of a property that addition and
multiplication have that string concatenation and repetition do not?"
I thought it was the comm
On 26/05/05, Leonard J. Reder <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I am looking at configuring vim for Python. Most importantly I
> need 4 spaces when the tab is hit. I am searching and getting
> a bit confused. Does anyone know where I can find a set of
> ready made .vimrc and ~/.vim/syntax
Certain web applications, everything from wget to downloader for X has
this nifty feature I'd like to accomplish in python.
Its the progress bar/time elapsed/time remaining scheme
Filename | Progress| Speed (kB/s) | T/Elapsed | T/Remaining
[EMAIL PROTECTED] wrote:
> Thanks for the help. I now understand it better. As Bruno points out, I
> really don't need a property in this case, as my attribute is public,
> and I will remove it.
Should you need it to be a property at a latter date, it's worth noting
that you can achieve what you w
[EMAIL PROTECTED] wrote:
> Greetings.
>
> I'm reading "How to think like a computer scientist: Learning with
> Python" and there's a question regarding string operations. The
> question is, "Can you think of a property that addition and
> multiplication have that string concatenation and repetiti
1 - 100 of 140 matches
Mail list logo