Oh, that's right, the second arg is escaped by re compiler too.
Thank you, John.
York
John Machin wrote:
> York wrote:
>
>>I have two backslash - a. and I want to replace them with one backslash,
>>but I failed:
>>
>> >>> import re
>> >>> a = ''
>> >>> re.sub(r'', '\\', '')
>>Trac
Steven,
According to the current Python source the default value of
maxsplit=-1. I think you can count on that as I don't think there would
be a reason to change it in the future. If you are really worried about
it then your version of calling a particular version of split should
work.
By the way
Jay,
Your problem is specific to a particular internet dictionary provider.
UNLESS
1) The dictionary page has some specific link that gets you a
random word, OR
2) after you click through a couple of word definitions you find in
the URLs of the pages that the words are indexed usin
I'm having problems passing a default value to the maxsplit argument of
str.split. I'm trying to write a function which acts as a wrapper to
split, something like this:
def mysplit(S, sep=None, maxsplit=None):
pre_processing()
result = S.split(sep, maxsplit)
post_processing()
retur
Jay wrote:
> How would I be able to grab random words from an internet source. I'd
> like to grab a random word from a comprehensive internet dictionary.
> What would be the best source and the best way to go about this?
Here's a source that gives you a random word:
http://www.zokutou.co.uk/rando
Perhaps it will be addressed in 3.0...
I hope True and False could become keywords eventually. That would stop
silliness like:
-
In [1]: False=True
In [2]: not False
Out[2]: False
In [3]: False
Out[3]: True
-
Nick V.
John Roth wrote:
> Saizan wrote:
>
> > Python 2.4.3 (#1, Jun 13 2006, 11:46:08)
> > [GCC 4.1.1 20060525 (Red Hat 4.1.1-1)] on linux2
> > Type "help", "copyright", "credits" or "license" for more information.
> > >>> import httplib
> > >>> conn = httplib.HTTPConnection("www.python.org")
> > >>> conn.request("GET", "/index.html")
> >
> > Python 2.4.3 (#1, Jun 13 2006, 11:46:08)
> > [GCC 4.1.1 20060525 (Red Hat 4.1.1-1)] on linux2
> > Type "help", "copyright", "credits" or "license" for more information.
> > >>> import httplib
> > >>> conn = httplib.HTTPConnection("www.python.org")
> > >>> conn.request("GET", "/index.html")
> >
On Sat, 23 Sep 2006 04:37:31 -0700, MonkeeSage wrote:
> Another approach would be to just scrape a CS's random (5.75 x 10^30)
> word haiku generator. ;)
That isn't 5.75e30 words, it is the number of possible haikus. There
aren't that many words in all human languages combined.
Standard English w
In message <[EMAIL PROTECTED]>, Jon Ribbens wrote:
> In article <[EMAIL PROTECTED]>, Fredrik
> Lundh wrote:
>> Lawrence D'Oliveiro wrote:
>>>
>>> So I think the default for the second argument to cgi.escape should be
>>> changed to True. Or alternatively, the second argument should be removed
>>>
Pete wrote:
> The file "temp.html" is definitely different than the first run, but
> still not anything close to www.python.org . Any other suggestions?
If you mean that the page looks different in a browser, for one thing
you have to download the css files too. Here's the relevant extract
from t
On Sat, 23 Sep 2006 18:39:58 -0700, T wrote:
>
> Umm...I was hoping for something simpler and more straight forward. Is
> there a module that would be useful for this type of thing?
It really helps if you quote the relevant bits of the email you are
replying to. Otherwise, people who come along
Neil Cerutti wrote:
> It's not out of the kindness of our hearts that we help. Heck, I
> don't know what it is. Probably I just like reading my own drivel
> on the internet and occassionally helping others is a good
> excuse.
Weird, isn't it ? Good to know that it's not just me that thinks this
w
wesley chun wrote:
> > From: "Rrajal" <[EMAIL PROTECTED]>
> > Date: Mon, Sep 18 2006 9:50 am
> > Subject: Re: Help
> > Groups: comp.lang.python
> >
> > Hi there, I am new in this subject so could you please tell
> > me from where I can get help (or good e-book) of python?
Don't forget *the Pytho
> >I have the following code:
> >
> web_page = urllib.urlopen("http://www.python.org";)
> file = open("temp.html", "w")
> web_page_contents = web_page.read()
> file.write(web_page_contents)
> file.close
> >
>
> >
> > The file "temp.html" is created, but it doesn't loo
"Pete" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>I have the following code:
>
web_page = urllib.urlopen("http://www.python.org";)
file = open("temp.html", "w")
web_page_contents = web_page.read()
file.write(web_page_contents)
file.close
>
>
> The f
I have the following code:
>>> web_page = urllib.urlopen("http://www.python.org";)
>>> file = open("temp.html", "w")
>>> web_page_contents = web_page.read()
>>> file.write(web_page_contents)
>>> file.close
>>>
The file "temp.html" is created, but it doesn't look like the page at
www.python.org.
Pete wrote:
> John Machin wrote:
> > Pete wrote:
> > > Fade in to episode II...
> > >
> > > > ...
> > > > This is compiling a *constant* regular expression, and works OK on the
> > > > Windows distribution of Python 2.4.3 :
> > >
> > > H. Here's the version information stuff:
> > >
> > > Pytho
In article <[EMAIL PROTECTED]>, Fredrik Lundh wrote:
> Lawrence D'Oliveiro wrote:
>> So I think the default for the second argument to cgi.escape should be
>> changed to True. Or alternatively, the second argument should be removed
>> altogether, and quotes should always be escaped.
>
> you're con
John Machin wrote:
> Pete wrote:
> > Fade in to episode II...
> >
> > > ...
> > > This is compiling a *constant* regular expression, and works OK on the
> > > Windows distribution of Python 2.4.3 :
> >
> > H. Here's the version information stuff:
> >
> > Python 2.4.2 (#1, Feb 12 2006, 03:59:46)
Pete wrote:
> Fade in to episode II...
>
> > ...
> > This is compiling a *constant* regular expression, and works OK on the
> > Windows distribution of Python 2.4.3 :
>
> H. Here's the version information stuff:
>
> Python 2.4.2 (#1, Feb 12 2006, 03:59:46)
> [GCC 4.1.0 20060210 (Red Hat 4.1.0-
> ...
> I'm going to upgrade Python and see if that has any effect...
> ...
I upgraded Python, it had an effect, but not a positive one. My
interactivity is below. Where is the "Hello World." text coming from?
Python 2.4.3 (#1, Jun 13 2006, 11:46:08)
[GCC 4.1.1 20060525 (Red Hat 4.1.1-1)] on linu
[EMAIL PROTECTED] wrote:
> Robert Kern wrote:
>> I'd say bug in the .indices() method. The meaning of [4:-1:-1] is unavoidable
>> different than [::-1] since the index -1 points to the last element, not the
>> imaginary element before the first element. Unfortunately, there *is* no
>> concrete (sta
York wrote:
> I have two backslash - a. and I want to replace them with one backslash,
> but I failed:
>
> >>> import re
> >>> a = ''
> >>> re.sub(r'', '\\', '')
> Traceback (most recent call last):
>File "", line 1, in ?
>File "/usr/lib/python2.3/sre.py", line 143, in sub
>
Robert Kern wrote:
> I'd say bug in the .indices() method. The meaning of [4:-1:-1] is unavoidable
> different than [::-1] since the index -1 points to the last element, not the
> imaginary element before the first element. Unfortunately, there *is* no
> concrete (start, stop, step) tuple that wil
Umm...I was hoping for something simpler and more straight forward. Is
there a module that would be useful for this type of thing?
--
http://mail.python.org/mailman/listinfo/python-list
Fade in to episode II...
> ...
> This is compiling a *constant* regular expression, and works OK on the
> Windows distribution of Python 2.4.3 :
H. Here's the version information stuff:
Python 2.4.2 (#1, Feb 12 2006, 03:59:46)
[GCC 4.1.0 20060210 (Red Hat 4.1.0-0.24)] on linux2
I'm going to
I have two backslash - a. and I want to replace them with one backslash,
but I failed:
>>> import re
>>> a = ''
>>> re.sub(r'', '\\', '')
Traceback (most recent call last):
File "", line 1, in ?
File "/usr/lib/python2.3/sre.py", line 143, in sub
return _compile(pattern,
MonkeeSage wrote:
> Dustan wrote:
> > That didn't work either.
>
> Well, I'm out of ideas. It's also odd that it was being read as
> webbrowser.BackgroundBrowser...whatever that is! It should have been
> webbrowser.Mozilla.
Thanks anyway; you have helped me tremendously. I'm sure I'll get
somewhe
Pete wrote:
> I was running the HTTP GET example at
> http://www.python.org/doc/current/lib/httplib-examples.html and ran
> into a bit of trouble...
>
> >>> import httplib # This works.
> >>> conn = httplib.HTTPConnection("www.python.org") # This works.
> >>> conn.request("GET", "/index.html")
[EMAIL PROTECTED] wrote:
> The indices method of slice doesn't seem to work quite how I would
> expect when reversing a sequence.
>
> For example :
s = '01234'
s[::-1]
> '43210'
s[slice(None,None,-1) ]
> '43210'
>
> So a slice with a negative step (and nothing else) reverses the
>
wesley chun wrote:
>
> 1. never write against older versions of Python... you will only
> obsolete your book even faster (well, "sooner")
I believe there is some market for documentation of older
versions of software. Many installations are constrained
by the cost of upgrading and can not mi
> A trivial question - I have a working Python script that I have to
> invoke from C++ code. No fancy stuff - just run the whole script with
> its parameters. No callbacks, no signalling - nada, just
> stupid,primitive, straightforward call.
>
> And while there is a lot of help on embedding, I coul
> A trivial question - I have a working Python script that I have to
> invoke from C++ code. No fancy stuff - just run the whole script with
> its parameters. No callbacks, no signalling - nada, just
> stupid,primitive, straightforward call.
>
> And while there is a lot of help on embedding, I coul
Roy Smith wrote:
> [EMAIL PROTECTED] wrote:
> > Kind people,
> > Is there any way one can, within Python, intercept the act of
> > assignment.
>
> Sure. You just need to define a __setattr__() method for your class. See
> http://docs.python.org/ref/attribute-access.html for details.
Is it possi
I was running the HTTP GET example at
http://www.python.org/doc/current/lib/httplib-examples.html and ran
into a bit of trouble...
>>> import httplib # This works.
>>> conn = httplib.HTTPConnection("www.python.org") # This works.
>>> conn.request("GET", "/index.html") # This does not work...
T
Dustan wrote:
> That didn't work either.
Well, I'm out of ideas. It's also odd that it was being read as
webbrowser.BackgroundBrowser...whatever that is! It should have been
webbrowser.Mozilla.
> Another thing: your fix is only temporary. Is there a way to make it
> work even after I close IDLE?
The indices method of slice doesn't seem to work quite how I would
expect when reversing a sequence.
For example :
>>> s = '01234'
>>> s[::-1]
'43210'
>>> s[slice(None,None,-1) ]
'43210'
So a slice with a negative step (and nothing else) reverses the
sequence. But what are the
corresponding indi
crystalattice wrote:
> Bruno Desthuilliers wrote:
>> I have few experience with RPG softwares, but if your "domain" logic si
>> anything more than trivially complex, it's always better to keep it as
>> decoupled as possible from the user interface (unless of course the user
>> interface actually is
[EMAIL PROTECTED] wrote:
> Kind people,
> Is there any way one can, within Python, intercept the act of
> assignment.
Sure. You just need to define a __setattr__() method for your class. See
http://docs.python.org/ref/attribute-access.html for details.
> For instance, suppose that I was obses
MonkeeSage wrote:
> Dustan wrote:
> > >>> cont=webbrowser._browsers['firefox'][1]
>
> Why not use the api? cont=webbrowser.get('firefox')
That didn't work either.
> > ValueError: close_fds is not supported on Windows platforms
> >
> > Looking in the docs on subprocess.Popopen
> > (http://docs.py
Bjoern Schliessmann wrote:
> Thanks. Only if I'd known that earlier ;)
NP. I had to look it up 'cause I'd never seen them used either.
Regards,
Jordan
--
http://mail.python.org/mailman/listinfo/python-list
Dustan wrote:
> >>> cont=webbrowser._browsers['firefox'][1]
Why not use the api? cont=webbrowser.get('firefox')
> ValueError: close_fds is not supported on Windows platforms
>
> Looking in the docs on subprocess.Popopen
> (http://docs.python.org/lib/node529.html), it says "If close_fds is
> true,
Kind people,
Is there any way one can, within Python, intercept the act of
assignment. For instance, suppose that I was obsessed with
FORTRAN II, and decided that I wanted to print a warning,
or raise an exception any time someone assigned an int to a
variable whose name did not start with i,j,k,l
[Any python/C interface gurus please correct me if my understanding is
wrong, as this fix is slated for inclusion in future versions of
vim--thanks!]
Just as a heads up for anyone building vim with python2.5 as the
extension language:
Simple solution: Python 2.5 has tightened up how it does memor
Bruno Desthuilliers wrote:
> I have few experience with RPG softwares, but if your "domain" logic si
> anything more than trivially complex, it's always better to keep it as
> decoupled as possible from the user interface (unless of course the user
> interface actually is the domain !-). FWIW, thi
Anders J. Munch wrote:
> Always sad to see an SQL DBMS willfully violate the SQL standard.
You must be a constantly depressed person, then. :-)
--
Robert Kern
"I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt to interpr
MonkeeSage wrote:
> Dustan wrote:
> > I did do a search here, but came up empty-handed. Can anyone tell me
> > how to get the webbrowser module to recognize firefox's existence,
> > given this information?
>
> Looks like it is checking %PATH% for firefox.exe. Try:
>
> >>> import os
> >>> os.enviro
mistral wrote:
> писал(а):
There seems to be a rather large communication gap. Consider asking
your question in a Russian-speaking Python-related forum, for example:
http://zope.net.ru/
Regards,
John
--
http://mail.python.org/mailman/listinfo/python-list
Dustan wrote:
> I did do a search here, but came up empty-handed. Can anyone tell me
> how to get the webbrowser module to recognize firefox's existence,
> given this information?
Looks like it is checking %PATH% for firefox.exe. Try:
>>> import os
>>> os.environ["PATH"] = r"C:\Program Files\Mozi
Thanks guys, and now the world knows:
http://www.answermysearches.com/index.php/super-easy-way-to-reverse-a-string-in-python/188/
Well my 3 blog readers or the world ... not sure.
-Greg
--
http://mail.python.org/mailman/listinfo/python-list
In message <[EMAIL PROTECTED]>, Fredrik
Lundh wrote:
> Lawrence D'Oliveiro wrote:
>
>> So I think the default for the second argument to cgi.escape should be
>> changed to True. Or alternatively, the second argument should be removed
>> altogether, and quotes should always be escaped.
>
> you're
In message <[EMAIL PROTECTED]>, Anders J. Munch
wrote:
> Lawrence D'Oliveiro wrote:
>> Why doesn't MySQLdb provide a function like this:
>>
>> def QuoteSQL(Str, DoWild) :
>> """returns a MySQL string literal which evaluates to Str. Needed
>> for those times when MySQLdb's automatic quotin
Saizan wrote:
> John Roth wrote:
>
> > The not operator and the bool() builtin produce
> > boolean results. Since bool is a subclass of int,
> > all the integer operations will remain integer
> > operations. This was done for backwards
> > compatability, and is unlikely to change in the 2.x
> > se
[EMAIL PROTECTED] wrote:
> My understanding of the __future__ statement is that you may say
> something like:
>
> from __future__ import foo, bar
>
> to enable more than one feature. However, this does not seem to be
> working properly in 2.5; it behaves as expected when typed into the
> interacti
Cappy2112 wrote:
>
> > Some thoughts and questions:
> > 1. Telling us what the allegedly spurious pychecker warnings were would
> > be a good idea.
>
> pychecker isn't really a concern at this point- and has ben uninstalled
> (actually deleted, since there is no installer/uninstaller for this
> p
Dennis,
Wow! Talk about RAD development... Nice job... Errr, real nice job. I
will test your concepts and see how it works.
Thanks a ton. You far exceeded my expectations!
Pat
Dennis Lee Bieber wrote:
> On 23 Sep 2006 06:04:16 -0700, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
> declaimed the follo
MonkeeSage писал(а):
> mistral wrote:
> > No, something is wrong there. what I need is just compile one python
> > file which will generate html page, with parameters:
> > "exec" "python" "-O" "$0" "$@"
> >
> > just need simple way do this(script is correct), i will not set any
> > patches anywh
stdazi:
The RE-based solutions look good. Here is a pair of alternative
solutions:
s1 = 'foo bar- blah/hm.lala'
r1 = ['foo', 'bar', 'blah', 'hm', 'lala']
s2 = 'foobbbar.. xyz'
r2 = ['foo', 'bbbar', 'xyz']
table = "".join((c if c.isalpha() else " " for c) in map(chr,
range(256)))
#table = ""
At http://docs.python.org/whatsnew/modules.html on the webbrowser
module, it says "A number of additional browsers were added to the
supported list such as Firefox, Opera, Konqueror, and elinks."
I just installed python 2.5, looking forward to being able to control
firefox without having to make i
Gregory Piñero wrote:
> On 9/23/06, Robert Kern <[EMAIL PROTECTED]> wrote:
>> Not in that form, no, since this already exists:
>>
>>text[::-1]
>
> Wow, that's really cool! Here are my questions:
>
> 1. How long has this thing been going on? I didn't know slice even
> took an extra argument l
MonkeeSage wrote:
> "The C++ standard provides _operator keywords_ (Fig. 21.8) that
> can be used in place of several C++ operators." (Deitel & Deitel,
> 2001; 1082).
Thanks. Only if I'd known that earlier ;)
Regards,
Björn
--
BOFH excuse #39:
terrorist activities
--
http://mail.python.or
On 9/23/06, Robert Kern <[EMAIL PROTECTED]> wrote:
> Not in that form, no, since this already exists:
>
>text[::-1]
Wow, that's really cool! Here are my questions:
1. How long has this thing been going on? I didn't know slice even
took an extra argument like that.
2. Where can I get the low
Thanks to all who answered.
On Friday 22 September 2006 17:28, Marc 'BlackJack' Rintsch wrote:
> Christoph Haas wrote:
> > TestModule.py
> >
> > globalvar = 0
> >
> > def def1():
> > print globalvar
> >
> > def def2(foo=globalvar):
> > print foo
> > ---
That 'foo'[::-1] is the Python reverse string idiom I'll try here
forward, thanks.
Also '.h.e.l.l.o'[1::2] to pick out every second char, etc., thanks.
Three footnotes:
1) Reverse string isn't yet in http://www.python.org/doc/faq/
2) Google Groups searches here yesterday instead pushed me towar
George Sakkis a écrit :
> Daniel Nogradi wrote:
>
>>In a recent thread,
>>http://mail.python.org/pipermail/python-list/2006-September/361512.html,
>>a couple of very useful and enlightening itertools examples were given
>>and was wondering if my problem also can be solved in an elegant way
>>by it
Gregory Piñero wrote:
> Is my mind playing tricks on me? I really remember being able to
> reverse a string as in:
>
> text='greg'
> print text.reverse()
>>> 'gerg'
That method has never existed AFAIK. Maybe you're thinking of the
reverse() method on lists?
In any case, the you can reverse stri
Neil Cerutti a écrit :
(snip)
> It's not out of the kindness of our hearts that we help. Heck, I
> don't know what it is. Probably I just like reading my own drivel
> on the internet and occassionally helping others is a good
> excuse.
Lol !-)
+1 OTQOTW
--
http://mail.python.org/mailman/listinf
Gregory Piñero wrote:
> Is my mind playing tricks on me? I really remember being able to
> reverse a string as in:
>
> text='greg'
> print text.reverse()
>>> 'gerg'
>
> Is it possible thats in some Python install and not in others? I just
> switched to linux.
>
> In any case, can we get that ad
Is my mind playing tricks on me? I really remember being able to
reverse a string as in:
text='greg'
print text.reverse()
>> 'gerg'
Is it possible thats in some Python install and not in others? I just
switched to linux.
In any case, can we get that added?
Here's my workaround for now:
def rev
sam a écrit :
> i am starting to experiment with recursion, and decided to write a
> fairly trivial little program which took a float as input, then called
> a function to halve it recursively until it was less than 1:
And forgot to return the result from the recursive call, I guess ?-)
--
http:/
> help figuring out how to debug ... ctypes ...
> a commercial dll. A certain function takes five arguments, foo(a, b, c, d,
> e).
> Can I view the appropriate stack? ... Any other ideas or advice? etc?
Did you call the foo of _cdecl ctypes.cdll or the foo of _stdcall =
ctypes.windll?
What is
crystalattice a écrit :
> I've been working on a game for several months but now I'm thinking I
> may be going about it the wrong way. It's an online RPG designed to
> recreate a pen & paper session, kind of like the OpenRPG project.
>
> Originally I planned on doing something like OpenRPG with a
My understanding of the __future__ statement is that you may say
something like:
from __future__ import foo, bar
to enable more than one feature. However, this does not seem to be
working properly in 2.5; it behaves as expected when typed into the
interactive interpreter, but not when it is in a
Flavio wrote:
> Hello,
>
> Compiling f2py extensions in Linux is a trivial task, You can even
> automate it with distutils. Now, in a Windows machine this does not
> seem to be an easy task. At least, I could not find any decent tutorial
> on how to do it.
>
> Is there a way to do this? Can some
Dennis Lee Bieber schrieb:
> On 23 Sep 2006 09:24:09 -0700, "daniel" <[EMAIL PROTECTED]>
> declaimed the following in comp.lang.python:
>
>> so the implementation rules of python extension module must have been
>> changed, for now, I have to wait for the new release of that module and
>
> N
mistral wrote:
> No, something is wrong there. what I need is just compile one python
> file which will generate html page, with parameters:
> "exec" "python" "-O" "$0" "$@"
>
> just need simple way do this(script is correct), i will not set any
> patches anywhere, can i do this wrom normal GUI?
On 23 Sep 2006 12:24:58 -0700, mistral wrote
> No, something is wrong there. what I need is just compile one python
> file which will generate html page, with parameters:
> "exec" "python" "-O" "$0" "$@"
This is not a python script. It appears to be a Unix shell script that calls a
python script.
Hello,
Copy
wxmsw26uh_vc.dll
inC:\python24\lib\site-packages\matplotlib\backends.To find
wxmsw26uh_vc.dll, you can
downloadwxPython2.6-win32-unicode-2.6.3.3-py24.exe,and execute in
aspecific directory and extract the file
wxmsw26uh_vc.dll(C:\...\wx-2.6-msw-unicode\wx)
Regards,
Michel
MonkeeSage wrote:
> mistral wrote:
> > this not work for me, show compilation error. Is there simple way
> > compile pythone file? its absolutely unclear with command line. Just
> > show me exact command I need run(from python interactive shell?)
>
> OK...
>
> # cd to where the file.py is
> $ cd
MonkeeSage wrote:
> >>> import py_compile
> >>> py_compiler.compile('file.py')
^^^
Should be:
>>> py_compile.compile('file.py')
--
http://mail.python.org/mailman/listinfo/python-list
These are csound files. Csound recently added python as a scripting
language and is allowing also allowing csound calls from outside of
csound. The nice thing about csound is that instead of worrying about
virus and large files it is an interpiter and all the files look
somewhat like html. 4,000
mistral wrote:
> this not work for me, show compilation error. Is there simple way
> compile pythone file? its absolutely unclear with command line. Just
> show me exact command I need run(from python interactive shell?)
OK...
# cd to where the file.py is
$ cd /some/dir
# start python interacti
"Alan Isaac" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Where does one get the
> "What's New" document for Python 2.5?
> http://docs.python.org/dev/whatsnew/whatsnew25.html
> pretends to hold it, but the links are corrupt.
OK, here it is:
http://docs.python.org/whatsnew/whatsn
David Isaac <[EMAIL PROTECTED]> wrote:
> "What's New" document for Python 2.5?
> http://docs.python.org/dev/whatsnew/whatsnew25.html
> pretends to hold it, but the links are corrupt.
It's without /dev/
--
Lawrence - http://www.oluyede.org/blog
"Nothing is more dangerous than an idea
if it's the
Where does one get the
"What's New" document for Python 2.5?
http://docs.python.org/dev/whatsnew/whatsnew25.html
pretends to hold it, but the links are corrupt.
Thanks,
Alan Isaac
--
http://mail.python.org/mailman/listinfo/python-list
wesley chun wrote:
> i cover through 2.5, but also include stuff that have
> already been slated for 2.6 and 2.7.
and what would that be? target versions in the PEP:s are usually just
wild guesses...
--
http://mail.python.org/mailman/listinfo/python-list
MonkeeSage писал(а):
> mistral wrote:
> > Just to comple python ode - it creates html page, nothing more, nothing
> > else.. Just generate one html page.
>
> I *think* this is what you want:
>
> python -O -m py_compile file.py
> python file.pyo
>
> See: http://docs.python.org/lib/module-pycompile
Gerard Flanagan wrote:
> volcano wrote:
> > Gerard Flanagan wrote:
> > > volcano wrote:
> > > > Hello, folks!
> > > > A trivial question - I have a working Python script that I have to
> > > > invoke from C++ code. No fancy stuff - just run the whole script with
> > > > its parameters. No callback
volcano wrote:
> Gerard Flanagan wrote:
> > volcano wrote:
> > > Hello, folks!
> > > A trivial question - I have a working Python script that I have to
> > > invoke from C++ code. No fancy stuff - just run the whole script with
> > > its parameters. No callbacks, no signalling - nada, just
> > > s
> "deleted" the core 2.3.4 distribution [from where? how?] or
> "uninstalled"?
Uninstalled
>> Was c:\windows\system32\python23.dll blown away?
Yes, as part of the uninstall process.
>>> Are you installing it for "all users" or for a single user?
ALl users, using Admin priveledges
> Do a search
[EMAIL PROTECTED] wrote:
> Is there a stand-alone version of python out there that I can package
> with my scripts so that I don't have to bother with something like
> py2exe?
why not just ship the standard python interpreter with your applications?
just make a copy of the c:\python24 (or 25) in
Gerard Flanagan wrote:
> volcano wrote:
> > Hello, folks!
> > A trivial question - I have a working Python script that I have to
> > invoke from C++ code. No fancy stuff - just run the whole script with
> > its parameters. No callbacks, no signalling - nada, just
> > stupid,primitive, straightforw
> What happens when you run "C:\Python2.3\python.exe" from the command
> line (or the equivalent path)? How about pythonw.exe (or the windowed
> equivalent, not sure about the naming)?
>>Are .py and .pyw files displayed with the correct icons?
Yes.
>>When installing Python packages, is Python 2.
Lawrence D'Oliveiro wrote:
> So I think the default for the second argument to cgi.escape should be
> changed to True. Or alternatively, the second argument should be removed
> altogether, and quotes should always be escaped.
you're confused: cgi.escape(s) is designed to be used for ordinary text
> From: "Rrajal" <[EMAIL PROTECTED]>
> Date: Mon, Sep 18 2006 9:50 am
> Subject: Re: Help
> Groups: comp.lang.python
>
> Hi there, I am new in this subject so could you please tell
> me from where I can get help (or good e-book) of python?
do you have some kind of programming background? if so,
> In article <[EMAIL PROTECTED]>,
>> crystalattice <[EMAIL PROTECTED]> wrote:
>>
>>> From: "Sebastian Bassi" <[EMAIL PROTECTED]>
>>> Date: Thurs, Aug 31 2006 7:51 am
>>> Subject: Re: Timeline for Python?
>>> Groups: comp.lang.python
>>>
>>> I am working on a Python book, since it could be completed
volcano wrote:
> Hello, folks!
> A trivial question - I have a working Python script that I have to
> invoke from C++ code. No fancy stuff - just run the whole script with
> its parameters. No callbacks, no signalling - nada, just
> stupid,primitive, straightforward call.
>
> And while there is a
Hello, folks!
A trivial question - I have a working Python script that I have to
invoke from C++ code. No fancy stuff - just run the whole script with
its parameters. No callbacks, no signalling - nada, just
stupid,primitive, straightforward call.
And while there is a lot of help on embedding, I c
We are pleased to announce version 0.83.3 of our open-source
simulation, modeling, and analysis package PyDSTool. New features
include improved graphical capabilities in the PyCont bifurcation and
continuation sub-package and its interface with AUTO, and better
support for domain & bound enforcemen
1 - 100 of 158 matches
Mail list logo