Re: Microsoft Hatred FAQ

2005-10-25 Thread Martin P. Hellwig
David Schwartz wrote: > It's easy to point to things you think are mistakes and claim that if > you had been in charge of the world, those mistakes would not have been > made. If you are trying to balance completely different possible paths the > universe might have taken, you need to make

Re: How to statically link Python with ncurses and readline?

2005-10-25 Thread Martin v. Löwis
Tcl/Tk got linked in with no > fuss. Anyway, I built static-only (.a) versions of readline and > ncurses, which did the trick. Ah, you didn't *have* static versions of readline and ncurses... So how should it possibly have linked those libraries statically??? Regards, Martin -- ht

Re: How to statically link Python with ncurses and readline?

2005-10-26 Thread Martin v. Löwis
scripts in place? What was your specific command line you have used to link the entire interpreter? In the absence of details, we have to take guesses on Usenet. Sometimes, the guesses are right, and sometimes they are wrong. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: tool for syntax coloring in html

2005-10-26 Thread Philippe C. Martin
I use gvim. regards, Philippe Xah Lee wrote: > in some online documentations, for examples: > > http://perldoc.perl.org/perlref.html > http://www.ccs.neu.edu/home/dorai/t-y-scheme/t-y-scheme-Z-H-17.html > http://www.haskell.org/hawiki/HaskellDemo > > the codes are syntax colored. > > Is th

Re: Building 2.4.2 on OpenBSD 3.8

2005-10-29 Thread Martin v. Löwis
likely, it is the old BSD bug of not supporting POSIX correctly. Somebody should really work with the system developers to get this resolved; it's been several years now that the bug is present. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

scweb pre-release 0.1

2005-11-01 Thread Philippe C. Martin
Dear all, referring to www.snakecard.com/WordPress: As I am _very_ much struggling with xpcom and pyxpcom, I have put on www.snakecard.com/SCWEB: 1) the cgi scripts 2) a firefox plugin which simulates the xpcom (ie: access to the external device ... smart card) and talks to the cgi scripts The

Re: urlencode with high characters

2005-11-02 Thread Martin v. Löwis
recent attempt to tighten the specification through IRIs. The IRI RFC defines a mapping between IRIs and URIs, and it uses UTF-8 as the encoding, not latin-1. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: /usr/lib/python2.4/posixfile.py error

2005-11-03 Thread Martin v. Löwis
running uses the posixfile module, and it should be rewritten to stop doing so, as the posixfile module will go away eventually. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: I need Motivation

2005-11-03 Thread Martin P. Hellwig
[EMAIL PROTECTED] wrote: > I m not a python Expert or anythin > i need help, i m losin my motivation to continue with python > can anyone inspire me again.??? Ooh that is easy, start learning other programming languages, you'll go back continuing with python very soon after that! ;-) -- mph --

Re: I need Motivation

2005-11-04 Thread Martin P. Hellwig
[EMAIL PROTECTED] wrote: > Martin P. Hellwig wrote: >> [EMAIL PROTECTED] wrote: >>> I m not a python Expert or anythin >>> i need help, i m losin my motivation to continue with python >>> can anyone inspire me again.??? >> Ooh that is easy, start learn

SCLOGON 0.1 Smart Card event daemon for GNU/Linux

2005-11-05 Thread Philippe C. Martin
Dear all, This is to announce the release of the event deamon I intend to use in SCLOGIN; a GPL project that attempts to: 1) give the current logon managers (gdm, kdm, ...) the necessary plugins to support vendor-independant smart card logon 2) be a complete logon manager itself SCLOGIN will be

Python gui

2005-11-05 Thread Philippe C. Martin
Hi, Is wxWidget now part of python ? or will it be ? regards, Philippe -- http://mail.python.org/mailman/listinfo/python-list

Re: Python gui

2005-11-05 Thread Philippe C. Martin
Thanks, Tkinter it is. Regards, Philippe Diez B. Roggisch wrote: > Philippe C. Martin wrote: >> Hi, >> >> Is wxWidget now part of python ? or will it be ? > > 1) No. 2) I guess no. Because it has pretty heavy dependencies (wx, > GTK/other toolkit) > > &

starting an X11 session from Python

2005-11-05 Thread Philippe C. Martin
Hi, Have there been any attempt to do so, and is there any source out there that could help me get started ? Regards, Philippe -- http://mail.python.org/mailman/listinfo/python-list

Re: starting an X11 session from Python

2005-11-05 Thread Philippe C. Martin
Nothing, but that was not my question. Regards, Philippe Sybren Stuvel wrote: > Philippe C. Martin enlightened us with: >> Have there been any attempt to do so, and is there any source out >> there that could help me get started ? > > What's stopping you from usi

Re: starting an X11 session from Python

2005-11-05 Thread Philippe C. Martin
PS: my goal is to write an equivalent of gdm/kdm/xdm ... in python Regards, Philippe Philippe C. Martin wrote: > Nothing, but that was not my question. > > Regards, > > Philippe > > > Sybren Stuvel wrote: > >> Philippe C. Martin enlightened us with: >

Re: starting an X11 session from Python

2005-11-06 Thread Philippe C. Martin
Thanks I will look, I intend to use tkinter for the display as it is built-in though. Regards, Philippe Richard Townsend wrote: > On Sat, 05 Nov 2005 19:51:40 +, Philippe C. Martin wrote: > >> Hi, >> >> Have there been any attempt to do so, and is there any

Tkinter and X11

2005-11-07 Thread Philippe C. Martin
Hi, Is there anything that prevents tkinter from running prior to login to an X11 session: as the X server is already up ? Regards, Philippe -- http://mail.python.org/mailman/listinfo/python-list

Re: Tkinter and X11

2005-11-07 Thread Philippe C. Martin
Thanks jeff, I actually want that Tkinter application to be the greater: replace gdm Still feasible as far as Tkinter is conserned ? Thanks and regards, Philippe [EMAIL PROTECTED] wrote: > There should be no problem with this. After all, even the "greeter" is > just an > X application.

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

2005-11-07 Thread Martin v. Löwis
the future of this wonderful language called Python?? I think I know Although, the future is difficult to predict??? Maybe people will not care what Sun Microsystems and Google tell them??? ¡Kind regards! Martin -- http://mail.python.org/mailman/listinfo/python-list

user account logon from python

2005-11-08 Thread Philippe C. Martin
Hi, I am attempting to write a linux logon manager with python. Can python access login APIs (which module ?) or do I need to write a wrapper ? Regards, Philippe -- http://mail.python.org/mailman/listinfo/python-list

Re: user account logon from python

2005-11-08 Thread Philippe C. Martin
That helps a lot, thanks. Regards, Philippe [EMAIL PROTECTED] wrote: > "login APIs" vary widely from system to system. > > Classic Unix systems use calls like getpwent and crypt to check passwords, > and then call setuid, setgid and setgroups to set the identity of the user > who is > logging

Re: user account logon from python

2005-11-08 Thread Philippe C. Martin
Jeff, 1- I cannot find getpwent in the documentation 2- crypt will not work if the system does not have shadow pw 3- Even as root I get "Operation not permitted" using setuid and setgid ... but I assume it is because I cannot get 1 and/or 2 to work. Can you direct me to some link that would expla

Re: user account logon from python

2005-11-08 Thread Philippe C. Martin
rite("titi") f.close() Philippe C. Martin wrote: > Jeff, > > 1- I cannot find getpwent in the documentation > 2- crypt will not work if the system does not have shadow pw > 3- Even as root I get "Operation not permitted" using setuid and setgid > ... but I assu

Re: user account logon from python

2005-11-08 Thread Philippe C. Martin
Hi Mike, Mike Meyer wrote: >> 1- I cannot find getpwent in the documentation > > getpwent is a Unix library call. For python, you want the pwd > module. The docs are http://docs.python.org/lib/module-pwd.html >. > I must be blind but still do not see it - do you mean getpwnam ? >> 2- crypt w

Re: weird problem with os.chmod

2005-11-11 Thread Martin v. Löwis
d :) I recommend that you get used to reading documentation, instead of merely googling. help(int) would have revealed that. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: weird problem with os.chmod

2005-11-11 Thread Martin v. Löwis
nd not decimal so that I > will get 384 instead of 600? Try this: http://docs.python.org/lib/built-in-funcs.html#l2h-39 Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: Want to perform unattended installation of SW using python

2005-11-13 Thread Martin v. Löwis
While that is possible in Python, it is very tedious to do: you essentially have to generate mouse clicks for the application, using the Win32 API. Most packaging tools provide some support for unattended installation, so I would rather research what options to pass to the installer to make it non-i

SnakeCard goes open source

2005-11-13 Thread Philippe C. Martin
Dear all, I have decided to focus my activities on development and support. I will release SnakeCard's produt line source code under the GPL licence this week (www.snakecard.com) ... I need to fix the site. It includes: SCF: SnakeCard Framework (software=Python) SCFB: SnaleCard Framework Bundle

Re: SnakeCard goes open source

2005-11-13 Thread Philippe C. Martin
I forgot SC-School-ID and SC-Corporate-ID: software = Python, GUI = wxWidget, Applets JavaCard and BasicCard. Regards, Philippe Philippe C. Martin wrote: > Dear all, > > I have decided to focus my activities on development and support. > > I will release SnakeCard's pro

SnakeCard products source code

2005-11-14 Thread Philippe C. Martin
Dear all, The source code is available in the download section: www.snakecard.com Regards, Philippe -- http://mail.python.org/mailman/listinfo/python-list

Re: SnakeCard products source code

2005-11-14 Thread Philippe C. Martin
I have not tested it with longhorn yet, but it works fine with XP-pro and 2000. Regards, Philippe Kris wrote: > Thanks for sharing it. I am interested in the GINA part. > > > Philippe C. Martin wrote: >> Dear all, >> >> The source code is ava

Re: Tix BUG? Where to submit?

2005-11-14 Thread Martin v. Löwis
ly added to tix later; then, it was never added to Tix.py. > Anyway, where would I subit this report to have it considered that this be > added to Tix? As Jeff explains: sf.net/projects/python, preferably as a patch (unified diff). Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Python and U3 devices

2005-11-17 Thread Philippe C. Martin
Dear all, Has anyone attempted to compile Python for a U3 device ? Regards, Philippe -- http://mail.python.org/mailman/listinfo/python-list

SnakeCard on sourceforge

2005-11-18 Thread Philippe C. Martin
Dear all, The SnakeCard product line is now hosted on sourceforge.net: SCFB - http://sourceforge.net/projects/sctoolkits SC-ID - http://sourceforge.net/projects/sc-id I will keep posting the snapshots on www.snakecard.com as well as SCLOGON and SCWEB until they take shape ;-) Regards, Philip

compiling Python under Windows

2005-11-21 Thread Philippe C. Martin
Hi, I'm currently blocking on bzip2: python is in c:\python.2.4.2 and bz2 is in c:\bzip2-1.0.3 Since the readme say subprojects should be two directories above PCbuild, I assume I'm OK. I added c:\bzip2-1.0.3 to the include and link path, but I get: """ Performing Pre-Link Event ... The system

Re: compiling Python under Windows

2005-11-21 Thread Philippe C. Martin
My mistake: The makefile (as written in the readme!) looks for bzip 1.0.2 Sorry, Philippe Philippe C. Martin wrote: > Hi, > > I'm currently blocking on bzip2: > > python is in c:\python.2.4.2 > and bz2 is in c:\bzip2-1.0.3 > > Since the readme say subproje

Re: compiling Python under Windows

2005-11-21 Thread Philippe C. Martin
Philippe C. Martin wrote: > My mistake: The makefile (as written in the readme!) looks for bzip 1.0.2 > PS: since bzip.org does not have 1.0.2 source anymore, can I just rename 1.0.3 ? Regards, Philippe > Sorry, > > Philippe > > > > Philippe C. Martin

Re: compiling Python under Windows

2005-11-21 Thread Martin v. Löwis
Philippe C. Martin wrote: >>My mistake: The makefile (as written in the readme!) looks for bzip 1.0.2 >> > > PS: since bzip.org does not have 1.0.2 source anymore, can I just rename > 1.0.3 ? That should work; alternatively, you can change the project file. Reg

Re: How to install python2.4.2 on IRIX6.5 ?

2005-11-21 Thread Martin v. Löwis
y case, test_locale failures are typically also of minor importance only, as well. This is a minor issue only, and shouldn't affect Python's functionality for most cases. Given that the rest of the test suite passed, just go ahead and make install. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: compiling Python under Windows

2005-11-21 Thread Philippe C. Martin
Thanks, Regards, Philippe "Martin v. Löwis" wrote: > Philippe C. Martin wrote: >>>My mistake: The makefile (as written in the readme!) looks for bzip 1.0.2 >>> >> >> PS: since bzip.org does not have 1.0.2 source anymore, can I just rename >>

Python install minimum requirements

2005-11-21 Thread Philippe C. Martin
Hi, I am attemtping to package Python in a "U3" install program for Windows. I got Python to compile/link and prior to adding the necessary code for the U3 SDK registration, I would like to know where I can find the actual list of files needed for a minimum installation (are DLLs and libs enough

Re: bsddb185 question

2005-11-21 Thread Martin v. Löwis
y] to access the value for a certain key. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: IPv6 RFC 3542 with socket module?

2005-11-21 Thread Martin v. Löwis
egards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: linking one extension module to another (Mac OSX)

2005-11-21 Thread Martin v. Löwis
y asking for trouble. Instead, come up with a function pointer API in one module, put that into a CObject, and access the CObject through import statements. Alternatively, make both extension modules link to the same backend library. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: keys in dictionary

2005-11-21 Thread Martin v. Löwis
for x in p]) >>> n {(6, 9): [], (1, 2): [], (4, 3): []} Regards, Martin P.S. Please don't cross-post. -- http://mail.python.org/mailman/listinfo/python-list

Re: Python install minimum requirements

2005-11-22 Thread Philippe C. Martin
Thanks I'll take a look. PS: www.u3.com Regards, Philippe [EMAIL PROTECTED] wrote: > If I found the right "U3" when I googled, then maybe this is relevant: > http://www.voidspace.org.uk/python/movpy/ > > Jeff -- http://mail.python.org/mailman/listinfo/python-list

Re: bsddb185 question

2005-11-22 Thread Martin v. Löwis
t certain > methods when implementing an interface, I am not sure about Python > though. In Python, I'm sure: it is possible. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: linking one extension module to another (Mac OSX)

2005-11-22 Thread Martin v. Löwis
es, which export the symbols that used to be in that module. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: Built windows installers and Cygwin

2005-11-22 Thread Martin v. Löwis
ible to *use* them - installing them still won't work. To use them, unzip them, and spread the files as you see fit. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: Using gettext to provide different language-version of a script

2005-11-22 Thread Martin v. Löwis
Thomas W wrote: > Hmmm ... any hints? I think gettext needs environment variables (e.g. LANG) to be set. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: bsddb185 question

2005-11-23 Thread Martin v. Löwis
For mapping types, http://www.python.org/doc/current/lib/typesmapping.html gives the list of operations they ought to support. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: 2.4.2 on AIX fails compiling _codecs_cn.c

2005-11-23 Thread Martin v. Löwis
could find out what AIX header file defines hz to be 100, and whether there is any way to supress that definition. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: 2.4.2 on AIX fails compiling _codecs_cn.c

2005-11-23 Thread Martin v. Löwis
cted to see something like this. However: in the file containing the #define hz: Is there any #ifdef around it that could be disabled/enabled? Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: 2.4.2 on AIX fails compiling _codecs_cn.c

2005-11-23 Thread Martin v. Löwis
Paul Watson wrote: > Can we #undef _ALL_SOURCE for _codecs_cn.c compilation? Where does _ALL_SOURCE come from? Why is it defined? What is its effect on hz? Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: Embedding a CPython Script engine in a .NET application.

2005-11-23 Thread Martin v. Löwis
So just import, in VS.NET, the Python interpreter to your project (Add Reference), and use the C# functions that the COM interop code gives you. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: Why is dictionary.keys() a list and not a set?

2005-11-23 Thread Martin v. Löwis
Mike Meyer explains, the same is meaningless for .values(): they might not be unique. For .items(), conversion into a set does would appear to be meaningful, but doesn't actually work: if the values contain unhashable objects, the set of tuples cannot be constructed (as set members must be

Re: 2.4.2 on AIX fails compiling _codecs_cn.c

2005-11-24 Thread Martin v. Löwis
SOURCE is defined, this in turn is defined because _XOPEN_SOURCE is not. As _XOPEN_SOURCE cannot be enabled (see configure.in), we just work around by removing the hz definition again. */ #undef hz #endif Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: wxPython Licence vs GPL

2005-11-24 Thread Martin P. Hellwig
Steven D'Aprano wrote: > I'm FREE to use the software, FREE to redistribute it, FREE to give it > away, FREE to make derivative works, FREE to transfer the licence, *and* > I got it FREE of cost as well, but that doesn't make it free. > Indeed, when I explain GPL to non-techies and what their (

Re: wxPython Licence vs GPL

2005-11-24 Thread Martin P. Hellwig
Mike Meyer wrote: > "Martin P. Hellwig" <[EMAIL PROTECTED]> writes: >> If the non-techie is still interested, I'll rave on about that I >> understand why GPL is a good way to ensure availability of IP >> especially if the software is a collaborated

Re: wxPython Licence vs GPL

2005-11-24 Thread Martin P. Hellwig
Mike Meyer wrote: > > Is that software really unavailable, or just unavailable for free? If > the latter, then it's not unavailabe. If the former, the it didn't > become unavailable, as it was never available in the first place. > In the latter case, you could also use those examples to similarly

Re: 2.4.2 on AIX fails compiling _codecs_cn.c

2005-11-24 Thread Martin v. Löwis
s. Does this have any significance? Is > it possible that there are other settings not being used? At this point, I'm giving up. I would need access to an AIX and more time than I have to be of further help. Good luck, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: Why is dictionary.keys() a list and not a set?

2005-11-24 Thread Martin v. Löwis
e all duplicates, iterating over a set would have to skip over duplicates) - there is also another semantical issue: If one element is skipped/dropped, which of these (a or b)? Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: wxPython Licence vs GPL

2005-11-24 Thread Martin P. Hellwig
Mike Meyer wrote: > > Well, they chose to make it available to others for reuse. But > software "unavailable to those who can't afford it" is better than "no > software at all" That I do not agree with, I think it depends on which your side of the fence you are. For instance I have a specific

Re: Why is dictionary.keys() a list and not a set?

2005-11-24 Thread Martin v. Löwis
ly hasn't made it into the implementation. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: Why is dictionary.keys() a list and not a set?

2005-11-24 Thread Martin v. Löwis
n of objects with fixed hashes", or words to that > effect. Do you want to file a PR on this? It's more than that: you really mean "hashable values", where "hashable" does not just imply that the hash value is fixed, but also that the equal objects hash same. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: Why is dictionary.keys() a list and not a set?

2005-11-25 Thread Martin v. Löwis
t is also explained in PEP 234. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: Why is dictionary.keys() a list and not a set?

2005-11-25 Thread Martin v. Löwis
I have learned that I cannot write documentation that others can understand. I usually write documentation which only attempts to be correct, and others than make it understandable. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: Which License Should I Use?

2005-11-25 Thread Martin v. Löwis
mojosam wrote: > How do I decide on a license? If you want to look at this from a legal point of view, I highly recommend reading Larry Rosen's book, Open Source Licensing. It covers issue you would never have thought of without studying law, and gives good advice (IMHO). Regards

Re: Move xml.sax.saxutils.*?

2005-11-25 Thread Martin v. Löwis
be useful. The precise details are best discussed at [EMAIL PROTECTED] While this is obviously wrong, it is not at all obvious what the right thing to do is (it never is when dealing with XML). Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: wxPython Licence vs GPL

2005-11-26 Thread Martin P. Hellwig
Steven D'Aprano wrote: > On Thu, 24 Nov 2005 23:26:38 +0100, Martin P. Hellwig wrote: > >> BSD/MIT style license is a >> good substitute of no license at all. > > But that's not true: "no licence at all" means that nobody has the right > to u

Re: wxPython Licence vs GPL

2005-11-26 Thread Martin P. Hellwig
Steven D'Aprano wrote: > On Thu, 24 Nov 2005 17:43:22 +0100, Martin P. Hellwig wrote: > >> if I owned a company >> making profit on software sales (sale =! support) you sign a death wish >> for using GPL > > Apart from Microsoft, and possibly Quark (makers o

Re: Why is dictionary.keys() a list and not a set?

2005-11-26 Thread Martin v. Löwis
finition of __hash__ does not meet the specifications: http://docs.python.org/ref/customization.html "The only required property is that objects which compare equal have the same hash value" However, I can have two instances of mylist2 which compare equal, yet have different hash values. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Crash in python while run from U3 device

2005-11-26 Thread Philippe C. Martin
Hi, I am currently porting some of my applications to U3 (www.u3.com) and I do get a crash in ...objects\frameobject.c: PyFrameObject *back = tstate->frame. The point of the current test is to get a python function called on a U3 device event. (U3 only work with Windows currently). My C stub cal

Re: wxPython Licence vs GPL

2005-11-26 Thread Martin P. Hellwig
Steven D'Aprano wrote: > > > I think you are over-estimating both the numbers and profitability of such > niche software distributors, and misunderstanding the business models of > them. Coincidently, I worked at a software company making a "standard" administration software for primary school

Re: Crash in python while run from U3 device

2005-11-26 Thread Philippe C. Martin
Philippe C. Martin wrote: > Hi, > > I am currently porting some of my applications to U3 (www.u3.com) and I do > get a crash in ...objects\frameobject.c: PyFrameObject *back = > tstate->frame. > > The point of the current test is to get a python function called on a U3

Re: Why is dictionary.keys() a list and not a set?

2005-11-26 Thread Martin v. Löwis
n't have any intuition as to what a class named "mylist2" should or should not do. Just that it has "list" in its name provides not sufficient clue: for example, IdentityDictionary has "dictionary" in its name, yet I would *not* expect that equality is used to c

Re: Why is dictionary.keys() a list and not a set?

2005-11-26 Thread Martin v. Löwis
ould typically refer to the state of the object, and whether or not the results meets some specified requirement would also depend on what the state is. (unless either the specification is trivial (e.g. "may or may not return a value") or the implementation is trivial (e.g. "return 0")) Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: Crash in python while run from U3 device

2005-11-26 Thread Philippe C. Martin
PS: I should add that the U3 device does not actually run Python, but copies it to the PC and launches it: I'm almost certain this is a bug in my code. Help please ! Regards, Philippe Philippe C. Martin wrote: > Hi, > > I am currently porting some of my applications to U3 (w

Re: New docs for set elements/dictionary keys (Was: Why is dictionary.keys() a list and not a set?)

2005-11-26 Thread Martin v. Löwis
"has a __hash__ implementation" (i.e. hash(x) returns a value, instead of raising an exception). Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: Why is dictionary.keys() a list and not a set?

2005-11-27 Thread Martin v. Löwis
he answer to this question is certainly "yes". Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: wxPython Licence vs GPL

2005-11-27 Thread Martin P. Hellwig
Steven D'Aprano wrote: > On Sat, 26 Nov 2005 21:39:13 +0100, Martin P. Hellwig wrote: > >> The software was sold in 3 separates modules requiring a yearly renewal, > > The software is hardly sold if you have to renew that "sale" every year. > That's mo

Re: New docs for set elements/dictionary keys

2005-11-27 Thread Martin v. Löwis
would consider "hashable" to mean: hash() returns a value. To those people, it is a minor detail whether you get the fallback implementation of hash() or whether there is a default __hash__ implementation for all objects that don't otherwise define __hash__. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

SCU3 and Python packaged for U3 (with SCU3) V 0.1 released

2005-11-27 Thread Philippe C. Martin
Dear all, I am very happy to announce the release of SCU3 V 0.1 and SCU3Python.u3p V. 0.1. SCU3 is a python wrapper for U3 compliante devices SCU3Python.u3p is a Python binary (2.4.2) packaged with SCU3 that allows to launch idle from the U3 device launchpad Both may be found on www.snakecard.co

Re: Writing pins to the RS232

2005-11-28 Thread Philippe C. Martin
Hi, Some of it should be doable on windows: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wcecoreos5/html/wce50lrfescapecommfunction.asp Yet this might require a new wrapper module for I am not sure what the current interface lets you do. Not sure about Linux. Regards; Phili

Re: New Ordered Dictionery to Criticise

2005-11-28 Thread Martin v. Löwis
ence.pop() except IndexError: # always try to give the same exception string as # dict raise KeyError("popitem(): dictionary is empty") return key, self.pop(key) - One problem with the FancyDict is that it allows d.keys.append(100) Regards

Re: cheese shop registration error

2005-11-28 Thread Martin v. Löwis
eseshop maintainer is overworked, so that may take some time. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: New Ordered Dictionery to Criticise

2005-11-29 Thread Martin v. Löwis
Fuzzyman wrote: >>- One problem with the FancyDict is that it allows >> d.keys.append(100) > > > Are you sure ? Not at all. This was from inspection only; I propably misinterpreted the code. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

SCU3 Python package 0.2 released: wxPython support added

2005-12-01 Thread Philippe C. Martin
Dear all, I have released SCU3Python.u3p (www.snakecard.com/src) . It includes: - SCU3 0.1: a python wrapper for the U3 SDK (www.u3.com) - Python 2.4.2 - wxPython 2.6 (ansi) - A hello-World-style basic wxPython application which shows how to retrieve the U3 information (ex: current virtual disks

Re: how to run an external program...

2005-12-01 Thread Philippe C. Martin
hi, What do you need by "control" ? look at os.system/execv/popen ...; Regards, Philippe On Thu, 01 Dec 2005 11:57:03 -0800, ash wrote: > hi, > i want to know is there a way to run/control an external program form > within a python program? > thanks in advance for any support. -- http://ma

Re: Python & Unicode decimal interpretation

2005-12-03 Thread Martin v. Löwis
ut is produced at all, for the unencodable character; this is the same way that '?' would be treated (it is also unencodable). In the something_else case, a user-defined exception handler could treat the error in any way it liked, e.g. encoding all letters u'A' to digit '0&#

Re: os.rename copies when old is in-use - is this deliberate?

2005-12-03 Thread Martin v. Löwis
t the implementation of _rename, I see that it directly calls MoveFile, which is documented here: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fileio/fs/movefile.asp That doesn't mention the in-use case, either. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: os.rename copies when old is in-use - is this deliberate?

2005-12-03 Thread Martin v. Löwis
cause an error, or that the attempt to open the file with FILE_SHARE_DELETE would cause an error right away. Somebody should investigate this with Sysinternal's filemon, to find out whether the MoveFile operation really succeeds. Perhaps there is a bug in the CRT, or in Python, also. Regards,

os.chdir + GUI question

2005-12-03 Thread Philippe C. Martin
ectory but found myself in the windows desktop. Any clue ? Regards, Philippe -- SnakeCard, LLC Philippe C. Martin www.snakecard.com -- http://mail.python.org/mailman/listinfo/python-list

SCPocketGrades released

2005-12-03 Thread Philippe C. Martin
Dear all, I am very pleased to announce the release of SCPocketGrades V 0.1. SCPocketGrades is a GPL U3 smart drive-based grade book application. SCPocketGrades is coded in Python, wxPython, and C. SCPocketGrades' main features are: - (U3): no PC installation + data saved on smart drive (no m

Re: SCPocketGrades released

2005-12-03 Thread Philippe C. Martin
oops: www.snakecard.com/src On Sat, 03 Dec 2005 12:26:52 -0600, Philippe C. Martin wrote: > Dear all, > > I am very pleased to announce the release of SCPocketGrades V 0.1. > > SCPocketGrades is a GPL U3 smart drive-based grade book application. > > SCPocketGrades is code

Re: Python & Unicode decimal interpretation

2005-12-03 Thread Martin v. Löwis
g of bases is not done in the function at all. Instead, the callers of PyUnicode_EncodeDecimal will deal with number formats (base, prefix, exponent syntax, etc.) They will assume ASCII bytes. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: Building Python 2.4 on machines that do not support dynamic loading

2005-12-04 Thread Martin v. Löwis
his automatically. > That is: can I build 2.4 where all the extensions are archived in > libpython2.4.a as a static library? Certainly: Edit Modules/Setup to your needs. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: Detect character encoding

2005-12-04 Thread Martin P. Hellwig
Mike Meyer wrote: > "Diez B. Roggisch" <[EMAIL PROTECTED]> writes: >> Michal wrote: >>> is there any way how to detect string encoding in Python? >>> I need to proccess several files. Each of them could be encoded in >>> different charset (iso-8859-2, cp1250, etc). I want to detect it, >>> and enco

Re: Detect character encoding

2005-12-04 Thread Martin v. Löwis
Martin P. Hellwig wrote: > From what I can remember is that they used an algorithm to create some > statistics of the specific page and compared that with statistic about > all kinds of languages and encodings and just mapped the most likely. More hearsay: I believe language-based h

<    11   12   13   14   15   16   17   18   19   20   >