Re: xor operator

2023-11-13 Thread Axel Reichert via Python-list
be short circuited. Me neither, but that could be related to the meaning of n (which I did not get) in the OP's question. Maybe he can clarify. Best regards Axel -- https://mail.python.org/mailman/listinfo/python-list

Re: To clarify how Python handles two equal objects

2023-01-13 Thread Axel Reichert
d the behaviour to me seems to be completely as expected. No surprises here, or do I miss something? Best regards Axel -- https://mail.python.org/mailman/listinfo/python-list

Re: 3.2: email.message.get_payload() delivers str, but send_message expect bytes

2011-04-12 Thread Axel Rau
On 08.04.11 13:43, Axel Rau wrote: > line 167, in sub > return _compile(pattern, flags).sub(repl, string, count) > TypeError: sequence item 1: expected bytes, str found I just filed issue 11837. Axel -- http://mail.python.org/mailman/listinfo/python-list

3.2: email.message.get_payload() delivers str, but send_message expect bytes

2011-04-08 Thread Axel Rau
File "/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/base64.py", line 56, in b64encode raise TypeError("expected bytes, not %s" % s.__class__.__name__) TypeError: expected bytes, not list --- What am I doing wrong? Axel -- http://mail.python.org/mailman/listinfo/python-list

Jython: single step / pause / debug ...

2006-09-01 Thread axel
there is an error in the script and (3) what I have to do to pause/stop the script? Thanks, Axel -- http://mail.python.org/mailman/listinfo/python-list

Jython: PyException toString() is empty

2006-09-01 Thread axel
t the error? Thanks, axel -- http://mail.python.org/mailman/listinfo/python-list

Re: COM object pointer cast

2006-04-19 Thread Axel Bock
late but still - thanks a lot :) . works like a charm. cheers, Axel. -- http://mail.python.org/mailman/listinfo/python-list

COM object pointer cast

2006-03-27 Thread Axel Bock
ethod will only return the IEntry interface pointer. Now I would like to cast that one to the one I need :) . Is there an easy way to do it, or do I have to use the QueryInterface-method to get what I want? Greetings & thanks in advance, Axel. -- http://mail.python.org/mailman/listinfo/python-list

Re: Xah's Edu Corner: The Concepts and Confusions of Pre-fix, In-fix, Post-fix and Fully Functional Notations

2006-03-17 Thread axel
groups as long as the charset is properly declared. > Xah's posting was properly encoded and will display fine in every decent > newsreader. It is not just the question of the newsreader, it is also a question of whether the character set/font being used is capable of displaying the characters concerned. Axel -- http://mail.python.org/mailman/listinfo/python-list

Re: Microsoft's JavaScript doc's newfangled problem

2005-12-28 Thread axel
In comp.lang.perl.misc Xah Lee <[EMAIL PROTECTED]> wrote: > If (1), then it would be a fucking incompetence of inordinate order. If Have you ever thought that your cross-postings are "incompetence of inordinate order"? Of course not since you are a troll. Axel -- htt

Re: Microsoft Hatred FAQ

2005-10-26 Thread axel
as added to Office in the last decade? Clippy Er... Open Office, Apple Works. Axel -- http://mail.python.org/mailman/listinfo/python-list

Re: Microsoft Hatred FAQ

2005-10-24 Thread axel
uses is taxed in America. > And what has his inability to do that to your satisfaction got to do > with the price of eggs? Not that I care much since eggs bring on a rather strong reaction within me, but his arguments were totally false. Axel -- http://mail.python.org/mailman/listinfo/python-list

Re: Microsoft Hatred FAQ

2005-10-24 Thread axel
nomy is not one of > them. I see that you cannot make a reasoned argument against the fact that property in the form of houses is taxed in America. Also may I remind you that these newsgroups are international. Axel -- http://mail.python.org/mailman/listinfo/python-list

Re: Microsoft Hatred FAQ

2005-10-24 Thread axel
not saying "because you are a communist, your argument is wrong". I > am saying, "because your argument is based upon communist or totalitarian > premises about the relationship between the government and the economy, it > does not apply to the United States, and we were talking about the United > States." Then you are sadly deluded if you think that the US government does not make decisions on the economy. Axel -- http://mail.python.org/mailman/listinfo/python-list

Re: Microsoft Hatred FAQ

2005-10-23 Thread axel
relevent to America, let me > know. Why would you say that - Mike Meyer made a point to which you have obviously no answer. Or do you deny that his comments on this matter of property are true? Axel -- http://mail.python.org/mailman/listinfo/python-list

Re: Microsoft Hatred FAQ

2005-10-20 Thread axel
oyed or paid by the shareholders, they are employed by the company itself which is a separate legal entity. It is a different matter for the board of directors of a company. Axel -- http://mail.python.org/mailman/listinfo/python-list

Re: Microsoft Hatred FAQ

2005-10-16 Thread axel
d would use another system? There was a time in the early-mid 1990s that Microsoft was making noises about setting up a 'commercial Internet' through which they hoped to control all online trading (with a percentage of each transaction going to themselves of course). I forget the e

Re: Jargons of Info Tech industry

2005-10-13 Thread axel
e LESS > easy to pull off under the scheme I proposed that requires digital > signatures. How? I keep my address book on my Palm as I send mail from different computers? I suspect many other people do as well. Axel -- http://mail.python.org/mailman/listinfo/python-list

Re: Jargons of Info Tech industry

2005-10-11 Thread axel
r legitimate correspondents and also expensive. I don't know how much spam other people receive but on one account I hardly receive any as I reserve it for friends and business. On another I had about 40 spam messages which took all of ten seconds to delete. Hardly a serious matter. Axel > > > > -- http://mail.python.org/mailman/listinfo/python-list

Re: Jargons of Info Tech industry

2005-10-10 Thread axel
o the recipient can chose to see which ones he cares to look at in detail. It also allows the web address to be sent to several people without wasting bandwith. Axel -- http://mail.python.org/mailman/listinfo/python-list

Re: Jargons of Info Tech industry

2005-10-10 Thread axel
ly spam, I simply do not read them and delete them immediately. But then I use Pine rather than a web browser... and while some forms of HTML may be rendered, nothing is automatically pulled down. Axel -- http://mail.python.org/mailman/listinfo/python-list

Re: A Moronicity of Guido van Rossum

2005-09-30 Thread axel
post were exactly the same. I wonder if his postings are related to the phases of the moon? It might explain a lot. Axel -- http://mail.python.org/mailman/listinfo/python-list

Re: Jargons of Info Tech industry

2005-09-02 Thread axel
Usenet. And the version of vi which I used at the time was not very good with dealing with long lines. But it worked. Axel -- http://mail.python.org/mailman/listinfo/python-list

Re: Jargons of Info Tech industry

2005-08-30 Thread axel
hink of a Dutch expression 'mieren neuker' with regards to Balmer's posts? Axel -- http://mail.python.org/mailman/listinfo/python-list

Re: Jargons of Info Tech industry

2005-08-29 Thread axel
), and it does not have the stark simplicity which screen has... I only need to have a compiled version of screen on the machine on which I do most of my work and be able to ssh/telnet to that machine without involving any additional software installations on other machines. Axel -- http://mail.python.org/mailman/listinfo/python-list

Re: Jargons of Info Tech industry

2005-08-27 Thread axel
een' utility invaluable as I can have my email, news, and an editor open in different screens and then when I need to move to a different machine, I can simply detach and reattach screen without disturbing anything that might be running. Axel -- http://mail.python.org/mailman/listinfo/python-list

Re: Jargons of Info Tech industry

2005-08-26 Thread axel
macs, ed or whatever to compose your message; whether you ran a spell checker over it; or how you read messages and respond to them - perhaps you telnet'd to the news server and made your transactions manually. Axel -- http://mail.python.org/mailman/listinfo/python-list

Re: Jargons of Info Tech industry

2005-08-23 Thread axel
der... > I thought usenet specified fixed font. If you use something else don't > complain. > The Troll don't look pretty in fixed font either:-) I don't think trolls are supposed to look pretty, but rather ugly. Axel -- http://mail.python.org/mailman/listinfo/python-list

Re: Jargons of Info Tech industry

2005-08-12 Thread axel
posed to be opposed of Multics and hints on the offensive and > tasteless term eunuchs. Now that connexion is a product of a truely warped mind. Axel -- http://mail.python.org/mailman/listinfo/python-list

Re: Python documentation problem

2005-06-18 Thread axel
dex - it's an alphabetical list of names and topics. Follow-ups set. Axel -- http://mail.python.org/mailman/listinfo/python-list

Re: How to get/set class attributes in Python

2005-06-12 Thread Axel Straschil
int a.getP(), a2.getP() print a.p, a2.p So, property is instance-level super() tool ;-) Lg, AXEL. -- Gentoo? Debian? RedHat? SuSE? *BSD? Stop the distri-war, make little user! -- http://mail.python.org/mailman/listinfo/python-list

Re: New Python regex Doc

2005-05-13 Thread axel
s nutil his donley comes over the hill. Axel -- http://mail.python.org/mailman/listinfo/python-list

Re: New Python regex Doc

2005-05-07 Thread axel
s a > latch on sentence. > “never greedy”? What is greedy anyway? > “Greedy”, when used in the context of computing, describes a When used in terms of Usenet, I think it can be applied in the sense of 'a troll who is greedy for attention'. Hence the saying 'do not fee

Re: Reusing object methods?

2005-04-29 Thread Axel Straschil
Hello! Why not: > class A: > def a_lengthy_method(self, params): > # do some work depending only on data in self and params > > class B(A): pass ? Lg, AXEL. -- http://mail.python.org/mailman/listinfo/python-list

Re: Python or PHP?

2005-04-26 Thread Axel
Jeremy Bowers <[EMAIL PROTECTED]> wrote: > Nobody ever changed their mind as a result of a 20-thread endless > reply-fest. As usual, the posters aren't about to admit anything, and none > of the bystanders are reading any more. Well I am reading... always interested to learn

Re: [perl-python] Python documentation moronicities (continued)

2005-04-12 Thread axel
x27;t have time to > write a more coherent and detailed analysis of the stupidities of the > re doc. Don't worry! Very soon, some nice men in white coats will show you a comfortable room with soft walls in which you can write such documentation to your hearts content. Axel -- http://

Re: Multiple inheritance: Interface problem workaround, please comment this

2005-04-11 Thread Axel Straschil
Hallo! > Look at the comment in the code! I have posted the "decorate" module in Uuups, sorry, I'll RTFM myselfe *g* Lg, AXEL. -- "Aber naja, ich bin eher der Forentyp." Wolfibolfi's outing in http://www.informatik-forum.at/showpost.php?p=206342&postcount=

Re: Multiple inheritance: Interface problem workaround, please comment this

2005-04-09 Thread Axel Straschil
Hello! > from decorate import decorate # see today thread on decorators for this Gives me an ImportError: No module named decorate. I've got to donwload that? (python 2.4) Thanks, AXEL. -- "Aber naja, ich bin eher der Forentyp." Wolfibolfi's outing in http://

Re: Can dictionary values access their keys?

2005-04-08 Thread Axel Straschil
Hello! > thousands more entries. So we're talking about maybe a million+ total > nested key:values. I don't know if that counts as large or not. I can't > even guess how much k memory that is. Mhh, maybe you should use a SQL-Database ;-) Lg, AXEL. -- "Aber na

Re: Can dictionary values access their keys?

2005-04-08 Thread Axel Straschil
self.__update_reverse() def getKey(self, v): return self.__reverse[v] Lg, AXEL -- "Aber naja, ich bin eher der Forentyp." Wolfibolfi's outing in http://www.informatik-forum.at/showpost.php?p=206342&postcount=10 -- http://mail.python.org/mailman/listinfo/python-list

Re: Multiple inheritance: Interface problem workaround, please comment this

2005-04-07 Thread Axel Straschil
thing I'm dislike is the super thing with multiple inheritance, maby I shoud see pythons multiple inheritance as a nice to have and not to use thing ;-) Thanks, AXEL. -- http://mail.python.org/mailman/listinfo/python-list

Multiple inheritance: Interface problem workaround, please comment this

2005-04-07 Thread Axel Straschil
class AB(A, B): def __init__(self, a=None, b=None): super(AB, self).__init__(a=a, b=b, _do_eat=True) ab = AB() Thanks, AXEL. -- "Aber naja, ich bin eher der Forentyp." Wolfibolfi's outing in http://www.informatik-forum.at/showpost.php?p=206342&postcount=10 -- http://mail.python.org/mailman/listinfo/python-list

Re: Python IDE like NetBeans/Delphi IDE

2005-04-05 Thread Axel Straschil
Hello! > WingIDE (commercial, slower than PythonWin but has many features) You can use and reactivate a trial licence for WingIDE for a realy long term, give it a try, i bought a licence last week and realy love it! Lg, AXEL. -- "Aber naja, ich bin eher der Forentyp." Wolfibolf

Re: Generating RTF with Python

2005-03-31 Thread Axel Straschil
Hello! > I looked at this a while ago, which might be a starter. > http://pyrtf.sourceforge.net/ Don't remember why I didn't spent much time on that. Sombody has experience with pyrtf on an production project (is it stable ;-)) Lg, AXEL. -- "Aber naja, ich bin eher der Fo

Re: Generating RTF with Python

2005-03-31 Thread Axel Straschil
's, under linux, linux support for generating rtf is none, and so is python's. My workaround was: http://www.research.att.com/sw/download/ This includes an html2rtf converter, which I access from python via popen and temporary files. Not high-level, not very sexy ... ;-( Lg, AXEL. --

Re: Calling __init__ with multiple inheritance

2005-03-29 Thread Axel Straschil
izer. It may > be counterintuitive, but it works. OK, thanks, with the super(...).__init__() in Father/Mother it workes and makes sense. So, the last thing a *realy* don't like ist the __init__(self, param, **ignore_the_rest) thing. Anyone had troubles with that, or should I cust tak

Re: Calling __init__ with multiple inheritance

2005-03-28 Thread Axel Straschil
init__(**ham) child = Child(param_mother=1, param_father=1) Father's init will not be called. Thanks, AXEL. -- "Aber naja, ich bin eher der Forentyp." Wolfibolfi's outing in http://www.informatik-forum.at/showpost.php?p=206342&postcount=10 -- http://mail.python.org/mailman/listinfo/python-list

Calling __init__ with multiple inheritance

2005-03-28 Thread Axel Straschil
ram_mother) child = Child(1, 2) Thanks, AXEL. -- http://mail.python.org/mailman/listinfo/python-list

Re: Python docs [was: function with a state]

2005-03-25 Thread axel
What on earth does this mean? > The Python doc, though relatively incompetent, but the author have > tried the best. This is in contrast to documentations in unix related > things (unix tools, perl, apache, and so on etc), where the writers > have absolutely no sense of clear writing, and in most cases don't give > a damn and delight in drivel thinking of it as literary. I think that this is an excellent description of your own writing. Axel -- http://mail.python.org/mailman/listinfo/python-list

Re: [perl-python] combinatorics fun

2005-02-10 Thread axel
bo { my $max = shift; my %hh=(); for my $i ( 1 .. $max ) { for my $j ( $i + 1 .. $max ) { $hh{"$i,$j"} = [$i, $j]; } } return \%hh; } Axel -- http://mail.python.org/mailman/listinfo/python-list

Re: Generating modul classes with eval

2005-02-03 Thread Axel Straschil
'Br'] = _Tag class_dic['Hr'] = _Tag class_dic['Html'] = _ContainerTag class_dic['Table'] = _ContainerTag class_dic['Td'] = _ContainerTag class_dic['Tr'] = _ContainerTag for name, base in class_dic.items(): _tag_class_factory(name,

Re: Generating modul classes with eval

2005-02-03 Thread Axel Straschil
super(TmpClass, self).__init__(name=name, **props) instead of class_base.__init__(self, name=name, **props) I get: TypeError: super(type, obj): obj must be an instance or subtype of type for print table, print br ist processed OK. Thanks for help and your perfekt examples, AXEL. -- http://mail.python.org/mailman/listinfo/python-list

Generating modul classes with eval

2005-02-02 Thread Axel Straschil
e='%s')\n\t\tsuper(%s, self).__init(name=name)\n"%dict(myclass, myclass.lower(), myclass()) ... codeop and eval stuff ... a=A() print a that gives: , but I want MyModule.A ;-) Can someone give me a hint how to create classes in a module with eval and codeop so that they

Re: how to write a tutorial

2005-01-28 Thread axel
t; up to rocket sciences. If expanded slightly and edited, it can supplant > sections 9.0 to 9.4 of the Python tutorial. Languages Tutorials should > follow this style. It is crap, not a tutorial, but just an aide-memoire for someone who presumably knows the stuff anyway. And keep it where

RE: Integrating Python into a C++ app

2005-01-03 Thread Axel Diener
ing does not work well without extending. For this part I use PyCXX from http://sourceforge.net/projects/cxx/. Axel Diener -- http://mail.python.org/mailman/listinfo/python-list

Re: Html or Pdf to Rtf (Linux) with Python

2004-12-17 Thread Axel Straschil
Hello! > You might take a look at PyRTF in PyPI. It's still in beta, I think PyRTF would be the right choice, thanks. Yust had a short look at it. Lg, AXEL. -- The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "

Re: Html or Pdf to Rtf (Linux) with Python

2004-12-16 Thread Axel Straschil
Hello! > I've been able to successfully get konqueror to generate a pdf from a > html file via dcop. It's something along the lines of: For that stuff, I'm using htmloc (http://www.htmldoc.org/). Lg, AXEL. -- The key words "MUST", "MUST NOT", "REQU

Re: Html or Pdf to Rtf (Linux) with Python

2004-12-16 Thread Axel Straschil
7;m afraid this will not be a performant solution ;-( I realy was spending hour's on that, the only thing I found was a spezifikation for reach text, maybe a good point to start a project ... Lg AXEL. -- http://mail.python.org/mailman/listinfo/python-list

Re: Html or Pdf to Rtf (Linux) with Python

2004-12-15 Thread Axel Straschil
rom any to RTF. Please give me a hint where the tons of packages are. Thanks, AXEL. -- The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and &q

Re: Html or Pdf to Rtf (Linux) with Python

2004-12-14 Thread Axel Straschil
I like Python ;-) The System behind generating the HTML-Code is written in Python. Thanks, AXEL. -- http://mail.python.org/mailman/listinfo/python-list