If I do this:
def f(self): print self
class c1: pass
setattr(c1, 'm1', f)
Then f is automagically transmogrified into the appropriate sort of
method depending on how it is used:
>>> c1.m1
>>> c1().m1
>
>>> c1().m1()
<__main__.c1 instance at 0x51ec60>
Note that m1 gets passed a self argument
Ron Garret <[EMAIL PROTECTED]> wrote:
> I want to say:
>
> trace(c1.m1)
>
> and have c1.m1 be replaced with a wrapper that prints debugging info
> before actually calling the old value of m1. The reason I want that
> to be an instance of a callable class instead of a function is that I
> need
Is there a way to read the directory that the currently running python file
is located in?
Cheers
Mike.
--
http://mail.python.org/mailman/listinfo/python-list
g4rlik <[EMAIL PROTECTED]> wrote:
> No one can help? This is seriously bugging me to no end.
>> My problem is..the GUI for versions 2.3, 2.4, and 2.5 of Python run
>> very sluggishly. When I type in them or move them around my desktop,
>> it's very slow. I have figured out that this is because
[EMAIL PROTECTED]
| Sorry if i did not make myself clear. let me try again.
|
| I can detect when the db is up and not responding, however,
| if the DB does not start at all, my local application hangs. I need
to find a
| way to determine if the DB has started, that's all.
Maybe (and only
On 30 Nov 2006 13:05:23 -0800, Boneh <[EMAIL PROTECTED]> wrote:
Boneh wrote:
> Is it possible to change the icon "Tk" of the windows popped up ?
I am using tkinter for widgets, thanks :-)
--
http://mail.python.org/mailman/listinfo/python-list
user iconbitmap method to change the icon of t
Ron Garret wrote:
> One of the things I find annoying about Python is that when you make a
> change to a method definition that change is not reflected in existing
> instances of a class (because you're really defining a new class when
> you reload a class definition, not actually redefining it).
may I, as a former Englishman, say how proud we always were to be
exploited by our betters
many thanks guv
Mark
Jonathan Smith wrote:
> gavino wrote:
> > wtf
>
> Java is a coffee, and coffee comes from exploited Ethiopians (they do
> have some damn fine coffee, though). Most of us prefer to exp
Hi all.
I use cx_Oracle to connect to an Oracle9i DB. And I want to turn on
AUTOCOMMIT function.
I see that cur.execute("SET AUTOCOMMIT ON") cannot work. Is there any
method to do that ??
Thanks a lot!
--
http://mail.python.org/mailman/listinfo/python-list
Cameron Laird a écrit :
> In article <[EMAIL PROTECTED]>,
> Laurent Pointal <[EMAIL PROTECTED]> wrote:
>> Fred Bayer a écrit :
>>> Tony Belding wrote:
I'm interested in using an off-the-shelf interpreted language as a
user-accessible scripting language for a MUCK. I'm just not sure if I
"Ron Garret" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>
> These objects can be parts of huge networks of massively linked data
> structures. They are in constant flux. It is not uncommon to hit a bug
> after many minutes, sometimes hours, of computation. Having to store
> the
Hi,
It seems to me that measuring productivity in a programming language
must take into account available tools and libraries.
Eclipse for example provides such an amazing IDE for java that it is no
longer obvious to me that one would be much more productive in python
for medium sized projects.
John Machin wrote:
>> > Fredrik Tolf wrote:
>> > > The thing is, I want to get format strings from the user, and I don't
>> > > want to require the user to consume all the arguments.
> what's ugly about this:
> [untested]:
>
> def count_format_args(s):
> pending = False
> count = 0
>
"Jia Lu" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi all.
> I use cx_Oracle to connect to an Oracle9i DB. And I want to turn on
> AUTOCOMMIT function.
> I see that cur.execute("SET AUTOCOMMIT ON") cannot work. Is there any
> method to do that ??
>
> Thanks a lot!
>
AUTOCOMMIT
Paul McGuire のメッセージ:
> AUTOCOMMIT is a dangerous crutch, beware. Ok for single record updates, but
> if you need to update 2 records in synch, AUTOCOMMIT leaves you open to
> hard-to-debug bugs (will work ok in development under light load, then fail
> intermittently with concurrent users).
Tha
Dennis Lee Bieber schreef:
> Send a complaint to M$ requesting them to open document the NTFS
> format... I've been out of the loop for a while, but the last time I
> checked, NTFS was something that should be treated as read-only from
> LINUX -- the recommendation was to make a small FAT-32
On 1 Dec 2006 01:24:47 -0800, Amir Michail <[EMAIL PROTECTED]> wrote:
> Eclipse for example provides such an amazing IDE for java that it is no
> longer obvious to me that one would be much more productive in python
> for medium sized projects.
Eclipse can generate a lot of the Java boilerplate c
Steven D'Aprano wrote:
> On Thu, 30 Nov 2006 11:17:17 +0100, Peter Otten wrote:
>
>> Steven D'Aprano wrote:
>>
>>> And remember that if alist is truly huge, you may take a performance hit
>>> due to duplicating all those megabytes of data when you slice it.
>>
>> Having the same object in two l
Peter Otten wrote:
> Here is another implementation that cuts maximum memory down from 100 to
> 50%.
>
> from itertools import islice
> def swap(items):
> items[::2], items[1::2] = islice(items, 1, None, 2), items[::2]
> return items
Unfortunately, the following
>>> a = [1, 2, 3]
>>> a[
Hi!
I am writing a package installation using distutils it is very nice but
I have it two snags:
setup(...
data_files=[("foo",["*.data""])],\
...)
setup.py install --prefix=/usr/bar/baz
a) Shouldn't the *.data syntax work?
b) Why does it install the data files on /usr/bar/baz/foo and not i
Duncan Booth wrote:
> Ron Garret <[EMAIL PROTECTED]> wrote:
>
> > I want to say:
> >
> > trace(c1.m1)
> >
> > and have c1.m1 be replaced with a wrapper that prints debugging info
> > before actually calling the old value of m1. The reason I want that
> > to be an instance of a callable class inste
Nevermind, I got it using the sys.argv[0]
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On
Behalf Of Michael Malinowski
Sent: Friday, December 01, 2006 9:07 AM
To: [email protected]
Subject: How to read the directory which the actively running python file
isloca
I am trying to create an excel document that displays a table of data.
It does exactly what I want but takes a long time. I am writing around
1000 rows and it takes around a second to do each row.
Is there a quicker way to write this? The reason I want excel is this
needs to read and manipulate
Hi,
I just tried to install python 2.5 from source on my
ScienticLinux (Redhat Clone) machine. It seems to work
without any problem, at least I am able to run some of my
old scripts. I installed it with './configure
--prefix=/opt/python make make altinstall', but now for a
'vtk' installation which
just used the py dev plugin for eclipse.
it is great.
auto indentation and intellisence.
and all other things.
so now how does it look from this end?
python + productivity and eclipse + productivity = double productivity!
only problem with the plugin is that I find it difficult to manage the
script
krishnakant Mane wrote:
> just used the py dev plugin for eclipse.
> it is great.
> auto indentation and intellisence.
> and all other things.
> so now how does it look from this end?
> python + productivity and eclipse + productivity = double productivity!
> only problem with the plugin is that I
Thomas Ploch schrieb:
> Amir Michail schrieb:
>> Hi,
>>
>> It seems to me that measuring productivity in a programming language
>> must take into account available tools and libraries.
>>
>> Eclipse for example provides such an amazing IDE for java that it is no
>> longer obvious to me that one wou
Michael Malinowski wrote:
> Nevermind, I got it using the sys.argv[0]
That doesn't always work, as on unix the path isn't prepended onto
sys.argv[0] necessarily.
import os.path
...
os.path.dirname(os.path.abspath(__file__))
may be better.
--
Jeremy Sanders
http://www.jeremysanders.net/
--
ht
Thomas Ploch wrote:
> Thomas Ploch schrieb:
>> Amir Michail schrieb:
>>> Hi,
>>>
>>> It seems to me that measuring productivity in a programming language
>>> must take into account available tools and libraries.
>>>
>>> Eclipse for example provides such an amazing IDE for java that it is no
>>> lon
krishnakant Mane wrote:
> just used the py dev plugin for eclipse.
> it is great.
But isn't support for java better because the eclipse ide can take
advantage of explicit type declarations (e.g., for intellisense,
refactoring, etc.)?
Amir
> auto indentation and intellisence.
> and all other th
Hello,
If somebody know any python module that uses voip or sip except shtoom
and yate
Please tell me full url of that module or send to
[EMAIL PROTECTED]
Thanks,I will really appreciate that
--
http://mail.python.org/mailman/listinfo/python-list
Fredrik Lundh wrote:
> yndesai wrote:
>
> > Is it that no compiling facility is hindering the growth of python
> > in commercial circuit . . . ?
I can see the point of people who are confused about single file
executables for Python programs, who are possibly new to the technology
and don't know w
in os module there is many funktion/methods to extract this information
to ask the path to the current running pythonprogram you can do likes
this
- CUT---
import os
print os.getcwd()
- CUT --
// Anders
Michael Malinowski skrev:
> Is there a way to read the directory that
in os module there is many funktion/methods to extract this information
to ask the path to the current running pythonprogram you can do likes
this
- CUT---
import os
print os.getcwd()
- CUT --
// Anders
Michael Malinowski skrev:
> Is there a way to read the directory that
Hello,
currently i am developing a very small cms using python and cheetah.
very early i have noticed that i was lacking the method to
extract/recover the contents (html,text) from the html that is
generated by cheetah and delivered to the site viewer.
to explain it further: during the output pro
Hi All,
I am having some problems in running a very simple python script,
which prints some numbers in an Excel spreadsheet. The numbers are
stored in a list. I know that the numbers are different (random
generated), but when I open the Excel file I get a column of data with
all the numbers eq
Hi all
Just a very simple question: where can I find a module for route planning?
I have looked around and found some implementations of graph theory, e.g.
http://sourceforge.net/projects/pynetwork/. But, what I need is not an
abstract graph, but one where nodes/vertices have locations (2D), are
First of all you should call the random.seed()
function. That was at least what I´ve always done.
seed([x])
Initialize the basic random number generator.
Second of all, calling random.random() will give you
this:
random()
Return the next random floating point number in
the range [0.0, 1.0
Hi Michael,
> First of all you should call the random.seed()
> function. That was at least what I´ve always done.
> seed([x])
Thanks for your suggestion, but it doesn't matter whether you call
seed() or not. The random number generator can *not* return 10 equal
values if called 10 times, irrespec
"Daniel Bowett" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]
>I am trying to create an excel document that displays a table of data. It does
>exactly what I want but takes a long time. I am
>writing around 1000 rows and it takes around a second to do each row.
>
> Is there a quick
"Andrea Gavana" <[EMAIL PROTECTED]> wrote:
> Hi All,
>
>I am having some problems in running a very simple python script,
> which prints some numbers in an Excel spreadsheet. The numbers are
> stored in a list. I know that the numbers are different (random
> generated), but when I open the Exce
Hi guys,
I'm looking for a tutorial to make a client with a i/o multiplexing and
non blocking socket.
Anybody knows where is a tutorial?
Tnx
--
http://mail.python.org/mailman/listinfo/python-list
Ron Garret wrote:
> In article <[EMAIL PROTECTED]>,
> Ron Garret <[EMAIL PROTECTED]> wrote:
> > I don't want to get into a philosophical debate.
>
> Actually, I changed my mind. Consider:
>
> def g(): print 'G'
>
> def h(): print 'H'
>
> def f(): g()
>
> class C1:
> def m1(self): f()
>
> class
On 1 Dec 2006 06:07:28 -0800, Salvatore Di Fazio <[EMAIL PROTECTED]> wrote:
>Hi guys,
>I'm looking for a tutorial to make a client with a i/o multiplexing and
>non blocking socket.
>
>Anybody knows where is a tutorial?
http://twistedmatrix.com/projects/core/documentation/howto/clients.html
Jean-P
Salvatore Di Fazio wrote:
> I'm looking for a tutorial to make a client with a i/o
> multiplexing and non blocking socket.
>
> Anybody knows where is a tutorial?
Perhaps a bit of an overkill, but try this:
http://twistedmatrix.com/projects/core/documentation/howto/clients.html
Regards,
Björn
"Daniel Bowett" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>I am trying to create an excel document that displays a table of data. It
>does exactly what I want but takes a long time. I am writing around 1000
>rows and it takes around a second to do each row.
>
> Is there a quick
I recently completed the general guidelines for a future project that I
would like to start developing...but I've sort of hit a wall with
respect to how to design it. In short, I want to run through
approximately 5gigs of financial data, all of which is stored in a
large number of text files. Now
Jean-Paul Calderone ha scritto:
> On 1 Dec 2006 06:07:28 -0800, Salvatore Di Fazio <[EMAIL PROTECTED]> wrote:
> >Hi guys,
> >I'm looking for a tutorial to make a client with a i/o multiplexing and
> >non blocking socket.
> >
> >Anybody knows where is a tutorial?
>
> http://twistedmatrix.com/proje
Andrea,
Also, could it be that when you do the following:
sheet.Range("A1:A10").Value = therand
you actually initialize all 10 cells to the first
element of the array? Try to iterate and initialize
every cell separately.
Michael
--- Andrea Gavana <[EMAIL PROTECTED]> wrote:
> Hi All,
>
> I
> First off, i was wondering if this is a reasonable setup: The entire
> process would involve a server which manages which pc is processing
> which set of data (which may be a given text file or the like), and a
> client application which i would run on a few pc's locally when they
> aren't in us
Carl Banks wrote:
> alf wrote:
> > Hi,
> > is there a more elegant way to get o.__class__.__name__. For instance I
> > would imagine name(o).
>
> def name_of_type(o):
> return o.__class__.__name__
>
> name_of_type(o)
>
>
> Carl Banks
>
> P.S. name(o) suggests it's the name of the object, not t
So I declare a variable named A in thread1, in script1.py. I assign
the value of 2.5 to A. I then run script2.py in thread2. Script2.py
assigns the value of 5.5 to a variable named A. Now, when thread1
resums execution, I see that A = 5.5, rather than 2.5 as I expected.
Is this normal behavior
Hi all.
Recently I've to developed a project in python that made operation
under win32 platform and I found a lot of problema to find good
information. The only one documentation is in ActivePython page
(http://aspn.activestate.com/ASPN/docs/ASPNTOC-APYTH2.4.0) but it is
not very good and finall
On 2006-12-01, Wesley Henwood <[EMAIL PROTECTED]> wrote:
> So I declare a variable named A in thread1, in script1.py. I assign
> the value of 2.5 to A. I then run script2.py in thread2. Script2.py
> assigns the value of 5.5 to a variable named A. Now, when thread1
> resums execution, I see tha
On 1 Dec 2006 06:52:37 -0800, TonyM <[EMAIL PROTECTED]> wrote:
>I recently completed the general guidelines for a future project that I
>would like to start developing...but I've sort of hit a wall with
>respect to how to design it. In short, I want to run through
>approximately 5gigs of financial
grindel wrote:
> Anton Vredegoor wrote:
[...]
>> Here's the proof of concept, just copy it to some dir and run the
>> Python script:
>>
>> http://home.hccnet.nl/a.vredegoor/gnugo/
>>
>> It needs Python 2.5 which you can get at:
>>
>> http://www.python.org/
> If you talking about a simple gui f
Hi,
I would like to obtain the position index in a tuple when an IF
statement is true. Something like
>>>a=['aaa','bbb','ccc']
>>>[ ??? for name in a if name == 'bbb']
>>>1
but I'm not able to find the name of the function ??? in the python
documentation, any help?
Thanks
--
http://mail.pytho
"__schronos__" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
And the question is: ¿Anybody knows where can I find good
documentation about win32api?
There is the book, Python Programming on WIN32, by Mark Hammond.
http://www.amazon.com/Python-Programming-WIN32-Mark-Hammond/dp/15
Ben Finney wrote:
> robert <[EMAIL PROTECTED]> writes:
>
>> Carl Banks wrote:
>>> 2. Consider whether you're unwittingly trying to cover up a bug.
>>> ISTM no matter how problematic the input is, you should at least
>>> be able to make progress on it. Are you getting this error
>>> because, say,
On 2006-12-01, robert <[EMAIL PROTECTED]> wrote:
> Ben Finney wrote:
>> robert <[EMAIL PROTECTED]> writes:
>>
>>> Carl Banks wrote:
2. Consider whether you're unwittingly trying to cover up a bug.
ISTM no matter how problematic the input is, you should at least
be able to make progr
Tartifola wrote:
> Hi,
> I would like to obtain the position index in a tuple when an IF
> statement is true. Something like
>
> >>>a=['aaa','bbb','ccc']
> >>>[ ??? for name in a if name == 'bbb']
> >>>1
>
> but I'm not able to find the name of the function ??? in the python
> documentation, any
On Friday 01 December 2006 17:21, Tartifola wrote:
> I would like to obtain the position index in a tuple when an IF
> statement is true. Something like
>
> >>>a=['aaa','bbb','ccc']
> >>>[ ??? for name in a if name == 'bbb']
> >>>1
What about:
[ x for x,y in enumerate(a) if y == 'bbb' ]
Or if
Harry George wrote:
> When I came from Perl, I too missed perl-isms and specifically CGI.pm, so
> wrote my own:
> http://www.seanet.com/~hgg9140/comp/index.html
> http://www.seanet.com/~hgg9140/comp/pyperlish/doc/manual.html
> http://www.seanet.com/~hgg9140/comp/cgipm/doc/index.html
>
> Others on
robert wrote:
> Ben Finney wrote:
> > robert <[EMAIL PROTECTED]> writes:
> >
> >> Carl Banks wrote:
> >>> 2. Consider whether you're unwittingly trying to cover up a bug.
> >>> ISTM no matter how problematic the input is, you should at least
> >>> be able to make progress on it. Are you getting th
Amir Michail escreveu:
> krishnakant Mane wrote:
> > just used the py dev plugin for eclipse.
> > it is great.
>
> But isn't support for java better because the eclipse ide can take
> advantage of explicit type declarations (e.g., for intellisense,
> refactoring, etc.)?
>
> Amir
The support fo
You may also want to take a look at Erlang http://www.erlang.org/ for some
ideas of how to do distributed programming.
--
http://mail.python.org/mailman/listinfo/python-list
Neil Cerutti wrote:
> On 2006-12-01, robert <[EMAIL PROTECTED]> wrote:
>> Ben Finney wrote:
>>> robert <[EMAIL PROTECTED]> writes:
>>>
Carl Banks wrote:
> 2. Consider whether you're unwittingly trying to cover up a bug.
> ISTM no matter how problematic the input is, you should at least
Wesley Henwood wrote:
> So I declare a variable named A in thread1, in script1.py. I assign
> the value of 2.5 to A. I then run script2.py in thread2. Script2.py
> assigns the value of 5.5 to a variable named A. Now, when thread1
> resums execution, I see that A = 5.5, rather than 2.5 as I exp
Ron Garret wrote:
> The reason I want to do this is that I want to implement a trace
> facility that traces only specific class methods. I want to say:
>
> trace(c1.m1)
>
> and have c1.m1 be replaced with a wrapper that prints debugging info
> before actually calling the old value of m1. The
Ron Garret wrote:
> The reason I want to do this is that I want to implement a trace
> facility that traces only specific class methods. I want to say:
>
> trace(c1.m1)
>
> and have c1.m1 be replaced with a wrapper that prints debugging info
> before actually calling the old value of m1. The
Wesley Henwood wrote:
> So I declare a variable named A in thread1, in script1.py. I assign
> the value of 2.5 to A. I then run script2.py in thread2. Script2.py
> assigns the value of 5.5 to a variable named A. Now, when thread1
> resums execution, I see that A = 5.5, rather than 2.5 as I expe
In article <[EMAIL PROTECTED]>,
Kent Johnson <[EMAIL PROTECTED]> wrote:
> Ron Garret wrote:
> > The reason I want to do this is that I want to implement a trace
> > facility that traces only specific class methods. I want to say:
> >
> > trace(c1.m1)
> >
> > and have c1.m1 be replaced with a
> Don't use sqlite, use a "real" RDBMS. sqlite is cool, but not really suited
> for large amounts of data, and the concurrent access aspects that are dealt
> with with an RDBMS for free are not to be underestimated.
Would PostgreSQL be suitable in this situation? I hadn't even thought
about the
In article <[EMAIL PROTECTED]>,
"Michele Simionato" <[EMAIL PROTECTED]> wrote:
> Duncan Booth wrote:
> > Ron Garret <[EMAIL PROTECTED]> wrote:
> >
> > > I want to say:
> > >
> > > trace(c1.m1)
> > >
> > > and have c1.m1 be replaced with a wrapper that prints debugging info
> > > before actually c
Amir Michail schrieb:
> krishnakant Mane wrote:
>> just used the py dev plugin for eclipse.
>> it is great.
>
> But isn't support for java better because the eclipse ide can take
> advantage of explicit type declarations (e.g., for intellisense,
> refactoring, etc.)?
>
> Amir
Obviously, since e
In article <[EMAIL PROTECTED]>,
"Carl Banks" <[EMAIL PROTECTED]> wrote:
> The principle behind this is pretty much "it was just a language design
> decision".
Yes, and I'm not taking issue with the decision, just pointing out that
the desire to do things differently is not necessarily perverse.
In article <[EMAIL PROTECTED]>,
"Michele Simionato" <[EMAIL PROTECTED]> wrote:
> Ron Garret wrote:
> > One of the things I find annoying about Python is that when you make a
> > change to a method definition that change is not reflected in existing
> > instances of a class (because you're really
__schronos__ wrote:
> Hi all.
>
> Recently I've to developed a project in python that made operation
> under win32 platform and I found a lot of problema to find good
> information. The only one documentation is in ActivePython page
> (http://aspn.activestate.com/ASPN/docs/ASPNTOC-APYTH2.4.0) bu
TonyM wrote:
> Lastly, as far as the networking goes, i have seen posts and such about
> something called Pyro (http://pyro.sourceforge.net) and wondered if
> that was worth looking into for the client/server interaction.
I'm currently busy with a new version of Pyro (3.6) and it already
includes
Stephen Eilert wrote:
>
> The support for Java is light-years ahead. Sometimes I feel that
> Eclipse is coding for me (quickfix, for instance).
Eclipse may be quite a technical achievement, but I found it
irritating. Aside from the misuse of screen real-estate, I found that
typing two characters a
g4rlik wrote:
> I've been asking all over the place, namely different forums. I even
> e-mailed [EMAIL PROTECTED] about my problem, but they couldn't assist me too
> much.
>
> My problem is..the GUI for versions 2.3, 2.4, and 2.5 of Python run very
> sluggishly. When I type in them or move them
hi irmen...
happened to come across this post. haven't looked at pyro. regarding your
'work packets' could these essentially be 'programs/apps' that that are
requested by the client apps, and are then granted by the dispatch/server
app?
i'm considering condor (univ of wisconsin) but am curious as
> -Original Message-
> From: John Salerno
>
> I don't use IDLE too much anymore, just for quick tests, but
Just curious. I have tried IDLE, but stopped using it after going through a
few of the tutorials. I just type things in at the 'python' prompt, regardless
of which platform I
aahz> Anyone else getting "Python-related" spam? So far, I've seen
aahz> messages "from" Barry Warsaw and Skip Montanaro (although of
aahz> course header analysis proves they didn't send it).
I blacklisted Barry long ago. He's probably sending out spam in my name in
retaliation. ;-
TonyM wrote:
> > Pyro rocks for that.
>
> Awesome, ill look into it in greater detail and will most likely use
> it. Given what ive seen so far it looks like it will make the
> client/server interface fairly easy to write.
>
Correction: not "fairly easy" - make that "incredibly easy". Even
Mi
On 1 Dec 2006 09:56:09 -0800, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> http://msdn.microsoft.com covers the API itself, although you need to
> transliterate from the C code to python.
Exactly! that's where the problem lyes.
I am pritty well to do with windows API, I am an a good python
progr
I'd like to call pythoncom.CoInitializeSecurity with a
PySecurityDescriptor object to set the process-wide security values.
But I'm not able to find a way to let the code go through.
I have read MSDN and searched web, I've not been able to find answer. I
cooked a security descriptor like this (ass
Hi guys,
I would make 3 threads for a client application.
Tnx
--
http://mail.python.org/mailman/listinfo/python-list
Peter Otten wrote:
> John Machin wrote:
>
> >> > Fredrik Tolf wrote:
>
> >> > > The thing is, I want to get format strings from the user, and I don't
> >> > > want to require the user to consume all the arguments.
>
> > what's ugly about this:
> > [untested]:
> >
> > def count_format_args(s):
> >
The one who digs a trap for others falls into it himself. - Moral law
of all religions.
==
Our confidence in 911 controlled demolition is such that we have
invited people to see the truth under the pretext of debunking it. This
letter was sent to professors in many US/Europe/C
In article <[EMAIL PROTECTED]>,
Laurent Pointal <[EMAIL PROTECTED]> wrote:
>> .
>> .
>> .
> there's the security issue that really worries me. . . I have to be
> able to limit what the interpreter can execute. I can't have my
Michael Malinowski schrieb:
> Is there a way to read the directory that the currently running python file
> is located in?
Hi Mike!
To get the started program:
sys.argv[0]
Don´t use ``os.curdir``.
To get the filename, of the current module:
__file__
To get the directory:
os.path.
On 2006-12-01, Salvatore Di Fazio <[EMAIL PROTECTED]> wrote:
> I would make 3 threads for a client application.
You should use 4.
--
Grant Edwards grante Yow! My TOYOTA is built
at like a... BAGEL with CREAM
I found this nice dialog on the internet:
=
> Well, if you want to convice me, just answer these questions:
If you can prove that the official explanation is correct, what's
keeping
you from collecting a MILLION dollars? Even if you're too wealthy to
bother, y
Grant Edwards ha scritto:
> You should use 4.
Yes, but I don't know how can I make a thread :)
--
http://mail.python.org/mailman/listinfo/python-list
[EMAIL PROTECTED] wrote:
>> I don't use IDLE too much anymore, just for quick tests, but
>
> Just curious. I have tried IDLE, but stopped using it after going
> through a few of the tutorials. I just type things in at the 'python'
> prompt, regardless of which platform I am working on; Linux,
krishnakant Mane schrieb:
> On 1 Dec 2006 09:56:09 -0800, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
>> http://msdn.microsoft.com covers the API itself, although you need to
>> transliterate from the C code to python.
> Exactly! that's where the problem lyes.
> I am pritty well to do with wind
anders wrote:
> in os module there is many funktion/methods to extract this information
> to ask the path to the current running pythonprogram you can do likes
> this
>
> - CUT---
> import os
> print os.getcwd()
>
> - CUT --
>
> // Anders
>
>
> Michael Malinowski skrev:
>
> > I
"__schronos__" wrote:
> Hi all.
>
> Recently I've to developed a project in python that made operation
> under win32 platform and I found a lot of problema to find good
> information. The only one documentation is in ActivePython page
> (http://aspn.activestate.com/ASPN/docs/ASPNTOC-APYTH2.4.0) bu
On 2006-12-01, Salvatore Di Fazio <[EMAIL PROTECTED]> wrote:
> Grant Edwards ha scritto:
>
>> You should use 4.
>
> Yes, but I don't know how can I make a thread :)
Perhaps you should have said that earlier?
Googling for "pythong threads" finds some useful info:
http://docs.python.org/lib/module
1 - 100 of 168 matches
Mail list logo