In , Alf P. Steinbach wrote:
> I'm very very happy that most comments about perceived defects in
> the text and in my responses here, have only disagreements over
> terminology. I had expected a slew of errors being pointed out,
> since I'm new to Python. Still, I'm fairly sure that there
> ac
Robert Kern wrote:
On 2009-10-30 18:40 PM, Stef Mientki wrote:
Robert Kern wrote:
On 2009-10-30 12:19 PM, kj wrote:
How can a module determine the path of the file that defines it?
(Note that this is, in the general case, different from sys.argv[0].)
__file__
but for modules launched with
Stef Mientki wrote:
Robert Kern wrote:
On 2009-10-30 18:40 PM, Stef Mientki wrote:
Robert Kern wrote:
On 2009-10-30 12:19 PM, kj wrote:
How can a module determine the path of the file that defines it?
(Note that this is, in the general case, different from sys.argv[0].)
__file__
but for m
Hi,
I am trying to use cx_Oracle and SQLAlchemy with Oracle 11gR1 (11.1)
on Windows Vista 64 bit.
When I import cx_Oracle, I get this error:
>>> import cx_Oracle
Traceback (most recent call last):
File "", line 1, in
ImportError: DLL load failed: %1 is not a valid Win32 application.
I have a
"Alf P. Steinbach" wrote:
> And no, I didn't do any research on that. If it mattered more (e.g. appearing
> as
> statement in the text) I'd have done that. The nice thing about Usenet is that
> people rush in to correct things. ;-) http://xkcd.com/386/>
Unfortunately, the idiocy people say on th
Terry Reedy wrote:
> alex23 wrote:
> > You're completely wrong. Immutability has nothing to do with identity,
> > which is what 'is' is testing for:
>
> What immutability has to do with identity is that 'two' immutable
> objects with the same value *may* actually be the same object,
> *depending o
On Sat, 31 Oct 2009 00:40:59 +0100, Stef Mientki wrote:
> Robert Kern wrote:
>> On 2009-10-30 12:19 PM, kj wrote:
>>> How can a module determine the path of the file that defines it? (Note
>>> that this is, in the general case, different from sys.argv[0].)
>>
>> __file__
>>
> but for modules launc
On Fri, 30 Oct 2009 20:08:28 -0500, Robert Kern wrote:
> Stef Mientki wrote:
...
>> but how do I configure a "properly initialized namespace dict" (other
>> than my current namespace) ?
>
> filename = '...'
> ns = dict(
> __file__=filename,
> __name__='whatever_you_need_it_to_be', __bu
On Fri, 30 Oct 2009 11:16:29 -0500, Tim Johnson wrote:
> On 2009-10-30, Steven D'Aprano
> wrote:
>>
>> Could you explain what problem you are trying to solve?
>>
>>
>>> class formLoader():
>
> Hi Steve
> In a nutshell:
> The 'problem' is to parse a form in such a way that tags which are t
* alex23:
"Alf P. Steinbach" wrote:
And no, I didn't do any research on that. If it mattered more (e.g. appearing as
statement in the text) I'd have done that. The nice thing about Usenet is that
people rush in to correct things. ;-) http://xkcd.com/386/>
Unfortunately, the idiocy people say
Sean DiZazzo wrote:
On Oct 29, 10:17 pm, Chris Rebert wrote:
On Thu, Oct 29, 2009 at 9:53 PM, Peng Yu wrote:
I don't see a way to avoid walking over directories of certain names
with os.walk. For example, I don't want os.walk return files whose
path include '/backup/'. Is there a way
Stef Mientki wrote:
Robert
Kern wrote:
On 2009-10-30 12:19 PM, kj wrote:
How can a module determine the path of the file that defines it?
(Note that this is, in the general case, different from sys.argv[0].)
__file__
but for modules launched with execfile, __file__ doesn't exists.
cheers,
En Fri, 30 Oct 2009 14:50:34 -0300, Sean DiZazzo
escribió:
On Oct 29, 10:17 pm, Chris Rebert wrote:
On Thu, Oct 29, 2009 at 9:53 PM, Peng Yu wrote:
> I don't see a way to avoid walking over directories of certain names
> with os.walk. For example, I don't want os.walk return files whose
>
En Fri, 30 Oct 2009 20:40:59 -0300, Stef Mientki
escribió:
Robert Kern wrote:
On 2009-10-30 12:19 PM, kj wrote:
How can a module determine the path of the file that defines it?
(Note that this is, in the general case, different from sys.argv[0].)
__file__
but for modules launched with ex
I need to integrate shell program with python. I'm wondering if there
is a way get the output of the shell program called by os.system().
Thank you!
--
http://mail.python.org/mailman/listinfo/python-list
On Fri, Oct 30, 2009 at 11:09 PM, Peng Yu wrote:
> I need to integrate shell program with python. I'm wondering if there
> is a way get the output of the shell program called by os.system().
You'd probably do better to use the `subprocess` module instead:
http://docs.python.org/library/subprocess
101 - 116 of 116 matches
Mail list logo