Path-like objects in the standard library

2018-08-24 Thread Torsten Bronger
modules seem to accept them anyway. Regards, Torsten. -- Torsten Bronger -- https://mail.python.org/mailman/listinfo/python-list

scandir slower than listdir

2017-07-19 Thread Torsten Bronger
quot;/home/bronger/.saves")) print("scandir:", time.time() - start) yields listdir: 0.045470237731933594 scandir: 0.08043360710144043 However, scandir is supposed to be faster than listdir. Why do I see this? Tschö, Torsten. -- Torsten Bronger -- https://mail.python.org/mailman/listinfo/python-list

ANN: JuliaBase -- LIMS for specimen-based research published as open source

2015-01-27 Thread Torsten Bronger
is year and made by John” - export to spreadsheets - automatic lab notebooks - server interaction with other programs through an HTTP/JSON interface JuliaBase's sources include an "example institute" that programmers can use as a starting point. -- Torsten BrongerJabber ID: t

Re: Python 3 is killing Python

2014-07-18 Thread Torsten Bronger
much doubt). > > Now, _that's_ funny. This is the internet. If you can't stand the > heat get out of the kitchen. Now, _that's_ funny. This is the internet. If you can't stand people who can't stand the heat get out of the kitchen. Tschö, Torsten.

Re: Proposal: === and !=== operators

2014-07-11 Thread Torsten Bronger
Hallöchen! Torsten Bronger writes: > Alan Bawden writes: > >> [...] >> >> You lost me right here. If list equality is determined by >> comparing lists element-by-element, and the second element of old >> is _not_ equal to the second element of data, then

Re: Proposal: === and !=== operators

2014-07-11 Thread Torsten Bronger
on first tests for identity, and falls back to equality (or the other way round). This behaviour is questionable in my opinion. Tschö, Torsten. -- Torsten BrongerJabber ID: torsten.bron...@jabber.rwth-aachen.de or http://bronger-jmp.appspot.com -- https://mail.

Re: Is Programing Art or Science?

2012-04-03 Thread Torsten Mueller
Xah Lee wrote: > So, is programing a art or science? is it art or science? I really > need to know. Sience? Almost never. It's handcraft. Seldom, in very rare cases, it's true art for a very limited audience, mostly it's routine, and in many cases it's also idiocy. T.M. -- http://mail.python

How to upload a file

2011-04-27 Thread Torsten Bronger
sting code. If you now say "Torsten, unfortunately it *is* so complicated" I'll jump through the hoops, but I'd love to hear that with Python 2.6.5 there's an easier way. ;-) Tschö, Torsten. -- Torsten BrongerJabber ID: torsten.bron...@jabber.rwth-aachen.de

Re: Read / Write OpenOffice SpreadSheet ?

2010-12-17 Thread Torsten Mohr
gh its > UNO interface; but, I find that much more involved then simply accessing > the files directly. Thanks, i read about it but as i understood it, UNO needs Python 2.3.x and i'd like to base on something actual. Best regards, Torsten. -- http://mail.python.org/mailman/listinfo/python-list

Read / Write OpenOffice SpreadSheet ?

2010-12-16 Thread Torsten Mohr
Hi, i search for a possibility to access OpenOffoce SpreadSheets from Python with a reasonably new version of Python. Can anybody point me to a package that can do this? Best regards, Torsten. -- http://mail.python.org/mailman/listinfo/python-list

Re: "Strong typing vs. strong testing"

2010-09-29 Thread Torsten Zühlsdorff
Keith Thompson schrieb: >>> print c # floating point accuracy aside 299792458.0 m/s Actually, the speed of light is exactly 299792458.0 m/s by definition. Yes, but just in vacuum. Greetings, Torsten -- http://www.dddbl.de - ein Datenbank-Layer, der die Arbeit mit 8 vers

Re: deriving from array.array

2010-01-26 Thread Torsten Mohr
out what i need to call? I haven't found much in the documentation. From writing C extensions i knew about the "new" entry in the PyTypeObject struct but it seems there's more behind it. In docs.python.org i did not find much, is there an URL where i can read more? Best regards, Torsten. -- http://mail.python.org/mailman/listinfo/python-list

deriving from array.array

2010-01-26 Thread Torsten Mohr
class and then call array's __getitem__. How do i best derive from array.array? Thanks for any hints, Torsten. -- http://mail.python.org/mailman/listinfo/python-list

test if an input string starts with a python expression

2009-12-07 Thread Torsten Mohr
t? Can i do this using just modules from the python library? Thanks for any hints, Torsten. -- http://mail.python.org/mailman/listinfo/python-list

nested structure with "internal references"

2009-09-25 Thread Torsten Mohr
n Python? The references only need to refer to entries in this structure. The lists may change at runtime (entries removed / added), so storing the index may not help. Thanks for any hints, Torsten. -- http://mail.python.org/mailman/listinfo/python-list

Python und Referenzen auf Variablen?

2009-09-25 Thread Torsten Mohr
, wenn z.B. aus einer list() ein Eintrag gelöscht wird. Der nachfolgende Eintrag würde dann nachrücken und sich damit sein Index ändern. Wie könnte ich in so einer verschachtelten Struktur Referenzen abbilden? Viele Grüße, Torsten. -- http://mail.python.org/mailman/listinfo/python-list

iterate over list while changing it

2009-09-24 Thread Torsten Mohr
l items in that list, which is not happening in the example above. The conditions in the example are not real but much more complex in reality. Can anybody tell me how to do this? Thanks for any hints, Torsten. -- http://mail.python.org/mailman/listinfo/python-list

Windows, CreateThread

2009-09-07 Thread Torsten Mohr
hanks for any hints, Torsten. -- http://mail.python.org/mailman/listinfo/python-list

Noddy with submodules?

2009-09-07 Thread Torsten Mohr
ent import measurement.adc import measurement.adc.channels import measurement.pwm What do i need to do to create submodules within the initialisation code of a python module written in C? Maybe there is an example based on "noddy"? Thanks for any hints, Torsten. -- http://mail.python.org/mai

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: 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: 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: torsten.bron...@jabber.rwth-aachen.de -- http://ma

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: torsten.bron...@jabber.rwth-aachen.de -- 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

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

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: 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

structuring a package?

2009-01-04 Thread Torsten Mohr
m. 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

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

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

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: optparse

2008-09-16 Thread Torsten Mohr
Hi, > If i call it without any parameters i get: > > opts {'verb': 'store_false'} > args [] If i call it with parameter -v i get: ./script.py -v opts {'verb': True} args [] I wonder what's wrong here. Best regards, Torsten. -- http://mail.python.org/mailman/listinfo/python-list

optparse

2008-09-16 Thread Torsten Mohr
e'} args [] I would rather like to see the actual value False in "opts", did i use some wrong parameters somewhere? I can't imagine that this is the wanted behaviour of optparse. Thanks for any hints, Torsten. -- http://mail.python.org/mailman/listinfo/python-list

Re: new style classes, __new__, __init__

2008-09-16 Thread Torsten Mohr
.a a = C2(7) a.fct() Best regards, Torsten. -- http://mail.python.org/mailman/listinfo/python-list

new style classes, __new__, __init__

2008-09-16 Thread Torsten Mohr
elf): print self.a a = C2(7) a.fct() This way __new__ is not called, if i remove __init__ then there are too many parameters to __new__, if i add a parameter to __new__ then it says that __new__ does not take arguments. Thanks for any hints, Torsten. -- http://mail.python.org/mailman/listinfo/python-list

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: 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! 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! 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! 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
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
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-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-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! 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! 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
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: 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: >>>>

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-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

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: 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: 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-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-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: 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: 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 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-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 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-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-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: Am I missing something with Python not having interfaces?

2008-05-06 Thread Torsten Bronger
languages (Java, C# come to mind.) I'm > afraid that if I never use them I'll lose them and when I need them > for something beside Python, I'll be lost. Thank you. See also http://www.python.org/dev/peps/pep-3119/ Tschö, Torsten. -- Torsten Bronger, aquisgrana, europa vetus

Re: Feature suggestion: sum() ought to use a compensated summation algorithm

2008-05-03 Thread Torsten Bronger
; What you wrote is nonsensical there, no different from 'a' + 1 -- > which is why it quite rightly raises a TypeError. No, the above expression should yield ''+'abc'+'efg', look for the signature of sum in the docs. Tschö, Torsten. -- Torsten Bronge

Re: #!/usr/bin/env python vs. #!/usr/bin/python

2008-05-02 Thread Torsten Bronger
to Usenet. Welcome here. ;-) 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: #!/usr/bin/env python vs. #!/usr/bin/python

2008-05-02 Thread Torsten Bronger
Hallöchen! D'Arcy J.M. Cain writes: > On Fri, 02 May 2008 16:26:51 +0200 > Torsten Bronger <[EMAIL PROTECTED]> wrote: > >>> Certainly #! /usr/bin/python is fine if you never expect your >>> software to run outside of your own little corner of the world >&

Re: #!/usr/bin/env python vs. #!/usr/bin/python

2008-05-02 Thread Torsten Bronger
env version and the answer is that > we want to write software that runs everywhere that Python runs. Granted, but you must draw the line somewhere anyway. I cannot pollute my program with hundreds of if clauses just to make it work on every quirky system. It's the *systems* where the s

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 >

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
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: 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 > >

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: 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:\

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
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: 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: 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
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
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: 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: 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
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

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: 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.

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: 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

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: 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

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: 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: 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: 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
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
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: 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: 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-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

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

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.

  1   2   3   4   >