Re: Best practices for dynamically loading plugins at startup

2005-09-25 Thread Jarek Zgoda
th a "walk" over that directory. See entry for __import__ at http://www.python.org/doc/2.3/lib/built-in-funcs.html -- Jarek Zgoda http://jpa.berlios.de/ -- http://mail.python.org/mailman/listinfo/python-list

[ANN] PyXMPP build for Python 2.3 for Win32

2005-10-05 Thread Jarek Zgoda
information on PyXMPP go to official PyXMPP homepage, located at http://pyxmpp.jabberstudio.org/. -- Jarek Zgoda http://jpa.berlios.de/ -- http://mail.python.org/mailman/listinfo/python-list

Re: How to organize Python files in a (relatively) big project

2005-10-19 Thread Jarek Zgoda
to install this structure eg. on Linux? What layout do you recommend? It's tempting to use /opt hierarchy for installation target (as it gives relatively much freedom within application directory), but many administrators are reluctant to use this hierarchy and prefer more standarized t

Re: How to organize Python files in a (relatively) big project

2005-10-19 Thread Jarek Zgoda
ystem (Windows, FHS, etc.). Why not to do this usual way: libraries to $prefix/lib/$appname-$version, binary to $prefix/bin, shared files to $prefix/share/$appname, etc -- and appropriately on Windows. -- Jarek Zgoda http://jpa.berlios.de/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Automatically creating a HOME environ variable on Windows?

2005-10-29 Thread Jarek Zgoda
#x27;HOMEPATH'])? MS recommends using %USERPROFILE%, as the above in many cases returns "C:\", which is wrong. -- Jarek Zgoda http://jpa.berlios.de/ -- http://mail.python.org/mailman/listinfo/python-list

Last.fm Python group

2005-10-30 Thread Jarek Zgoda
I was missing miscellaneous Python group on last.fm, so here it is: http://www.last.fm/group/PythonCode. Enjoy. -- Jarek Zgoda http://jpa.berlios.de/ -- http://mail.python.org/mailman/listinfo/python-list

Re: looking for a good python module for MS SQL server

2005-10-31 Thread Jarek Zgoda
Anat napisał(a): > Does anyone know a good python mudule that works with MS SQL server? Google will yield something, but I prefer adodbapi over specialized modules. Works good with SQLServer using SSPI auth (others rather not). -- Jarek Zgoda http://jpa.berlios.de/ -- http://mail.python.

Re: looking for a good python module for MS SQL server

2005-11-01 Thread Jarek Zgoda
gh it does have problems with stored procedures. Didn't discover any of these. -- Jarek Zgoda http://jpa.berlios.de/ -- http://mail.python.org/mailman/listinfo/python-list

Re: looking for a good python module for MS SQL server

2005-11-01 Thread Jarek Zgoda
pdate to adodbapi was long time ago... I had no problems with stored procedures accessed using cursor's execute() method (i.e. execute('exec sp_someproc, param')), but I never tried to get any results, just call sp and commit or rollback. -- Jarek Zgoda http://jpa.berlios.de/ -- http://mail.python.org/mailman/listinfo/python-list

Re: looking for a good python module for MS SQL server

2005-11-02 Thread Jarek Zgoda
utside Windows. PyMSSQL can use DB-LIB or FreeTDS, so it may have use also on non-windows systems, see http://pymssql.sourceforge.net/ (didn't try this one, though). -- Jarek Zgoda http://jpa.berlios.de/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Xah's edu corner: the Journey of Foreign Characters thru Internet

2005-11-02 Thread Jarek Zgoda
Fredrik Lundh napisał(a): >>And if anyone wants to take the responsibiblity to warn the general >>public that it is troll so innocent readers may not be tempted into >>one, at least do it privately > > huh? Don't fed the troll, don't give him any public aud

Re: Xah's edu corner: the Journey of Foreign Characters thru Internet

2005-11-02 Thread Jarek Zgoda
#x27;t fed the troll, don't give him any public audience. Easy. > > by sending private mail to anyone who might have seen his posts? If you absolutely, positively must do something about that... But anyway it's stupid idea. Private feeding is not much better than in public. -- Jarek Zgoda http://jpa.berlios.de/ -- http://mail.python.org/mailman/listinfo/python-list

Re: PYTHON LOOSING FOR JAVA???????

2005-11-08 Thread Jarek Zgoda
language called Python?? Sun and Google do not cover 100% of possible uses of Python. From my POV i.e., they have nothing that could help in writing ETL tasks helpers on iSeries. Python is unstoppable here. ;) Computing is large area. Much larger than aunt Tilly's laptop. -- Jarek

Re: XML GUI

2005-11-11 Thread Jarek Zgoda
wxPython, Qt dialog editor also produces XML files with UI description. Each of these toolkits has its own way to process GUI events. -- Jarek Zgoda http://jpa.berlios.de/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Inserting Records into SQL Server - is there a faster interface than ADO

2005-11-11 Thread Jarek Zgoda
DTS import from flat file. To spped up the things a bit, do not commit transaction after each row inserted -- commit whole batch. -- Jarek Zgoda http://jpa.berlios.de/ -- http://mail.python.org/mailman/listinfo/python-list

Re: sqlite utf8 encoding error

2005-11-17 Thread Jarek Zgoda
de(input, errors, True) > UnicodeDecodeError: 'utf8' codec can't decode bytes in position 13-18: > unsupported Unicode code range I cann't wait for the moment when encoded strings go away from Python. The more I program in this language, the more confusion this di

Re: UnicodeDecodeError

2005-12-01 Thread Jarek Zgoda
different encodings but have no success. what should i > do so that "&" appears on screen? Double your ampersand character. -- Jarek Zgoda http://jpa.berlios.de/ -- http://mail.python.org/mailman/listinfo/python-list

Re: ElementTree - Why not part of the core?

2005-12-07 Thread Jarek Zgoda
ot;web frameworks", "multimedia", etc.) and would be able to fetch and install packages using PyPI descriptions? Unattended install with this feature would be great. -- Jarek Zgoda http://jpa.berlios.de/ -- http://mail.python.org/mailman/listinfo/python-list

Re: PyQT installation

2005-01-01 Thread Jarek Zgoda
ailable for this version of Qt. Blackadder from the Kompany, while not free, is still a pretty good deal. Like < $100 for personal and around $350 for commercial version. Include current windows/linux versions of (Qt)PyQt along with converted Qt C++ to PyQt docs. This is much better way to get PyQt

Re: How do I make Windows Application with Python ?

2005-01-03 Thread Jarek Zgoda
using one of its MVC frameworks. You see? It's easy, like that! -- Jarek Zgoda http://jpa.berlios.de/ | http://www.zgodowie.org/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Python evolution: Unease

2005-01-06 Thread Jarek Zgoda
ard for Python: more features, increased complexity, less dynamism. Lots of syntax crud, without addressing the need to improve the infrastructure around the language. I saw this once somewhere: http://groups.google.com/groups?selm=cf38ph%242f8%241%40namru.matavnet.hu -- Jarek Zgoda http://jp

Re: why are people still using classic classes?

2005-01-13 Thread Jarek Zgoda
code that works either way. Ideally, I'd like to have them working like in Delphi, where it doesn't matter if you declare it as TSomeClass(TObject) or simply TSomeClass, it is assumed that class is inherited from TObject if no other class is specified. -- Jarek Zgoda http://jp

Re: python to mssql

2005-01-14 Thread Jarek Zgoda
Brane wrote: can someone please give me some info regarding subject From Windows machine: http://adodbapi.sourceforge.net/ From elsewhere: FreeTDS + unixODBC + mxODBC is one of possible solutions. -- Jarek Zgoda http://jpa.berlios.de/ | http://www.zgodowie.org/ -- http://mail.python.org/mailman

Re: python connect to db2

2005-01-14 Thread Jarek Zgoda
ame or IP address!) as returned by dsprdbdire command for remote databases. -- Jarek Zgoda http://jpa.berlios.de/ | http://www.zgodowie.org/ -- http://mail.python.org/mailman/listinfo/python-list

Re: ElementTree cannot parse UTF-8 Unicode?

2005-01-20 Thread Jarek Zgoda
Erik Bethke wrote: So why are there non-UNICODE versions of wxPython??? To save memory or something??? Win95, Win98, WinME have problems with unicode. GTK1 does not support unicode at all. -- Jarek Zgoda http://jpa.berlios.de/ | http://www.zgodowie.org/ -- http://mail.python.org/mailman/listinfo

Re: snakespell and myspell

2005-01-25 Thread Jarek Zgoda
my program to use python-aspell). This library is actively maintained and Wojtek Mula is active member of Polish Python community. -- Jarek Zgoda http://jpa.berlios.de/ | http://www.zgodowie.org/ -- http://mail.python.org/mailman/listinfo/python-list

Re: python without OO

2005-01-25 Thread Jarek Zgoda
hat was added in over time) Icon, the language for OO haters. May I ask why you do you hate OO so much? -- Jarek Zgoda http://jpa.berlios.de/ | http://www.zgodowie.org/ -- http://mail.python.org/mailman/listinfo/python-list

Re: bytecode obfuscation

2005-02-03 Thread Jarek Zgoda
API's. -- Jarek Zgoda http://jpa.berlios.de/ | http://www.zgodowie.org/ -- http://mail.python.org/mailman/listinfo/python-list

Re: formatted xml output from ElementTree inconsistency

2005-06-23 Thread Jarek Zgoda
ght > that the formatting was ignored when creating new elements. Why want you to read an XML document "by hand"? It's a "machine related" data chunk. Document formatting should be done by means of CSS and/or XSL stylesheet. -- Jarek Zgoda http://jpa.berlios.de/

Re: delphi to python converter

2005-06-27 Thread Jarek Zgoda
Thys Meintjes napisał(a): > I have need of a Delphi/pascal to python converter. Googling didn't > suggest any obvious leads so I'm trying here... Don't think something like that even exists... -- Jarek Zgoda http://jpa.berlios.de/ -- http://mail.python.org/mailman/listinfo/python-list

Re: When someone from Britain speaks, Americans hear a "British accent"...

2005-06-28 Thread Jarek Zgoda
Grant Edwards napisał(a): >>To be blunt, I have no idea what this has to do with Python. > > Monty Python was mostly Brits? Wasn't they all Brits? -- Jarek Zgoda http://jpa.berlios.de/ -- http://mail.python.org/mailman/listinfo/python-list

Re: When someone from Britain speaks, Americans hear a "British accent"...

2005-06-28 Thread Jarek Zgoda
Grant Edwards napisał(a): >>>>To be blunt, I have no idea what this has to do with Python. >>>Monty Python was mostly Brits? >> >>Wasn't they all Brits? > > Nope. Terry Gilliam was from Minneapolis. Are you sure there are no Brits in Minneap

Re: PIL question: keeping metadata

2005-07-03 Thread Jarek Zgoda
on't want to remove completely the whole EXIF metadata -- modifying one field would be sufficient. -- Jarek Zgoda http://jpa.berlios.de/ -- http://mail.python.org/mailman/listinfo/python-list

Re: PyGTK or wxPython (not a flame war) on Windows

2005-07-22 Thread Jarek Zgoda
wx runs acceptably well, in contrast to PyGTK which works like a charm. PyQt works equally well on both systems. -- Jarek Zgoda http://jpa.berlios.de/ -- http://mail.python.org/mailman/listinfo/python-list

Re: PyGTK or wxPython (not a flame war) on Windows

2005-07-25 Thread Jarek Zgoda
TPJ napisał(a): >>PyQt works equally well on both systems. > > I believe you. The problem is I don't like GPL. So, buy commercial license for Qt and PyQt. -- Jarek Zgoda http://jpa.berlios.de/ -- http://mail.python.org/mailman/listinfo/python-list

Re: On fighting fire with fire...

2005-08-01 Thread Jarek Zgoda
ead this article on online discussions in Hacknot? http://www.hacknot.info/hacknot/action/showEntry?eid=72 One of the most usable, I think. ;) -- Jarek Zgoda http://jpa.berlios.de/ -- http://mail.python.org/mailman/listinfo/python-list

Re: pygettext ?

2005-08-03 Thread Jarek Zgoda
ation Also, check sources of some existing application that has good i18n implementation, Gajim (http://www.gajim.org/) comes first to my mind. -- Jarek Zgoda http://jpa.berlios.de/ -- http://mail.python.org/mailman/listinfo/python-list

Re: setlocale() in a module/extension library

2005-08-23 Thread Jarek Zgoda
doesn't seem to be good, as this may change locale in global application environment (what if user on system with Russian locale sets application locale to de_DE to have german timezone settings?). -- Jarek Zgoda http://jpa.berlios.de/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Python Jabber client?

2005-09-08 Thread Jarek Zgoda
ut is really and true cross platform. -- Jarek Zgoda http://jpa.berlios.de/ -- http://mail.python.org/mailman/listinfo/python-list

Re: PyGTK or wXPython?

2005-09-13 Thread Jarek Zgoda
is working at acceptable level of WTF only on one system (wx on Windows, Qt and GTK on linux) and the most appealing (Qt) has no free version for Windows. -- Jarek Zgoda http://jpa.berlios.de/ -- http://mail.python.org/mailman/listinfo/python-list

Re: PyGTK or wXPython?

2005-09-14 Thread Jarek Zgoda
cies. GTK is "native" on Gnome or Xfce desktops, so programs written with PyGTK/wxPython may have shorten startup times than comparable PyQt applications. On KDE the Qt toolkit is "native", so GTK and wx applications would be much slower, as there will be need to load the whole

Re: Looking for a database. Sugestions?

2005-09-17 Thread Jarek Zgoda
e tale tells that... ;) -- Jarek Zgoda http://jpa.berlios.de/ -- http://mail.python.org/mailman/listinfo/python-list

Re: PyQt documentation

2005-02-11 Thread Jarek Zgoda
those non-anglosaxons who use all these rubbish european characters such as umlauts, cedillas, ogoneks and so on. -- Jarek Zgoda http://jpa.berlios.de/ | http://www.zgodowie.org/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Stable GUI

2005-02-17 Thread Jarek Zgoda
lkit, that allows direct updating of GUI objects from any other thread that the one which created them. Some even do not allow updating from any other thread than main application thread and this may be really painful. -- Jarek Zgoda http://jpa.berlios.de/ | http://www.zgodowie.org/ -- http://mail.

Re: unicode encoding usablilty problem

2005-02-18 Thread Jarek Zgoda
#x27;t work on AS/400, even if all strings used internally are unicode objects, also unicode literals don't work as expected. Of course, this is implementation fault but this makes a headache if you need to write portable code. -- Jarek Zgoda http://jpa.berlios.de/ | http://www.zgodowie.org

Re: unicode encoding usablilty problem

2005-02-18 Thread Jarek Zgoda
there's an implicit conversion between str and unicode. This will help in your code, but there is big pile of modules in stdlib that are not unicode-friendly. From my daily practice come shlex (tokenizer works only with encoded strings) and logging (you cann't specify encoding for FileHandl

Re: Pausing a program - poll/sleep/threads?

2005-02-19 Thread Jarek Zgoda
te the GUI... Someone suggested using events: http://mail.python.org/pipermail/python-list/2002-February/089360.html See http://www.informit.com/articles/printerfriendly.asp?p=30708 -- Jarek Zgoda http://jpa.berlios.de/ | http://www.zgodowie.org/ -- http://mail.python.org/mailman/listinfo/python-list

Re: recommended way of generating HTML from Python

2005-02-20 Thread Jarek Zgoda
ish planned to start process that would lead to inclusion of HTMLTemplate to standard library, but I don't think it's gonna happen in any foreseeable future. -- Jarek Zgoda http://jpa.berlios.de/ | http://www.zgodowie.org/ -- http://mail.python.org/mailman/listinfo/python-list

Re: PyQt Python Bindings for Qt v3.14 Released

2005-02-21 Thread Jarek Zgoda
as I regenerated all classes from *.ui files, but this may be reproductible. -- Jarek Zgoda http://jpa.berlios.de/ | http://www.zgodowie.org/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Problem with minidom and special chars in HTML

2005-02-22 Thread Jarek Zgoda
tion. Even if minidom will fetch this DTD and be able to parse character entities, it may not be able to parse the document. Any idea how I could solve this problem? Don't use minidom or convert HTML4 to XHTML and change declaration of doctype. -- Jarek Zgoda http://jpa.berlios.de/ | http:

Re: Problem with minidom and special chars in HTML

2005-02-23 Thread Jarek Zgoda
-( As Fredrik pointed out, it's minidom that cann't fetch DTD from remote location. Download this DTD file to your local machine (it lies at exactly this URI), try changing PUBLIC identifier to SYSTEM and give local path to this file. -- Jarek Zgoda http://jpa.berlios.de/ | http://www.zgodow

Re: Best IDe

2005-02-25 Thread Jarek Zgoda
Jubri Siji napisał(a): Please i am new to python , whats the best IDE to start with Vim, Emacs or jEdit. -- Jarek Zgoda http://jpa.berlios.de/ | http://www.zgodowie.org/ -- http://mail.python.org/mailman/listinfo/python-list

Re: possible python/linux/gnome issue!!

2005-02-26 Thread Jarek Zgoda
not (http://www.python.org/doc/2.4/whatsnew/node12.html). -- Jarek Zgoda http://jpa.berlios.de/ | http://www.zgodowie.org/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Lib for RSS/Atom parsing

2005-02-27 Thread Jarek Zgoda
Florian Lindner napisał(a): what is a good python library for parsing of RSS and/or Atom feeds. It should be able to handle most of the common protocols. Mark Pilgrim's feedparser. -- Jarek Zgoda http://jpa.berlios.de/ | http://www.zgodowie.org/ -- http://mail.python.org/mailman/listinfo/p

Re: What's the cost of using hundreds of threads?

2005-03-01 Thread Jarek Zgoda
lem very much). I've read somewhere (I cann't recall where, though, was it MSDN?) that Windows is not well suited to run more than 32 threads per process. Most of the code I saw doesn't spawn more threads than a half of this. -- Jarek Zgoda http://jpa.berlios.de/ | http://www.zgod

Re: Python 2.4 removes None data type?

2005-03-09 Thread Jarek Zgoda
icense" for more information. True, False = False, True True False Ugh, today I've found this in some legacy code (yes, there *is* legacy code in Python). And I will not touch this module until such syntax become illegal. -- Jarek Zgoda http://jpa.berlios.de/ | http://www.zgodowie.org/ -- h

Re: wxPython vs. pyQt

2005-03-19 Thread Jarek Zgoda
solid. You can buy commercial licenses for both Qt and PyQt or go free with GPL version. Until Qt4 come later this year, you must use commercial version. I prefer Qt, but now in my case it's a matter of personal taste. -- Jarek Zgoda http://jpa.berlios.de/ | http://www.zgodowie.org/ -- http

Re: Help on creating a HTML by python

2004-11-29 Thread Jarek Zgoda
ating thumbnails and some templating/transformation library for generating HTML. It all ended up with HTMLTemplate (http://freespace.virgin.net/hamish.sanderson/htmltemplate.html), as it is simple and compact. -- Jarek Zgoda http://jpa.berlios.de/ | http://www.zgodowie.org/ -- http://mail.pytho

Re: PyQT Licensing and plugins/scripting

2004-12-03 Thread Jarek Zgoda
of grid) with results, this doesn't cover the case, as PyQt is only used for display purposes -- just as with any other use of PyQt. -- Jarek Zgoda http://jpa.berlios.de/ | http://www.zgodowie.org/ -- http://mail.python.org/mailman/listinfo/python-list

Re: byte code generated under linux ==> bad magic number under windows

2004-12-06 Thread Jarek Zgoda
. -- Jarek Zgoda http://jpa.berlios.de/ | http://www.zgodowie.org/ -- http://mail.python.org/mailman/listinfo/python-list

Re: byte code generated under linux ==> bad magic number under windows

2004-12-06 Thread Jarek Zgoda
e, please, dont call it iSeries Python!) community in the hope to put more life in this port. We have more bugs than anyone else to fight, at last. ;) -- Jarek Zgoda http://jpa.berlios.de/ | http://www.zgodowie.org/ -- http://mail.python.org/mailman/listinfo/python-list

Re: GUIs: wxPython vs. Tkinter (and others)

2004-12-11 Thread Jarek Zgoda
, QThread instances have ability to post events to any arbitrary Qt objects, thus making life a bit easier. Anyway, all of above mentioned toolkits have its own pros and cons and in most of cases choice is a matter of personal taste. -- Jarek Zgoda http://jpa.berlios.de/ | http://www.z

Re: Why are tuples immutable?

2004-12-16 Thread Jarek Zgoda
ng my time. Don't be sorry, reading your posts was a real pleasure. No, really. -- Jarek Zgoda http://jpa.berlios.de/ | http://www.zgodowie.org/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Accessing DB2 with Python

2004-12-16 Thread Jarek Zgoda
t a DB2/400. To access DB2/400 you have to use ClientAccess ODBC (from Windows or *nix platform) driver or iSeries port of Python (from AS/400). -- Jarek Zgoda http://jpa.berlios.de/ | http://www.zgodowie.org/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Python IDE

2004-12-14 Thread Jarek Zgoda
ll" (Eric3 "has more", though). -- Jarek Zgoda http://jpa.berlios.de/ | http://www.zgodowie.org/ -- http://mail.python.org/mailman/listinfo/python-list

Re: lies about OOP

2004-12-14 Thread Jarek Zgoda
Aquinatis, specially their writings on "natural sciences" and theory of species. -- Jarek Zgoda http://jpa.berlios.de/ | http://www.zgodowie.org/ -- http://mail.python.org/mailman/listinfo/python-list

Re: newbie: Datetime module for Python 2.2.x

2004-12-16 Thread Jarek Zgoda
idea how to compile just that module. And installing it, if I ever get that far. Most of DB-API modules use mx.DateTime module and for Python 2.2 this one is mos widely used. Go for it to http://www.egenix.com/. -- Jarek Zgoda http://jpa.berlios.de/ | http://www.zgodowie.org/ -- http://mail.python.

Re: Boo who? (was Re: newbie question)

2004-12-21 Thread Jarek Zgoda
the money, 9 AM - 5 PM. And specific problems they encounter are driving Python development (in most cases). -- Jarek Zgoda http://jpa.berlios.de/ | http://www.zgodowie.org/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Best GUI for small-scale accounting app?

2004-12-21 Thread Jarek Zgoda
nnecessary questions on licensing, pricing et caetera. wxPython has very nice GUI builder (wxGlade), it is not about as complete as Qt Designer, but speeds-up development significantly. -- Jarek Zgoda http://jpa.berlios.de/ | http://www.zgodowie.org/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Python and Delphi

2004-12-24 Thread Jarek Zgoda
this just an interesting but insignificant anomaly? I tend to accept this as coincidence, not an anomaly[1]. [1] If we call something "anomaly", we should also define "norm" for purpose of comparison. -- Jarek Zgoda http://jpa.berlios.de/ | http://www.zgodowie.org/ -- http:

Re: Tkinter vs wxPython

2004-12-28 Thread Jarek Zgoda
its look better, but this is a matter of personal taste, for software developer clean, stable API and suitable widgets are of much higher value. -- Jarek Zgoda http://jpa.berlios.de/ | http://www.zgodowie.org/ -- http://mail.python.org/mailman/listinfo/python-list

Re: PyQT installation

2004-12-30 Thread Jarek Zgoda
Nanoscalesoft wrote: does that mean PyQT is not forward What a bad thing is this... Whoa, how did you get it? You can buy commercial licenses and be as current as we are on Linux with GPL versions of Qt+PyQt. Oh, and QScintilla and Eric3! -- Jarek Zgoda http://jpa.berlios.de/ | http

Re: What's the best GUI toolkit in Python,Tkinter,wxPython,QT,GTK?

2005-03-27 Thread Jarek Zgoda
Tom napisał(a): 1) Portable to Windows, Unix-like platforms, and the Macintosh; 2) Powerful, GUI is very beautiful ; 3) Efficiency of development is high; What's the best, Tkinter, wxPython, QT, GTK or other? It depends on your personal taste. -- Jarek Zgoda http://jpa.berlios.de/ |

Re: Connecting to a SQL Server

2005-03-28 Thread Jarek Zgoda
using ADO to connect to MSSQL. You can interface ADO from Python with adodbapi. This is simplest, I don't pretend it's also best. -- Jarek Zgoda http://jpa.berlios.de/ | http://www.zgodowie.org/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Connecting to a SQL Server

2005-03-29 Thread Jarek Zgoda
ensure that client library uses TCP. Anyway, SSH is just remote shell, so it make no sense for me when it comes to retrieving data from database. -- Jarek Zgoda http://jpa.berlios.de/ | http://www.zgodowie.org/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Distributing Python Apps and MySQL

2005-04-07 Thread Jarek Zgoda
ks, providing they can be scripted. See http://www.jrsoftware.org/isinfo.php and read documentation, it's definitely worth this. -- Jarek Zgoda http://jpa.berlios.de/ | http://www.zgodowie.org/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Python's use in RAD

2005-04-16 Thread Jarek Zgoda
c & strong typing, comprehensive standard library and clean syntax makes Python ideal for RAD event on such obscure platforms as i5 (formerly known as iSeries, formerly known as AS/400). For me, at least. -- Jarek Zgoda http://jpa.berlios.de/ | http://www.zgodowie.org/ -- http://mail.pyth

Re: Python 2.4 killing commercial Windows Python development ?

2005-04-18 Thread Jarek Zgoda
wants to be FHS-compliant. Teoretically, one may try to install to /opt/appname hierarchy, but many distributions simply refuse such packages (as it was the case with my JPA in PLD Linux). -- Jarek Zgoda http://jpa.berlios.de/ | http://www.zgodowie.org/ -- http://mail.python.org/mailman

Re: writing IM bots

2005-12-13 Thread Jarek Zgoda
for > each one. Don't use this library, avoid it if you can. It is not actively maintained and has numerous bugs. Guys from Gajim team can tell you that. Patches are not even reviewed. Use pyxmpp (http://pyxmpp.jabberstudio.org/) -- author is JSF member and knows XMPP like noone. -- Jar

Re: writing IM bots

2005-12-14 Thread Jarek Zgoda
to ask if you get into any problems. -- Jarek Zgoda http://jpa.berlios.de/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Cp1251-symbols in SOAP request

2005-12-17 Thread Jarek Zgoda
Pelmen napisał(a): > as i understood, better way is base64 encoding on my side, and decoding > on server side? No, just encode the texts in what encoding the other side expects. If this should be CP1251, not decoding would be enough. -- Jarek Zgoda http://jpa.berlios.de/ --

Re: Cp1251-symbols in SOAP request

2005-12-18 Thread Jarek Zgoda
Pelmen napisał(a): > but socket will raise an exception if it'll be in cp1251 I am not a socket programming expert, but I didn't notice anything strange when sending utf-8 or latin2 texts over sockets. -- Jarek Zgoda http://jpa.berlios.de/ -- http://mail.python.org/mailman/li

Re: Beautiful Python

2005-12-26 Thread Jarek Zgoda
s been met), as importing has some impact on program execution (importing executes code in imported module). This does not resemble Java imports (I don't know Perl). -- Jarek Zgoda http://jpa.berlios.de/ -- http://mail.python.org/mailman/listinfo/python-list

Re: rss parsing: sax or dom

2005-12-29 Thread Jarek Zgoda
Sakcee napisał(a): > I am trying to parse rss2 feeds in python, should I use sax and define > handler and then functions for each tag or should I go for dom > approach. You should use feedparser. -- Jarek Zgoda http://jpa.berlios.de/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Any wing2.0 users here?

2006-01-02 Thread Jarek Zgoda
ppy to write Python code without debugger. Strange, isn't? -- Jarek Zgoda http://jpa.berlios.de/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Any wing2.0 users here?

2006-01-02 Thread Jarek Zgoda
ev, only because they have nice project management features (also available at no cost in jEdit and Kate). I think, most of commercially available IDE's have something like that. -- Jarek Zgoda http://jpa.berlios.de/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Work with Windows workgroups under Python?

2006-01-02 Thread Jarek Zgoda
e Pythonic way of doing this? Or any > other less Pythonic way? You can get these things from ActiveDirectory. Google for that, there is even wrapper module for querying AD server. -- Jarek Zgoda http://jpa.berlios.de/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Firefox bug in webbrowser module on Ubuntu?!

2006-01-22 Thread Jarek Zgoda
lity to select preferred way to "open" media files, so even running some exotic desktop (Fluxbox and FVWM are very popular choices here) they can open urls from my application using either kfmclient, gnome-open or custom defined command. -- Jarek Zgoda http://jpa.berlios.de/ -- http:

Re: No need to close file?

2006-07-18 Thread Jarek Zgoda
T napisał(a): > Do I need to close the file in this case? Why or why not? > > for line in file('foo', 'r'): > print line No, if you only read from the file. But anyway, closing file object is considered good practice in many documents I found, no matter what

Re: New SourceForge project: Diet Python!!!

2006-07-18 Thread Jarek Zgoda
hink curses are essential? I'd rip out them too, they have no use on Windows. -- Jarek Zgoda http://jpa.berlios.de/ -- http://mail.python.org/mailman/listinfo/python-list

Re: cStringIO.StringIO has no write method?

2006-07-25 Thread Jarek Zgoda
, '__delattr__', '__doc__', '__getattribute__', >> '__hash__', '__init__', '__iter__', '__new__', '__reduce__', >> '__reduce_ex__', '__repr__', '__setattr__', '__str__', 'close', >> 'closed', 'flush', 'getvalue', 'isatty', 'next', 'read', 'readline', >> 'readlines', 'reset', 'seek', 'tell', 'truncate'] > > Is it possible to have a direct access in-memory file that can be > written and read too? Read it again. You get readable-and-writable object by *not* assigning initial value in constructor. -- Jarek Zgoda http://jpa.berlios.de/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Programming newbie coming from Ruby: a few Python questions

2006-08-02 Thread Jarek Zgoda
then we'll piss on flowers in their gardens. We'll eat their cats and burn their yearbooks of "IEEE Proceedings". The revenge is tasting sweet. At the end of day we will be these who count bodies. ;) -- Jarek Zgoda http://jpa.berlios.de/ -- http://mail.python.org/mailman/listinfo/python-list

Re: VisualStudio2005 supported in distutils

2006-08-02 Thread Jarek Zgoda
h depends on obscure details > of the API that the extension uses. Sure, but what if I succesfully compile Python with VS 2005? Hier ist der Hund begraben, distutils cann't handle this compiler so I'll be unable to compile any extension for my home-baken Python. -- Jarek Zgoda http://jpa.berlios.de/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Can Your Programming Language Do This? Joel on functional programming and briefly on anonymous functions!

2006-08-03 Thread Jarek Zgoda
t you can program in procedural or functional way and get your work done. I always had a fun seeing these "all-java-kids" fighting CRTJVAPGM or RUNJVAPGM on OS/400. ;) -- Jarek Zgoda http://jpa.berlios.de/ -- http://mail.python.org/mailman/listinfo/python-list

Re: OS independent files

2006-08-03 Thread Jarek Zgoda
there is a directory for user's profile that is treated as $HOME but isn't (%USERPROFILE%), something that looks like $HOME, bot in fact is not (%HOMEDRIVE% + %HOMEPATH%) and many other mess. Microsoft suggests using %USERPROFILE%, but they do not specify desired behaviour, when %USERPROF

Re: OS independent files

2006-08-03 Thread Jarek Zgoda
l for me. On Windows, this is consistent between releases (i.e. you'll end up elsewhere on W2k Pro, W2k Server, Win XP and W2003). -- Jarek Zgoda http://jpa.berlios.de/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Can Your Programming Language Do This? Joel on functional programming and briefly on anonymous functions!

2006-08-03 Thread Jarek Zgoda
riented, but this is writer's right to grab readers attention. This "all-java-kids" was a remark to his statement from some earlier article (mentioned also in this one), where he writes on people being taught only java on programming courses. -- Jarek Zgoda http://jpa.berlios.de/ -- http://mail.python.org/mailman/listinfo/python-list

Re: VisualStudio2005 supported in distutils

2006-08-07 Thread Jarek Zgoda
"Visual Studio Command Prompt" (or whatever > its name), and make sure MSSdk and DISTUTILS_USE_SDK are both set. > Then distutils will use the compiler from PATH, rather than the > pre-configured one. Thanks, didn't know that. -- Jarek Zgoda http://jpa.berlios.de/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Which KDE IDE for Python?

2006-08-14 Thread Jarek Zgoda
t, it's just advanced editor. There are some good integrated environments focused on Python development (Wing IDE, Komodo, PyDev for Eclipse), but none of them is integrated with KDE, AFAIK. As a side note, Eric3 has no KDE integration because it's pure PyQt application. -- Jarek Zgoda http://jpa.berlios.de/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Which KDE IDE for Python?

2006-08-14 Thread Jarek Zgoda
to my understanding of integration with desktop environment. ;) Which doesn't change situation, that currently there's no KDE-based (nor even fully integrated with KDE) IDE for Python. -- Jarek Zgoda http://jpa.berlios.de/ -- http://mail.python.org/mailman/listinfo/python-list

  1   2   3   >