I was a new guy of Python,when i want to test my wxPython app by
unittest,it couldn`t work.I fund a stubmaker.py but it only for
wxDialog but all widgets.Can someone can tell me how test wxPython by
unittest?Thanks
--
http://mail.python.org/mailman/listinfo/python-list
Hmm,
Do you know about JSON and YAML?
http://en.wikipedia.org/wiki/JSON
http://en.wikipedia.org/wiki/YAML
They have the advantage of being maintained by a group of people and
being available for a number of languages. (as well as NOT being XML
:-)
- Cheers, Paddy.
--
http://paddy3118.blogspot
[EMAIL PROTECTED] wrote:
> I've taken the opportunity to knock up some icons using it, finally
> banishing the poor old standard-VGA-palette snake from my desktop. If
> you like, you can grab them from:
>
> http://www.doxdesk.com/img/software/py/icons.zip
>
> in .ICO format for Windows - contain
aurora enlightened us with:
> I agree. I just keep rewriting the parse method again and again.
I just use the parser from mx.DateTime. Works like a charm, and can
even guess the used format.
Sybren
--
The problem with the world is stupidity. Not saying there should be a
capital punishment for st
After the basic fact of generating the exclusion - a considerable
achievement - the program should be interactive. What if the target set
has thousands or millions of elements? There should be a loop-like way
('do' in Haskell, for example) to peel off the elements one-by-one and
then terminate.
-
Paul Rubin wrote:
> "Frank Millman" <[EMAIL PROTECTED]> writes:
> > > TLSLite is so far not really a complete SSL implementation by itself.
> > > It doesn't know how to properly check the signatures on certificate
> > > chains. It has to use an external module like m2crypto for that.
> >
> > When
Roedy Green <[EMAIL PROTECTED]> wrote:
>On Sun, 19 Mar 2006 02:08:11 GMT, Tim Roberts <[EMAIL PROTECTED]> wrote,
>quoted or indirectly quoted someone who said :
>
>>Try pressing Ctrl-R when his message is visible. I'm also using Agent, and
>>that toggles his extended characters from quoted-printa
I agree. I just keep rewriting the parse method again and again.
wy
def parse_iso8601_date(s):
""" Parse date in iso8601 format e.g. 2003-09-15T10:34:54 and
returns a datetime object.
"""
y=m=d=hh=mm=ss=0
if len(s) not in [10,19,20]:
raise ValueError('Invalid
Thanks for all the suggestions. Now the wheel comes with bells and
whistles ;)
--
http://mail.python.org/mailman/listinfo/python-list
"Frank Millman" <[EMAIL PROTECTED]> writes:
> > TLSLite is so far not really a complete SSL implementation by itself.
> > It doesn't know how to properly check the signatures on certificate
> > chains. It has to use an external module like m2crypto for that.
>
> When you say "It has to ...", do y
This is an entry I just added to ASPN. It is a somewhat novel technique I
have employed quite successfully in my code. I repost it here for more
explosure and discussions.
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/475158
wy
-
Paul Rubin wrote:
>
> TLSLite's main causes of slowness are: 1) time needed compiling and
> loading all the modules, especially the first time you run it in a new
> installation; 2) very slow speed of the symmetric ciphers implemented
> in Python. You need m2crypto, cryptlib, or pycrypto to speed
Hi Python Veterans I need to convert a code from JSP (Java Tags are also there inside JSP) to PYTHON. I have OK kind of knowledge in PYTHON, but dont have a muck knowledge in JAVA/JSP. Any idea how to approach?Thanks in advance to allC SahaThanks a lot to all in advance Thanks
"Frank Millman" <[EMAIL PROTECTED]> writes:
> I have revisited what I did a week ago, and I now recall that I *did*
> successfully install GMPY, but it made no difference to the speed of
> TLSLite. I could try to dig deeper by examining the source code of
> TLSLite, but it is low priority for me at
I've been looking for similar stuff recently. I haven't found much, but
this is the list of links I've come across so far:
Harvest Man - http://harvestman.freezope.org/
Mechanize - http://wwwsearch.sourceforge.net/mechanize/
Beautiful Soup - http://www.crummy.com/software/BeautifulSoup/
(Neither B
Atanas Banov wrote:
> [EMAIL PROTECTED] wrote:
> > Steve Holden wrote:
> > > [EMAIL PROTECTED] wrote:
> >
> > > > Pure cgi is too slow. "Active Scripting" means ASP, yes?
> > > > I need something that will do cgi scripts (a lot of which I already
> > > > have
> > > > and can modify but don't want
Atanas Banov wrote:
> [EMAIL PROTECTED] wrote:
> > Steve Holden wrote:
> > > [EMAIL PROTECTED] wrote:
> >
> > > > Pure cgi is too slow. "Active Scripting" means ASP, yes?
> > > > I need something that will do cgi scripts (a lot of which I already
> > > > have
> > > > and can modify but don't want
Alex Martelli wrote:
> Frank Millman <[EMAIL PROTECTED]> wrote:
>...
> > The docs say that if you have any of m2crypto, cryptlib, pycrypto, or
> > GMPY installed, it will be used for fast cryptographic operations. I
>...
> > However, I have not found an MSW binary for Python 2.4 for any of
I want to use Python to develop a software.Now, I have a question.
How to recgonize USB device in FreeBSD?
And , Is there any module that I can use?
--
http://mail.python.org/mailman/listinfo/python-list
[<00>] V-POP3bounce: [EMAIL PROTECTED];Error=[The maximum number of delivery
attempts has been reached]
[<01>] Error sending message [1142594190671.2752.rpppl] from [randpoly.com].
ID:
Mail From:
Rcpt To: <[EMAIL PROTECTED]>
Server: [209.120.245.170]
[<02>] The reason of the de
In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] (Alex Martelli) wrote:
> And even if I'm wrong, and a Joe Supercoder I've never met
> works best with 3 days a week of solo effort, 3 days of solo coding plus
> 2 of strong in-person interaction is NOT the same thing as, say, 3
> _weeks_ of solo c
"Tim Peters" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>> For more details about the plan for Python 2.5, see:
>>
>> http://www.python.org/doc/peps/pep-0356/
>
> Looks like links to PEPs are completely hosed at the moment. For
> example, the link above displays an empty dir
Dan Sommers <[EMAIL PROTECTED]> wrote:
...
> Design meetings and similar almost have to be face to face.
Agreed.
> OTOH, once the design is set, leave me alone and let me
> simulate it or code it, and maybe even get it past the first
> round of testing and tweaking/fixing. The last thing I w
Michael Tobis <[EMAIL PROTECTED]> wrote:
> Still a bit confused actually. Any explanation of the following?
I believe the problem you're having is with WHEN a name is looked up --
which tends to be 'as late as possible, but no later'.
> def getf(method,name):
> def f(self, *a, **k): return m
Podi wrote:
> OK, please don't bother. Here is my wheel :-)
>
> import os
> import shutil
>
> def CopyFlat(source, target):
> count = 0
> for root, dirs, files in os.walk(source):
> for file in files:
> count += 1
> name = root + '\\' + file
A small improv
Em Seg, 2006-03-20 às 18:05 -0800, Podi escreveu:
> OK, please don't bother. Here is my wheel :-)
Please, please! Remove all the...
x + "\\" + y
...and put some...
os.path.join(x, y)
... Please? Even if you're planning to use it only on Windows, please
use standard methods.
Just my 2 cents, t
OK, please don't bother. Here is my wheel :-)
import os
import shutil
def CopyFlat(source, target):
count = 0
for root, dirs, files in os.walk(source):
for file in files:
count += 1
name = root + '\\' + file
print '%04d Copying' % count, name,
On Tue, 21 Mar 2006 00:08:02 GMT,
[EMAIL PROTECTED] (Cameron Laird) wrote:
> Briefly, remote collaboration works for me. I work on
> customer premises part of the year, and, while there are
> multipliers, my estimate is that they're far closer to
> one than four. Sometimes they're less than one-
[EMAIL PROTECTED] wrote:
> Personally, I *like* the new website look, and I'm glad to see Python
> having a proper logo at last!
>
> I've taken the opportunity to knock up some icons using it, finally
> banishing the poor old standard-VGA-palette snake from my desktop. If
> you like, you can grab
Aahz wrote:
> Personally, I think it's a Good Idea to stick with the semi-standard
> names of *args and **kwargs to make searching easier...
I usually do stick to these names (since the I usually only use them
when forwarding arguments to another function, where such names are a
pretty good descri
Hi,
I am trying to copy all files under a directory tree to a single
directory (in Windows). I can well write the script myself, but was
wonder if anyone has done it so I won't be reinventing the wheel.
Thanks in advance.
Requirement:
# Source file set
source\file1.txt
source\file2.doc
source\d
OK, but Python IS clever, so its logo ought to be too.
Since you are acknowledging they are tadpoles, I guess you've heard my
gripes...
mt
--
http://mail.python.org/mailman/listinfo/python-list
> For more details about the plan for Python 2.5, see:
>
> http://www.python.org/doc/peps/pep-0356/
Looks like links to PEPs are completely hosed at the moment. For
example, the link above displays an empty directory, and
http://www.python.org/doc/peps
displays a directory full of empty
John Salerno wrote:
> bruno at modulix wrote:
>
> >> It seems like this can
> >> get out of hand, since modules are separate from one another and not
> >> compiled together. You'd end up with a lot of import statements.
> >
> > Sorry, but I don't see the correlation between compilation and import
>
Michael Tobis wrote:
> Besides the pleasant colors what do you like about it?
I like that whilst being a solid and easily-recognisable, it isn't
clever-clever.
I had personally been idly doodling some kind of swooshy thing before,
with a snake's head forming a P and its forked tongue a Y coming
On Mon, 20 Mar 2006, Ben Cartwright wrote:
> Dave Hansen wrote:
>> On 20 Mar 2006 15:45:36 -0800 in comp.lang.python,
>> [EMAIL PROTECTED] (Aahz) wrote:
>>> Personally, I think it's a Good Idea to stick with the semi-standard
>>> names of *args and **kwargs to make searching easier...
>>
>> Agreed
Dave Hansen wrote:
> On 20 Mar 2006 15:45:36 -0800 in comp.lang.python,
> [EMAIL PROTECTED] (Aahz) wrote:
> >Personally, I think it's a Good Idea to stick with the semi-standard
> >names of *args and **kwargs to make searching easier...
>
> Agreed (though "kwargs" kinda makes my skin crawl).
Coinc
O'Reilly's Spidering Hacks books terrific. One problem. All the code
samples are in Perl. Nothing Pythonic. Is there a book out there for
Python which covers spidering / crawling in depth?
--
http://mail.python.org/mailman/listinfo/python-list
I think this is great work but imagine what you could do with a real
logo!
Besides the pleasant colors what do you like about it?
I have in mind something with a coil motif but I can't execute it worth
a damn.
mt
--
http://mail.python.org/mailman/listinfo/python-list
In article <[EMAIL PROTECTED]>,
Alex Martelli <[EMAIL PROTECTED]> wrote:
.
.
.
>Unfortunately, I entirely understand _why_ most software development
>firms prefer face-to-face employees: when I found myself, back when I
>was a
On 20 Mar 2006 15:45:36 -0800 in comp.lang.python,
[EMAIL PROTECTED] (Aahz) wrote:
>In article <[EMAIL PROTECTED]>,
>Dave Hansen <[EMAIL PROTECTED]> wrote:
[...]
>>It's harder to explain than understand. Try playing with the
>>following function in the python interpreter:
>>
>> def test(a,b='b
Hi,
I was able to build both python and its win32 extensions on windows ce.
Unfortunately, I haven't had much success with the win32com module.
Does anyone have experience building the win32com module on CE or know
where I can find a makefile?
Thanks
--
http://mail.python.org/mailman/listinfo/p
John Salerno wrote:
> Interesting. So then the read() method, if given a numeric argument for
> bytes to read, would act differently depending on if you were using
> Unicode or not?
The read method currently returns a byte string, not a Unicode string.
It's not clear to me how the numeric argume
Still a bit confused actually. Any explanation of the following?
mt
def getf(method,name):
def f(self, *a, **k): return method(self.val, *a, **k)
f.func_name = name
return f
class myint(object):
def __init__(self, val):
self.val = int(val)
for spec in 'str repr has
In article <[EMAIL PROTECTED]>,
Dave Hansen <[EMAIL PROTECTED]> wrote:
>On 20 Mar 2006 12:46:43 -0800 in comp.lang.python, "J Rice"
><[EMAIL PROTECTED]> wrote:
>>
>>I'm sorry for such a basic question, but I haven't been able to phrase
>>a search that gets me an answer and my books are totally sil
wow,good work!thanks,DimitriOn 20 Mar 2006 08:56:59 -0800, [EMAIL PROTECTED] <
[EMAIL PROTECTED]> wrote:Personally, I *like* the new website look, and I'm glad to see Python
having a proper logo at last!I've taken the opportunity to knock up some icons using it, finallybanishing the poor old standa
Fabiano Sidler wrote:
> 2006/3/14, Fabiano Sidler <[EMAIL PROTECTED]>:
>>Ok, sorry! I wanted to do this:
>>
>>--- snip ---
>>from mmap import mmap, MAP_ANONYMOUS
>>mm = mmap(-1, 1024, MAP_ANONYMOUS)
>>--- snap ---
>>
>>But I got an EnvironmentError, "[Errno 22] Invalid argument" (on
>>Linux2.6, btw
> Beautiful is better than ugly.
> Explicit is better than implicit.
>> Err... I see no contradiction nor conflict here.
What to do when explicit is ugly and implicit is beautiful? Aye,
there's the rub. ;-)
--
http://mail.python.org/mailman/listinfo/python-list
Hi,
I was able to build both python and its win32 extensions on windows ce.
Unfortunately, I haven't had much success with the win32com module.
Does anyone have experience building the win32com module on CE or know
where I can find a makefile?
Thanks
--
http://mail.python.org/mailman/listinfo/p
[EMAIL PROTECTED] wrote:
> Steve Holden wrote:
> > [EMAIL PROTECTED] wrote:
>
> > > Pure cgi is too slow. "Active Scripting" means ASP, yes?
> > > I need something that will do cgi scripts (a lot of which I already
> > > have
> > > and can modify but don't want to rewrite extensively, partly beca
Hi,
I am wrapping a C function returning large amount of binary data back to
Python using SWIG.
I have the data malloc()ed or new()ed on the heap and buffer objects seem a
good way to wrap it in python
(http://docs.python.org/api/bufferObjects.html)
>From the documentation it seems PyBuffer_Fro
or you can write the (slightly dangerous) following:
import os
for file in os.listdir("/path/to/modules"):
if file.endswith(".py"):
exec("from "+file[:-3]+" import *")
--
http://mail.python.org/mailman/listinfo/python-list
John Salerno wrote:
> Martin v. Löwis wrote:
>
>> The real problem is that the Python string type is used to represent
>> two very different concepts: bytes, and characters. You can't just drop
>> the current Python string type, and use the Unicode type instead - then
>> you would have no good way
Lonnie Princehouse a écrit :
> Occaisionally, the first two lines of The Zen of Python conflict with
> one another.
"""
Beautiful is better than ugly.
Explicit is better than implicit.
"""
Err... I see no contradiction nor conflict here.
> An API I'm working on involves a custom namespace implem
John Salerno wrote:
> So as it turns out, Unicode and UTF-8 are not the same thing?
Well yes. UTF-8 is one scheme in which the whole Unicode character
repertoire can be represented as bytes.
Confusion arises because Windows uses the name 'Unicode' in character
encoding lists, to mean UTF-16_LE,
2006/3/14, Fabiano Sidler <[EMAIL PROTECTED]>:
> 2006/3/14, Peter Hansen <[EMAIL PROTECTED]>:
> > (As for me, I have no idea what the question is about, so this is the
> > most help I can give.)
>
> Ok, sorry! I wanted to do this:
>
> --- snip ---
> from mmap import mmap, MAP_ANONYMOUS
> mm = mmap(
Martin v. Löwis wrote:
> The real problem is that the Python string type is used to represent
> two very different concepts: bytes, and characters. You can't just drop
> the current Python string type, and use the Unicode type instead - then
> you would have no good way to represent sequences of b
Thanks to Michel and Larry, very interesting. How about database
access. Can I create a Python component that will run in my browser and
be able to use the ADO (active data objects) activeX interfaces. I am
right now using the ADO activex with javascript but javascript and
vbscript can not subscrib
Martin v. Löwis wrote:
> John Salerno wrote:
>> Robert Kern wrote:
>>
>>> http://www.joelonsoftware.com/articles/Unicode.html
>>
>> That was fascinating. Thank you. So as it turns out, Unicode and UTF-8
>> are not the same thing? Am I right to say that UTF-8 stores the first
>> 128 Unicode code
> I figured this might have something to do with it, but then again I
> thought that Unicode was created as a subset of ASCII and Latin-1 so
> that they would be compatible...but I guess it's never that easy. :)
The real problem is that the Python string type is used to represent
two very differ
In <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] wrote:
> I had error in my script like "sudden EOF in MultiFile readline()"
> Why such error occur
Because there's something wrong.
Sorry but you have to give a little more detail about your script and the
exact error you see.
Try to trim down your scri
John Salerno wrote:
> Robert Kern wrote:
>
>> http://www.joelonsoftware.com/articles/Unicode.html
>
> That was fascinating. Thank you. So as it turns out, Unicode and UTF-8
> are not the same thing? Am I right to say that UTF-8 stores the first
> 128 Unicode code points in a single byte, and
Re!
Make your COM server with PyWin32 (e.g. named PCOM)
In your HTML, with JScript, you can :
open :
try{ var pserv = new ActiveXObject("PCOM");}
catch(error){alert('Ne trouve pas PCOM');}
call :
var vret = pserv.youfunction( par1, par2) ;
With PyWin32, all the remainder is a
Hi!
Few ways :
- use TCP/IP server+client (this can also run via a LAN or Internet)
- use mmap (this can run Python<=>Python, Python<=>Ruby, etc.)
- use a file (and win persistance)
- use telepathy (Oups! Sorry, the module is not published yet)
- etc.
MCI
--
http://mail.python.org/m
Scott David Daniels wrote:
> Maybe you could change the ink color to better distinguish
> the pycon and pyc icons.
Yeah, might do that... I'm thinking I might flip the pycon icon so that
the Windows shortcut badge doesn't obscure the Python logo, too. Maybe.
I'll let them stew on my desktop for
Good news!
I asked a buddy that runs osx, and he whipped up a script for you :)
I understand it's not python, but it gets you close, you should be able
to use popen or subprocess.call to complete this.
function is_charger_plugged_in()
{
sleep 3;
BATTINFO=`ioreg -l -w 0 | grep IO
I V wrote:
> Now, in your code you can do:
>
> import package
>
> c = package.C1()
>
> If you hadn't included the lines in __init__.py, you would have to
> write:
>
> import package
>
> c = package.class1.C1()
>
Ah, this makes sense! Thanks! :)
--
http://mail.python.org/mailman/listinfo/py
Robert Kern wrote:
> http://www.joelonsoftware.com/articles/Unicode.html
That was fascinating. Thank you. So as it turns out, Unicode and UTF-8
are not the same thing? Am I right to say that UTF-8 stores the first
128 Unicode code points in a single byte, and then stores higher code
points i
[ note followups ]
Mark Carter <[EMAIL PROTECTED]> writes:
> I'd like to propose a coding challenge of my own. The challenge is to
> reproduce the TEA (Tiny Encryption Algorith):
> http://www.simonshepherd.supanet.com/tea.htm
> in your language of choice.
Here's mine, in Common Lisp.
(defmacro
Wow, this is incredibly useful! I can understand why an introductory
book wouldn't make use of them, but I am really glad to know about
them. I can think of a bunch of ways to simply some code I have using
this.
--
http://mail.python.org/mailman/listinfo/python-list
In <[EMAIL PROTECTED]>, robert wrote:
> Marc 'BlackJack' Rintsch wrote:
>> In <[EMAIL PROTECTED]>, robert wrote:
>>
>>>The fact is:
>>>* Python has that big problem with unnecessary barriers for nested frame
>>>access - especially painfull with callback functions where you want to
>>>put back d
[EMAIL PROTECTED] writes:
> (defun >> (val num-bytes)
> "Right-shift positive integer val by num-bytes"
> (floor (/ val (expt 2 num-bytes
or just (floor val (expt 2 num-bytes))
'as
--
http://mail.python.org/mailman/listinfo/python-list
John Salerno wrote:
> How does the __init__ file help if you are still individually importing
> class1 and class2 in each other module of your program?
Felipe's example is a little confusing because he uses the same name
for the module and the class. Here's another example:
--- package/class1.py
J Rice wrote:
> I'm sorry for such a basic question, but I haven't been able to phrase
> a search that gets me an answer and my books are totally silent on
> this. I have seen a number of python function defs that take
> parameters of the form (**param1). Looks like a pointer... but my
> books on
In <[EMAIL PROTECTED]>, Max Kubierschky wrote:
> I try to use epydoc with reStructuredText.
> It works fine, my only problem is that I couldn't figure out
> the syntax for links to other methods or classes. Any hints?
IIRC it's `OtherClass`, `module.OtherClass`, `other_method` and so on.
Ciao,
ANN: pywinauto 0.3.0 released - now localization proof
Hi,
The 0.3.0 release of pywinauto is now available.
pywinauto is a set of open-source (LGPL) modules for using Python as a
GUI automation 'driver' for Windows NT based Operating Systems
(NT/W2K/XP).
SourceForge project page:
http://sourcef
in the parameter list, **param gets a dict of arguments that dont
correspond to somthing in the formal parameter list.
More & examples in the python docs:
http://docs.python.org/tut/node6.html#SECTION00672
--
Jordan T. Greenberg
--
http://mail.python.org/mailman/listinfo/python
On 20 Mar 2006 12:46:43 -0800 in comp.lang.python, "J Rice"
<[EMAIL PROTECTED]> wrote:
>I'm sorry for such a basic question, but I haven't been able to phrase
>a search that gets me an answer and my books are totally silent on
>this. I have seen a number of python function defs that take
>paramet
Robert Kern wrote:
>> I figured this might have something to do with it, but then again I
>> thought that Unicode was created as a subset of ASCII and Latin-1 so
>> that they would be compatible...but I guess it's never that easy. :)
>
> No, it isn't. You seem to be somewhat confused about Unic
[EMAIL PROTECTED] wrote:
> I am creating a web application where I access a database on a SQL
> server machine from local networked PC's via Javascript and HTML.
> Unfortunately, Microsoft does not allow the ado intervace to fire
> events back using Javascript or VBScript. I am trying to figure out
Very clever!
This looks like exactly what I wanted. Thanks =)
--
http://mail.python.org/mailman/listinfo/python-list
How would the controls run within a web browser. Would the python
interpreter automatically run after loaded into a browser? Also, the
python controls would be text files?
--
http://mail.python.org/mailman/listinfo/python-list
I'm sorry for such a basic question, but I haven't been able to phrase
a search that gets me an answer and my books are totally silent on
this. I have seen a number of python function defs that take
parameters of the form (**param1). Looks like a pointer... but my
books on python (basic as they a
Occaisionally, the first two lines of The Zen of Python conflict with
one another.
An API I'm working on involves a custom namespace implementation using
dictionaries, and I want a pretty syntax for initializing the custom
namespaces. The fact that these namespaces are implemented as
dictionaries
Christoph Zwerschke wrote:
> Alex Martelli wrote:
>> Sathyaish wrote:
>>
>>> I tried it on the interpreter and it looks like it is the "to the power
>>> of" operator symbol/function. Can you please point me to the formal
>>> definition of this operator in the docs?
>>
>> http://docs.python.org/ref/
Robert Kern <[EMAIL PROTECTED]> wrote:
> > I see UTF-8 a lot, but this particular book also mentions that UTF-16 is
> > the most common. Is that true?
>
> I think it unlikely, but I have no numbers to give. And I'll bet that that
> book
> doesn't either.
I haven't got any numbers, but my guess
Thanks! Only a minor correction: the last line should be
_setdelegate(myint, int,'__%s__' % spec)
The business with f.func_name struck me as unnecessary, but I was quite
wrong.
This was an interesting exercise for me. Thanks.
Michael
--
http://mail.python.org/mailman/listinfo/python-list
bruno at modulix wrote:
> Lonnie Princehouse wrote:
>
>>>What's your use case exactly ?
>>
>>
>>I'm trying to use a function to implicitly update a dictionary.
>
>
> I think this was pretty obvious. What I wonder is *why* you want/think
> you need to do such a thing -I don't mean there can't be
> I had a crack at it in Lisp. My version doesn't work - but of greater
> concern to me is that it doesn't appear nearly as compact as the C
> version. Anyway, here's my Lisp code (no prizes for guessing that I'm a
> noob to Lisp):
Lot's of things you can write more compact.
But compact is not alw
John Salerno wrote:
> Robert Kern wrote:
>
>>Well, *I* use UTF-8, but that's neither here nor there.
>
> I see UTF-8 a lot, but this particular book also mentions that UTF-16 is
> the most common. Is that true?
I think it unlikely, but I have no numbers to give. And I'll bet that that book
does
Hi!
>>>Can I create a COM server / client component set with Python?
Yes.
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
very sharp! i like 'em!
--
http://mail.python.org/mailman/listinfo/python-list
John Salerno <[EMAIL PROTECTED]> wrote:
> to convert back and forth. But why isn't Unicode considered a regular
> string by now? Is it for historical reasons that we still use ASCII and
> Latin-1?
The point is, that, with a regular string, you don't know its encoding
or whether it has an encodi
Hello everyone,
after almost five months of hacking, lxml 0.9 has finally seen the light of
night. :)
http://codespeak.net/lxml/
http://cheeseshop.python.org/pypi/lxml/0.9
"""
lxml is a Pythonic binding for the libxml2 and libxslt libraries. It provides
safe and convenient access to these librar
Robert Kern wrote:
> Well, *I* use UTF-8, but that's neither here nor there.
I see UTF-8 a lot, but this particular book also mentions that UTF-16 is
the most common. Is that true?
>> Why can't Unicode replace them so we no longer need the 'u'
>> prefix or the encoding tricks?
>
> It would br
John Salerno wrote:
> Forgive my newbieness, but I don't quite understand why Unicode is still
> something that needs special treatment in Python (and perhaps
> elsewhere). I'm reading Dive Into Python right now, and it constantly
> refers to a 'regular string' versus a 'Unicode string' and how
Kent Johnson wrote:
> The way to make this change happen is to submit a bug report with your
> suggested change. See the link at the bottom of the above page to find
> out how.
I know, but I wanted to see at least one person assenting before doing
so. Anyway, I took your words as assent and fil
Only MS can answer those questions.
Even though, Python on Windows is compiled with VC++, you can still use
Mingw32 to compile extensions. There are some articles floating around
on how to do this and I did try it successfully in the past. Please
note that I am not advocating either compiler. Just
Mark Carter <[EMAIL PROTECTED]> writes:
> I'd like to propose a coding challenge of my own. The challenge is to
> reproduce the TEA (Tiny Encryption Algorith):
> http://www.simonshepherd.supanet.com/tea.htm
> in your language of choice.
>
> Here's the code, just two simple functions:
>
> void enci
Chason Hayes wrote:
> How can I get a script to pipe data to another program, wait for a
> response, then send more data etc.
>
> For example, from a script, I want to run smbclient then send it the
> username, password, and then some commands. (I know there are better ways
> to achieve this funct
1 - 100 of 219 matches
Mail list logo