d, I think there is a simple solution: add an empty Text node
to the script element:
script_node_0.appendChild(doc.createText(u""))
[Disclaimer: this is untested; from reading the source, I think it
should work]
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
mission line up nicely
with octal numbers.
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
ml. I would recommend to implement Annex C
to the letter, i.e. only avoid the minimized form if the content
model is not EMPTY.
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
ly is "yes", but this
is likely not the question you meant to ask. Instead, it might
be that you meant to ask "... then immediately be GCed?" to
which the answer is "it depends on the body of #do something".
IOW, the Thread object may live much longer than the end of
:-) It certainly
is the latest release of the fork.
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
us of xmlproc is? We kind of depend on it...
xmlproc is maintained as part of PyXML now; please sent the patch to
the patches tracker at sf.net/projects/pyxml.
That said, PyXML did not have a release on its own for quite some time,
either; mainly due to lack of user interest.
Regards,
Martin
--
authors of the code
have to agree to its inclusion in the library; somebody else
contributing the modules for the authors will not be acceptable.
However, the authors don't have to offer ongoing support for
the copy in Python - any other volunteer could step in instead.
Regards,
Martin
--
Hi,
How about first using a C to C++ wrapper:
***
#ifdef __cplusplus
extern "C" { /* I really dislike this - iwj. */
#endif
void * init (void)
{
return new myobj()
}
3D_fun1 (void * p_obj)
{
My_OBJ * l_obj = (My_OBJ *)
Chang LI wrote:
Is there Windows 64-bit edition available?
Yes:
http://www.python.org/ftp/python/2.4/python-2.4.ia64.msi
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
operty table of python24.msi.
If you have W2k or later, you can also set the "NoRemove" registry
value under the key above, to hide the remove feature after
installation.
HTH,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
_not_ between brackets or parenthesis i.e; 'xx xx
xx xx xx xx xx' knowing that the intial string could be:
[yy yy yy yy yy yy yy] xx xx xx xx xx xx xx (zz zz zz zz)
Any clue ?
Regards,
Philippe
--
*
Philippe C. Martin
SnakeCard LLC
www.snakecard
Brad Tilley wrote:
I found the documentation here:
http://python.fyxm.net/2.4/msi.html
The original, of course, is at
http://python.org/2.4/msi.html
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
se.
u = unicode(s, "utf-8")
xml.sax.parseString(u, MyParser())
This is not really supposed to work (yet). You need to pass
byte strings to xml.sax.parseString, not Unicode strings.
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
I used those:
http://diveintopython.org/
http://www.fzu.cz/texty/ruzne/python/
http://www.pythonware.com/library/tkinter/introduction/
Then O'Reilly 'Programming Python'
Regards,
Philippe
--
*****
Philippe C. Martin
SnakeCard LLC
ww
egardless
of whether they support IPv6.
Looking at a more recent system in /usr/include, I get
/usr/include$ grep -r ADDRSTRLEN .
./netinet/in.h:#define INET_ADDRSTRLEN 16
This is a clue, I think.
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
wrong ?
are the pyc plateform dependant ? and if so must I generate one version for
each version of Linux, windows .. ?
Regards,
Philippe
--
*****
Philippe C. Martin
SnakeCard LLC
www.snakecard.com
*
--
http://mail.python.org/mailman/listinfo/python-list
VC versions -
whether the DLL reference is CRT version independent or not.
You should view the resulting extension module in depends.exe,
and check whether it refers to multiplce CRT dlls (which would be
bad).
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
mep wrote:
I view my python 2.3.4 from python.org by VC6's dependency walker tool.
What suprise me is that python.exe and python32.dll are built into *DEBUG*
version.
What precisely did the tool report? To my knowledge, the DLLs are not in
the debug version.
Regards,
Martin
--
Philippe C. Martin
SnakeCard LLC
www.snakecard.com
*
--
http://mail.python.org/mailman/listinfo/python-list
Thank you all for your answers, I guess I would not have made Python 101:-)
As far as I was concerned, importing a module twice would have resulted in
loading the file twice.
Regards,
Philippe
--
*
Philippe C. Martin
SnakeCard LLC
www.snakecard.com
eferences USER32.dll directly.
Yes, that user32.dll indirectly uses msvcrt.dll should be no problem.
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
Gary Richardson wrote:
Has this bug been fixed in 2.3.5 or 2.4? Does it exist in XP systems?
To my knowledge, it has not been fixed. I have not even tried to
reproduce it, yet. Contributions are welcome.
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
816, when I see
'LOADING' then I also see a fully populated dictionary.
But when I see (second or more time)
'DICT ALREADY LOADED', then my dict is emtpy
What else am I not understanding ?
Regards,
Philippe
--
*
Philippe C. Martin
SnakeCard LLC
www.
__Load method "loads" self.DICTIONNARIES.
So now my understanding is that __Load needs to load
SC_ISO_7816.DICTIONNARIES, and children classes will have to refer to
SC_ISO_7816.DICTIONNARIES if they want to see something.
I'll give it a shot right now.
Thank you!
Philippe
--
*
n files in PCbuild? Don't
mess with them, use PC/VC6 instead.
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
n object. There is currently no C
API involving char* to do so, so it might not be that nice.
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
rs to True,
False, None, or the dict type object. If you have two copies
of the Python runtime, you get two copies of each local object.
This cannot work: we really need to rely on having only one
dict type, or else "is" comparisons with the dict type fail.
Regards,
Martin
--
http://
Or else they find out what alternative
compiler arrangements can be made.
Surely the world would be a better, happier place without MS jerking
everyone around.
It would surely be better if the operating system shipped with a
compiler, so anybody could rebuild things, and you wouldn't need
binary
I need to build
(on-topic) Python extensions?
Either VS.NET 2003 or VC++ .NET 2003 should do (although I don't know
anybody who owns the latter to be sure). The core issue is that it needs
a "native" C++ compiler (ie. not just managed C++), and that it needs
mscvcr71.dll.
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
HI,
I currently have a "working" script that uses sockets to handle threads
communications - the problem is that it gives me obvious problems in handling
free ports (launching the script more than once ).
Is thread named pipes communication allowed ?
Regards,
Philippe
--
http://mail.pyth
oding; consider this a failure if you have get any control
characters (from range(128, 160)); then try in step 7 latin-1
again.
When you find the first encoding that decodes correctly, encode
it with ascii and xmlcharrefreplace, and you won't need to worry
about the encoding, anymore.
Regard
>>Replace the sockets with a queue of strings.
>>http://docs.python.org/lib/module-Queue.html
>>Write your Send and Recv functions in terms of Queue.get() and Queue.put();
And those entry points seem to reentrant too !!!
Thanks a lot, you made my day (I say that a lot on this mailing lis
>>What are you trying to do? Perhaps if you backed up and described
>>the "what" we could make better recommendations about the "ho
Just trying to have a GUI thread (tkinter) talk back and forth with a debugger
derived object threaded (bdb).
No I have not tried yet as sometimes things seem to
ry to come up with some
code, and I try to comment on it.
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
Ls you have on your system.
It might be that you also need the header files for msvcr71.dll,
although I believe you could get away with using the "wrong" (i.e.
VC6) header files.
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
ight be enough - but then, perhaps there
also where changes to the header files which you need to get.
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
= 'whatever i parsed out of the file'
htmlmetaencoding = 'whatever i parsed out of the metatag'
Depending on the library you use, these aren't that trivial, either.
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
byte
sequences can be considered Latin-1 - whether they are meaningful
data is a different question).
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
//www.python.org/2.4/msi.html
to learn about automatic installation.
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
), it probably will work fine.
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
, or build
directly from the pydotorg sources.
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
dy at that time, user pressure
was quite high to move to a more recent compiler; with 2.4, it was
clear that we do need some of the new features (in particular,
ongoing commercial availability, and IPv6 support in winsock.h).
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
my debugged program keeps running to its end although the above
seems to eventually work.
Any clue ?
Regards,
Philippe
--
*
Philippe C. Martin
SnakeCard LLC
www.snakecard.com
*
--
http://mail.python.org/mailman/listinfo/python-list
>>and it was the only interpreter I've ever used that had no compilation
>>phase whatsoever) is no easier to deal with than compiled C. Ditto for
>>the various flavors of LISP I've worked with.
I do find working with an interpreter easier than with a compiler. A _long_
time ago, I recall a boss
ow make them larger?
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
system
that uses DLLs.
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
I'm struggling myself and have bought:
"Mastering Regular Expressions"
2nd Edition,
O'REILLY
Jeffrey E. F. Friedl
I covers the reg exp concepts + applications in various languages (mostly PERL
but some Python also)
--
*****
Philippe C. Martin
SnakeCard L
Sorry but I really feel this incredible waste of energy is polluting an,
otherwise, excellent and helpful mailing list.
Best regards,
Philippe
--
http://mail.python.org/mailman/listinfo/python-list
://www.python.org/2.0/new-python.html#SECTION000101
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
hon extension. However, it is very hard
to tell from the source code of the extension if such resource passing
could ever happen (e.g. what about setlocale(), atexit(), malloc(),
...), so if you need something better than "seems to work", you really
need to make sure that you understand al
Martin Drautzburg wrote:
Just for curiosity: does python use a mark-and-sweep garbage collector
or simple reference counting?
I can't resist: Yes, it does.
In the latter case it would not garbage
collect circular references, right ?
Python uses refcounting for all objects, and a generat
, but
I added a 'QUIT-STYLE' command in my script when I want the thread to exit so
it wakes up.
Regards,
Philippe
--
*****
Philippe C. Martin
SnakeCard LLC
www.snakecard.com
*
--
http://mail.python.org/mailman/listinfo/python-list
a reboot.
Hm, maybe more a windows question than a python question...
The real question here is: why does Python not support arbitrary
Unicode strings on sys.path? It could, in principle, atleast on
Windows NT+ (and also on OSX). Patches are welcome.
Regards,
Martin
--
http://mail.python.org
= 1
My gnu/linux is 2.6.8-1-386(debian/sarge)
Somebody could help me?
What is the version of gcc that you have installed (gcc -v)? Do you
have g++ installed?
If not, you should configure python --without-cxx.
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
think the simplest answer is "It works out of the box". Just do
python setup.py build --compiler=mingw32
If it fails, report what the failure is (the first failure should
be lack of libpython24.a, for which you can find build instructions
in Google).
Regards,
Martin
--
http://mail.python.
Unix can do that as
long as the locale is UTF-8; for all other systems, there are
restrictions when you try to use the file system API to access
files with "funny" characters.
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
>> On Red Hat 9, Python is installed by default and it's version is 2.2.2
>> If I want to upgrade Python to 2.3.4(newer version), how could I do?
>> If I compile source code of Python, how do I uninstall the old version?
>> I tried rpm packages but failed with dependence.
>I didn't try the rpm's.
Hi,
I am looking for an eric3/linux compatible alternative to checking code
metrics (ex: true lines of code count)
Regards,
Philippe
--
http://mail.python.org/mailman/listinfo/python-list
he local system, nothing
virtualized (unless one of the existing hook mechanisms is used, which
would be OT for this thread).
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
or NT+
(I hope this won't happen), or
b) we drop support for W9x. I'm in favour of doing so sooner or
later, but perhaps not for Python 2.5.
Regards,
Martin
(*) Can somebody please report whether the *W file APIs fail on W9x
because the entry points are not there (so you can
>>I don't know what "eric3/linux compatible" might be, I'm not sure
>>what this would be an alternative _to_, and I don't know what you
>>mean by "true" lines of code count, but the only thing I've
>>noticed lately that counts lines of Python code, and I'm fairly
>>sure it would run fine on Linux,
pylint looks good!
thanks
Philippe
--
http://mail.python.org/mailman/listinfo/python-list
always thought that the *W apis would not be there in win98, but it
seems that is wrong. Fortunately, how could Python, which links to the
FindFirstFileW exported function for example, run on win98 otherwise...
Thanks, that is convincing.
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
e, as it first
compiles all files to bytecode. So it is a good idea to keep the
bytecode files around.
As to what difference -O makes: in 2.4, it only
- sets __debug__ to be false, at compile time,
- removes assert statements
- removes __doc__ strings from the bytecode
Regards,
Martin
--
lse
_CS_REQ_STARTED something else
_UNKNOWN something else
__all__ something else
__builtins__ something else
__doc__ something else
__file__ something else
__name__ something else
errno module
error class
mimetools module
socket module
test function
urlsplit function
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
calling the functions will always fail.
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
patch to sf.net/projects/python.
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
es
of pure Python code. In fact, given a Unicode string s, the line
codecs.BOM_UTF32+array.array("i",map(ord,s)).tostring()
generates UTF-32 for the string s. Creating a codec on top of this
approach is left as an exercise for the reader.
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
>>> class Foo:
... pass
...
>>> f=Foo()
>>> f.name="Hallo"
>>> f.age=10
>>>
>>> xml.marshal.generic.dumps(f)
'age10nameHallo'
However, the advantage of this format over pickle might be
questionable.
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
ve number. A literal, by nature, in any
base, is non-negative.
If you disagree: Is 0xFFF6 a positive or a negative number?
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
did not occur to him that his code (and the Python implementation behind
it, and the Microsoft API behind that) are all correct, and that the
problem really is in the file.
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
n though there is no convenient way
to get at the maximum index. Just trying one time at startup would
be the recommended way:
class _GetMaxIndex:
def __getslice__(self, a, mi):
import sys
sys.maxindex = mi
_GetMaxIndex()[:]
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
ay, we may have a bag type,
so it would be better if this type supported frequency counting.
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
ve to find out yourself what is going on in your
script. Very few people use IIS (most use Apache instead), so you are
pretty much on your own.
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
:
pass
continue_after_exception_has_passed_by()
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
requires, of course, enough
main memory to actually keep the hashtable.
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
atively, patches to support new-style classes in a more
general way are welcome.
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
hat the CHM I'm uploading is really the one for 2.4.1.
IOW, there is too many manual steps in the process to guarantee
continuity, and the process works differently each time (which
currently is only two times: 2.4, and 2.4.1)
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
lass__.__name__,
", ".join(map(str, self.operands()))
requiring you only to implement .operands() in the subclasses.
If you can anticipate such common code, it is easier to add
a base class right away. If you cannot think of a specific
use case, there is little point in having a common ba
user accounts, on
a per-user basis (rather than the per-machine basis), and
switch users. One of the installations can be per-machine,
as per-user settings override the machine settings for the
user.
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
Andrew Koenig wrote:
So, for example, you don't think it's worth including the base class as a
way of indicating future intent?
No. In this respect, I believe in XP: refactor when the need comes up,
but not before.
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
python.exe
vs. \python24\python.exe) will automatically take care of this.
Each interpreter binary will safely have its own Python path, use its
own dlls, and its own libs.
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
plex numbers, it is much
harder to build a Python interpreter that does not support weak
references.
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
) to get
locale-specific upper-casing.
Notice that things are more difficult in the Windows terminal window,
as this uses an encoding different from the one that the system's
locale functions expect.
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
ormance is one of them; backwards compatibility
another.
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
obably using it, but I'd like to hear whether
it works (it should, in principle).
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
ck(?) ;)
No, functions are objects. Notice that in step 1, the object returned
doesn't have to be a function - other things are callable, too, like
types, classes, and objects implementing __call__.
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
. There is
a way of "truly" understanding this notion, and I would encourage
you to try doing so.
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
ases, list comprehension may be slower than map. More likely, for real
(i.e. non-empty) strings, the cost of .upper will make the precise
implementation of the loop irrelevant for performance reasons.
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
ut of curiosity: when thinking about Python 3.0, what is the timespan
in which you expect that to appear? Before 2010? After 2010? After 2020?
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
s to
# nested defined functions in that manner.
However, they way I understood it, it seemed incorrect - there are
no multiple sets of arguments being passed, atleast not simultaneously.
It is, of course, possible to pass multiple sets of arguments
sequentially to multiple functions, eg.
a = len(x)
b = len(y)
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
y) between python23 and python24". Taken in the
literal sense, selecting different versions of python.exe in
the start menu might be the fastest way of "alternating".
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
e should be sufficient (actually,
the OP clarified that a "py23.bat" batch file was sufficient for
his needs).
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
u invoke a Python script, and that modifies
the environments of already-running shells - that is not possible.
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
Timo wrote:
Does anyone have a clue what is going on?
No. Please make a bug report to sf.net/projects/python.
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
some
point, on a new machine, it will be easier to recompile your application
than installing python2.3 from sources.
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
gh energy, a library
reorganization will happen. Some will like it, some will hate it.
I personally try to avoid library wrappers like the plague. It makes
my code harder to write, but easier to read.
Regards,
Martin
(*) Just look at the Apache Commons library. People write wrappers
for stuff li
ython.org/doc/current/lib/markup.html
PyXML has its own documentation page, on
http://pyxml.sourceforge.net/topics/docs.html
As for book recommendations: What language? I would recommend
Fischbeck, v. Löwis: Python 2
:-) It covers all of these topics.
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
the Python interpreter (and no,
the GIL would not be an immediate explanation)
- The Python interpreter (unknowingly) switches the processor to a
different floating-point operation mode, one which is less efficient
(but, say, more correct).
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
e type, and that "something
else" is so much easier to use. Why is it that the authors of
"something else" never contribute it to Python?
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
1901 - 2000 of 4331 matches
Mail list logo