===
reload() on already imported extension modules does not work
correctly: It happily loads the extension a second time.
http://starship.python.net/crew/theller/moin.cgi/Hacks_2fZipExtImporter
Cheers,
Thomas
--
http://mail.python.org/mailman/listinfo/python-list
ity?
Smalltalk has separate Dictionary and IdentityDictionary classes.
Thomas
--
http://mail.python.org/mailman/listinfo/python-list
the joys associated with memory
allocation/deallocation :-)
Thomas Bartkus
"Rahul" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi.
> I just wanted to know why arrays have not been included as a builtin
> datatype like lists or dictionaries? The numpy exten
rience.
So
Similar to BASIC - no!
Great language for beginning programmers - yes!
Thomas Bartkus
"abisofile" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>
> hi
>
> I'm new to programming.I've try a little BASIC so I want ask since
>
"Delaney, Timothy C (Timothy)" <[EMAIL PROTECTED]> writes:
> Thomas Heller wrote:
>
>> zipextimporter.py contains the ZipExtImporter class which allows to
>> load Python binary extension modules contained in a zip.archive,
>> without unpacking them to the
Am Fri, 17 Dec 2004 09:09:25 + schrieb Keith Dart:
> Have you ever wondered where your python modules get imported from?
> Here is a little script, called "pywhich", that will tell you.
Nice, you could add it to the python cookbook.
Thomas
--
Thomas Güttler, h
n change the source of Base, I would do it like
this:
class Base:
_init_done=0
def __init__(self):
if self._init_done:
return
self._init_done=1
# ... do init
Thomas
--
Thomas Güttler, http://www.thomas-guettler.de/
--
http://mail.python.org/mailman/listinfo/python-list
"Mike Meyer" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> "Thomas Bartkus" <[EMAIL PROTECTED]> writes:
>
> > The "interpreted" nature of the existing Python language has little to
do
> > with how it compares to other la
Hi,
l=[]
print type(l.__delattr__)
# -->
I didn't find a corresponding type in the modules "types".
Is it missing or am I blind?
(Python 2.3.3)
--
Thomas Güttler, http://www.thomas-guettler.de/
--
http://mail.python.org/mailman/listinfo/python-list
uot;]="foo2"
assert(not isrecursive(d))
d["foo3"]=d
assert(isrecursive(d))
if __name__=="__main__":
test_isrecursive()
--
Thomas Güttler, http://www.thomas-guettler.de/
--
http://mail.python.org/mailman/listinfo/python-list
ative for fetchmail.
Thomas
--
Thomas Güttler, http://www.thomas-guettler.de/
--
http://mail.python.org/mailman/listinfo/python-list
r
brauchbaren IDE gemausert und Java selber hat -- trotz der geschweiften
Klammern -- doch soviel von Oberon geerbt, daß ich nicht gleich Pickel
bekomme, wenn ich darin programmieren muß. ;o)
Thomas
--
http://mail.python.org/mailman/listinfo/python-list
Am Tue, 21 Dec 2004 06:20:09 -0800 schrieb Markus Franz:
> Hi!
>
>
> Is there any possibility to change vars inside a parent process from
> the inside of a child process?
> Thanks
Hi,
No, that's impossible. At least on unix.
Thomas
--
Thomas Güttler, http:/
e (I can only guess wht this file does)
*libgcc:
%{mthreads:-lmingwthrd} -lmingw32 -lgcc -lmoldname -lmingwex -lmsvcrt
with this one:
*libgcc:
%{mthreads:-lmingwthrd} -lmingw32 -lgcc -lmoldname -lmingwex -lmsvcr71
seemed to do the trick.
Thomas
--
http://mail.python.org/mailman/listinfo/python-list
ave a sample code to read a table?
Hi,
There is a small script[1] which parses the XML produced
by Excel. Something like this should be possible for msword, too.
Other way: You can export to the openoffice format and unzip it.
The read these xml files.
HTH,
Thomas
[1]:http://aspn.activesta
t;release"
[5]="i586-suse-linux")
BASH_VERSION='2.05b.0(1)-release'
COLORTERM=1
COLUMNS=143
CPU=i686
CVSROOT=:ext:[EMAIL PROTECTED]:/raid/develop
CVS_RSH=ssh
you could use '^(.*?)=(.*)$' as regex to parse each line
group(1) is the variable name group(2) the
t;
> Soon it will be possible to become a well-known programmer
> without writing any code at all; just issue grandiose manifestos and plans
> until everyone is suitably impressed.
I hope that I'm retired then.
Thomas
--
http://mail.python.org/mailman/listinfo/python-list
icode entries in sys.path to
normal strings using windows default conversion rules - is this a
problem that I can fix by changing some regional setting on my machine?
Hm, maybe more a windows question than a python question...
Thanks,
Thomas
--
http://mail.python.org/mailman/listinfo/python-list
"Martin v. Löwis" <[EMAIL PROTECTED]> writes:
> Thomas Heller wrote:
>> It seems that Python itself converts unicode entries in sys.path to
>> normal strings using windows default conversion rules - is this a
>> problem that I can fix by changing some region
an be done about this? If there are no better
solutions, perhaps the documentation for property() could point out
this pitfall?
- Thomas
--
If you want to reply by mail, substitute my first and last name for
'foo' and 'bar', respectively, and remove '.invalid'.
--
http://mail.python.org/mailman/listinfo/python-list
"Martin v. Löwis" <[EMAIL PROTECTED]> writes:
> Thomas Heller wrote:
>> How should these patches be approached?
>
> Please have a look as to how posixmodule.c and fileobject.c deal with
> this issue.
>
>> On windows, it would probably
>> be eas
cause I know I just won't be able to accomodate
> all the requests/advice, given the constraints on book size &c.
I found the discussion of unicode, in any python book I have, insufficient.
Thomas
--
http://mail.python.org/mailman/listinfo/python-list
plain to me why this happens, and how (if possible) I can
> get the numbers printed in sync with the appends to the list?
I tried your code, and got the expected behaviour, i.e. the numbers
are printed every half second. Maybe you have a buffering problem?
$ python2.4 -V
Python 2.4
$ uname -a
Li
ndows, it follows that
desktop theme. Both Gnome and Windows XP alter the the controls design
according to user preferences. wxPython GUIs reflect this automatically and
the controls always look and work like the underlying system.
I may be wrong but I don't think you get that with TKinter!
Thomas Bartkus
--
http://mail.python.org/mailman/listinfo/python-list
ny viable, technical reasons for
that?
Are there "viable, technical reasons"? That would be doubtful.
But
There is a reason very important to major companies.
When you leave that company, there will be a *long* line of Java programmers
waiting to take your place.
There need b
lass. It doesn't do exactly what you
want, but maybe you can use it as inspiration for doing it yourself.
It requires the subprocess module, but I have successfully used
it under Python 2.3.2 with subprocess installed locally.
--
Thomas Bellman, Lysator Computer Club, Linköping Univer
equest
HTH,
Thomas
--
Thomas Güttler, http://www.thomas-guettler.de/
--
http://mail.python.org/mailman/listinfo/python-list
ta files
> 2. a visual designer in which a nontechnical person can create a
> report layout template (supporting charts, text, graphics, etc.)
> 3. a server engine to merge the two and create on-the-fly reports when
> requested programmatically.
Hi,
You can script openoffice with pyUNO.
;t do M$
> Passport logins which it seems the gotdotnet site requires.
Robin - we're too old for blogs ;-)
But I could download the thingie with Mozilla without logging in into
somewhere - although the bug tracker seems to require login.
Thomas
--
http://mail.python.org/mailman/listinfo/python-list
n Win32" but I
> do not have access to it at present.
At least one chapter of PPW32 is available as sample chapter somewhere
on an OReilly site - but you should buy the book anyway imo. For the
windows api functions you should refer to Microsoft's docs at MSDN.
Thomas
--
http://mail.python.org/mailman/listinfo/python-list
Harald Massa <[EMAIL PROTECTED]> writes:
> "Srijit Kumar Bhadra" <[EMAIL PROTECTED]> wrote in
>> Here is an example of Multithreaded Pipe Server and Client using the
>> excellent ctypes library (Windows).
>
> Excellent. Maybe you would also like to post it to the
>
> http://starship.python.net/cre
"Steve" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> What are some of other people's favourite tips for
> avoiding bugs in the first place, as opposed to finding
> them once you know they are there?
>
Fonts with slashed zeros and serifs.
-Tom
--
http://mail.python.org/mailman
urself with
PyObject_SetAttrString(FooType, "Bar", FooBarType);
You *may* have to cast the FooType and FooBarType to (PyObject *), to
avoid compiler warnings.
Thomas
--
http://mail.python.org/mailman/listinfo/python-list
$ time echo stop | python2.4 anagram_forloop.py
[...]
real0m0.221s
user0m0.134s
sys 0m0.014s
* My version but with the length comparison removed:
$ time echo stop | python2.4 anagram_no_lencmp.py
[...]
real0m0.408s
user0m0.353s
sys 0m0.010s
* My version as above:
$ time echo stop | python2.4 anagram_fast.py
[...]
real0m0.144s
user0m0.099s
sys 0m0.008s
Hope that helps :-)
- Thomas
--
If you want to reply by mail, substitute my first and last name for
'foo' and 'bar', respectively, and remove '.invalid'.
--
http://mail.python.org/mailman/listinfo/python-list
cumentation files there.
- Thomas
--
If you want to reply by mail, substitute my first and last name for
'foo' and 'bar', respectively, and remove '.invalid'.
--
http://mail.python.org/mailman/listinfo/python-list
Maybe off-topic for this thread, but I noticed that when installing
> 2.4.1 that 2.4.0 is automatically removed. Does 2.4 do the same thing
> to 2.3 versions?
No.
2.4 and 2.3 (and other versions) can coexist.
Thomas
--
http://mail.python.org/mailman/listinfo/python-list
Does the Python community think Microsoft's embrace is a good or bad thing?
James wrote:
http://www.gotdotnet.com/workspaces/workspace.aspx?id=ad7acff7-ab1e-4bcb-99c0-57ac5a3a9742
--
http://mail.python.org/mailman/listinfo/python-list
Cameron Laird wrote:
And now, for something completely different, I'll tender a
personal view: I think Mr. Gates and Python are actually
destined to get along uncharacteristically well. Roughly, I
suspect the habits and motivations of the two are so skew,
that the usual "embrace and extend" simp
hMapObject
> ,FILE_MAP_ALL_ACCESS
> ,0
> ,0
> ,0
> )
>
> if (pBuf == 0):
> print "Could not map view of file"
> raise WinError()
> else:
> print repr(pBuf)
> print repr(hMapObject)
>
> pBuf_str = cast(pBuf, c_char_p)
> print repr(pBuf_str.value)
> print repr(pBuf_str)
>
> pBuf_buf = cast(pBuf, Buffer)
Here's the problem. pBuf is a pointer to a Buffer structure, not the
buffer structure itself.
Something like
pBuf_buf = Buffer.from_address(pBuf)
may work.
Thomas
--
http://mail.python.org/mailman/listinfo/python-list
annot create an empty mapping on Windows).
If I run it with non-zero length it does not raise an exception
shmem = mmap.mmap(0, 0, "$M$B$M$5$S$D$", mmap.ACCESS_READ)
although it *creates* the shared memory block, IIUC. Are you sure your
speedfan app is running when you get the WindowsError?
Thomas
--
http://mail.python.org/mailman/listinfo/python-list
ve also done some time ago. Maybe the following code
snippet is useful for you - it creates a source code string which can
than be compiled.
The code prints this when run:
"""
def f(a, b=42, c='spam', d=None):
'docstring'
return f._api_(a, b, c, d)
def
I guess when useless, nothing cannot be done.
- Original Message -
From: <[EMAIL PROTECTED]>
Newsgroups: comp.lang.python
To:
Sent: Monday, April 11, 2005 12:17 AM
Subject: Re: UselessPython 2.0
> Nice idea for a site, but I suggest renaming it to something like
> FunPython.com . My gu
ly a step backwards in usability.
For commercial development, it should not be a problem to buy a license
for MSVC 7.1, which gives you the right to distribute msvcrt71.dll.
And maybe that's the reason that few people care about this issue?
Thomas
--
http://mail.python.org/mailman/listinfo/python-list
ect the presence/absence of the needed Python version and
> offer an auto download and install if needed.
Sure. Someone.
>
> At least one thing in Python's favor is the lack of having to 'register'
> before downloading (or after installation) and the ability to redistri
ll launcher executable, because on
> Windows it's non-trivial to find out which "python.exe" in the task
> manager is running which Python script. Anyway, each app would have a
> small launcher that bootstraps the actual Python script[1]. (Or, if
> there's some way to
d
I'm monitoring this group, but I hope you understand the I cannot spend
too much time to debug each problem reported.
A very common problem with py2exe has to do with encodings (google for
"EncodingsAgain", and you will find a wiki page explaining this), but
this is pure spec
"codecraig" <[EMAIL PROTECTED]> writes:
> Thanks so much Thomas!!! I added encodings to my setup's...here it is
>
> setup(console=[{"script": 'monkey_shell.py'}], options={"py2exe":
> {"packages": ["encodings"]}}
I'm on a mac OS X (10.3.8), and I seem to have accidentally destroyed
the default python installation. How should I put it on? Do I need to
use the unix version? any help would be greatly appreciated.
THN
--
http://mail.python.org/mailman/listinfo/python-list
Maurice LING wrote:
I'm using OSX 10.3.8 as well. Just wondering, how did you "destroy" it?
What I am thinking is, it may not be as destroyed as you think it might
have...
cheers
maurice
I was actually trying to update to the newest python version, and I had
read something saying it would confl
pment" by Kent Beck
(Addison-Wesley).
Thomas
--
http://mail.python.org/mailman/listinfo/python-list
The main thing I would like is to be able to use tkinter with python on
my mac. will the command-line-style source allow this? Does it come
with IDLE? How is the fink version different from the source i can
download at python.org? Here's the result of the requested commands on
my Terminal.
write code for my own use. If others benefit
> that is great. If it doesn't do what you want, make your own
> version. If you want to distribute a new version, go for it.
Maybe it would make sense then to maintain the readline code in the ctypes
CVS repository, since it requires ctypes anyway?
Thomas
--
http://mail.python.org/mailman/listinfo/python-list
uotes are treated as ordinary quotes, which breaks
'''This doesn't work'''
but not
"""This'll work"""
due to the apostrophe. pydoc then probably decided to follow PEP 257
which says
For consistency, always use ""&qu
ftware - think how much more the world gains in
software quality and quantity. How about man hours saved? Why does anyone
still waste so much angst over execution speed?
I doubt the total execution time for all the RegEx queries you ever ran took
as much time as you just wasted on your little exper
"codecraig" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I found some benchmarking (perhaps simple) but search for "The Great
> Computer language shootout" look at the original shootout and the
> win32 one.
>
> Thomas:
> "I
If gonzo RegEx query
performance was of utmost importance, would anyone put either of Perl or
Python at the top of his list?
Thomas Bartkus
--
http://mail.python.org/mailman/listinfo/python-list
if (pyresult == NULL)
PyErr_Print();
> // Free interpreter lock
> PyGILState_Release(gstate);
> }
PyErr_Print() will do the 'right' thing´s.
Thomas
--
http://mail.python.org/mailman/listinfo/python-list
PYTHONINSPECT"] = "1"' at the somewher in your
script.
Thomas
--
http://mail.python.org/mailman/listinfo/python-list
when i send a
> tuple:
>
> RS.AddCurve(((1,2,3),(4,5,6),(7,8,9)),3)
To me it looks like you should try this instead, although this is pure
speculation:
RS.AddCurve(((1,2,3),(4,5,6),(7,8,9)))
Thomas
--
http://mail.python.org/mailman/listinfo/python-list
connected to a network ?
By any chance an older server (W2K,NT4) there ?
There were some issues...
HTH
thomas
--
http://mail.python.org/mailman/listinfo/python-list
ld it?
Greetings,
Thomas
--
Ce n'est pas parce qu'ils sont nombreux à avoir tort qu'ils ont raison!
(Coluche)
--
https://mail.python.org/mailman/listinfo/python-list
root
build's still in place)
- how to create a RPM for this concrete Centos 5 - Python version
with the "altinstall" feature? (!! we require this !!)
Maybe you also have another idea on how to solve this
Kind Regards,
Thomas
--
https://mail.python.org/mailman/listinfo/python-list
"All of the surviving members of comedy group Monty Python are to reform
for a stage show, one of the Pythons, Terry Jones, has confirmed."
See: http://www.bbc.co.uk/news/entertainment-arts-24999401
Thomas
--
https://mail.python.org/mailman/listinfo/python-list
wchar_p is converted
from/to Python strings.
Unfortunately it seems to be gone in Python 3.3.
However, you can set restype to POINTER(c_char) and then
index the result:
result = dplGetPageText(...)
print(result[0], result[1], result[2])
Thomas
--
https://mail.python.org/mailman/listinfo/python-list
xperienced developer it takes around one day to take
these pieces and build a script that scans a python script, finds all
the needed modules and packages, and uses pyzzer to build an executable
archive from it.
Thomas
--
https://mail.python.org/mailman/listinfo/python-list
are just wrong, as s = 'Straße' leads - provided you use
UTF8 - to a representation of 'Stra\xc3\x9fe', obviously leading to a
length of 7.
Thomas
--
https://mail.python.org/mailman/listinfo/python-list
indows box at work:
Python 2.7.5 (default, May 15 2013, 22:44:16) [MSC v.1500 64 bit
(AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> assert 'Straße'[4] == 'ß'
>>> assert u'Straße'[4] == u'ß'
PS Nothing to do with Py2/Py3.
As bytes and unicode and str stuff is heavily changed between them, of
course it has to do.
And I think you know that and try to confuse and FUD us all - with no avail.
Thomas
--
https://mail.python.org/mailman/listinfo/python-list
r
to save them into a file. IOW, the same purpose as we havd on __str__ in
Py2.
Thomas
--
https://mail.python.org/mailman/listinfo/python-list
Thibault Langlois schrieb:
1 > 0 == True
False
What am I missing here ?
This, perhaps:
http://www.primozic.net/nl/chaining-comparison-operators-in-python/
Greetings,
Thomas
--
Ce n'est pas parce qu'ils sont nombreux à avoir tort qu'ils ont raison!
(Coluche)
--
https
about redefinition also it does not happen.
How to get forward with this?
Regards,
Thomas
--
https://mail.python.org/mailman/listinfo/python-list
On Fri, 22 Jan 2016 04:04:44 -0800, Rustom Mody wrote:
> These are just specific examples that I am familiar with Chris' general
> point still stands, viz take the large and complex program that is
> cpython and clean up these messinesses: You will still have a large and
> complex program
I'm not
Hi
I am an computer science engineer. I downloaded the python version
3.5.1.amd64 and just python 3.5.1. The problem is when I install the program
setup is failed and showing 0*80070570-The file or directory is corrupted and
unreadable. I install the newest visual c++ redist and still same.
Am 29.10.2014 07:02 schrieb satishmlm...@gmail.com:
What does %%(%s)s mean in Python?
Weird question, as this has nothing to do with the code you just posted.
In general, what comes up to my mind, is that it is a format string to
build another format string.
Example:
metafmt = '%%(%s)s'
f
Hi,
using the RPM build I wonder how I can require a certain version
of another RPM like:
Working:
python setup.py bdist_rpm --requires=another-package
But how to? ...
python setup.py bdist_rpm --requires=another-package>=2.1
Of course this will generate a "=2.1" file which is
of course not
Am 14.11.2014 00:42 schrieb satishmlm...@gmail.com:
fileno() in not supported. Is it only in 3.1? What is the workaround?
You have been asked many times about the details of your environment.
Especially, you have been told that it is important to know if you
directly use the Python CLI or som
at's completely clear: you are not allowed to create a file named
'c:'. You should replace it with a full path name, such as
localpath = 'c:\\passwd'
or such.
Thomas
--
https://mail.python.org/mailman/listinfo/python-list
Am 08.12.2014 19:11 schrieb Luuk:
no, it's the ssh-server denying a log on from 'root'
You are repating yourself.
How could possibly
with open(localpath, 'wb') as fl:
PermissionError: [Errno 13] Permission denied: 'c:'
be a problem with the SSH server?
--
https://mail.python.org/mailman
te_const_function(val):
def inner_function():
return val
or just
create_const_function = lambda val: lambda: val
and then
f1 = create_const_function(4)
f2 = create_const_function(5)
print f1(), f2()
et voilà.
Thomas
--
https://mail.python.org/mailman/listinfo/python-list
'c:'
That's completely clear: you are not allowed to create a file named
'c:'. You should replace it with a full path name, such as
localpath = 'c:\\passwd'
or such.
Thomas
--- SoupGate-Win32 v1.05
* Origin: nntp.gatew...@.piz.noip.me> (1:249/999)
--- Sy
Am 08.12.2014 19:11 schrieb Luuk:
> no, it's the ssh-server denying a log on from 'root'
You are repating yourself.
How could possibly
with open(localpath, 'wb') as fl:
PermissionError: [Errno 13] Permission denied: 'c:'
be a problem with the SSH server?
--- SoupGate-Win32 v1.05
* Origi
text to speech software has problems to
read out this website aloud to me?
I thank you very much in advance for your thoughts, ideas, suggestions,
recommendations, time, help, efforts and support.
With very warm regards,
*Thomas Hahn*
1)*Graduate student in the Joint Bioinformatics
enced Python programmers here advise?
Unit tests.
Lint-like tools - there are a few - also help to discover bugs,
even before running or testing the code. They also help in
other ways to write better code.
Myself I use the 'frosted' tool.
Thomas
--
https://mail.python.org/mailman/listinfo/python-list
Hi,
I can't give you the advise for a concrete version anyway there are lot of
arguments given by the other posters. BUT there is a way how you can circumvent
the problem to some extend:
Are you intending to use Jenkins? I don't want to convince you here why to use
Jenkins but maybe I don't ne
it that way:
def B(func):
x = (lambda f: (lambda x: x(x))(lambda y:
f(lambda *args: lambda: y(y)(*args(func)
def wrapper(*args):
out = x(*args)
while '__call__' in dir(out):
out = out()
return out
return wrapper
tr2 = B(fac)
tr2(5
like this:
func_im_looking_for([func1, func2, func3, func4], myval)
I looked in itertools but nothing seamed to do the job. This seams like
something vary obvious that was needed many times elsewhere so maybe you could
help me?
reduce(lambda x, f: f(x), funcs, myval)
would do the job.
Thomas
Le 28-08-2013, Thomas Baruchel a écrit :
> The following functions are fully usable; I hope someone will enjoy using
> them.
>
> If you are not interested by the explanations, just jump to the end of the
> message and take my functions for using them.
Despite the very short size
bear_moved = False
while True:
next = raw_input("> ")
if next == "take honey":
dead("The bear looks at you then slaps your face off.")
elif next == "taunt bear" and not bear_moved:
print "The bear has moved from the door. You can go through
On 26.09.2013 17:13, Bill wrote:
> I have been using the script youtube-dl http://rg3.github.io/youtube-dl/
>
> And I was wondering if there is a way to download all of a user's
> favorites or uploads.
>
> The script has a functionality to download all videos in a txt file. So
> if there is a way
On 27.09.2013 21:50, Bill wrote:
> Hi.
>
> A screenshot would help me locate it.
>
> Cheers
Sure. http://i.imgur.com/LvrNZYO.png
I don't thing *every* profile has this, but as I said, I use youtube-dl
quite often this way.
Best
--
https://mail.python.org/mailman/listinfo/python-list
To start with, you'll want some sort of Graphic User Interface, a
popular and common (but not the only) one is TkInter, which you can
dive into here: https://wiki.python.org/moin/TkInter
--
https://mail.python.org/mailman/listinfo/python-list
Am 09.11.2013 14:27 schrieb Joshua Landau:
`select` is quite an odd statement, in that in most cases it's just a
weaker variant of `if`. By the time you're at the point where a
`select` is actually more readable you're also at the point where a
different control flow is probably a better idea. T
So just do
f = open("somefile.txt", "rb")
and you should be fine.
I don't know which is worse, the fact that you're composing your message in
HTML, or the fact that you're using Comic Sans as your font.
#2 wouldn't be possible without #1...
Thomas
--
https://mail.python.org/mailman/listinfo/python-list
Am 26.02.2015 01:37 schrieb Chris Angelico:
My bad. I was talking in a context of Python programming, specifically
with APIs where you would use some kind of true/false flag as either a
function parameter or a return value.
Oh. Then take subprocess.Popen.wait()... :-P
Thomas
--
https
ow that we inherit from object. Might be that this one
doesn't work very good with multiple inheritance...)
Thomas
--
https://mail.python.org/mailman/listinfo/python-list
ses, it wouldn't do so, so you have to take care what you do.
Thomas
--
https://mail.python.org/mailman/listinfo/python-list
Am 19.05.2015 um 15:16 schrieb Oscar Benjamin:
However the normal way to do this is to iterate over stdout directly:
Depends. There may be differences when it comes to buffering etc...
Thomas
--
https://mail.python.org/mailman/listinfo/python-list
" routine which .wait()s after a certain
time (250 ms or so).
Or even better, which .poll()s and re-schedules itself if the process
still runs.
Thomas
--
https://mail.python.org/mailman/listinfo/python-list
ast, C functions can return structs...
Thomas
--
https://mail.python.org/mailman/listinfo/python-list
On 11/06/15 14:16, MRAB wrote:
harder then they anticipated.
---^
seems nicer... then having to use self everywhere...
"then"? Should be "than"... (That seems to be happening more and more
these days...)
Indeed :-)
--
Ce n'est pas parce qu'ils sont nombreux à avoir tort qu'ils ont
Here is a snippet from the argparse module:
{{{
def parse_known_args(self, args=None, namespace=None):
...
# default Namespace built from parser defaults
if namespace is None:
namespace = Namespace() # < === my issue
}}}
I subclass from the class of the
1601 - 1700 of 3750 matches
Mail list logo