Python3 - encoding issues

2009-11-28 Thread DreiJane
Hello, at first i must beg the pardon of those from you, whose mailboxes got flooded by my last announcement of depikt. I myself get no emails from this list, and when i had done my corrections and posted each of the sligthly improved versions, i wasn't aware of the extra emails that produces. Sor

Re: Python3 - encoding issues

2009-11-28 Thread DreiJane
Ohhh - that's nice. But no words of that in the library reference here: http://docs.python.org/3.1/library/stdtypes.html#sequence-types-str-bytes-bytearray-list-tuple-range Still this fails: >>> a = (1,2,3,4) >>> print(a.startswith((1,2))) Traceback (most recent call last): File "", line 1, in

Re: Python3 - encoding issues

2009-11-30 Thread DreiJane
No, sorry, i must correct me. There is a paragraph below on the quoted site. ".index" is still under "Mutable sequence types" - but bytes are treated below. -- http://mail.python.org/mailman/listinfo/python-list

Documentation bugs in 3.1 - C-API - TypeObjects

2009-11-14 Thread DreiJane
Hello, this page http://docs.python.org/3.1/c-api/typeobj.html has a bad error: " PyTypeObject* PyObject.ob_type This is the type’s type, in other words its metatype. It is initialized by the argument to the PyObject_HEAD_INIT macro, and its value should normally be &PyType_Type. However, for dy

Re: More Python versions on an XP machine

2009-11-14 Thread DreiJane
Hi, there are several ways to do that besides starting python scripts with a double-click on a desktop icon (that can only work with the one and only python version of the registry). One is to start the new python version directly from a "DosBox". You could copy python.exe or pythonw.exe from the

Re: Documentation bugs in 3.1 - C-API - TypeObjects

2009-11-14 Thread DreiJane
Thanks ! Okay, i've already used the call of tp_free as the last statement in tp_dealloc and do understand now, that a call of tp_dealloc should be the last statement in the code for tp_free in specific cases. And yes, "Py_Type(&Foo_Type) = &PyType_Type" will be more stable against changes of the

Re: Documentation bugs in 3.1 - C-API - TypeObjects

2009-11-15 Thread DreiJane
Thanks a second time - the picture has gotten clearer indeed. But for third-party readers the complexities of this matter require the correction, that "Py_Type(&Foo_Type) = &PyType_Type" must be: "Py_TYPE(&Foo_Type) = &PyType_Type " - or am i completely wrong ? Joost -- http://mail.python.org/m

Announcement: depikt - the minimalistic python gate to gtk

2009-11-20 Thread DreiJane
Hi all, these days i make depikt, a python C-extension for building apps with gtk. It was a challenge for me and big fun. From its short description on sourceforge.net: "Python-3 wrappers for GTK. A minimalistic approach - just suited for GUI-building of apps, in no way for widget-building. Curre

Re: Is there something similar to list comprehension in dict?

2009-11-20 Thread DreiJane
NB: I wondered about about dict(one=1, two=2) - why not d = {one:1, two:2} ? Since you do not write L=list((1, 2)) either. These composed objects as basic building blocks make Python code so dense and beautiful, thus using "{}" means embracing the language's concept. -- http://mail.python.org/mail

Re: Newbie question about scrapy tutorial

2009-11-21 Thread DreiJane
Good luck, DreiJane -- http://mail.python.org/mailman/listinfo/python-list

depikt (gtk-wrappers): Threads, code-inlining Pixbufs

2009-11-23 Thread DreiJane
r a large python project. Adapting depikt for it will make depikt better usable and really stable sometimes in 2010. depikt will prevail. There is no way for me without depikt. Thanks for reading, DreiJane -- http://mail.python.org/mailman/listinfo/python-list

depikt (gtk-wrappers): Threads, inlining Pixbufs to python code

2009-11-23 Thread DreiJane
I urgently need depikt for a large python project. Adapting depikt for it will make depikt better usable and really stable sometimes in 2010. depikt will prevail. There is no way for me without depikt. Thanks for reading, DreiJane -- http://mail.python.org/mailman/listinfo/python-list

depikt (gtk-wrappers): Threads, inlining Pixbufs to python code

2009-11-23 Thread DreiJane
pikt better usable and really stable sometimes in 2010. depikt will prevail. There is no way for me without depikt. Thanks for reading, DreiJane -- http://mail.python.org/mailman/listinfo/python-list

depikt (gtk-wrappers): Threads, inlining Pixbufs to python code

2009-11-23 Thread DreiJane
pikt better usable and really stable sometimes in 2010. depikt will prevail. There is no way for me without depikt. Thanks for reading, DreiJane -- http://mail.python.org/mailman/listinfo/python-list

depikt (gtk-wrappers): Threads, inlining Pixbufs to python code

2009-11-23 Thread DreiJane
pikt better usable and really stable sometimes in 2010. depikt will prevail. There is no way for me without depikt. Thanks for reading, DreiJane -- http://mail.python.org/mailman/listinfo/python-list

depikt (gtk-wrappers): Threads, inlining Pixbufs to python code

2009-11-23 Thread DreiJane
pikt better usable and really stable sometimes in 2010. depikt will prevail. There is no way for me without depikt. Thanks for reading, DreiJane -- http://mail.python.org/mailman/listinfo/python-list

Re: Python, Reportlabs, Pil and Windows 7 (64bit)

2010-03-18 Thread DreiJane
Hello, i've used reportlabs over two years now and was content with its quality. These days i have turned to cairo and can only recommend to do so: It is still easier to use (than the well-designed reportlabs tools) and an engine working in a lot of other software too, for example firefox. Reason

Re: sqlite3, memory db and multithreading

2010-03-18 Thread DreiJane
Hello, i cannot help you directly with sqlite2 in the Standardlib, since i am used to work with Roger Binns's apsw. After a short experiment with pysqlite leading to data loss - caused by one of the unclearer exception messages of sqlite3 and me having a bad day - i at once turned back to apsw. An

Re: Python question

2010-04-11 Thread DreiJane
Hello, Python and gtk are "ambulant" (portable plus intallable by mere copying without admin rights). gtk only needs to have the path to its / bin on the PATH . The latter could - and possibly should be - done by the Python scripts using it, for example: s = os.environ['PATH'] if s.find(gtkBinDir

Re: Python question

2010-04-11 Thread DreiJane
Rereading my sent answer i wondered, what the variable s was used for besides that "find" and found nothing. Without it also the layout is better: if os.environ['PATH'].find(gtkBinDir) == -1: os.putenv("PATH", os.getenv("PATH")+ os.pathsep + gtkBinDir) -- http://mail.python.org/mailman/listi

Re: Destructor being called twice?

2010-04-14 Thread DreiJane
Hello, i'd like to comment a bit off-topic. The way you call gtk.main_quit() is probably not the safest. Callling gtk.main_quit() from a lambda expression is in the tutorials, but never worked on my WindowsXP (SP3 too). The delete-event is the last event before the "destroy" and the place for cal