ANNOUNCING
eGenix.com mx Base Distribution
Version 3.1.2 for Python 2.3 - 2.6
Open Source Python extensions providing
important and useful services
On 2009-01-29 03:38, Gabriel Genellina wrote:
> En Wed, 28 Jan 2009 18:55:21 -0200, S.Selvam Siva
> escribió:
>
>> I need to parse rss-feeds based on time stamp,But rss-feeds follow
>> different
>> standards of date(IST,EST etc).
>> I dont know,how to standardize this standards.It will be helpful
Ron Garret a écrit :
I'm running a WSGI app under apache/mod_wsgi and I've noticed that
whenever I restart the server after making a code change it takes a very
long time (like a minute) before the script is active again. In other
words, I do an apachectl restart, reload the page in my browser
is python a pure objected oriented language?
On Thu, Jan 29, 2009 at 2:08 PM, wrote:
> Send Python-list mailing list submissions to
>python-list@python.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
>http://mail.python.org/mailman/listinfo/python-list
> or, via
Ron Garret a écrit :
In article ,
Aleksandar Radulovic wrote:
(snip)
Secondly, why are you restarting apache after code changes? In normal
circumstances, you shouldn't have to do that.
I thought (and experiment confirms) that only the main WSGI app file
gets reloaded automatically when it
excord80 a écrit :
On Jan 28, 4:57 am, Bruno Desthuilliers wrote:
What about:http://thraxil.org/code/cgi_app/
(yes, it is a port of CGI::Application, and FWIW it's mentionned on the
CGI::Application's wiki).
Nice find. Thank you. Interesting project. It seems to be only one
fairly short fi
Graham,
On Thu, Jan 29, 2009 at 1:16 AM, Graham Dumpleton
wrote:
> Sorry, you are wrong to assume that an Apache restart is not be
> required.
> If you are using mod_wsgi embedded mode, or mod_python, then a code
> change will always require a full restart of Apache.
I am running several middlew
On Thu, Jan 29, 2009 at 1:08 AM, M Kumar wrote:
> is python a pure objected oriented language?
Firstly:
(A) Replying to Digests rather than individual posts is very discouraged.
(B) The proper way to start a new thread by emailing
python-list@python.org (as it says in the very header of the diges
"Gabriel Genellina" wrote:
>> Seems that it is important *when* those functions are evaluated, but I
>> don't understand *why*...
Because the scope changes - see also the recent thread on exec woes
where towards the end I put in a similar example - funny, it must the
flux or something - seems
"Gabriel Genellina" wrote:
En Wed, 28 Jan 2009 16:00:43 -0200, Scott David Daniels
> escribió:
>
>> The reason is that once your created object has its id taken, you
>> must keep a handle on it, otherwise it may get recycled and reused.
>
>It doesn't matter in this case, I think. globals() is alw
"Rhodri James" wrote:
To:
Sent: Thursday, January 29, 2009 6:12 AM
Subject: Re: Exec woes
> On Wed, 28 Jan 2009 07:47:00 -, Hendrik van Rooyen
> wrote:
> > This is actually not correct - it is the root cause of my trouble.
> > if you write, in a nested scope:
> >
> > exec ( "somestring t
ocsch...@gmail.com wrote:
I can't port the entire app to be a stored database procedure.
Perhaps I underestimate what you mean by this, but you may want to look
at pyTables (http://www.pytables.org/moin/HowToUse).
ctypes, maybe. I just find it odd that there's no quick answer on the
fastest
Object oriented languages doesn't allow execution of the code without class
objects, what is actually happening when we execute some piece of code, is
it bound to any class?
Those who have time and consideration can help me
--
Regards,
Maneesh KB
Comat Technologies
Bangalore
Mob: 9740-19230
M Kumar wrote:
> Object oriented languages doesn't allow execution of the code without
> class objects, what is actually happening when we execute some piece
> of code, is it bound to any class?
> Those who have time and consideration can help me
>
Python *is* object-oriented, but it is not (as
On Thu, Jan 29, 2009 at 2:27 PM, M.-A. Lemburg wrote:
> On 2009-01-29 03:38, Gabriel Genellina wrote:
> > En Wed, 28 Jan 2009 18:55:21 -0200, S.Selvam Siva
> > escribió:
> >
> >> I need to parse rss-feeds based on time stamp,But rss-feeds follow
> >> different
> >> standards of date(IST,EST etc)
On Thu, Jan 29, 2009 at 2:01 AM, M Kumar wrote:
> Object oriented languages doesn't allow execution of the code without class
> objects, what is actually happening when we execute some piece of code, is
> it bound to any class?
That's not really the standard definition of object-oriented (c.f.
(answering to the OP)
M Kumar wrote:
Object oriented languages doesn't allow execution of the code without
class objects,
Chapter and verse, please ?
Nothing in the (very few) "axioms" of OOP mentions "classes". You don't
need classes to have an OOPL (ever heard about prototype-based langua
Python offers support for object orientation, but it's not an
object-oriented language.
I mean, you can code a entire program in Python with no classes. So you use
it if you want to.
It's not like java, which you must use a class to code a Hello World, but
Java isn't fully object-oriented, because
Muriel de Souza Godoi wrote:
Python offers support for object orientation, but it's not an
object-oriented language.
I mean, you can code a entire program in Python with no classes. So you
use it if you want to.
It's not like java, which you must use a class to code a Hello World,
but Java is
Hi!
Il se trouve que Chris Rebert a formulé :
Python has functions, which are not associated
with a class
functions are methods of builtin...
--
@-salutations
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
W. eWatson wrote:
> r wrote:
>> On Jan 28, 10:12 pm, "W. eWatson" wrote:
>>> Where in the world is a description of pack() for Tkinter widgets? Is it
>>> some sort of general method for all widgets? I'm looking in a few
>>> docs that
>>> use it without ever saying where it is described. For one,
>
M Kumar wrote:
> Object oriented languages doesn't allow execution of the code without
> class objects, what is actually happening when we execute some piece of
> code, is it bound to any class?
> Those who have time and consideration can help me
a) This is a purely theoretical consideration. Yo
If you means python-mode, you can add this line to you .emacs:
(setq py-python-command "python3.0")
On 1/29/09, John Seales wrote:
>
> I've updated to python 2.6. My terminal application finds the new python
> just fine, but my gnu-emacs still is on python 2.3. Does anyone know how I
> can chang
On Jan 29, 8:15 pm, Aleksandar Radulovic wrote:
> Graham,
>
> On Thu, Jan 29, 2009 at 1:16 AM, Graham Dumpleton
>
> wrote:
> > Sorry, you are wrong to assume that an Apache restart is not be
> > required.
> > If you are usingmod_wsgiembedded mode, or mod_python, then a code
> > change will always
Sorry. Mine is python3.0.
Yours maybe is:
(setq py-python-command "python2.6")
--
Regards
Lei
--
http://mail.python.org/mailman/listinfo/python-list
ro...@panix.com (R. Bernstein) writes:
> Recently, I added remote debugging via TCP sockets. (Well, also FIFO's
> as well but closing sockets before restarting is what's of concern.)
>
> I noticed that execv in Python 2.5.2 doesn't arrange exit hooks to get
> called. Should it?
I'd consider that
Xah Lee wrote:
For those of you using emacs, here's the elisp code that allows you to
syntax color computer language source code in your blog or website.
http://xahlee.org/emacs/elisp_htmlize.html
may I suggest also this one: http://www.gnu.org/software/src-highlite/
--
Lorenzo Bettini, PhD
alex wrote:
> Jon
> Thank you for your answer. I tried it with no success.
>
> However I tried with
> tst=cdll.LoadLibrary("f:\\scratch\\test2\\footst.dll") instead of
> tst=windll.LoadLibrary("f:\\scratch\\test2\\footst.dll")
>
> and it runs now with no error message, I can't figure for now wh
but still I am not clear of the execution of the code, when we write or
execute a piece of python code without defining class, predefined class
attributes are available (not all but __name__ and __doc__ are available).
does it mean anything to this topic. Is it necessory to have __module__,
__dict_
I had a task in a book to pick 5 items from a list of 26 ensuring the items are
not repeated
import random
list = ['a','b','c','d','e','f','g','h','i','j','k','l','m',
'n','o','p','q','r','s','t','u','v','w','x','y','z']
word = ' '
a = random.choice(list)
list.remove(a)
b = random.choice
On Jan 29, 7:21 am, Gary Herron wrote:
> Python *is* object-oriented, but it is not (as your definition suggests)
> object-fascist.
I'm a python-nazi.
No python for you!
--
http://mail.python.org/mailman/listinfo/python-list
On Wed, Jan 28, 2009 at 3:46 PM, akineko wrote:
> Hello Python experts,
>
> I have a program that uses three processes (invoked by
> multiprocessing) and several threads.
> The program is terminated when ^C is typed (KeyboardInterrupt).
> The main process takes the KeyboardInterrupt Exception and
On Thu, Jan 29, 2009 at 5:58 AM, M Kumar wrote:
> but still I am not clear of the execution of the code, when we write or
> execute a piece of python code without defining class, predefined class
> attributes are available (not all but __name__ and __doc__ are available).
> does it mean anything
On Thu, Jan 29, 2009 at 6:11 AM, garywood wrote:
> I had a task in a book to pick 5 items from a list of 26 ensuring the
> items are not repeated
>
>
If the list is unique of 26 elements is guaranteed to be unique, simply:
>>> import random
>>> random.sample(list, 5)
['g', 'y', 'i',
2009/1/29 garywood :
> I had a task in a book to pick 5 items from a list of 26 ensuring the items
> are not repeated
>
>
> import random
> list = ['a','b','c','d','e','f','g','h','i','j','k','l','m',
> 'n','o','p','q','r','s','t','u','v','w','x','y','z']
> word = ' '
> a = random.choice(li
If the list is unique of 26 elements is guaranteed to be unique, simply:
>
Wow, 6am copy editing of my own posts is terribly ineffective.
"If the list of 26 elements is guaranteed to be unique"
--
http://mail.python.org/mailman/listinfo/python-list
I had a task in a book to pick 5 items from a list of 26
ensuring the items are not repeated
import random
list = ['a','b','c','d','e','f','g','h','i','j','k','l','m',
'n','o','p','q','r','s','t','u','v','w','x','y','z']
word = ' '
a = random.choice(list)
list.remove(a)
b = random.choice(
> I had a task in a book to pick 5 items from a list of 26 ensuring the
items are not repeated
>
>
> import random
> list = ['a','b','c','d','e','f','g','h','i','j','k','l','m',
>'n','o','p','q','r','s','t','u','v','w','x','y','z']
> word = ' '
> a = random.choice(list)
> list.remove(a)
> b
MC a écrit :
Hi!
Il se trouve que Chris Rebert a formulé :
Python has functions, which are not associated
with a class
functions are methods of builtin...
Please check your facts. Python functions are not "methods" of anything
(and not even necessarily attributes of a module - think about
Hmm, sounds like homework, but I'll bite.
The underlying problem does sound like homework, but the OP
posted a working solution, and was only looking for ways to
improve it. So I'm a little more lenient on providing
alternatives. It's true that the homework problem may have been
exactly as
Hello all,
I have frozen a running application which is using SQLite with py2exe.
When I start the exe file I see in the log file of the exe:
Traceback (most recent call last):
File "dpconf.py", line 666, in ?
File "dpconf.py", line 251, in __init__
File "sqlite\main.pyc", line 255, in
Hello all,
I have frozen a running application which is using SQLite with py2exe.
When I start the exe file I see in the log file of the exe:
Traceback (most recent call last):
File "dpconf.py", line 666, in ?
File "dpconf.py", line 251, in __init__
File "sqlite\main.pyc", line 255, in
Hi:
I have Python program running under Linux, that create several
threads, and I want to now the corresponding PID of the threads.
In each of the threads I have
def run(self):
pid = os.getpid()
logger.critical('process ID: %s', pid)
However, the reported PID is the father number, not t
Im reading a file. But there seems to be some encoding error.
>>> f = open(filename)
>>> data = f.read()
Traceback (most recent call last):
File "", line 1, in
data = f.read()
File "C:\Python30\lib\io.py", line 1724, in read
decoder.decode(self.buffer.read(), final=True))
File "C:\P
On Jan 28, 11:32 pm, "Gabriel Genellina"
wrote:
> En Wed, 28 Jan 2009 16:05:39 -0200, coutinhoti...@gmail.com
> escribió:
>
> > I had the same problem myself.
> > Mark's detailed explanation really helped me understand.
>
> > I ended up doing something like:
>
> The code doesn't work as-i
Mark Wooding writes:
> ro...@panix.com (R. Bernstein) writes:
>
>> Recently, I added remote debugging via TCP sockets. (Well, also FIFO's
>> as well but closing sockets before restarting is what's of concern.)
>>
>> I noticed that execv in Python 2.5.2 doesn't arrange exit hooks to get
>> called.
I've installed Python 2.6.1 (AMD64) under Windows Vista Ultimate 64-bit.
First off, it didn't register the extension for .PY (although it did register
.PYC).
After manually associating the .PY extension with the python.exe executable, I
am now getting some weirdness on the command line. When I r
G'day
I'm currently using socketserver to build a simple XMLSocket (an XML
based protocol used for communication between flash and the outside
world) server. I've got flash establishing a connection, sending a
request and my python server responding. However at this point
socketserver terminates t
Hello,
is there a way to place individual data files into to the standard
'dist' directory and not into a subdirectory of 'dist'
--Armin
--
http://mail.python.org/mailman/listinfo/python-list
1) It appears that it is possible to view the source of a function
defined in the interpreter; however, I seem to be unable to do it.
Here is the code and resulting error.
>>> def f():
print("hello world")
>>> f
>>> f()
hello world
>>> import inspect
>>> inspect
>>> inspect.getsourcelin
On Thu, Jan 29, 2009 at 11:24 AM, Anjanesh Lekshminarayanan <
m...@anjanesh.net> wrote:
> Im reading a file. But there seems to be some encoding error.
>
> >>> f = open(filename)
> >>> data = f.read()
> Traceback (most recent call last):
> File "", line 1, in
>data = f.read()
> File "C:\Pyt
Gabriel Genellina wrote:
En Thu, 29 Jan 2009 02:57:04 -0200, W. eWatson
escribió:
The word pack doesn't exist on the NMT pdf. Maybe there's a newer one?
There is a PDF version of "An Introduction to Tkinter" here:
http://www.pythonware.com/library/
Thanks. I have it but it's an odd one to
Hello,
I have the following setup script for py2exe:
from distutils.core import setup
import py2exe
setup(windows=['dpconf.py'],
data_files=[ "", ["proj_db","gsd_db","dachs2.xbm"]]
)
When I create the distribution I got the following err msg:
*** copy data files ***
warning:
r wrote:
On Jan 28, 10:57 pm, "W. eWatson" wrote:
The word pack doesn't exist on the NMT pdf. Maybe there's a newer one?
Only the grid manager is discussed at NMT. I just like how at NMT the
widget attributes are in a table and then a list the widget methods
follows below that -- much better
Uberman wrote:
I've installed Python 2.6.1 (AMD64) under Windows Vista Ultimate 64-bit.
First off, it didn't register the extension for .PY (although it did register
.PYC).
After manually associating the .PY extension with the python.exe executable, I
am now getting some weirdness on the comman
> It does auto-detect it as cp1252- look at the files in the traceback and
> you'll see lib\encodings\cp1252.py. Since cp1252 seems to be the wrong
> encoding, try opening it as utf-8 or latin1 and see if that fixes it.
Thanks a lot ! utf-8 and latin1 were accepted !
--
http://mail.python.org/mail
Uberman wrote:
I've installed Python 2.6.1 (AMD64) under Windows Vista Ultimate 64-bit.
First off, it didn't register the extension for .PY (although it did register
.PYC).
After manually associating the .PY extension with the python.exe executable, I
am now getting some weirdness on the comman
On Jan 29, 11:35 am, Uberman wrote:
> I've installed Python 2.6.1 (AMD64) under Windows Vista Ultimate 64-bit.
>
> First off, it didn't register the extension for .PY (although it did register
> .PYC).
>
> After manually associating the .PY extension with the python.exe executable, I
> am now gett
M Kumar wrote:
> but still I am not clear of the execution of the code, when we write or
> execute a piece of python code without defining class, predefined class
> attributes are available (not all but __name__ and __doc__ are available).
> does it mean anything to this topic. Is it necessory to h
On Thu, Jan 29, 2009 at 12:09 PM, Anjanesh Lekshminarayanan <
m...@anjanesh.net> wrote:
> > It does auto-detect it as cp1252- look at the files in the traceback and
> > you'll see lib\encodings\cp1252.py. Since cp1252 seems to be the wrong
> > encoding, try opening it as utf-8 or latin1 and see if
Hi all,
Has anyone managed to get any of the Python CUDA libraries working on
Windows using cygwin? Which one, and was anything special required?
Thanks in advance for any advice.
Dan
--
http://mail.python.org/mailman/listinfo/python-list
r> Seems like the level of spam is increasing in the last week, and
r> today has been bad. How are the spambytes coming along?
Spambayes is doing fine, but it only filters spam for the mailing list. It
has no effect on the Usenet side of things (comp.lang.python).
--
Skip Montanaro - s
1. I seem not to understand something obvious at
http://docs.python.org/3.0/reference/expressions.html#slicings
(I assume I'm just not reading this right.)
What is an example of a slicing using a "slice_list"?
2. It seems that slice objects and range objects are
awfully similar in many ways. Is
excord80 writes:
> I need to make a small, relatively low-traffic site that users can
> create accounts on and log into. Scripts must run as cgi (no
> mod_python or FastCGI is available). Can anyone recommend a small and
> simple web framework for Python, maybe similar to Perl's
> CGI::Applicatio
En Thu, 29 Jan 2009 14:55:13 -0200, W. eWatson
escribió:
Gabriel Genellina wrote:
En Thu, 29 Jan 2009 02:57:04 -0200, W. eWatson
escribió:
The word pack doesn't exist on the NMT pdf. Maybe there's a newer one?
There is a PDF version of "An Introduction to Tkinter" here:
http://www.pytho
On Thu, Jan 29, 2009 at 10:01 AM, Alan G Isaac wrote:
> 1. I seem not to understand something obvious at
> http://docs.python.org/3.0/reference/expressions.html#slicings
> (I assume I'm just not reading this right.)
> What is an example of a slicing using a "slice_list"?
There's nothing in the st
On Thu, 29 Jan 2009 08:38:43 -0800 (PST), markobrie...@gmail.com wrote:
G'day
I'm currently using socketserver to build a simple XMLSocket (an XML
based protocol used for communication between flash and the outside
world) server. I've got flash establishing a connection, sending a
request and my
M Kumar wrote:
Object oriented languages doesn't allow execution of the code without
class objects, what is actually happening when we execute some piece of
code, is it bound to any class?
Those who have time and consideration can help me
My take..
Python is a language. Programs written i
mattc wrote:
Once the interpreter reads lines of code, then, as far as the
interpreter is concerned, they are gone.
3) One last thing, is there any documentation for augmenting,
extending, or editing a function in the interpreter once it is
defined?
Use IDLE, edit code in an edit window, the
On 29 Jan., 11:21, Gary Herron wrote:
> Python *is* object-oriented, but it is not (as your definition suggests)
> object-fascist.
I'd put it more mildly. Python is object oriented. The orientation is
there but the fanatism is gone.
Kay
--
http://mail.python.org/mailman/listinfo/python-list
Hi,
i have a problem. I compiled Python and the socket module so I got
this structure. (all on windows)
C:\test\dll_files\python25.dll
C:\test\my_app
C:\test\dll_files\DLLs\
C:\test\dll_files\python.exe
If I run python I get the console and I can call "import socket" which
succeeds. I wrote a sm
s...@pobox.com wrote:
r> Seems like the level of spam is increasing in the last week, and
r> today has been bad. How are the spambytes coming along?
Spambayes is doing fine, but it only filters spam for the mailing list. It
has no effect on the Usenet side of things (comp.lang.python).
Hi,
i have a problem. I compiled Python and the socket module so I got
this structure. (all on windows)
C:\test\dll_files\python25.dll
C:\test\my_app
C:\test\dll_files\DLLs\
C:\test\dll_files\python.exe
If I run python.exe I get the console and I can call "import socket"
which
succeeds. I wrote
Hi all. I want to write an application that reads midi notes and then
does something (specifically, play sound files, but that doesn't
really matter for this question). I'm on windows.
I went on MSDN and tried to get it to work, and I found myself getting
pretty far (considering how little I know
Graham,
On Thu, Jan 29, 2009 at 1:00 PM, Graham Dumpleton
wrote:
> In other words, it is not universal that any code change will be
> automatically detected and a reload occur. There are also various
> caveats on what mod_python module importer does, as it is reloading
> modules into an existing
Anjanesh Lekshminarayanan anjanesh.net> writes:
>
> > It does auto-detect it as cp1252- look at the files in the traceback and
> > you'll see lib\encodings\cp1252.py. Since cp1252 seems to be the wrong
> > encoding, try opening it as utf-8 or latin1 and see if that fixes it.
>
> Thanks a lot !
On Jan 29, 1:33 pm, elsjaako wrote:
There is a Python MIDI module, i think it is pyMIDI, have you checked
it out?
--
http://mail.python.org/mailman/listinfo/python-list
On Thu, Jan 29, 2009 at 10:01 AM, Alan G Isaac wrote:
1. I seem not to understand something obvious at
http://docs.python.org/3.0/reference/expressions.html#slicings
(I assume I'm just not reading this right.)
What is an example of a slicing using a "slice_list"?
On 1/29/2009 1:37 PM Chris Re
I just installed Python2.6 on my WinXP box in a non-standard location
(not C:\Python26) since I'm not admin. I used cygwin to create a
module of an extension I wrote, but when I went to execute the
installer, I get a popup error
"This application has failed to start because the application
configu
Duncan
Thank you for your explanation of the relationship between calling
convention and stack management.
I will try to understand better this topic in the CVF and ctypes
documentation (not so easy).
Regards Alex
--
http://mail.python.org/mailman/listinfo/python-list
Benjamin Kaplan case.edu> writes:
>
>
> On Thu, Jan 29, 2009 at 12:09 PM, Anjanesh Lekshminarayanan
anjanesh.net> wrote:
> > It does auto-detect it as cp1252- look at the files in the traceback and
> > you'll see lib\encodings\cp1252.py. Since cp1252 seems to be the wrong
> > encoding, try ope
> Do I now have to get the Helpdesk to install Python for me?
No, you should wait for Python 2.6.2; this should fix this problem.
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
Tim Golden wrote:
> What does your association look like? Try ftype; should be something
> like this:
>
> H:\>ftype python.file
> python.file="C:\Python26\python.exe" "%1" %*
Then, Chris Hulan wrote:
> on my XP system, in the registry under HKEY_CLASSES_ROOT\Applications
> \python.exe\shell\open
On Thu, Jan 29, 2009 at 10:01 AM, Alan G Isaac wrote:
2. It seems that slice objects and range objects are
awfully similar in many ways. Is this "appearance only",
or was there any discussion of unifying them?
Curious for insight...
On 1/29/2009 1:37 PM Chris Rebert apparently wrote:
Wouldn
Hi!
Okay, I checkede Py_Main(...) and called some python code there. There
it works too. So I know whats missing.
sys.environ.. returns nothing.
How can I set the paths with the Python C API?
Thanks.
--
http://mail.python.org/mailman/listinfo/python-list
On 2009-01-29 15:33, Alan G Isaac wrote:
On Thu, Jan 29, 2009 at 10:01 AM, Alan G Isaac
wrote:
2. It seems that slice objects and range objects are
awfully similar in many ways. Is this "appearance only",
or was there any discussion of unifying them?
Curious for insight...
On 1/29/2009 1:37
On Thu, Jan 29, 2009 at 1:08 PM, alex wrote:
> Duncan
> Thank you for your explanation of the relationship between calling
> convention and stack management.
> I will try to understand better this topic in the CVF and ctypes
> documentation (not so easy).
>
> Regards Alex
>
> --
> http://mail.pyth
On Jan 29, 9:36 pm, r wrote:
> On Jan 29, 1:33 pm, elsjaako wrote:
>
> There is a Python MIDI module, i think it is pyMIDI, have you checked
> it out?
Thank you for the responce. Unfortunately, that package is for OS X
(it doesn't say that clearly on the website). But it might indeed be
worthwhi
En Thu, 29 Jan 2009 05:14:41 -0200, Hendrik van Rooyen
escribió:
"Gabriel Genellina" wrote:
En Wed, 28 Jan 2009 16:00:43 -0200, Scott David Daniels
(I *think* this has to do with free variables in the "right side" (after
the "in" keyword) of a generator expression; they appear to be evaluat
If I read a windows registry file with a line like this:
"{C15039B5-C47C-47BD-A698-A462F4148F52}"="v2.0|Action=Allow|Active=TRUE|Dir=In|Protocol=6|Profile=Public|App=C:\\Program
Files\\LANDesk\\LDClient\\tmcsvc.exe|Name=LANDesk Targeted
Multicast|Edge=FALSE|"
with this code:
f=open('fwrules.reg2
En Wed, 28 Jan 2009 18:06:01 -0200, Peter Otten <__pete...@web.de>
escribió:
Gabriel Genellina wrote:
(I think this has to do with free variables in the "right side" (after
the "in" keyword) of a generator expression; they appear to be evaluated
when the expression is *defined*, not when is is
On Thu, Jan 29, 2009 at 4:19 PM, John Machin wrote:
> Benjamin Kaplan case.edu> writes:
>
> >
> >
> > On Thu, Jan 29, 2009 at 12:09 PM, Anjanesh Lekshminarayanan
> anjanesh.net> wrote:
> > > It does auto-detect it as cp1252- look at the files in the traceback
> and
> > > you'll see lib\encoding
I'm trying to make a script environment with datatypes (or classes)
for accessing hardware registers. At the top level, I would like the
ability to bitwise ops if bit slice brackets are used, but if no
brackets are used, I would like it to write/read the whole value.
For example, if I have someth
MC writes:
> Hi!
>
> Il se trouve que Chris Rebert a formulé :
> > Python has functions, which are not associated with a class
>
> functions are methods of builtin...
No, because ‘builtin’ is not a class.
--
\ “The shortest distance between two points is under |
`\
2009/1/29 Wes James :
> If I read a windows registry file with a line like this:
>
...
>
> with this code:
>
> f=open('fwrules.reg2.txt')
>
> for s in f:
> if s.find('LANDesk') <0:
>print s,
>
>
> LANDesk is not found.
>
> how do I find LANDesk in a string like this. is the "\\" messing thing
Kottiyath wrote in news:d86a0c1d-e158-4aa1-a47f-e2149948bdc3
@p2g2000prf.googlegroups.com in comp.lang.python:
> On Jan 29, 1:51 am, Rob Williscroft wrote:
>> Kottiyath wrote in news:6a594643-f6a2-4d8d-aab3-27eb16cb2fb8
>> @b38g2000prf.googlegroups.com in comp.lang.python:
>>
>> > I have mingw32
On Jan 24, 3:25 pm, whatazor wrote:
> Hi all,
> I start to use this module in order to produce xml( and the make other
> things), but differently from gccxml I don't find the variable that
> set the name of the xml output file after the parsing (in gccxml is -
> fxml), so it creates temporary file
Hello, everyone,
This may be a totally noob question, but since I am one, so here is it.
I have the following code (not something much of):
http://paste.debian.net/27204
The current code runs well, but the problem is with input value:
http://paste.debian.net/27205
Аs you can see, the numbers ar
On Thu, Jan 29, 2009 at 1:50 PM, Oleksiy Khilkevich
wrote:
> Hello, everyone,
> This may be a totally noob question, but since I am one, so here is it.
>
> I have the following code (not something much of):
> http://paste.debian.net/27204
> The current code runs well, but the problem is with input
On Jan 29, 4:50 pm, Oleksiy Khilkevich
wrote:
> Hello, everyone,
> This may be a totally noob question, but since I am one, so here is it.
>
> I have the following code (not something much
> of):http://paste.debian.net/27204
> The current code runs well, but the problem is with input
> value:htt
1 - 100 of 190 matches
Mail list logo