Re: msvcr71.dll necessary? - Re: Which compiler will Python 2.5 / Windows (Intel) be built with?

2006-06-16 Thread Martin v. Löwis
tls and non-default crtl's)? Apparently not many. I repeatedly asked for contribution of a specification how pythonxy.dll should be modularized, and never received one. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: msvcr71.dll necessary? - Re: Which compiler will Python 2.5 / Windows (Intel) be built with?

2006-06-17 Thread Martin v. Löwis
of-module-usage in any meaningful way for existing modules, let alone for modules that are contributed and to be included only in the upcoming release. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: Which compiler will Python 2.5 / Windows (Intel) be built with?

2006-06-17 Thread Martin v. Löwis
he confirmation; that's good enough for me. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: Which compiler will Python 2.5 / Windows (Intel) be built with?

2006-06-18 Thread Martin v. Löwis
e with gcc. That doesn't preclude to use gcc for Python 2.x compilation, as long as a msvcrt is selected that can work together with some version of MFC and the MS C++ RTL. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: documentation for the change of Python 2.5

2006-06-28 Thread Martin v. Löwis
bussiere wrote: > I've read thsi documentation n: > http://docs.python.org/dev/whatsnew/whatsnew25.html > is there a way to have it in a more printable form ? Yes. Download http://www.python.org/ftp/python/doc/2.5b1/pdf-a4-2.5b1.tar.bz2 and extract whatsnew25.pdf. Regards, M

Re: handling unicode data

2006-06-28 Thread Martin v. Löwis
it might be best to switch to a different module for SQL Server access. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: String Question

2006-06-28 Thread Martin v. Löwis
ou could just as well use the result string (i.e. '\x00\x14\x85\xe5U\x03') directly. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: Python 2.4 tutorial

2006-06-29 Thread Martin P. Hellwig
subramanian2003 wrote: > Hello All, > >From where I can get the detailed python 2.4 tutorial(other than > python.org). > > Thanks, > Subramanian. > > If you're willing to pay for it you can read many python books online at: http://safari.oreilly.com Although I like a paper version more (a

Re: handling unicode data

2006-06-29 Thread Martin v. Löwis
llowing line? > term = unicode(row[1], "mbcs") Correct. > What do you mean by "ANSI-to-OEM conversion is enabled"? (sorry, I'm > quite a newbie to python) It's an SQL server thing more than a Python thing. See AutoAnsiToOem in http://support.microsoft.com/de

Re: Interprocess communication on multi-user machine

2006-06-29 Thread Martin v. Löwis
ase this isn't clear yet: the cookie should then be used for authentication. Only trusted clients would know the right cookie. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: handling unicode data

2006-06-30 Thread Martin v. Löwis
already wrong. Are you sure the value in question is really "França" in the database? Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: handling unicode data

2006-07-04 Thread Martin v. Löwis
he precise sequence of statements that you used to set the "row" variable? Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: handling unicode data

2006-07-05 Thread Martin v. Löwis
ternatively, you have to run pymssql in a debugger to find out yourself. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: urllib2 on Windows Vista

2006-07-10 Thread Martin v. Löwis
down into socket calls (reading the source of httplib.connect, and executing it manually in single-stepping), so that you know what the precise arguments passed to getaddrinfo are. FWIW, 11001 is WSAHOST_NOT_FOUND, which suggests that you have DNS configured incorrectly. Regards, Martin -- http:/

Re: unicode "table of character" implementation in python

2006-08-28 Thread Martin v. Löwis
d both in Asia and elsewhere, e.g. Latin and Cyrillic. Arabic probably doesn't belong in this list, either, being used both in Asia and elsewhere as the script of the official language. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: libcurses.so & installing Python 2.4.3

2006-08-28 Thread Martin v. Löwis
d to port the curses module to Solaris 9 (if you really need it). I believe in the subversion trunk of Python (and in Python 2.5), this problem is fixed. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: M$ windows python libs installed in arbitrary directories forcustomized python distributions

2006-08-28 Thread Martin v. Löwis
you should write out the name of the MSI creator, please say "Martin's installer" :-). Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: how to get the os file icon for a given content-type?

2006-08-28 Thread Martin v. Löwis
rent free desktop > environments (KDE, GNOME, etc.) Just because nobody said it so far (although it's probably obvious to everybody): I doubt neoedmund is talking about free desktop environments... Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: unicode "table of character" implementation in python

2006-09-09 Thread Martin v. Löwis
Tim Roberts schrieb: >> 0530..058F; Armenian >> 0590..05FF; Hebrew >> ... > > This is a fabulously useful list, Martin. Did you get this from a web > page? Can you tell me where? It's part of the Unicode Consortium's database (UCD, Unicode Character Dat

Re: ANN: GMPY binaries for Windows 2.5

2006-09-09 Thread Martin v. Löwis
eased in May '88, but then the next release was Windows 3.0. The new feature in Windows 2.1 was support for the extended address space of 80286 and 80386 processors. I don't think there was a Python port to Windows 2.x. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: os.name under Win32

2006-09-09 Thread Martin v. Löwis
t it right now, but I would expect that Cygwin Python binaries on Win32 have os.name == "posix". Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: How to build extensions on Windows?

2006-09-09 Thread Martin v. Löwis
completely lost, as there appears to be no authoritative, up-to-date > description on how to make this work. If all else fails, buy a copy of Visual Studio 2003. They are available fairly cheap at Ebay. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: Can I make unicode in a repr() print readably?

2006-09-10 Thread Martin v. Löwis
t optimal; contributions are welcome. It would probably be easiest to drop the guarantee that PyObject_Str returns a true string, or use _PyObject_Str (which does not make this guarantee) in PyObject_Print. One would have to think what the effect on backwards compatibility is of such a change. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: OT: What encoding is this?

2006-09-10 Thread Martin v. Löwis
Neil Hodgson schrieb: >> http://www.loppen.dk/side.php?navn=getin > > More pages without declarations are produced on Windows so > I'd guess that its Windows-1252. To tell, look for prices in Euros ("€") > on the site. Ah, but they still use krones in Denm

Re: Can I make unicode in a repr() print readably?

2006-09-11 Thread Martin v. Löwis
tual implementation of whatever approach gets chosen should be easy. And there should be documentation changes, of course. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: How to write UNIX daemons in Python?

2006-09-13 Thread Martin v. Löwis
probably a good idea to look at source packages to get started quickly. FWIW, Debian does *not* put daemon programs in /usr/bin. Debian follows the FHS, which specifies that system binaries go into /usr/sbin. /usr/bin is limited to user programs. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: os.name under Win32

2006-09-13 Thread Martin v. Löwis
e using it may not work on older installations (unless you ship the platform module with your application). > Is this not supposed to work better than sys.platform? > Indeed I'm pretty worried about having "win64" returned on further os > like Windows Vista and having our te

Re: pickle and instancemethod objects

2006-09-13 Thread Martin v. Löwis
npickling x, you'ld get x.(B.f), not x.(A.f) with your approach. Not sure it matters much. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: How to build extensions on Windows?

2006-09-13 Thread Martin v. Löwis
John Machin schrieb: > Any support for the radical notion of the error message giving the full > path of the file that it's complaining about? If so, I'll lob in an > enhancement request in the morning ... A patch would be appreciated much more so. Regards, Martin -- htt

Re: How to build extensions on Windows?

2006-09-13 Thread Martin v. Löwis
8, but it looks like there are > major benefits to switching... You may or may not know that it is futile arguing about compiler switching for released versions of Python, i.e. 2.3, 2.4, and 2.5. Whether or not it might be a good idea: it can't be done, for compatibility with prior

Re: How to build extensions on Windows?

2006-09-13 Thread Martin v. Löwis
John Machin schrieb: > Hi Martin, I do hope you don't regret opening Pandora's box :-) > > Does the following look about right? Technically, yes. I wonder whether it will generate unreadable error messages, though (one would have to try). > I was somewhat bemused by the

Re: How to build extensions on Windows?

2006-09-14 Thread Martin v. Löwis
mes that there is a VS 2007 release sufficiently before Python 2.6. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: high level, fast XML package for Python?

2006-09-17 Thread Martin v. Löwis
interface, xml.sax, which can parse files incrementally. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: Hardlinks on NTFS

2006-09-17 Thread Martin v. Löwis
ld be necessary to not break Windows 9x (which does not have CreateHardLink); for Python 2.6, this requirement could be dropped. Contributions are welcome. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: Installing Python on a 64-Bit OS

2006-09-19 Thread Martin v. Löwis
egards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: high level, fast XML package for Python?

2006-09-20 Thread Martin v. Löwis
-memory (nobody had mentioned it so far). Whether it is high-level and fast is in the eyes of the beholder (as they are relative, rather than absolute properties). Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: byte count unicode string

2006-09-20 Thread Martin v. Löwis
Since this operation is not that frequent, it was chosen not to put the burden of implementing the algorithm twice (actually, doing so was never even considered). HTH, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: Python 2.5 WinXP AMD64

2006-09-21 Thread Martin v. Löwis
ulation mode for 32-bit binaries on AMD64 and Itanium, so you can run the 32-bit Python on Win64. On Itanium, this emulation has a significant performance loss; on AMD64, the emulation is quite efficient since the processor directly supports the emulation mode (and better so than Itanium 1/2 did). R

Re: distutils on Windows with VC++ 8

2006-09-21 Thread Martin v. Löwis
s". The options are: - get a copy of VS 2003 on Ebay - use cygwin/mingw (should work for C, might not work for C++ if you use MFC or some other MS-compiled library) - find the VS 2003 Toolkit; Microsoft took it off the net, but Google may still be able to help Regards, Martin -- http:

Re: Building things with setup.py

2006-09-21 Thread Martin v. Löwis
ce you made libpython2.5.a a static library, you link an entire Python interpreter into each and every extension module. This should not be done. What happens if you omit these flags? Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: Building things with setup.py

2006-09-22 Thread Martin v. Löwis
it *should* work out of the box. If it doesn't, it means there is an error somewhere. If you don't want to help finding the error, that's fine, too (but please say so, because that will constrain the solution space). Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: distutils on Windows with VC++ 8

2006-09-22 Thread Martin v. Löwis
ome examples and a helpfile (no > compiler). I don't think so. It was (as it's no longer officially available) a command-line only version of the compiler. In any case, it is (or was) different from the .NET SDK. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: no-installation version of python

2006-09-22 Thread Martin v. Löwis
[EMAIL PROTECTED] schrieb: > Is there a stand-alone version of python out there that I can package > with my scripts so that I don't have to bother with something like > py2exe? Yes, google for "movable Python". Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: Building things with setup.py

2006-09-22 Thread Martin v. Löwis
supported for g77, I don't know). This should at least make the complaints about missing symbols go away; you should then see whether the resulting module can be imported in Python. If that solves the problem, the question is why the -shared option isn't passed automatically; your setting

Re: distutils on Windows with VC++ 8

2006-09-22 Thread Martin v. Löwis
Rob Williscroft schrieb: > Having read Noel Byron's reply also, I'm tempted to say there is > some confusion here between a Visual *Studio* toolkit (VS 2003) > and a Visual *C++* toolkit (VC 2003). Ah, that could well be. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: Python 2.5 Installation and Tkinter

2006-09-22 Thread Martin v. Löwis
oftware work out of the box. If you have never used crle before, understand that great care is necessary in using it. See the EXAMPLES in crle(8). You can either use -u -l to add a directory at the end of the search path, or just -l to overwrite the search path; make sure the original search path

Re: Building things with setup.py

2006-09-23 Thread Martin v. Löwis
m somebody, and/or report a bug. Always strive for the simplest possible setup. If you find that you have to customize something, and the instructions did not tell you to do so, question this customization. It is likely wrong or unnecessary. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: anybody using python 2.5 that raises error while importing?

2006-09-23 Thread Martin v. Löwis
.pyd now. That rule had not been there for YEARS. Of course, had he renamed the file, it then would have complained that he's running a 2.4 extension module in 2.5; *that* rule had been there for YEARS. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: Problems with Python 2.5 installer.

2006-09-25 Thread Martin v. Löwis
paw schrieb: > Google turned up nothing useful that I could find, is anyone else > seeing this problem? I haven't heard of it before. Please run the file with msiexec /i python-2.5.msi /l*v python.log and post the resulting python.log in a bug report at sf.net/projects/python. Rega

Re: installation of python-dev

2006-09-25 Thread Martin v. Löwis
ce (and thus don't need developer tools), since your Linux distributions has all your software precompiled. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: Python extensions on Win32

2006-09-25 Thread Martin v. Löwis
5. > 4) How much alcohol will be required to forget all this when I'm done? You shouldn't forget it. Instead, you should write your experience into "the Web", so that others have a flatter learning curve. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: Python 2.5 Installation and Tkinter

2006-09-27 Thread Martin v. Löwis
you sure LD_RUN_PATH is exported? I would do "file /usr/local/lib/libtk8.4.so", to see whether it's a "good" file. Then I would invoke the linker line manually (so that _tkinter.so doesn't get removed), and then do ldd -s build/lib.solaris-2.10-i86pc-2.5/_tkinter.so to see how it tries to resolve shared libraries. HTH, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: Why don't optional mutable objects show up in vars(func)?

2006-09-27 Thread Martin v. Löwis
', '__new__', '__reduce__', '__reduce_ex__', '__repr__', > '__setattr__', '__str__', 'func_closure', 'func_code', 'func_defaults', > 'func_dict', 'func_doc', 'func_globals', 'func_name'] > > I'm using Python 2.4.3, if that is at all relevant. Thanks in advance > for any help. Take a look at func_defaults. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: Python and Win95B

2006-09-28 Thread Martin v. Löwis
hich does? This specific problem shouldn't exist in Python 2.4, and I recall that I tested some 2.4 release on Windows 95. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: Problems wth os.stat().st_mtime on Mac

2006-09-29 Thread Martin v. Löwis
#x27;t theoretical: when I introduced float into st_mtime, I first made the tuple be float also, and it broke several applications within a week (even though that code was just in the CVS trunk, and not released yet). Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: MySQLdb for Python 2.5

2006-09-30 Thread Martin v. Löwis
Harold Trammel schrieb: > Does anyone know the status of a version of MySQLdb that will work with > Python 2.5? AFAICT, MySQLdb 1.2.1 builds and works just fine. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: commands.getstatusoutput result is not command line exit value!!!

2006-10-02 Thread Martin v. Löwis
ion before > I can understand. You are apparently not a documentation reader, as well. Nobody owes you an explanation. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: Python to use a non open source bug tracker?

2006-10-03 Thread Martin v. Löwis
sco. The same fiasco is not possible for the bug tracker. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: Python to use a non open source bug tracker?

2006-10-03 Thread Martin v. Löwis
hope this > recommendation from the "PSF infrastructure committee" is rejected. That is very very unlikely. Who would reject it, and why? Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: Python to use a non open source bug tracker?

2006-10-03 Thread Martin v. Löwis
ation for the period of testing. In addition, people expressed deep dislike of Bugzilla in the early discussions. Some people just hate it, maybe more so than the SF tracker. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: Python to use a non open source bug tracker?

2006-10-03 Thread Martin v. Löwis
ce version *and* hosted that ourselves. You only have a 100% guarantee that you get the data out of the tracker if the data live on your own disks (and you have good backup of these disks). Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: Python to use a non open source bug tracker?

2006-10-03 Thread Martin v. Löwis
Paul Rubin schrieb: > "Martin v. Löwis" <[EMAIL PROTECTED]> writes: >> It is a fork of an old version. Existence of this version hasn't helped >> a bit when we tried to get our data out of sf.net. > > Yeah, I'd guessed it might be a fork. Is

Re: os.lisdir, gets unicode, returns unicode... USUALLY?!?!?

2006-11-17 Thread Martin v. Löwis
ncompatible change, no? Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: os.lisdir, gets unicode, returns unicode... USUALLY?!?!?

2006-11-17 Thread Martin v. Löwis
it would solve most of the > use-cases imho (at least my use-cases). Of course, it's possible to implement this on top of the existing listdir operation. def failing_listdir(dirname, mode): result = os.listdir(dirname) if mode != 'strict': return result for r in result:

Re: os.lisdir, gets unicode, returns unicode... USUALLY?!?!?

2006-11-19 Thread Martin v. Löwis
using the private-use-area of Unicode to represent bytes that don't decode correctly. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: os.lisdir, gets unicode, returns unicode... USUALLY?!?!?

2006-11-19 Thread Martin v. Löwis
sting idea.. > > and what happens with such texts, when they are encoded into let's say > utf-8? are the in-private-use-area characters ignored? UTF-8 supports encoding of all Unicode characters, including the PUA blocks. py> u"\ue020".encode("utf-8") '\xee\x80\xa0' Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: who is maintainer of xml-rpc module?

2006-11-26 Thread Martin v. Löwis
her case, you can then send an announcement to comp.lang.python.announce that you made them available. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: --enable-shared, how do i set the rpath?

2006-11-27 Thread Martin v. Löwis
7;m suspecting ones that need to pull in .so's. You should inspect sys.path to find out whether it ought to find those modules. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: why would anyone use python when java is there?

2006-11-28 Thread Martin P. Hellwig
Aahz wrote: > In article <[EMAIL PROTECTED]>, > gavino <[EMAIL PROTECTED]> wrote: >> wtf > > Because programming in Python makes me feel happy and contented, while > programming in Java just makes me want to scream in agony. Or in my case, Python made me code, Java made me brew java. ymmv -- mp

Re: Python 2.4 does not marshal infinity floating point properly under Win32

2006-11-30 Thread Martin v. Löwis
e Python offer stronger guarantees in 2.5 cannot be ported back to 2.4, since it would break the marshal format of that release. Finally, it's not very likely that *any* additional 2.4.x releases are made at all; only 2.5.x is still actively maintained. Regards, Martin -- http://mail.python

Re: Python25.zip

2006-12-02 Thread Martin v. Löwis
.py to put a zip file on sys.path, instead, the distributed interpreter must already look for a file even though this file will usually not be present. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: python 2.5 install from source problem

2006-12-02 Thread Martin v. Löwis
;libpython2.5.a' file ... > > Do I do something wrong? I'd say it is a bug in vtk that it requires libpython2.5.so.*. However, to work-around, you can configure Python with --enable-shared. Make sure to set LD_LIBRARY_PATH or LD_RUN_PATH appropriately. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: Python 2.5 bindings for Subversion 1.4.2 on Win32 binary

2006-12-02 Thread Martin v. Löwis
free software. Very few people will agree that the future of Python depends on provision of a subversion module for Python 2.5 on Win32, anyway. If you need this, you would work on making it happen yourself, or you should hire somebody to make it for you if you can't do it yourself.

Re: os.mkdir and mode

2006-12-02 Thread Martin v. Löwis
en apply chmod. Looking at the source, I see that it invokes umask(0) not to clear the umask, but to find out what the old value was. It then invokes chmod to set any "special" bits (s, t) that might be specified, as mkdir(2) isn't required (by POSIX spec) to honor them. Regards, Mart

Re: Deleting from a list while iterating

2006-12-03 Thread Martin v. Löwis
rite del items[i+removed] here, as .remove(x) will search the list again, looking for the first value to remove. If your condition for removal happens to leave some items equal to x in the list, it would remove the wrong item. Because the numbering changes while the iteration is in progress, you have to count the number of removed items also. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: Deleting from a list while iterating

2006-12-03 Thread Martin v. Löwis
and then does slice assignment should behave better-than-quadratic (in recent versions, it should give you linear performance). Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: Why not just show the out-of-range index?

2006-12-04 Thread Martin v. Löwis
etween 30min and 1hour to get a fix implemented (for the list case alone, not counting all the other sequences). Even though I could fix it, I don't feel tempted to do so: I never had this problem; in most cases of IndexError, it was very clear what the problem was so I didn't need

Re: Why not just show the out-of-range index?

2006-12-04 Thread Martin v. Löwis
time checking > my patch as they would writing it themselves anyway. No: if you already have done the testing, and provided test cases to test it, this is fairly easy to review. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: Why not just show the out-of-range index?

2006-12-04 Thread Martin v. Löwis
y calls you silly? Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: Why not just show the out-of-range index?

2006-12-04 Thread Martin v. Löwis
not silly) to suggest that if the source code weren't available at all. It is *not* silly to suggest that people should make efforts to contribute to open source software. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: No latin9 in Python?

2006-12-06 Thread Martin v. Löwis
ase see: <http://www.iana.org/assignments/charset-reg/ISO-8859-15> Alias: ISO_8859-15 Alias: Latin-9 so the "official" alias is "Latin-9", not "latin9". You may want to ask the submitter of that entry why this inconsistency was introduced. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: subversion revision number string within an application packaged with distutils?

2006-12-07 Thread Martin v. Löwis
svnversion tool. On Windows, you can alternatively also use the subwcrev.exe tool that comes with Tortoise. If you don't want to invoke an external tool, you could also retrieve the same information with the subversion Python bindings. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: sys.stdin.encoding

2006-12-11 Thread Martin v. Löwis
, where the standard machinery to determine the terminal's encoding fail. I have no idea yet how to fix this. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: sys.stdin.encoding

2006-12-11 Thread Martin v. Löwis
though. Plus, in the Eclipse case, we can't know for sure that stdout really goes to the terminal - as it is just a pipe file descriptor (Java is not capable of managing a full pseudo-terminal). Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: Tarfile .bz2

2006-12-11 Thread Martin v. Löwis
the archive that isn't > there by default. I believe it's an issue of the file format (tar.bz2). You don't compress individual files, but you compress the entire tar file. So it is not meaningful to talk about the compressed size of an individual archive member - they are all unco

Re: Tarfile .bz2

2006-12-11 Thread Martin v. Löwis
thm inside PNG is zlib (which is the same as the gzip algorithm). Perhaps you should read the comp.compression FAQ: http://www.faqs.org/faqs/compression-faq/ Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: merits of Lisp vs Python

2006-12-14 Thread Martin Rydstr|m
Ken Tilton <[EMAIL PROTECTED]> writes: > outrage over my condescension and arrogance.] Your condescension and arrogance are fairly well established, and no longer cause much outrage, except in extraordinary circumstances. ',mr -- rydis (Martin Rydström) @CD.Chalmers.SE

Re: Obtaining SSL certificate info from SSL object - proposal

2006-12-14 Thread Martin v. Löwis
pe was IA5String, PrintableString, UTF8String), and I thought your complaint was that the current interfaces lose information, so you should not add an interface that makes the same mistake it tries to overcome. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: No latin9 in Python?

2006-12-15 Thread Martin v. Löwis
#x27;m sure that somebody will provide an example of a software that still uses it, but I likely won't find that single example convincing). Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: inquiry about installing Python 2.5

2006-12-16 Thread Martin v. Löwis
workstation? Yes; you can run both versions just fine. The only question is which of these gets the .py association: it is the one that gets installed last. You can chose not to update the .py association when installing 2.5, then .py remains associated with 2.4. Regards, Martin -- http://mai

Re: Smarter way to do this? Unicode + stdin, stdout

2006-12-17 Thread Martin v. Löwis
is? Python attempts to determine the encoding of your terminal (if sys.stdout is a terminal), and set sys.stdout.encoding accordingly. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: New os.path.exists() behavior - bug or feature?

2006-12-18 Thread Martin v. Löwis
that leads to this change in observable behavior. If you think this is a bug, it would be best if you could also investigate a patch. > I also noticed that the Tix binaries are no longer present in 2.5, does > anyone know if it is > planned to remove them pemanently? That was a mistake, I

Re: urllib.unquote and unicode

2006-12-19 Thread Martin v. Löwis
HEX HEX" encoding. Now, RFC 2396 already says that URIs are sequences of characters, not sequences of octets, yet RFC 2616 fails to recognize that issue and refuses to specify a character set for its scheme (which RFC 2396 says that it could). The conventional wisdom is that the choice of URI encoding for HTTP is a server-side decision; for that reason, IRIs were introduced. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

your opinion about psycopg vs pygresql

2006-12-20 Thread Martin P. Hellwig
Hi all, I'm playing a bit with PostgreSQL, in which I've set me the target to create a python script which with user input creates a new user role and a database with that owner (connecting to template1 since I know that at least that db exists). Ok so I installed PostGreSQL and pygresql since

Re: perl better than python for users with disabilities?

2006-12-20 Thread Martin P. Hellwig
Dan Jacobson wrote: > Can I feel even better about using perl vs. python, as apparently > python's dependence of formatting, indentation, etc. vs. perl's > "(){};" etc. makes writing python programs perhaps very device > dependent. Whereas perl can be written on a tiny tiny screen, and can > withst

Re: Support of IPv6 extension headers

2006-12-20 Thread Martin v. Löwis
cychong schrieb: > BTW, is there any way to send the packet with the IPV6 extension header > w/o using sendmsg? That depends on your operating system. Find out whether your operating system supports that; if it does, it is easy to tell whether that is exposed in Python or not. Regards,

Re: urllib.unquote and unicode

2006-12-21 Thread Martin v. Löwis
found HTML only. If somebody writes a user agent written in Python, they are certainly free to follow this recommendation - but I think this is a case where Python should refuse the temptation to guess. If somebody implemented IRIs, that would be an entirely different matter. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: urllib.unquote and unicode

2006-12-22 Thread Martin v. Löwis
> You don't seem to have realised yet, but my objection to the behaviour of > urllib.unquote is precisely that it does guess, and it guesses wrongly. Yes, it seems that this was a bad move. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: add encoding to standard encodings works different in python 2.5?

2006-12-22 Thread Martin v. Löwis
henk-jan ebbers schrieb: > - how can i get this to work in 2.5 (nice if it would work in both 2.4 > and 2.5) You should implement a lookup function, and register it with codecs.register. Then you can structure your modules any way you like. Regards, Martin -- http://mail.python.org/m

Re: db access

2006-12-28 Thread Martin P. Hellwig
king kikapu wrote: > Hi to all, > > is there a way to use an RDBMS (in my case, SQL Server) from Python by > using some built-in module of the language (v. 2.5) and through ODBC ?? > I saw some samples that use statements like "import dbi" or "import > odbc" but neither modules (dbi, odbc) are pre

<    19   20   21   22   23   24   25   26   27   28   >