Andrew Berg wrote:
> I'm not sure the subject's wording is the best, but I'll try to explain.
> I have a main script that imports several modules and I need to be able
> to call methods from a class instance inside that main script from a
> module. Currently, functions can be defined to access the
Hello,
I'm having problems building tcl/tk and python on Windows XP so that both are
installed correctly.
1. ActivePython 2.7.2.5 works fine on my system but may be implicated in recent
R6034 runtime errors from users.
2. Python.org 2.7.2 msi binaries install fine, but produce a "tcl wasn't
i
On 2011.10.02 01:55 AM, Steven D'Aprano wrote:
> Have I missed something? Why can't you just import the module and call the
> methods like you would for any other module and class?
>
> import module
> instance = module.Some_Class()
> result = instance.method(some, arguments, may, be, needed)
I nee
On 2011.10.02 02:11 AM, Gary Herron wrote:
> You may be able to do the simplest thing: If a module wants to call
> something form the main module (or main script as you call it) just try
> importing that main script and call whatever it is you want. This
> results in a circular set of imports,
Andrew Berg wrote:
> On 2011.10.02 01:55 AM, Steven D'Aprano wrote:
>> Have I missed something? Why can't you just import the module and call
>> the methods like you would for any other module and class?
>>
>> import module
>> instance = module.Some_Class()
>> result = instance.method(some, argum
On Saturday, October 1, 2011 8:06:43 AM UTC+1, Chris Rebert wrote:
> On Fri, Sep 30, 2011 at 11:31 PM, Jason Swails wrote:
> > I'm probably missing something pretty obvious, but I was wondering if there
> > was a way of executing an arbitrary line of code somehow (such as a line of
> > code based
Jonathan Hartley wrote:
> I (and many others) entirely avoid using 'eval' in all my code for many
> years, based on the security concerns that Chris rightly highlights. It's
> worth noting though, that RaymondH's talks last year on some valid uses of
> 'eval' and 'exec' have opened my eyes to it s
On Oct 2, 8:03 am, Steven D'Aprano wrote:
> By the way, who removed the OT label from the subject line? Please don't
> unless it actually comes back on topic.
>
> DevPlayer wrote:
> > I still assert that contradiction is caused by narrow perspective.
>
> There's no doubt that some *apparent* contr
Hello,
Could you please recommend me a Python tool that could help me to get
rid of the messy information and scripts I have in spreadsheets?
Spreadsheets are great for having simple things done quickly. But as
the needs grow their limitations can be quite frustrating. I would
like to use the bro
On 10/02/2011 06:36 PM, markolopa wrote:
Hello,
Could you please recommend me a Python tool that could help me to get
rid of the messy information and scripts I have in spreadsheets?
Spreadsheets are great for having simple things done quickly. But as
the needs grow their limitations can be qui
On Oct 2, 10:36 pm, markolopa wrote:
> Hello,
>
> Could you please recommend me a Python tool that could help me to get
> rid of the messy information and scripts I have in spreadsheets?
>
> Spreadsheets are great for having simple things done quickly. But as
> the needs grow their limitations can
Hi people,
Nowadays, I am trying to explore python source. I added a new keyword,
essentially doing same thing as 'continue' keyword to the interpreter,
mostly by following instructions in PEP 306. If anyone interested here is
the video about how I did it: http://www.youtube.com/watch?v=Ww7BeIdUb
On Oct 2, 12:36 pm, markolopa wrote:
> Examples of information I would store in such a tree/table system
> (which are now in spreasheets):
> - My dvd, avi collection: The tree would be the directory tree of the
> file system where I store my movies. For each directory containing the
> avis or the
Check out ResolverOne
http://www.resolversystems.com
Malcolm
--
http://mail.python.org/mailman/listinfo/python-list
Hi All,
my apologies if this is a dumb question, but I couldn't find a solution
- possibly because I am not sure how to state my problem in a short
sentence.
Let's say I am using a package called "blah", and this package is already
installed on site-packages (and I need it to be there) with
On Sun, 02 Oct 2011 08:03:07 -0700, rusi wrote:
> On Oct 2, 8:03 am, Steven D'Aprano +comp.lang.pyt...@pearwood.info> wrote:
>> By the way, who removed the OT label from the subject line? Please
>> don't unless it actually comes back on topic.
>>
>> DevPlayer wrote:
>> > I still assert that contr
On 10/02/2011 10:29 PM, Andrea Gavana wrote:
Hi All,
my apologies if this is a dumb question, but I couldn't find a
solution - possibly because I am not sure how to state my problem in
a short sentence.
Let's say I am using a package called "blah", and this package is
already installed
I'm seeing a very odd error in an application I'm developing using
Python 2.7.2, on Mac OS 10.7.
This application uses a wrapper method to look up other method names via
getattr and then call those methods. I have not previously had an issue
with this name, but for some reason this functionali
I hope I don't sound like I'm ranting :-(
I have created a module (called xlogging) which sets up logging the way I want
it. I found out that if I set up my logger without a name, then it gets
applied to every logger that is referenced by every module that ever gets
imported.
The problem is that
Greg,
Do you have an example where the Controller is connected?
Regards,
EMeka
On Sun, Oct 2, 2011 at 4:40 AM, Gregory Ewing
wrote:
> Alexander Kapps wrote:
>
> But I think a simple (and quick 'n' dirty) Tk MVC example can look like
>> this:
>>
>
> The Controller doesn't seem to add any value
On Sun, Oct 2, 2011 at 3:02 PM, Kevin Walzer wrote:
> I'm seeing a very odd error in an application I'm developing using Python
> 2.7.2, on Mac OS 10.7.
>
> This application uses a wrapper method to look up other method names via
> getattr and then call those methods. I have not previously had an
On 10/2/2011 6:02 PM, Kevin Walzer wrote:
I'm seeing a very odd error in an application I'm developing using
Python 2.7.2, on Mac OS 10.7.
This application uses a wrapper method to look up other method names via
getattr and then call those methods. I have not previously had an issue
with this na
On 03.10.2011 00:15, Emeka wrote:
Greg,
Do you have an example where the Controller is connected?
What do you mean? In my example, the Controller *is* connected (to
both the View and the Model.)
--
http://mail.python.org/mailman/listinfo/python-list
On 02.10.2011 04:40, Gregory Ewing wrote:
Alexander Kapps wrote:
But I think a simple (and quick 'n' dirty) Tk MVC example can look
like this:
The Controller doesn't seem to add any value in that example.
You might as well connect the Model and Views directly to
each other.
Sure, in that s
On Sun, 02 Oct 2011 18:02:05 -0400, Kevin Walzer wrote:
> I'm seeing a very odd error in an application I'm developing using
> Python 2.7.2, on Mac OS 10.7.
>
> This application uses a wrapper method to look up other method names via
> getattr and then call those methods. I have not previously ha
On Sun, 02 Oct 2011 06:12:05 +0100, Andrew Berg
wrote:
I'm not sure the subject's wording is the best, but I'll try to explain.
I have a main script that imports several modules and I need to be able
to call methods from a class instance inside that main script from a
module.
Do you mean th
Turns out the error was a typo in the actual method being
called...*faceinhands*
Sorry for the noise.
--
Kevin Walzer
Code by Kevin
http://www.codebykevin.com
--
http://mail.python.org/mailman/listinfo/python-list
On 10/02/2011 05:24 PM, Kevin Walzer wrote:
Turns out the error was a typo in the actual method being
called...*faceinhands*
Sorry for the noise.
But this is a great example of why you should not use a naked except
clause. As stated, your code will execute the except clause for *any*
kin
In article ,
Gary Herron wrote:
> On 10/02/2011 05:24 PM, Kevin Walzer wrote:
> > Turns out the error was a typo in the actual method being
> > called...*faceinhands*
> >
> > Sorry for the noise.
> >
>
> But this is a great example of why you should not use a naked except
> clause. As state
On 10/02/2011 10:29 PM, Andrea Gavana wrote:
> Hi All,
> my apologies if this is a dumb question, but I couldn't find a
> solution - possibly because I am not sure how to state my problem in
> a short sentence.
I think this (and such) are important questions and I too await
answers.
It seem
I found a way to do it, albeit a very hackish one. Since the class
instance already catches exceptions from the modules it imports, I can
make a custom exception (in a common area for both it and the submodules
to import) for it to catch and have it call its own methods there based
on information s
On Sun, Oct 2, 2011 at 7:27 PM, Phlip wrote:
> has anyone invented a system like R*by's ActiveSupport's 5.years.ago,
> 42.minutes.since ?
>
> (Yes, I'm aware the notation will be different!)
If something involves Python and nontrivial chronology, then
mxDateTime is the go-to library. And indeed,
On Fri, 30 Sep 2011 21:09:54 +0100, Nobody wrote:
> On Thu, 29 Sep 2011 11:53:12 +0200, Alain Ketterlin wrote:
>
>>> I have a Python script which I would like to test without a tty
>>> attached to the process. I could run it as a cron job, but is there an
>>> easier way?
[...]
> I suspect that th
Emeka wrote:
Greg,
Do you have an example where the Controller is connected?
No, in fact I've never really felt the need for anything
called a Controller in the GUI stuff I've done. I just
have Models and Views. Models hold the data, and Views
display it and handle input.
If you come across a
On 3/10/11 06:37:43, Steven D'Aprano wrote:
On Fri, 30 Sep 2011 21:09:54 +0100, Nobody wrote:
On Thu, 29 Sep 2011 11:53:12 +0200, Alain Ketterlin wrote:
I have a Python script which I would like to test without a tty
attached to the process. I could run it as a cron job, but is there an
easie
hello,
On Mon, Oct 03, 2011 at 04:37:43AM +, Steven D'Aprano wrote:
>
> I wanted to ensure that it would do the right thing when run without a tty,
> such as from a cron job.
If you fork() your process, then it will also loose the tty...
import os
import sys
try:
pid = os.fork()
Hello guys,
I am migrating my application from python 1.5.2 to 2.7.1. I encountered an
error when I run some commands (I put in debug statement however, not able to
trace down to which line of code that cause it to generate a lot of messages in
one second until my hard disk space is full. The e
37 matches
Mail list logo