Op 2005-12-15, Ed Leafe schreef <[EMAIL PROTECTED]>:
> On Dec 15, 2005, at 11:51 AM, Lawrence Oluyede wrote:
>
>>> So? Am I nuts? Or is this possible?
>>
>> Yes it is, use exec() to turn your string in valid Python code
>> and bind the dynamic function as a method of class Test
>>
>> xx = """d
Xiao Jianfeng wrote:
> In pymol I can use "from chempy import Atom" but "import
> chempy.Atom" doesn't work. It says,"ImportError: No module
> named Atom". What is going wrong ?
are you sure Atom is a module ?
compare:
>>> from os import remove
>>> remove
>>> import os.remove
Traceback (most
Peter Hansen wrote:
> [EMAIL PROTECTED] wrote:
>
>>kenny Nguyen>Does anyone know the operator "=+"?
>>
>>It isn't an operator, it's equivalent to = (assignment) only.
>
>
> Though actually it would try to call the __pos__ method on the object
> prior to binding it to the name on the left side.
Bugs <[EMAIL PROTECTED]> writes:
> Thomas Heller wrote:
> [snip]
>> A PEP discussing the rationales would *really* be great.
>
> My whole impetus for this thread was to minimize the size of Python
> executables created with py2exe. Right now they tend to be rather
> large, even for very small app
[EMAIL PROTECTED] write;
> i tried running a exe file info.exe from the spawnle cmd, its running
> fine from the interactive mode, but when i try to run the same info.exe
> file from a python file, its giving me the following error:
>
> #
Steven D'Aprano wrote:
> On Thu, 15 Dec 2005 08:22:37 +, Steve Holden wrote:
>
>
>>Hear, hear. However you describe it Python is what it is, and this
>>interminable discussion about its similarities with and differences from
>>various concepts (most lately call by name/call by value) doesn'
Well, it works for me and x is a list, not a tuple. Or am I reading too
much into your subject line?
-Original Message-
From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
n.org]On Behalf Of Tuvas
Sent: Thursday, December 15, 2005 12:20 PM
To: python-list@python.org
Subject: Tuples
Let's
Xiao Jianfeng <[EMAIL PROTECTED]> writes:
> In pymol I can use "from chempy import Atom" but "import chempy.Atom"
> doesn't work.
> It says,"ImportError: No module named Atom". What is going wrong ?
I would trust the error message first, and check your assumption.
Is 'chempy' actually a package,
Where I go to work, a quote stands etched in a very large font into the
concrete prominently to remind us to be humble.
The greatest obstacle to discovery is not ignorance - it is the
illusion of knowledge.
(Daniel J. Boorstin)
You just have to trust us on this. We are not jumping to conclusions
"Steve M" <[EMAIL PROTECTED]> wrote:
>
>Man, I don't even know where to start. There is no way this will work
>if you don't have a web browser that can interpret Python. I don't know
>of one, and I don't think anybody wants one because using a browser
>that would execute arbitrary Python code provi
Fabian Deutsch wrote:
> Hello,
>
> my name is fabian and i'm a student from northern germany. right now i
> try to create som kind of decapsulation of esp-udp packets using python.
>
> therefor i need to use the socket.getsockopt (SOL_IP, IP_OPTIONS, 20)
> method. But al i get is some empty value
Op 2005-12-16, Ben Finney schreef <[EMAIL PROTECTED]>:
> [quoting private email with permission]
>
> Antoon Pardon wrote:
>> I just downloaded your enum module for python [from the Cheeseshop]
>> and played a bit with it. IMO some of the behaviour makes it less
>> usefull.
>
> Feedback is appreciat
Mike Meyer <[EMAIL PROTECTED]> writes:
> Peter Hansen <[EMAIL PROTECTED]> writes:
>> That is, [perhaps] trying to compare enumerations that should not
>> be compared *is* an error (raising an exception) *because* the
>> whole point of enumerations is to avoid errors in such cases.
>
> Except it mig
Sergey wrote:
> Which module to use to do such thing:
> "-a -b -c '1 2 3'" -> ["-a", "-b", "-c", "'1 2 3'"]
>>> import shlex
>>> shlex.split("-a -b -c '1 2 3'")
['-a', '-b', '-c', '1 2 3']
--
Giovanni Bajo
--
http://mail.python.org/mailman/listinfo/python-list
Sergey wrote:
> Which module to use to do such thing:
>
> "-a -b -c '1 2 3'" -> ["-a", "-b", "-c", "'1 2 3'"]
>
> (i have string, need to pass it to getopt)
seems like CSV except that the seperator is space. You may check to see
if the CSV module can take space as delimiter.
--
http://mail.pytho
Was wanting to write a text based application in python seems
curses module is the way to go... anyone knows of any good tutorials
apart from the one written by esr
--
http://mail.python.org/mailman/listinfo/python-list
Which is a better python IDE SPE or WingIDE in terms of features
--
http://mail.python.org/mailman/listinfo/python-list
> --- Ursprüngliche Nachricht ---
> Von: Steve Holden <[EMAIL PROTECTED]>
> An: python-list@python.org
> Betreff: Re: getsockopt
> Datum: Fri, 16 Dec 2005 08:29:08 +
>
> Fabian Deutsch wrote:
> > Hello,
> >
> > my name is fabian and i'm a student from northern germany. right now i
> > try to
Hello,
Here is the script then the problem.
cat testing.py
import crypt
import random, string
def getsalt(chars = string.letters + string.digits):
return random.choice(chars) + random.choice(chars)
username = raw_input('password : ')
print crypt.crypt(username,getsalt())
python testing.py
Johhny wrote:
> Here is the script then the problem.
>
> cat testing.py
>
> import crypt
> import random, string
> def getsalt(chars = string.letters + string.digits):
> return random.choice(chars) + random.choice(chars)
> username = raw_input('password : ')
> print crypt.crypt(username,get
Fabian Deutsch wrote:
>>--- Ursprüngliche Nachricht ---
>>Von: Steve Holden <[EMAIL PROTECTED]>
>>An: python-list@python.org
>>Betreff: Re: getsockopt
>>Datum: Fri, 16 Dec 2005 08:29:08 +
>>
>>Fabian Deutsch wrote:
>>
>>>Hello,
>>>
>>>my name is fabian and i'm a student from northern germany. r
Op 2005-12-15, Grant Edwards schreef <[EMAIL PROTECTED]>:
> On 2005-12-15, Antoon Pardon <[EMAIL PROTECTED]> wrote:
>
>>> Well, in my case, a given name (or return value) is always
>>> bound to a floating point object. I don't test the type of the
>>> object and treat it in two different ways depen
Yes, it looks like some type of virus has affected my computer.
CherryPy was fine from home using my IMac.
But at work from both Firefox and IE I get this problem and now it has
affected another site.
The URLs at CherryPy look like this :
http://www.cherrypy.org/store/0_1_540744_1_1_index.html
Stave Holde wrote:
> Fabian Deutsch wrote:
> >>--- Ursprüngliche Nachricht ---
> >>Von: Steve Holden <[EMAIL PROTECTED]>
> >>An: python-list@python.org
> >>Betreff: Re: getsockopt
> >>Datum: Fri, 16 Dec 2005 08:29:08 +
> >>
> >>Fabian Deutsch wrote:
> >>
> >>>Hello,
> >>>
> >>>my name is fabian
Op 2005-12-16, Ben Finney schreef <[EMAIL PROTECTED]>:
> Mike Meyer <[EMAIL PROTECTED]> writes:
>> Peter Hansen <[EMAIL PROTECTED]> writes:
>>> That is, [perhaps] trying to compare enumerations that should not
>>> be compared *is* an error (raising an exception) *because* the
>>> whole point of enu
Adrian Holovaty wrote:
> bruno at modulix wrote:
>
>>RoR is not an IDE, it's a web framework. The closest things in Python
>>are TurboGears (good Ajax/js support via Mochikit), Subway (never
>>tested), and Django (no Ajax support AFAIK).
>
>
> Note that "no Ajax support" is misleading. Of course
How to send alarm to a thread?
I can set alarm in main thread, but how then send exception to another thread
to wake it if it executes too long?
--
http://mail.python.org/mailman/listinfo/python-list
Ben Finney wrote:
> The problem with "is the same value" as an explanation for '==' is
> that it doesn't help in cases such as::
>
> >>> ShirtSize = Enum('small', 'medium', 'large')
> >>> AppleSize = Enum('small', 'large')
>
> What should be the result of this comparison::
>
> >>> Shirt
Hello,
I am trying to write a script in python (to replace a perl script with
limited functionality). Now I have some issues. Currently I am using
the perl to load the file then regex parse certain lines to remove
characters (uncomment lines and change variables). I would like to take
that into th
Op 2005-12-16, Ben Sizer schreef <[EMAIL PROTECTED]>:
> Ben Finney wrote:
>> The problem with "is the same value" as an explanation for '==' is
>> that it doesn't help in cases such as::
>>
>> >>> ShirtSize = Enum('small', 'medium', 'large')
>> >>> AppleSize = Enum('small', 'large')
>>
>> W
Johhny wrote:
> Any advice would be great.
Have you had a look at Python's re module? If you've not, I suggest you do
so - it contains all of Python's regex tools which you'll need.
Regards,
--
Isaac
--
http://mail.python.org/mailman/listinfo/python-list
James Stroud wrote:
> Dustan wrote:
>
>>I'm a newbie here, especially with Tkinter. I'm writing a program that
>>has 3 phases, if you will, in which I would have to clear the window
>>and insert new widgets. Is this possible, and if so, how? I'm writing
>>my application class based on Frame, if
Thanks for everyone's tips and hints. I WILL MAKE THIS WORK! I think I'll
take your advice and use the serial port instead of the parallel port - I
won't have that much data to send (in comparison with, for example,
industrial level applications). As for on-board chips though, does this
require low
James Stroud wrote:
> Alex Hunsley wrote:
>
>> Can anyone recommend some code for creating drop-down menus in tkinter?
>> To be absolutely clear, here's an example of a drop-down:
>>
>> http://www.google.co.uk/preferences?hl=en
>> (see the language selection widget)
>>
>> I've found the odd bit of
"linuxfreak" <[EMAIL PROTECTED]> writes:
>Was wanting to write a text based application in python seems
>curses module is the way to go... anyone knows of any good tutorials
>apart from the one written by esr
There is at least 1 higher level library atop curses.
http://excess.org/urwid/ I've
linuxfreak wrote:
> Was wanting to write a text based application in python seems
> curses module is the way to go... anyone knows of any good tutorials
> apart from the one written by esr
Not off the top of my head, no. However, you will find that the functions
needed will be very similar to
Johhny wrote:
> Hello,
>
> I am trying to write a script in python (to replace a perl script with
> limited functionality). Now I have some issues. Currently I am using
> the perl to load the file then regex parse certain lines to remove
> characters (uncomment lines and change variables). I would
James Stroud wrote:
> Alex Hunsley wrote:
>
>>Can anyone recommend some code for creating drop-down menus in tkinter?
>>To be absolutely clear, here's an example of a drop-down:
>>
>>http://www.google.co.uk/preferences?hl=en
>>(see the language selection widget)
>>
>>I've found the odd bit of code
Martin Franklin wrote:
> Johhny wrote:
>
>>Hello,
>>
>>I am trying to write a script in python (to replace a perl script with
>>limited functionality). Now I have some issues. Currently I am using
>>the perl to load the file then regex parse certain lines to remove
>>characters (uncomment lines an
Johhny wrote:
> Hello,
>
> I am trying to write a script in python (to replace a perl script with
> limited functionality). Now I have some issues. Currently I am using
> the perl to load the file then regex parse certain lines to remove
> characters (uncomment lines and change variables). I would
Matplotlib also has an SVG renderer. Just save the file with an SVG
extension or choose "SVG" as your default backend in the rc file
http://matplotlib.sf.net/matplotlibrc.
--
http://mail.python.org/mailman/listinfo/python-list
Op 2005-12-16, Sergey schreef <[EMAIL PROTECTED]>:
> How to send alarm to a thread?
> I can set alarm in main thread, but how then send exception to another thread
> to wake it if it executes too long?
The short answer is you can't and you should preferably look for an
other solution. If for exam
On 15 Dec 2005 18:45:17 -0800, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
>Well, the the comparison operations are just a special case really.I
>don't know about the obfuscation contest. I've attempted to make an
>extensible library.
Sorry about "obfuscation contest," I just balked at the redu
Steve Holden wrote:
> Fabian Deutsch wrote:
> >>--- Ursprüngliche Nachricht ---
> >>Von: Steve Holden <[EMAIL PROTECTED]>
> >>An: python-list@python.org
> >>Betreff: Re: getsockopt
> >>Datum: Fri, 16 Dec 2005 08:29:08 +
> >>
> >>Fabian Deutsch wrote:
> >>
> >>>Hello,
> >>>
> >>>my name is fabia
bruno at modulix wrote:
> Adrian, what you describe here is *exactly* what I call "no Ajax
> support": you have to handle the whole thing manually, the framework
>doesn't provide anything by itself.
I'm not going to argue whether Django supports "Ajax" or not, but I
will agree that for the desired
bruno at modulix wrote:
> Adrian, what you describe here is *exactly* what I call "no Ajax
> support": you have to handle the whole thing manually, the framework
>doesn't provide anything by itself.
I'm not going to argue whether Django supports "Ajax" or not, but I
will agree that for the desired
bruno at modulix wrote:
> Adrian, what you describe here is *exactly* what I call "no Ajax
> support": you have to handle the whole thing manually, the framework
>doesn't provide anything by itself.
I'm not going to argue whether Django supports "Ajax" or not, but I
will agree that for the desired
Antoon Pardon <[EMAIL PROTECTED]> writes:
> Ben Finney wrote:
>> The 'enum' package in Cheeseshop [defines enumerations as]
>> sequences (of unique arbitrary values), that can be iterated and
>> tested for membership.
>
> Sure but we do have this:
>
from enum import Enum
day = Enum('mon',
Thankyou, I appreciate your help. I did not realise that python would
behave that way.
--
http://mail.python.org/mailman/listinfo/python-list
linuxfreak <[EMAIL PROTECTED]> wrote:
> Was wanting to write a text based application in python seems
> curses module is the way to go... anyone knows of any good tutorials
> apart from the one written by esr
It wasn't written by esr. He only has his name on it, did none of the work.
--
Tho
Ben Finney <[EMAIL PROTECTED]> writes:
> This gives meaning to the "equal value" comparisons, but ensures that
> other comparisons are errors.
>
> Comments so far?
What does copy.copy of an enumeration value do? What happens if you
have a list with some enumeration values inside, and you make a
Hello,
am I wrong or isn't there a way in distutils to build (compile/link) a
native executable and install it among the "scripts"? It looks like that
distutils.CCompiler features a link_executable() method, and build_ext.py
has most of the logic needed to track dependencies, include paths and
wha
> I did a fairly thorough investigation of web frameworks that let us
> write Python (we didn't care what the framework was written in; merely
> that it interfaced with Python) for one of the systems I've built this
> year. I wouldn't call the evaluation of web frameworks a problem - we
> met our s
[EMAIL PROTECTED] wrote:
> This was my point though: I found the *description* - but no wordon
> WHICH implementation to get WHERE ?
Hmm.
- Browse to http://www.python.org
- click Documentation
- click Database API
- click Database Modules (Database modules that implement the DB-API
specificatio
> Antoon Pardon wrote:
>> Ben Finney wrote:
>> > Would it be better if every Enum instance had its own unique
>> > subclass of EnumValue, that was used to instantiate values for
>> > that enumeration?
>>
>> If you decide on keeping the current behaviour when comparing
>> values of different enumera
Hi,
Thank you for the info.
The dlp usb solution looks like a terrific gadget, especially since
parallel ports have almost disppeared, at least on portables.
In fact, would in linux not any py software capable of dealing with a
usb connection (almost) suffice? Any further comments would be much
app
Pyparsing has built-in quoted string support.
from pyparsing import OneOrMore,Word,alphanums,quotedString
item = Word('-',alphanums) | quotedString | Word(alphanums)
items = OneOrMore(item)
print items.parseString( "-a -b -c '1 2 3' -d 5 -e zork2000" )
gives:
['-a', '-b', '-c', "'1 2 3'", '-d'
John,
Martin is right. Always try to solve without regex first. However, for
those situations where you definitely need regex, use this tutorial:
http://www.amk.ca/python/howto/regex/
It's well-written, succinct, and Python-specific.
rpd
--
http://mail.python.org/mailman/listinfo/python-list
emacs, best ide of all-time ;)
--
http://mail.python.org/mailman/listinfo/python-list
On 2005-12-16, Bock <[EMAIL PROTECTED]> wrote:
> I was just told about Python. My searching and reading over the net
> I was able to learn that Python can handle "foreign" characters via
> Unicodes.
>
> Can or does Python write unicode to the screen?
Sure.
> For example, in c++ cout >> "Hello
I don't want to destroy the root, I just want to remove the widgets
(the exact opposite of what Martin was saying). I started working on
James' idea, but it'll be a while before I have it fully implemented to
test.
--
http://mail.python.org/mailman/listinfo/python-list
On 2005-12-16, Antoon Pardon <[EMAIL PROTECTED]> wrote:
>> Your examples are still both very different from the NaN
>> example. A NaN is a floating point operation that supports all
>> the same operations as all other floating point operations. In
>> your example an integer object of -2 does not
I have the following little piece of code:
class Cfg:pass
#config = Cfg()
def assign():
setattr(config, 'Start' , [13, 26, 29, 34])
def foo():
config = Cfg()
dct = {'config':config, 'assign':assign}
exec "assign()" in dct
print config.Start
foo()
When I execute this I get the follow
Antoon Pardon wrote:
> Op 2005-12-16, Ben Sizer schreef <[EMAIL PROTECTED]>:
> > Is it possible to make it have the following sort of behaviour? :
> >
> ShirtSize.small == AppleSize.small
> > True
> ShirtSize.small is AppleSize.small
> > False
> >
> > It works for comparing a boolean (Tr
"Dustan" <[EMAIL PROTECTED]> wrote:
>I don't want to destroy the root, I just want to remove the widgets
> (the exact opposite of what Martin was saying). I started working on
> James' idea, but it'll be a while before I have it fully implemented to
> test.
each widget has a "children" attribute
Daya Kiran Sunkara wrote:
> ...
> path = 'E:\mktrisk\service\marketdata\da'
You should use:
path = r'E:\mktrisk\service\marketdata\da'
if you want to use backslashes regularly (for regexps and paths).
You do know you could also use:
path = 'E:/mktrisk/service/marketdata/da'
even on windows.
SPE is very good - I'd use it, and if you need any features Stani is
very quick to add them.
All the best,
Fuzzyman
http://www.voidspace.org.uk/python/index.shtml
--
http://mail.python.org/mailman/listinfo/python-list
Antoon Pardon wrote:
> I have the following little piece of code:
>
> class Cfg:pass
> #config = Cfg()
>
> def assign():
> setattr(config, 'Start' , [13, 26, 29, 34])
>
> def foo():
> config = Cfg()
> dct = {'config':config, 'assign':assign}
> exec "assign()" in dct
> print config.Star
Antoon Pardon wrote:
> I have the following little piece of code:
>
> class Cfg:pass
> #config = Cfg()
>
> def assign():
> setattr(config, 'Start' , [13, 26, 29, 34])
>
> def foo():
> config = Cfg()
> dct = {'config':config, 'assign':assign}
> exec "assign()" in dct
> print config.Sta
Antoon Pardon wrote:
> I have the following little piece of code:
>
> class Cfg:pass
> #config = Cfg()
>
> def assign():
> setattr(config, 'Start' , [13, 26, 29, 34])
>
> def foo():
> config = Cfg()
> dct = {'config':config, 'assign':assign}
> exec "assign()" in dct
> print config.Sta
Hello all,
I'm writing a module that takes user input as strings and (effectively)
translates them to function calls with arguments and keyword
arguments.to pass a list I use a sort of 'list constructor' - so the
syntax looks a bit like :
checkname(arg1, "arg 2", 'arg 3', keywarg="value",
keyw
Antoon Pardon wrote:
> I have the following little piece of code:
>
> class Cfg:pass
> #config = Cfg()
>
> def assign():
> setattr(config, 'Start' , [13, 26, 29, 34])
>
> def foo():
> config = Cfg()
> dct = {'config':config, 'assign':assign}
> exec "assign()" in dct
> print config.Start
Martin Miller wrote:
> ... If someone with actual experience using Komodo with Python is
> listening, I'd be very interested in hearing what you think of it
I got a copy of Komodo some time ago, and I love it. I wanted a
fairly reliable "debugging" platform for a fairly large server
I was buil
Op 2005-12-16, Peter Otten schreef <[EMAIL PROTECTED]>:
> Antoon Pardon wrote:
>
>> I have the following little piece of code:
>>
>> class Cfg:pass
>> #config = Cfg()
>>
>> def assign():
>> setattr(config, 'Start' , [13, 26, 29, 34])
>>
>> def foo():
>> config = Cfg()
>> dct = {'config':co
On Thu, 15 Dec 2005 20:15:17 -0800,
Alex Martelli <[EMAIL PROTECTED]> wrote:
> If you claim there's a web project that's unfeasible to do in Ruby,
> you'd better come up with a strong example. If you're making no such
> claim, which would be counter to the claims of the Ruby community, th
Op 2005-12-16, Larry Bates schreef <[EMAIL PROTECTED]>:
> Antoon Pardon wrote:
>> I have the following little piece of code:
>>
>> class Cfg:pass
>> #config = Cfg()
>>
>> def assign():
>> setattr(config, 'Start' , [13, 26, 29, 34])
>>
>> def foo():
>> config = Cfg()
>> dct = {'config':conf
Kay Schluehr <[EMAIL PROTECTED]> wrote:
...
> work. Or maybe it works and I just have no clue how completely opaque
> call graphs as they appear in functions like this
>
> def f(x):
> h = g(x)
> h()
>
> can be tracked sufficiently in "register-time" in order to capture
> dependencies
bruno at modulix wrote:
> Adrian, what you describe here is *exactly* what I call "no Ajax
> support": you have to handle the whole thing manually, the framework
> doesn't provide anything by itself. Would you say the CGI module offers
> support for templating, data persistance and Ajax as well ?-)
>>> import pydoc
>>> import sys
>>> sys.version
'2.4.2 (#67, Sep 28 2005, 12:41:11) [MSC v.1310 32 bit (Intel)]'
>>> pydoc sys
SyntaxError: invalid syntax
>>>
The documentation for pydoc says:
"Run "pydoc " to show documentation on something."
What am I missing?
Thanks!
Chris
--
http://mail.py
Without downloading and installing your code, can you tell me what the
result of these comparisons would be?
col = Enum('red', 'green', 'blue')
day = Enum('mon', 'tue', 'wed', 'thu', 'fri', 'sat', 'sun')
col.blue == "blue"
day.tue == 23
If they return False I would expect
co
"chuck" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Apparently not too many people use or are interested in PythonWin. I'm
> giving up on it. It used to work pretty good.
>
> I'm lucky that I have found PyScripter (http://www.mmm-experts.com/) a
> python IDE for the windows pl
Antoon Pardon wrote:
> And from the documentation
> from exec I get the impression you can use it so that a function
> will have temporarily a different reference to global namespace.
That impression confuses two things:
(1) A function object carries a global namespace with it. That namespace
"Fuzzyman" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hello all,
>
> I'm writing a module that takes user input as strings and (effectively)
> translates them to function calls with arguments and keyword
> arguments.to pass a list I use a sort of 'list constructor' - so the
> s
[EMAIL PROTECTED] wrote:
> hi
> thanks every body for the help.
> Now how can check whtr the row am reading is the last row or not??
>
> for example: ...
> reader = csv.reader(file)
> for row in reader:
> print row
> HERE HOW CAN I CHECK WHTR THIS ROW IS THE LAST ONE IN THE FILE
>
> s
Antoon Pardon wrote:
> Op 2005-12-16, Larry Bates schreef <[EMAIL PROTECTED]>:
>> Antoon Pardon wrote:
>>> I have the following little piece of code:
>>>
>>> class Cfg:pass
>>> #config = Cfg()
>>>
>>> def assign():
>>> setattr(config, 'Start' , [13, 26, 29, 34])
>>>
>>> def foo():
>>> confi
ShirtSize = Enum('small', 'medium', 'large')
AppleSize = Enum('small', 'large')
Ben> What should be the result of this comparison::
ShirtSize.small == AppleSize.small
False. They are values from different objects. Just make __eq__ map to
"is". I think you'll be
You might want to take a look at the "Blocks and Views" code I did,
take a look at it and see if you can either use it directly or use
it with any changes you feel like making.
http://members.dsl-only.net/~daniels/Block.html
--
-Scott David Daniels
[EMAIL PROTECTED]
--
http://mail.python.or
Mike Meyer wrote:
> "Ben Sizer" <[EMAIL PROTECTED]> writes:
> > Flexibility is good, but personally I think the problem is that instead
> > of useful variety, we have redundant overlap. How many different
> > templating systems, sql<-->object mappings, and URL dispatch schemes do
> > we need? And w
[EMAIL PROTECTED] wrote:
import pydoc
import sys
sys.version
> '2.4.2 (#67, Sep 28 2005, 12:41:11) [MSC v.1310 32 bit (Intel)]'
pydoc sys
> SyntaxError: invalid syntax
>
> The documentation for pydoc says:
> "Run "pydoc " to show documentation on something."
>
> What am
Tim Arnold wrote:
> "Fuzzyman" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> > Hello all,
> >
> > I'm writing a module that takes user input as strings and (effectively)
> > translates them to function calls with arguments and keyword
> > arguments.to pass a list I use a sort of
Hi all,
An idea popped into my head recently for an app that would track how
much time a user spends in a particular piece of software (or at least,
for how long an application is open).
I'm assuming there is a way to do this via the command line and a unix
app, although I haven't yet invesitgate
Ya Thanks Fredrik,
i had overwritten the os in my code indeed, now its working fine.
thanks a lot for that
regards
--
http://mail.python.org/mailman/listinfo/python-list
Hi,
I have an app written under version Python 2.3.5. The problem I'm
having is that it hangs on one of its threads. The thread that hangs
does updates to a standard dictionary shared with another thread that
only reads this dictionary. This app works beautifully on a single
processor boxes in
Ok, I know see that os.spawnl() will suffice. However, how do I
retrieve the output of the command.
For example,
import os
os.spawnl(os.P_WAIT, '/bin/date')
Successfully executes the 'date' app, but I am unaware of how to get
its output
--
http://mail.python.org/mailman/listinfo/python-lis
Ben Finney <[EMAIL PROTECTED]> writes:
> Mike Meyer <[EMAIL PROTECTED]> writes:
>> Peter Hansen <[EMAIL PROTECTED]> writes:
>>> That is, [perhaps] trying to compare enumerations that should not
>>> be compared *is* an error (raising an exception) *because* the
>>> whole point of enumerations is to
Rob Cowie enlightened us with:
> Ok, I know see that os.spawnl() will suffice. However, how do I
> retrieve the output of the command.
Apparently, os.spawnl() didn't suffice. Check out the popen2 module
and Popen* classes.
Sybren
--
The problem with the world is stupidity. Not saying there shoul
To avoid that:
- subclass Test first
class SubclassTest(T):
pass
- assign the method to SubclassTest's attribute,
SubclassTest.dynamic = dynamic
- then assign the new class to magic variable __class__ :
t.__class__ = SubclassTest
t.dynamic()
Antoon Pardon wrote:
> But this will make the
Do Re Mi chel La Si Do wrote:
> Hi!
>
> See :
> http://www.activeperl.com/Products/Visual_Perl/?mp=1
>
>
> @+
>
> MCI
Another closed source success story.
--
http://mail.python.org/mailman/listinfo/python-list
Antoon Pardon <[EMAIL PROTECTED]> wrote:
> Op 2005-12-15, Ed Leafe schreef <[EMAIL PROTECTED]>:
>> On Dec 15, 2005, at 11:51 AM, Lawrence Oluyede wrote:
>>
So? Am I nuts? Or is this possible?
>>>
>>> Yes it is, use exec() to turn your string in valid Python code
>>> and bind the dynamic f
Excellent... just the thing I was looking for. Thanks.
Does anyone know of a unix app that could be used to monitor the
duration of processes etc.?
Would 'top' do the trick?
Rob C
--
http://mail.python.org/mailman/listinfo/python-list
1 - 100 of 202 matches
Mail list logo