Re: Why not a Python compiler?

2008-02-07 Thread Torsten Bronger
illy me. > > I wonder if George Lucas intended it as a joke or if he thought > a parsec was a unit of time. The latter because it was corrected in the novelization. Tschö, Torsten. -- Torsten Bronger, aquisgrana, europa vetus Jabber ID: [EMAIL PROTECTED] (See http://ime.webhop.org for further contact info.) -- http://mail.python.org/mailman/listinfo/python-list

Re: Why not a Python compiler?

2008-02-07 Thread Torsten Bronger
Hallöchen! Reedick, Andrew writes: >> -Original Message- >> From: [EMAIL PROTECTED] [mailto:python- >> [EMAIL PROTECTED] On Behalf Of Torsten Bronger >> Sent: Thursday, February 07, 2008 3:32 PM >> To: [email protected] >> Subject: Re: Why not a

Re: Is there any Generic RSS/ATOM generator in Python?

2008-02-13 Thread Torsten Bronger
stand you wrongly but there *is* a general XML generator with ElementTree. I wouldn't generate XML directly but using ElementTree to generate Atom. I did it myself three months ago and it was really trivial. Tschö, Torsten. -- Torsten Bronger, aquisgrana, europa vetus

Re: Is there any Generic RSS/ATOM generator in Python?

2008-02-14 Thread Torsten Bronger
Hallöchen! Stefan Behnel writes: > Torsten Bronger wrote: > >> Terran Melconian writes: >> >> [...] >> >> Maybe I understand you wrongly but there *is* a general XML >> generator with ElementTree. I wouldn't generate XML directly but >>

Re: Is there any Generic RSS/ATOM generator in Python?

2008-02-14 Thread Torsten Bronger
nt(root, "id").text = self.id ElementTree.SubElement(root, "title").text = self.title ElementTree.SubElement(root, "updated").text = format_time(self.updated) Tschö, Torsten. -- Torsten Bronger, aquisgrana, europa vetus Jabber ID:

Re: Is there any Generic RSS/ATOM generator in Python?

2008-02-14 Thread Torsten Bronger
Hallöchen! Stefan Behnel writes: > Torsten Bronger wrote: > >> [...] >> >> Excerpt from my code: >> >> root = ElementTree.Element("feed", xmlns="http://www.w3.org/2005/Atom";) >> ElementTree.SubElement(root, "id

Re: Is there any Generic RSS/ATOM generator in Python?

2008-02-14 Thread Torsten Bronger
Hallöchen! Stefan Behnel writes: > [...] > > The E factory is a small module with one main class. Adding that > to your code base doesn't give you any dependencies... Yes, but just for creating five elements? ;-) Tschö, Torsten. -- Torsten Bronger, aquisgr

Re: What's "the standard" for code docs?

2008-02-15 Thread Torsten Bronger
being the best tool for generating documentation from the source code, Epydoc+reST is the way to go. Tschö, Torsten. -- Torsten Bronger, aquisgrana, europa vetus Jabber ID: [EMAIL PROTECTED] (See http://ime.webhop.org for further contac

Re: Return value of an assignment statement?

2008-02-21 Thread Torsten Bronger
But there is this one thing of changing mutable objects which may also change the "value" of other "variables". This can only be understood if your nomenclature is strictly correct. I find Python's model is this area great. It makes many things simpler and only one or two things

Re: Official IRC channel for Python?

2008-02-24 Thread Torsten Bronger
simply prefer it and maybe others do so, too. Tschö, Torsten. -- Torsten Bronger, aquisgrana, europa vetus Jabber ID: [EMAIL PROTECTED] (See http://ime.webhop.org for further contact info.) -- http://mail.python.org/mailman/listinfo/python-list

Re: How about adding rational fraction to Python?

2008-02-26 Thread Torsten Bronger
ic in computer languages. However, I don't consider this a particularly good reason. Tschö, Torsten. -- Torsten Bronger, aquisgrana, europa vetus Jabber ID: [EMAIL PROTECTED] (See http://ime.webhop.org for further contact info.) -- htt

Re: How about adding rational fraction to Python?

2008-02-26 Thread Torsten Bronger
Hallöchen! Grant Edwards writes: > On 2008-02-26, Torsten Bronger <[EMAIL PROTECTED]> wrote: > >> Grant Edwards writes: >> >>> [...] >>> >>> Nope. I would prefer that int OP int always produce an int. >> >> And 2**-1? > > An e

Re: How about adding rational fraction to Python?

2008-02-28 Thread Torsten Bronger
on that 1/2 yield 0.5 is just as > much a convention as that it yield 0 or a true rational. Should be set up a poll? Do you really think that less than 90% of the voters would enter something else than 0.5 in the result edit field? Tschö, Torsten. -- Torsten Bronger, aquisgrana, europa vet

anydbm and sync'ing

2008-03-14 Thread Torsten Bronger
t read new data from it. Tschö, Torsten. -- Torsten Bronger, aquisgrana, europa vetus Jabber ID: [EMAIL PROTECTED] (See http://ime.webhop.org for further contact info.) -- http://mail.python.org/mailman/listinfo/python-list

Re: 'join' in the wrong word for the method in class Thread.

2008-03-16 Thread Torsten Bronger
Hallöchen! [EMAIL PROTECTED] writes: > [...] > *** English is SVO, subject-verb-object. French is too, unless the > object is direct: subject- direct-object -verb. Really? I thought this is only the case for pronouns. Tschö, Torsten. -- Torsten Bronger, aquisgrana, eur

Re: PyCon Feedback and Volunteers ( Pycon disappointment)

2008-03-17 Thread Torsten Bronger
ho paid good money for travel, lodging, and >> registration is also an experiment, you can hereby consider it >> also failed. > > He said "aside from the sponsor talks", chief. I see no reason why the "fault" for parts of the rest being sub-optimal, too, must

Re: PyCon Feedback and Volunteers ( Pycon disappointment)

2008-03-17 Thread Torsten Bronger
Hallöchen! Aahz writes: > In article <[EMAIL PROTECTED]>, > Torsten Bronger <[EMAIL PROTECTED]> wrote: > >> [...] >> >> I see no reason why the "fault" for parts of the rest being >> sub-optimal, too, must necessarily be on the atte

Re: What Programming Languages Should You Learn Next?

2008-03-19 Thread Torsten Bronger
is, Could you elaborate on this? (Sincere question; I have almost no idea of Haskell.) Tschö, Torsten. -- Torsten Bronger, aquisgrana, europa vetus Jabber ID: [EMAIL PROTECTED] (See http://ime.webhop.org for further contact info.) -- http:/

Re: What Programming Languages Should You Learn Next?

2008-03-19 Thread Torsten Bronger
Python so much, but I find this blog entry highly unoriginal. Browsing through Wikipedia gives more insight ... Tschö, Torsten. -- Torsten Bronger, aquisgrana, europa vetus Jabber ID: [EMAIL PROTECTED] (See http://ime.webhop.org for furth

Plugin system, RuntimeWarning: Parent module 'ext_abc' not found while handling absolute import

2009-01-25 Thread Torsten Mohr
here works but gives a warning: RuntimeWarning: Parent module 'ext_abc' not found while handling absolute import Below are the files, i wonder what is wrong. It would be great if anybody could give me a hint, what provokes that warning? Best regards, Torsten. FILE psys.

Re: Plugin system, RuntimeWarning: Parent module 'ext_abc' not found while handling absolute import

2009-01-26 Thread Torsten Mohr
27;extension') >> >> sys.path.append(here) >> sys.path.append(mpath) >> >> FILE mymodule/__init__.py: > > So mymodule is actually a package. Packages should *not* appear in > sys.path. Oh, how does it find modules then? I thought that would be PYTHONPATH or sys.path ? Best regards, Torsten. -- http://mail.python.org/mailman/listinfo/python-list

Reference or Value?

2009-02-22 Thread Torsten Mohr
ion? Thanks for any hints, Torsten. -- http://mail.python.org/mailman/listinfo/python-list

package structure?

2008-12-14 Thread Torsten Mohr
AClass() known in that package. Thanks for any hints, Torsten. -- http://mail.python.org/mailman/listinfo/python-list

Re: package structure?

2008-12-14 Thread Torsten Mohr
>> I wonder how i can make AClass() known in that package. >> > > Why don't you put the contents of smod1.py in mod/smod1/__init__.py? > It'll work this way. Of course, thanks for that hint. Best regards, Torsten. -- http://mail.python.org/mailman/listinfo/python-list

parse C expression?

2008-12-15 Thread Torsten Mohr
on language and preferred would be just standard modules. Is there something available that is maybe based on shlex? Thanks for any hints, Torsten. -- http://mail.python.org/mailman/listinfo/python-list

Package / Module Hierarchy question

2009-01-04 Thread Torsten Mohr
.py is in the same directory as qwe.py ? I'd like to keep the tests for qwe.py within qwe.py, the code that i want to execute when i directly execute qwe.py and then: if __name__ == '__main__': some_test_code() Or do i need to write an external test code? Thanks for any

structuring a package?

2009-01-04 Thread Torsten Mohr
m. Thanks for any hints, Torsten. -- http://mail.python.org/mailman/listinfo/python-list

Re: structuring a package?

2009-01-05 Thread Torsten Mohr
Thanks for that hint. Do you see a way that i could write in circle.py: circle.py: import graphic class Circle(graphic.GraphicObject): . if __name__ == '__main__': abc = Circle() abc.some_test_code() Thanks for any hints, Torsten. -- http://mail.python.org/mailman/listinfo/python-list

ElementTree: How to return only unicode?

2009-03-14 Thread Torsten Bronger
s instead of unicode. So sometimes I get str, sometimes I get unicode. Can one change this globally so that they only return unicode? Tschö, Torsten. -- Torsten Bronger, aquisgrana, europa vetus Jabber ID: [email protected] -- http://mail.python.org/mailman/listinfo/python-list

Re: Style question - defining immutable class data members

2009-03-14 Thread Torsten Bronger
er the first style > over the second? I think that tools like epydoc can generate more accurate API documentation if you write them as instance attributes. Tschö, Torsten. -- Torsten Bronger, aquisgrana, europa vetus Jabber ID: [email protected] -- http://ma

Re: ElementTree: How to return only unicode?

2009-03-14 Thread Torsten Bronger
Hallöchen! Stefan Behnel writes: > Torsten Bronger wrote: > >> [...] >> >> My problem is that if there is only ASCII, these methods return >> ordinary strings instead of unicode. So sometimes I get str, >> sometimes I get unicode. Can one change this

Re: ElementTree: How to return only unicode?

2009-03-15 Thread Torsten Bronger
Hallöchen! Stefan Behnel writes: > Torsten Bronger wrote: > >> Stefan Behnel writes: >> >>> Torsten Bronger wrote: >>> >>>> [...] >>>> >>>> My problem is that if there is only ASCII, these methods return >>>>

Re: Python and Flaming Thunder

2008-05-13 Thread Torsten Bronger
> and those awkwardnesses are already getting fixed. The > difference: I can't afford to ignore users. Really, the Python developers listen *very* carefully what the users want. Of course, the response time in Python is months rather than days, which has turned out to be a good t

Re: Python and Flaming Thunder

2008-05-13 Thread Torsten Bronger
ming Thunder itself is not free software, is it? Tschö, Torsten. -- Torsten Bronger, aquisgrana, europa vetus Jabber ID: [EMAIL PROTECTED] (See http://ime.webhop.org for further contact info.) -- http://mail.python.org/mailman/listinfo/python-list

Re: Python and Flaming Thunder

2008-05-21 Thread Torsten Bronger
urce of python also uses > goto at tons of places. Is that Arf! too? In the hands of a skilled person who really knows what he/she does, it can be a useful statement. But this collides with the goals of FT, which claims to be simple to use. Besides, the above use case for a goto is

Re: Python and Flaming Thunder

2008-05-22 Thread Torsten Bronger
ement results. But people simply don't trust cheap non-point'n'click programs which don't occupy two shelves in the bookstore. Tschö, Torsten. -- Torsten Bronger, aquisgrana, europa vetus Jabber ID: [EMAIL PROTECTED] (See

Re: Python is slow

2008-05-23 Thread Torsten Bronger
torontolife.com is exactly as fast as Wikipedia. Tschö, Torsten. -- Torsten Bronger, aquisgrana, europa vetus Jabber ID: [EMAIL PROTECTED] (See http://ime.webhop.org for further contact info.) -- http://mail.python.org/mailman/listinfo/python-list

Re: Python and Flaming Thunder

2008-05-30 Thread Torsten Bronger
Hallöchen! Duncan Booth writes: > [...] > > I don't understand your problem: it's just a single thread so > killfile or skip it. Although I agree with you that there is no problem, *this* is not a good justification for this thread. One should stay on topic in *every* t

Re: Python and Flaming Thunder

2008-05-30 Thread Torsten Bronger
Hallöchen! Grant Edwards writes: > On 2008-05-30, Torsten Bronger <[EMAIL PROTECTED]> wrote: > >> Duncan Booth writes: >> >>> [...] >>> >>> I don't understand your problem: it's just a single thread so >>> killfile or skip i

Re: Making wxPython a standard module?

2008-06-14 Thread Torsten Bronger
on names as strings is also a wart, and *I* have simply never understood signal and slots. Maybe we should accept that there is no silver bullet in GUI toolkits, and any personal preferences amongst the Big Four are just a matter of taste. This "un-Pythonic" thing is arbitrary and u

Re: Making wxPython a standard module?

2008-06-14 Thread Torsten Bronger
matter of taste. I don't think that because you didn't find sizers convenient, or some parts too explicit, you can say that wxWidgets is un-Pythonic. I rather have the impression that you like terseness, which is totally okay but a different thing. I agree that changing the naming con

Re: Making wxPython a standard module?

2008-06-15 Thread Torsten Bronger
Hallöchen! Grant Edwards writes: > On 2008-06-14, Torsten Bronger <[EMAIL PROTECTED]> wrote: > >>> [...] >>> >>> IMO, a few of the "un-Pythonic" things about wxPython are: >>> >>> 1) Window ID numbers. >> >> Whe

Re: Making wxPython a standard module?

2008-06-15 Thread Torsten Bronger
Hallöchen! Grant Edwards writes: > On 2008-06-14, Torsten Bronger <[EMAIL PROTECTED]> wrote: > >>> You're saying that having the user or-together a bunch of >>> bitmasks and pass the result as an integer is a common way for >>> Python functions/obj

Re: Cyclic imports

2008-06-26 Thread Torsten Bronger
until everything is fully loaded -- for example, by wrapping the access in a function which is called from the main program. On the other hand, the above code was for debugging purposes I assume. So maybe there's no real problem anyway because all your uses of module b are wrap

Re: Amazon: "Practical Django Projects" by James Bennett (June 2008)

2008-07-17 Thread Torsten Bronger
27;s policy is that "1.0" equals "API is frozen". And I consider publishing a book four months before the API is polished bad timing, too. Especially because Django is exquisitely documented on its webpage, so there is no urgent need for it. I thought about buying a Django book, too

create PyString

2008-07-18 Thread Torsten Mohr
d copy my data. Is there a way to tell python to: 1. let python create a PyString with an allocated buffer 2. let my extension module fill the buffer 3. let python validate the strings hash value and whatever else is necessary? Thanks for any hints, Torsten. -- http://mail.python.org/mailman/listinfo/python-list

Re: Amazon: "Practical Django Projects" by James Bennett (June 2008)

2008-07-19 Thread Torsten Bronger
Hallöchen! Bruno Desthuilliers writes: > Torsten Bronger a écrit : > >> [EMAIL PROTECTED] writes: >> >>> On 16 juil, 10:35, Stefan Scholl <[EMAIL PROTECTED]> wrote: >>> >>>> Dave U. Random <[EMAIL PROTECTED]> wrote: >>>>

Re: Attack a sacred Python Cow

2008-07-24 Thread Torsten Bronger
self" to non-decorated methods which are defined within "class". Tschö, Torsten. -- Torsten Bronger, aquisgrana, europa vetus Jabber ID: [EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-list

Re: Attack a sacred Python Cow

2008-07-24 Thread Torsten Bronger
Hallöchen! Kay Schluehr writes: > On 24 Jul., 11:40, Torsten Bronger <[EMAIL PROTECTED]> > wrote: >> >> Bruno Desthuilliers writes: >> >>> [...] >>> >>> How would you handle this case with an implicit 'self' : >>>

Re: Attack a sacred Python Cow

2008-07-24 Thread Torsten Bronger
Hallöchen! Bruno Desthuilliers writes: > Torsten Bronger a écrit : > >> Kay Schluehr writes: >> >>> On 24 Jul., 11:40, Torsten Bronger <[EMAIL PROTECTED]> >>> wrote: >>> >>>> [...] Just like this. However, the compiler could ad

Re: Attack a sacred Python Cow

2008-07-24 Thread Torsten Bronger
Hallöchen! Bruno Desthuilliers writes: > Torsten Bronger a écrit : > >> Bruno Desthuilliers writes: >> >>> [...] >>> >>> How would you handle this case with an implicit 'self' : >>> >>> class Foo(object): >>>p

Re: Attack a sacred Python Cow

2008-07-24 Thread Torsten Bronger
Hallöchen! Sebastian \"lunar\" Wiesner writes: > Torsten Bronger <[EMAIL PROTECTED]>: > >> Bruno Desthuilliers writes: >> >>> Torsten Bronger a écrit : >>> >>>> Bruno Desthuilliers writes: >>>> >>>> [...]

Re: Attack a sacred Python Cow

2008-07-26 Thread Torsten Bronger
hey want instead of the 'self' version. And > again, not everyone writes in English. Of course, "self" would have to become a reserved word. You could say that this may break some code, but I don't see much freedom removed from the language. After all, being a Germ

Re: Attack a sacred Python Cow

2008-07-26 Thread Torsten Bronger
od > def sfoo(arg): > print arg See <news:[EMAIL PROTECTED]>. It is only added to non-decorated methods within a class. This implies that you can switch this mechanism off with a noop decorator. Tschö, Torsten. -- Torsten Bronger, aquisgrana, europa vetus Jabber ID: [EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-list

Re: Attack a sacred Python Cow

2008-07-26 Thread Torsten Bronger
Hallöchen! D'Arcy J.M. Cain writes: > On Sat, 26 Jul 2008 09:45:21 +0200 > Torsten Bronger <[EMAIL PROTECTED]> wrote: > >> Of course, "self" would have to become a reserved word. You >> could say that this may break some code, but I don't see much

Re: Attack a sacred Python Cow

2008-07-26 Thread Torsten Bronger
Hallöchen! D'Arcy J.M. Cain writes: > On Sat, 26 Jul 2008 16:25:18 +0200 > Torsten Bronger <[EMAIL PROTECTED]> wrote: > >>> Isn't this a showstopper all by itself? >> >> Yes. But I've seen no code that uses some other word. Emacs' >&g

Re: Attack a sacred Python Cow

2008-07-26 Thread Torsten Bronger
Hallöchen! Kay Schluehr writes: > On 26 Jul., 09:45, Torsten Bronger <[EMAIL PROTECTED]> > wrote: >> >> Terry Reedy writes: >> >>> [...] >>> >>> Or the proposal would have to be that 'self' is mandatory for >>> all progr

Re: Attack a sacred Python Cow

2008-07-26 Thread Torsten Bronger
Hallöchen! Terry Reedy writes: > Torsten Bronger wrote: > >> Terry Reedy writes: >> >>> [...] >>> >>> Or the proposal would have to be that 'self' is mandatory for >>> all programmers in all languages. I think *that* would be >

Re: Attack a sacred Python Cow

2008-07-26 Thread Torsten Bronger
Hallöchen! Terry Reedy writes: > Torsten Bronger wrote: > >> D'Arcy J.M. Cain writes: >> >>> On Sat, 26 Jul 2008 09:45:21 +0200 >>> Torsten Bronger <[EMAIL PROTECTED]> wrote: >>> >>>> Of course, "self" would have to be

Re: Why prefer != over <> for Python 3.0?

2008-03-30 Thread Torsten Bronger
rue. Personally, I don't ever use "a!=b" in favor of "not > a==b". As a side note, I've always found == rather ugly. I'd prefer to have = for both purposes. The constructs that wouldn't work anymore are rare as far as I can see (and possibly there are even

Re: Why prefer != over <> for Python 3.0?

2008-03-30 Thread Torsten Bronger
nvenient". Emacs is generally not regarded as being convenient, however, it has very strong input methods. I type "\gtrless" and get "≷", or "\forall" and get "∀". Tschö, Torsten. -- Torsten Bronger, aquisgrana, europa vetus

Re: Why prefer != over <> for Python 3.0?

2008-03-30 Thread Torsten Bronger
gt; >> Could you please list some that do, and are also convenient? > > AFAICT there's none. This should be easy to implement on emacs, It *is* implemented in Emacs. You can even choose from many input methods, optimised for differend areas/languag

Re: Why prefer != over <> for Python 3.0?

2008-03-30 Thread Torsten Bronger
Hallöchen! Bjoern Schliessmann writes: > Torsten Bronger wrote: > >> Emacs is generally not regarded as being convenient, however, it >> has very strong input methods. I type "\gtrless" and get "?", or >> "\forall" and get "?".

Re: Why prefer != over <> for Python 3.0?

2008-04-01 Thread Torsten Bronger
a keyboard that has those symbols and I'm all up for it. For <= I have to press three buttons, for ≤ I have to press four buttons. Not much of a difference. ;-) However, I'm slightly disappointed with the UTF-8 support in some mail clients involved in this thread, so Unicode sure

Re: Is there any way to say ignore case with "in"?

2008-04-04 Thread Torsten Bronger
Hallöchen! [EMAIL PROTECTED] writes: > Is there any way in python to say > > if string1 in string2: > > > ignoring the case of string1 and string2? You can "normalise" both first, i.e. converting to lower case. Tschö, Torsten. -- Torsten Brong

Re: Translating keywords

2008-04-07 Thread Torsten Bronger
near = λ a,b,ε=0.01: a-ε ≤ b ≤ a+ε As far as I've understood it, only letters are allowed in identifiers rather than arbitrary Unicode code points. Tschö, Torsten. -- Torsten Bronger, aquisgrana, europa vetus Jabber ID: [EMAIL PROTECTED]

Coping with cyclic imports

2008-04-08 Thread Torsten Bronger
works? Because at least once, the imported module was not "finished" and thus largely unusual. Thank you! Tschö, Torsten. -- Torsten Bronger, aquisgrana, europa vetus Jabber ID: [EMAIL PROTECTED] (See http://ime.webhop.org for furth

Re: Coping with cyclic imports

2008-04-09 Thread Torsten Bronger
r indictly) the current module and which comes before the current module in the import order while the program runs. If you don't rely on imported things at top-level code (but only in functions and methods which in turn must not be called from the top-level), everything is fine.

Cyclic relative imports don't work

2008-04-10 Thread Torsten Bronger
moduleY File "/home/bronger/temp/packages-test/package/moduleY.py", line 1, in from . import moduleX ImportError: cannot import name moduleX If I turn the relative imports to absolute ones, it works. But I'd prefer the relative notation for intra-package imports.

unittest: which directory structure?

2008-04-12 Thread Torsten Bronger
os.path rootpath = os.path.split(os.path.dirname(os.path.abspath(__file__)))[0] sys.path.append(rootpath) in order to be able to import the source modules. I surely have missed something because this is only a workaround solution. Thanks for any hints! Tschö, Torsten. -- Torsten Bronger, aqui

Re: How is GUI programming in Python?

2008-04-12 Thread Torsten Bronger
...] > - WxPython is terribly unstable. I can't confirm that. When I chose wxPython after thorough consideration one year ago, my impression was that reports of instability were indeed frequent but rather old. Apparently, the situation had improved. Does your experience rely

Re: How is GUI programming in Python?

2008-04-15 Thread Torsten Bronger
now. They tweaked it a little in recent years and it is reasonable pythonic now. It still has its warts, but Qt definitely has them, too. If you want to have it clean, you must climb up to another level of abstraction (Dabo, Wax etc). I wouldn't do this because it gets slowe

Re: How is GUI programming in Python?

2008-04-15 Thread Torsten Bronger
;> Object Pascal/Delphi == the hobbyist/beginner's toolkit > > I'm pretty sure that there are more professional software products > written in Delphi than in wxPython. Certainly. Tschö, Torsten. -- Torsten Bronger, aquisgrana, europa vetus Jabber ID: [EMAIL PROTECTED] (See http://ime.webhop.org for further contact info.) -- http://mail.python.org/mailman/listinfo/python-list

Re: Finally had to plonk google gorups.

2008-04-16 Thread Torsten Bronger
it's much better since list > subscription can actually be controlled by someone. The admistrative overhead of mailing lists is tedious. Fortunately, most important computer-related lists are on gmane.org. We could list c.l.py there, too. ;-) Tschö, Torsten. -- Torsten Br

Re: Finally had to plonk google gorups.

2008-04-16 Thread Torsten Bronger
Hallöchen! Michael Torrie writes: > Torsten Bronger wrote: > >> The admistrative overhead of mailing lists is tedious. >> Fortunately, most important computer-related lists are on >> gmane.org. We could list c.l.py there, too. ;-) > > Running a few lists mys

Re: Finally had to plonk google gorups.

2008-04-16 Thread Torsten Bronger
Hallöchen! Steve Holden writes: > Torsten Bronger wrote: > >> [...] >> >> The admistrative overhead of mailing lists is tedious. >> Fortunately, most important computer-related lists are on >> gmane.org. We could list c.l.py there, too. ;-) > &

Re: Finally had to plonk google gorups.

2008-04-16 Thread Torsten Bronger
sting. It was sent through the mailing list. By the way, the "References:" header seems to get lost sometimes through the mailing list when reading it as a Usenet group, so that the discussion trees become a mess. Tschö, Torsten. -- Torsten Bronger, aquisgrana, europa vetus

Re: I just killed GIL!!!

2008-04-16 Thread Torsten Bronger
dy has thought of it >>> before. [...] >> >> If I were you I would keep it a secret until a Hollywood producer >> offers big bucks for the film rights. > > Who would play Guido, I wonder? Ralf Möller. No other. Tschö, Torsten. -- Torsten Bronger, aquisgr

Re: "Help needed - I don't understand how Python manages memory"

2008-04-20 Thread Torsten Bronger
at code that doesn't use stack frames nor stores > references to exception objects/tracebacks is safe? Circular referencing is no leaking on the C level but in a way it is memory leaking, too. Tschö, Torsten. -- Torsten Bronger, aquisgrana, europa vetus

Re: Is massive spam coming from me on python lists?

2008-04-21 Thread Torsten Bronger
t; things. By the way, why does mailman change the Message-IDs when tunneling postings to the newsgroup? This destroys the thread structure. Tschö, Torsten. -- Torsten Bronger, aquisgrana, europa vetus Jabber ID: [EMAIL PROTECTED] (See h

lost sourcecode: decompyle?

2008-04-21 Thread Torsten Bronger
content of the files. Tschö, Torsten. -- Torsten Bronger, aquisgrana, europa vetus Jabber ID: [EMAIL PROTECTED] (See http://ime.webhop.org for further contact info.) -- http://mail.python.org/mailman/listinfo/python-list

Re: Finally had to plonk google gorups.

2008-04-21 Thread Torsten Bronger
one of those who accept high amounts of false positives in their anti-spam strategy. Tschö, Torsten. -- Torsten Bronger, aquisgrana, europa vetus Jabber ID: [EMAIL PROTECTED] (See http://ime.webhop.org for further contact info.) -- http://mail.python.org/mailman/listinfo/python-list

Re: Python development tools

2008-04-23 Thread Torsten Bronger
quot; prefixes?), and it ends multi-line strings at single quotes. That's bad. Tschö, Torsten. -- Torsten Bronger, aquisgrana, europa vetus Jabber ID: [EMAIL PROTECTED] (See http://ime.webhop.org for further contact info.) -- http://mail.python.org/mailman/listinfo/python-list

Re: Python development tools

2008-04-24 Thread Torsten Bronger
noying IMHO. My formulation was unfortunate. What doesn't work (at least for me) is something like """This is a docstring in which some "variables" are quoted.""" Here, "variables" doesn't seem to belong to the docstring for python-mode.

Abuse in comp.lang.python

2008-04-28 Thread Torsten Bronger
Path: uni-berlin.de!fu-berlin.de!postnews.google.com!f63g2000hsf.googlegroups.com!not-for-mail Message-ID: <[EMAIL PROTECTED]> From: [EMAIL PROTECTED] Newsgroups: comp.lang.python Subject: the pink patch Date: Mon, 28 Apr 2008 00:52:20 -0700 (PDT) Lines: 10 Organization: http://groups.google.com N

Re: Simple unicode-safe version of str(exception)?

2008-04-29 Thread Torsten Bronger
Hallöchen! Russell E. Owen writes: > [...] > > So...to repeat the original question, is there any simpler > unicode-safe replacement for str(exception)? Please show us the tracebacks you get becuae unicode(s) must fail, too, if there are non-ASCII characters involved. Ts

Re: Simple unicode-safe version of str(exception)?

2008-04-29 Thread Torsten Bronger
Hallöchen! Russell E. Owen writes: > Torsten Bronger <[EMAIL PROTECTED]> wrote: > >> Russell E. Owen writes: >> >>> [...] >>> >>> So...to repeat the original question, is there any simpler >>> unicode-safe replacement for str(exc

Re: Simple unicode-safe version of str(exception)?

2008-04-29 Thread Torsten Bronger
something printable is a quite ugly kludge anyway in my opinion, so it needn't special support. Tschö, Torsten. -- Torsten Bronger, aquisgrana, europa vetus Jabber ID: [EMAIL PROTECTED] (See http://ime.webhop.org for further contact info.

Re: computing with characters

2008-04-30 Thread Torsten Bronger
s were chosen? Just curious *Maybe* for aesthetical reasons. I find ord(c) more pleasent for the eye. YMMV. The biggest ugliness though is ",".join(). No idea why this should be better than join(list, separator=" "). Besides, ",".join(u"x") yields an unico

Re: computing with characters

2008-04-30 Thread Torsten Bronger
Hallöchen! Duncan Booth writes: > Torsten Bronger <[EMAIL PROTECTED]> wrote: > >> The biggest ugliness though is ",".join(). No idea why this should >> be better than join(list, separator=" "). Besides, ",".join(u"x") >&

Re: computing with characters

2008-04-30 Thread Torsten Bronger
Hallöchen! Marco Mariani writes: > Torsten Bronger wrote: > >> However, join() is really bizarre. The list rather than the >> separator should be the leading actor. > > No, because join must work with _any sequence_, and there is no > "sequence" type to put

Re: computing with characters

2008-04-30 Thread Torsten Bronger
sing related > method/functionality to a general purpose sequence type. Okay, my wording was unfortunate. However, I've already twice (before and after the above posting of mine) said what I mean, namely join(list, separator), possibly with a default value for "separator". Tschö, Torsten.

Re: relative import broken?

2008-04-30 Thread Torsten Bronger
gt; sys.path, but when I execute > > from S import p > > in u.py Python gives "ImportError: No module named S". I didn't look it up myself, but maybe a __init__.py file is missing so that it can be recognised as a package. Tschö, Torsten. -- Torsten Bronger, aquisgrana, e

Re: relative import broken?

2008-04-30 Thread Torsten Bronger
t;> >> > from S import p >> >> > in u.py Python gives "ImportError: No module named S". >> >> A silly question: is the directory that contains "S" in PYTHONPATH or >> in sys.path? > > It's in sys.path. "S" or its parent directory? Tschö, Torsten. -- Torsten Bronger, aquisgrana, europa vetus Jabber ID: [EMAIL PROTECTED] (See http://ime.webhop.org for further contact info.) -- http://mail.python.org/mailman/listinfo/python-list

Re: relative import broken?

2008-04-30 Thread Torsten Bronger
No module named S". >> >> >> A silly question: is the directory that contains "S" in PYTHONPATH or >> >> in sys.path? >> >> > It's in sys.path. >> >> "S" or its parent directory? > > I added r'C:\

Problems with Cheese Shop

2008-05-01 Thread Torsten Bronger
Hallöchen! How can I authorise to the Python Cheese Shop in order to use setup.py upload? Currently, I get Upload failed (401): You must be identified to edit package information Thanks! Tschö, Torsten. -- Torsten Bronger, aquisgrana, europa vetus

Re: Problems with Cheese Shop

2008-05-01 Thread Torsten Bronger
Hallöchen! Christian Heimes writes: > Torsten Bronger schrieb: > >> How can I authorise to the Python Cheese Shop in order to use >> setup.py upload? Currently, I get >> >> Upload failed (401): You must be identified to edit package >> information > >

Re: Best way to store config or preferences in a multi-platform way.

2008-05-01 Thread Torsten Bronger
n.key=value scheme so anything else would be overkill. Besides, YAML adds another dependency. Tschö, Torsten. -- Torsten Bronger, aquisgrana, europa vetus Jabber ID: [EMAIL PROTECTED] (See http://ime.webhop.org for further contact info.) -- http://mail.python.org/mailman/listinfo/python-list

Re: Best way to store config or preferences in a multi-platform way.

2008-05-01 Thread Torsten Bronger
in. So even if the rest of the world uses config format X, you can safely stick with config format Y. I mean, YAML is not really a complex thing, yet it was conceived not before 2001. The reason is that traditional config files do a good job. Tschö, Torsten. --

Re: Best way to store config or preferences in a multi-platform way.

2008-05-01 Thread Torsten Bronger
Hallöchen! Ivan Illarionov writes: > On Fri, 02 May 2008 01:21:38 +0200, Torsten Bronger wrote: > >> [...] >> >> In contrast to many other areas of software, configuration files >> needn't be compatible with anything except the user's brain. So >

<    1   2   3   4   >