OfflineIMAP needs a good home

2005-11-01 Thread John Goerzen
Hi, I am the author of OfflineIMAP, a bidirectional IMAP mail syncing tool for people that wish to read their IMAP mail without needing to be connected to an IMAP server. It is basically done, having fulfilled its original purpose. OfflineIMAP is functional, multi-threaded, and works well for

Re: OpenSSL in Python

2005-11-01 Thread Sybren Stuvel
dcrespo enlightened us with: First, is the PYTHON OpenSSL C wrapper what I need to get running. I think that first you have to get OpenSSL running. Only then can you think about wrapping it. Second, if you don't know how to answer, then limit your opinion to yourself. We all enjoy the

Re: Arguments for button command via Tkinter?

2005-11-01 Thread Francesco Bochicchio
Il Mon, 31 Oct 2005 19:23:18 +, Steve Holden ha scritto: Francesco Bochicchio wrote: Il Mon, 31 Oct 2005 06:23:12 -0800, [EMAIL PROTECTED] ha scritto: And yet the stupidity continues, right after I post this I finnally find an answer in a google search, It appears the way I seen it is

Re: Using graphviz to visualize trace.py output, anybody?

2005-11-01 Thread Magnus Lycka
[EMAIL PROTECTED] wrote: Hi, has anybody thought of / already used graphviz to convert the output of trace.py into a graph? Thanks for the pointer to trace.py. I hadn't seen that before. Are you thinking about a call-graph or sequence diagram, based on the output from trace.py --trace? I

Re: Reuse base-class implementation of classmethod?

2005-11-01 Thread Giovanni Bajo
David Wahler wrote: what's the magic needed to reuse the base-class implementation of a classmethod? class A(object): @classmethod def foo(cls, a,b): # do something pass class B(A): @classmethod def foo(cls, a, b): A.foo(cls, a, b) # WRONG! I

Re: OpenSSL in Python

2005-11-01 Thread Josef Meile
First, is the PYTHON OpenSSL C wrapper what I need to get running. I think that first you have to get OpenSSL running. Only then can you think about wrapping it. I think Sybren is allright here. After installing openssl, pyopenssl won't be a problem. So, if you want to install openssl, you

Re: OpenSSL in Python

2005-11-01 Thread Thorsten Kampe
* dcrespo (2005-11-01 01:11 +0100) wouldn't your question then not be more appropriate on the OpenSSL newsgroup/mailinglist/forum/whatever? Well, I think that because python is the language where I want it to run, I ask it right here. You might think again. Your problem is not related to

Re: OpenSSL in Python

2005-11-01 Thread Thorsten Kampe
* dcrespo (2005-11-01 01:24 +0100) First, is the PYTHON OpenSSL C wrapper what I need to get running. You want to install OpenSSL under Windows. Get a grip: that's not related to Python in any way. Second, if you don't know how to answer, then limit your opinion to yourself. You /got/ a

Re: OpenSSL in Python

2005-11-01 Thread Thorsten Kampe
* Thorsten Kampe (2005-11-01 09:36 +0100) * dcrespo (2005-11-01 01:11 +0100) wouldn't your question then not be more appropriate on the OpenSSL newsgroup/mailinglist/forum/whatever? Well, I think that because python is the language where I want it to run, I ask it right here. You might

Re: Automatically creating a HOME environ variable on Windows?

2005-11-01 Thread jim . eggleston
Having a function is definitely cleaner. Creating a HOME environment variable where one does not exist in the calling shell is misleading. There are 10 modules in the python 2.3 lib directory that contain os.environ['HOME']: lib\ftplib.py lib\mailbox.py lib\mailcap.py lib\netrc.py lib\ntpath.py

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

2005-11-01 Thread Jarek Zgoda
Steve Holden napisał(a): Does anyone know a good python mudule that works with MS SQL server? Google will yield something, but I prefer adodbapi over specialized modules. Works good with SQLServer using SSPI auth (others rather not). Though it does have problems with stored procedures.

Re: Need Python Pro for Help!! Plzz

2005-11-01 Thread Alex Hunsley
Gerhard Häring wrote: Alex Hunsley wrote: [EMAIL PROTECTED] wrote: Need python Pro at [EMAIL PROTECTED] , if u wanna help, [...] 2) Why should someone willing to help you enter into a private email discussion? [...] Actually, it's a Google Group mailing list (formerly eGroups):

Re: Need Python Pro for Help!! Plzz

2005-11-01 Thread Alex Hunsley
Fredrik Lundh wrote: Alex Hunsley wrote: 2) Why should someone willing to help you enter into a private email discussion? Newsgroups like this exist to help people looks like Fan wants to run his own group: http://groups.google.com/group/newtopython/about There are no

Re: Need Python Pro for Help!! Plzz

2005-11-01 Thread Alex Hunsley
Alex Hunsley wrote: Fredrik Lundh wrote: Alex Hunsley wrote: 2) Why should someone willing to help you enter into a private email discussion? Newsgroups like this exist to help people looks like Fan wants to run his own group: http://groups.google.com/group/newtopython/about

Re: Problem With Insert with MySQLdb

2005-11-01 Thread Magnus Lycka
Dennis Lee Bieber wrote: On Sun, 30 Oct 2005 18:44:32 -0500, David Mitchell [EMAIL PROTECTED] declaimed the following in comp.lang.python: sql = INSERT INTO category (category_name) VALUES (' + req.form['category'] + ') cursor.execute(sql) Don't do that! Use the

Re: Automatically creating a HOME environ variable on Windows?

2005-11-01 Thread Ben Sizer
[EMAIL PROTECTED] napisa³(a): MS recommends using %USERPROFILE%, as the above in many cases returns C:\, which is wrong. I'm guessing this is why IDLE creates a directory in the root of my Win98 system whenever I use it. It would be great if this could be fixed for the next version. -- Ben

Re: Using graphviz to visualize trace.py output, anybody?

2005-11-01 Thread Toby Dickenson
Maybe there is some other tool that I am not aware of which can create this kind of trace. I use eclipse with pydev plugin on MacOS 10.3.9 kcachegrind http://kcachegrind.sourceforge.net/cgi-bin/show.cgi -- Toby Dickenson -- http://mail.python.org/mailman/listinfo/python-list

Re: OpenSSL in Python

2005-11-01 Thread Juho Schultz
dcrespo wrote: Hi to all, What do I have to install to get the following code work (Win XP, Python 2.4.2) from OpenSSL import SSL import config KEY_FILE = config.SSL_KEY_FILE CERT_FILE = config.SSL_CERT_FILE -- I've been looking for OpenSSL

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

2005-11-01 Thread Steve Holden
Jarek Zgoda wrote: Steve Holden napisał(a): Does anyone know a good python mudule that works with MS SQL server? Google will yield something, but I prefer adodbapi over specialized modules. Works good with SQLServer using SSPI auth (others rather not). Though it does have problems with

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

2005-11-01 Thread Jarek Zgoda
Steve Holden napisał(a): Does anyone know a good python mudule that works with MS SQL server? Google will yield something, but I prefer adodbapi over specialized modules. Works good with SQLServer using SSPI auth (others rather not). Though it does have problems with stored procedures.

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

2005-11-01 Thread Steve Holden
Jarek Zgoda wrote: Steve Holden napisał(a): Does anyone know a good python mudule that works with MS SQL server? Google will yield something, but I prefer adodbapi over specialized modules. Works good with SQLServer using SSPI auth (others rather not). Though it does have problems with

Re: OpenSSL in Python

2005-11-01 Thread dcrespo
Hi, Excuse me all of you for the way I answered. Sybren, and all of you, accept my apology. I saw the Sybren's message yersterday late night in a bad moment. I'll visit the OpenSSL forum. Thank you all. -- http://mail.python.org/mailman/listinfo/python-list

Re: Need Python Pro for Help!! Plzz

2005-11-01 Thread Ruben Charles
On the other hand, a group for learning that has no experts in it may tend to produce what works style of programming as oppsoed to what is a good idea or practise. What is better? Good practise doesn't work better? -- http://mail.python.org/mailman/listinfo/python-list

Re: Microsoft Hatred FAQ

2005-11-01 Thread samwyse
David Schwartz wrote: Mike Meyer [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Morally, lying in court is a tough one. For example, suppose you are in a court case with someone who is definitely lying in court. You are in the right, but it's clear the court won't believe you

Re: yapsnmp - on windows

2005-11-01 Thread py
anyone? py wrote: I have installed net-snmp and of course python on windows xp. I downloaded yapsnmp (http://yapsnmp.sourceforge.net/) and I can't seem to use it. It has a swig interface...but I get errors when trying to swig it.. C:\yapsnmp-0.7.8\srcc:\Program

Re: Print to printer

2005-11-01 Thread Magnus Lycka
avnit wrote: I can't seem to figure out how to print with my printer using python. I'm using Mac OSX 10.4. I was thinking maybe something with applescript. Does anyone know? Mac OSX is unix, right? This ought to work then: import os printer = os.popen('lpr', 'w') printer.write('This is

Re: Need Python Pro for Help!! Plzz

2005-11-01 Thread Magnus Lycka
Alex Hunsley wrote: My apologies to the OP for assuming he was wanting to have a private one on one email discussion. There are certainly times when it's appropriate to request private assistance, and I personally think it's ok to make such a request available in this forum, but maybe I'm not

Re: cx_Oracle, is anything selected?

2005-11-01 Thread Damjan
Is there a way to see if the SELECT in cx_Oracle didn't return anything? I want to optimize the situation when the number of selected rows is zero. Is select count(*) the only option, seems inefficient? I don't understand your problem - if your select doesn't return anything, the fetch*

Re: Scanning a file

2005-11-01 Thread Paul Watson
Paul Rubin wrote: [EMAIL PROTECTED] (John J. Lee) writes: Closing off this particular one would make it harder to get benefit of non-C implementations of Python, so it has been judged not worth it. I think I agree with that judgement. The right fix is PEP 343. I am sure you are right.

Re: Pickling and unpickling inherited attributes

2005-11-01 Thread Alex
Thanks to both Alex Martelli and Steve Holden.. We need __slots__ for other reasons, too long to explain, but basically to prevent assignment of extra attributes. I ended up changing child classes this way: def __getstate__(self): return(Parent.__getstate__(self), self.C) def

Re: cx_Oracle, is anything selected?

2005-11-01 Thread Diez B. Roggisch
I don't understand your problem - if your select doesn't return anything, the fetch* methods on the cursor will tell you if there is any data to expect at all. Additionally there is teh rowcount-property that holds the number of rows the last execute* yielded. This is a simplification

Re: cx_Oracle, is anything selected?

2005-11-01 Thread Gerhard Häring
Damjan wrote: This is a simplification of the program c = db.cursor() while 1: c.execute('select ') smtp = SMTP(MAIL_HOST, 25, 'localhost') for address, subject, body in c: smtp.sendmail() smtp.quit() time.sleep(60) now if the select doesn't return

Re: Scanning a file

2005-11-01 Thread Paul Watson
Alex Martelli wrote: Steve Holden [EMAIL PROTECTED] wrote: ... The runtime knows it is doing it. Please allow the runtime to tell me what it knows it is doing. Thanks. In point oif fact I don't believe the runtime does any such thing (though I must admit I haven't checked the source, so

String Identity Test

2005-11-01 Thread Thomas Moore
Hi: I am confused at string identity test: Python 2.4.1 (#65, Mar 30 2005, 09:13:57) [MSC v.1310 32 bit (Intel)] on win32 Type help, copyright, credits or license for more information. a=test b=test a is b True About identity, I think a is not b, but a is b returns True. Does that mean

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

2005-11-01 Thread Xah Lee
the Journey of Foreign Characters thru Internet Xah Lee, 20051101 There's a bunch of confusions about the display of non-ascii characters such as the bullet •. These confusions are justifiable, because the underlying stuff is technology, computing technologies, are in a laymen sense, extremely

Re: Web presentation layer/framework for python - recommendations?

2005-11-01 Thread davidj
[EMAIL PROTECTED] wrote: I have been charged with redeveloping a web application with a front end written in python that has a backend of XML files. Does anyone have any recommendations for python toolkits or templating systems that would simplify the cleanup and make the code more

Re: String Identity Test

2005-11-01 Thread Benji York
Thomas Moore wrote: I am confused at string identity test: a=test b=test a is b True About identity, I think a is not b, but a is b returns True. Does that mean equality and identity is the same thing for strings? Nope: a = 'te' + 'st' b = 'test' a is b False You're seeing a

Re: Need Python Pro for Help!! Plzz

2005-11-01 Thread Magnus Lycka
Ruben Charles wrote: What is better? It's better if programs work by design and not just by accident. There is of course a risk that experts talk above the heads of newbies, and that newbies feel uncomfortable exposing their lack of knowledge to much better programmers, but I think the Tutor

Re: OpenSSL in Python

2005-11-01 Thread Sybren Stuvel
dcrespo enlightened us with: Excuse me all of you for the way I answered. Sybren, and all of you, accept my apology. I saw the Sybren's message yersterday late night in a bad moment. Next time, don't visit Usenet in a bad moment. Sybren -- The problem with the world is stupidity. Not saying

python.org offline

2005-11-01 Thread Sybren Stuvel
Hi all, In the past weeks, I often got this message from the python.org webserver: -- Service Temporarily Unavailable The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please

Re: String Identity Test

2005-11-01 Thread Fredrik Lundh
Thomas Moore wrote: I am confused at string identity test: Python 2.4.1 (#65, Mar 30 2005, 09:13:57) [MSC v.1310 32 bit (Intel)] on win32 Type help, copyright, credits or license for more information. a=test b=test a is b True About identity, I think a is not b, but a is b returns

Re: String Identity Test

2005-11-01 Thread Duncan Booth
Thomas Moore wrote: I am confused at string identity test: snip Does that mean equality and identity is the same thing for strings? Definitely not. What is actually happening is that certain string literals get folded together at compile time to refer to the same string constant, but you

Virus in your Mail to empire.support

2005-11-01 Thread root
The VirusCheck at the IMST generated the following Message: V I R U S A L E R T Our VirusCheck found a Virus (W32/Netsky-Q) in your eMail to empire.support. This eMail has been deleted ! Now it is on you to check your System for Viruses This

Re: importing pickle modlue execute the code twice ??

2005-11-01 Thread ychaouche
How stupid I am. Indeed i did ! I didn't pay attention to that.. Thanks ! did you perhaps name your test program pickle.py ? /F -- http://mail.python.org/mailman/listinfo/python-list

Re: Scanning a file

2005-11-01 Thread Fredrik Lundh
Alex Martelli wrote: As far as I know, Python simply relies on the opreating system to close files left open at the end of the program. Nope, see http://cvs.sourceforge.net/viewcvs.py/python/python/dist/src/Objects/fi leobject.c?rev=2.164.2.3view=markup that's slightly misleading: CPython

hello, I want to change n bytes of a binary file

2005-11-01 Thread could ildg
I want to encrypt a very large birany file,but if to change the whole file, it will take very long time,so I just want to change n(n is an int) bytes of the file.but when I turned to the file I/O of python, I found that file object can only read and write strings, so how can I do the binary

dpx file reader

2005-11-01 Thread Brian Gyss
All - Does anyone have a practical example of a DPX file reader implemented fully in Python that they would be willing to share? Thanks! - Brian -- http://mail.python.org/mailman/listinfo/python-list

Re: hello, I want to change n bytes of a binary file

2005-11-01 Thread Fredrik Lundh
could ildg wrote: I want to encrypt a very large birany file, but if to change the whole file, it will take very long time, so I just want to change n(n is an int) bytes of the file. but when I turned to the file I/O of python, I found that file object can only read and write strings, so

Re: String Identity Test

2005-11-01 Thread Magnus Lycka
Thomas Moore wrote: a=test b=test a is b True About identity, I think a is not b, but a is b returns True. Does that mean equality and identity is the same thing for strings? Not exactly: a=this is also a string b=this is also a string a is b False It's the same with integers. Small

Re: Forced to Embed?

2005-11-01 Thread Magnus Lycka
Lloyd wrote: As far as I can tell I have to export these all in one massive module as there is no way for the different python modules to directly communicate with each other? I don't see how this is a Python issue. If you can make these modules into shared objects / dynamically linked

Re: hello, I want to change n bytes of a binary file

2005-11-01 Thread could ildg
On 11/1/05, Fredrik Lundh [EMAIL PROTECTED] wrote: could ildg wrote: I want to encrypt a very large birany file, but if to change the whole file, it will take very long time, so I just want to change n(n is an int) bytes of the file. but when I turned to the file I/O of python, I found that file

Re: Pickling and unpickling inherited attributes

2005-11-01 Thread Steve Holden
Alex wrote: Thanks to both Alex Martelli and Steve Holden.. We need __slots__ for other reasons, too long to explain, but basically to prevent assignment of extra attributes. I ended up changing child classes this way: def __getstate__(self): return(Parent.__getstate__(self),

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

2005-11-01 Thread Steve Holden
[New readers: Please ignore the writings of this unbalanced individual, who is well-known for posting inappropriate and inflammatory material on many different newsgroups and mailing lists]. Xah Lee wrote: the Journey of Foreign Characters thru Internet Xah Lee, 20051101 There's a bunch

Re: String Identity Test

2005-11-01 Thread Roy Smith
Duncan Booth [EMAIL PROTECTED] wrote: If 'a!=b' then it will also be the case that 'a is not b' That's true for strings, and (as far as I know), all pre-defined types, but it's certainly possible to define a class which violates that. class isButNotEqual: def __ne__ (self, other):

Re: hello, I want to change n bytes of a binary file

2005-11-01 Thread Gerrit Holl
could ildg wrote: b = encrypt(a) Thank you~~,but where is the encrypt defined? I suppose it's left as an exercise for the reader. Gerrit. -- Temperature in Kiruna, Lappland, Sweden: Tue Nov 1 15:35:25 2005 [UT] 2.6°C --

Re: OfflineIMAP needs a good home

2005-11-01 Thread David Ascher
On 10/31/05, John Goerzen [EMAIL PROTECTED] wrote: I have found that I don't have the time or interest to work onOfflineIMAP anymore, and I'm wondering if there is anyone out in thePython community that would be interested in taking over this code.OfflineIMAP is GPL'd and written 100% in

Re: String Identity Test

2005-11-01 Thread Richard Brodie
Roy Smith [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On the other hand, I can't imagine any reason why you would want to define such a class, PEP 754? -- http://mail.python.org/mailman/listinfo/python-list

Re: Automatically creating a HOME environ variable on Windows?

2005-11-01 Thread Micah Elliott
Maciej Dziardziel wrote: ...there is a group of path related functions in os.path (or ntpath), including expanduser, and its better to use function... On Nov 01, [EMAIL PROTECTED] wrote: Having a function is definitely cleaner. Creating a HOME environment variable where one does not exist

Re: OpenSSL in Python

2005-11-01 Thread dcrespo
Tu madre -- http://mail.python.org/mailman/listinfo/python-list

Re: python.org offline

2005-11-01 Thread dcrespo
The answer is here: The server is temporarily unable to service your request due to maintenance downtime or capacity problems. -- The problem with the world is stupidity. Not saying there should be a capital punishment for stupidity, but why don't we just take the safety labels off of everything

Embedding Python in an embedded system

2005-11-01 Thread Stefan Arentz
Howdy. I'm looking at embedding python in a little embedded system. The device (a linksys wrt54g router, popular hack object since it runs linux), has limited resources. Just 4MB flash and 16MB memory. I'm interested in Python because I need to be more agile with developing an application for

Re: cx_Oracle, is anything selected?

2005-11-01 Thread Damjan
Apart from that: what harm does the connection to the smpt do? If it works - keep it that way. I worry about being banned from the server. -- damjan -- http://mail.python.org/mailman/listinfo/python-list

Re: Rename files with numbers

2005-11-01 Thread Ed Singleton
The best free app I've found for this is MusicBrainz [www.musicbrainz.com]. This has a huge database of obsessively correct details of albums which can be formatted in anyway you choose. It can automatically recognise which song an MP3 is! This is a similar script I wrote to renumber files in

Re: python.org offline

2005-11-01 Thread Sybren Stuvel
dcrespo enlightened us with: The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Yes, I can read. My question is: does anyone know why this happens so often lately? Sybren -- The problem with the world is stupidity. Not saying there

extracting numbers from a file, excluding words

2005-11-01 Thread dawenliu
Hi, I have a file with this content: z zzz z ... xxx xx x 34.215 zzz zz ... x and z are letters. The lines with z are trash, and only the lines with x are important. I want to extract the number (34.215 in this case) behind the letters x, and store it in a

Re: Embedding Python in an embedded system

2005-11-01 Thread Steve Holden
Stefan Arentz wrote: Howdy. I'm looking at embedding python in a little embedded system. The device (a linksys wrt54g router, popular hack object since it runs linux), has limited resources. Just 4MB flash and 16MB memory. I'm interested in Python because I need to be more agile with

Re: hello, I want to change n bytes of a binary file

2005-11-01 Thread Fredrik Lundh
could ildg wrote: so how can I do the binary stuff? 8-bit strings contain bytes. I want a encrypt function like below: def encrypt(filename,n): f = open(filename,rb+) a=f.read(n) b = encrypt(a) Thank you~~,but where is the encrypt defined? oh, I though you asked how to

Re: extracting numbers from a file, excluding words

2005-11-01 Thread Kristina Kudriašova
1 Nov 2005 09:19:45 -0800, [EMAIL PROTECTED] [EMAIL PROTECTED]: Hi, I have a file with this content: z zzz z ... xxx xx x 34.215 zzz zz ... Hi, I'd suggest doing this: f = file('...') for line in f: if 'xxx xx x' in line:

Flat file, Python accessible database?

2005-11-01 Thread Karlo Lozovina
I've been Googling around for _small_, flat file (no server processes), SQL-like database which can be easily access from Python. Speed and perforamnce are of no issue, most important is that all data is contained within single file and no server binary has to run in order to use the dbase.

Python's website does a great disservice to the language

2005-11-01 Thread CppNewB
I was trying to advocate using Python for an upcoming prototype, so my boss went out to take a look at the documentation and try and get a feel for what the language is all about. First comment; I hope the language is designed better than the site. The site is readable, but is amateurish. If

Re: Flat file, Python accessible database?

2005-11-01 Thread Björn Lindström
Karlo Lozovina [EMAIL PROTECTED] writes: I've been Googling around for _small_, flat file (no server processes), SQL-like database which can be easily access from Python. If you need it to be SQL-like, SQLite seems to be the right thing. It's not clear to me what you mean by flat file here,

Re: Flat file, Python accessible database?

2005-11-01 Thread Kent Johnson
Karlo Lozovina wrote: I've been Googling around for _small_, flat file (no server processes), SQL-like database which can be easily access from Python. Speed and perforamnce are of no issue, most important is that all data is contained within single file and no server binary has to run in

Re: python.org offline

2005-11-01 Thread Steve Holden
Sybren Stuvel wrote: dcrespo enlightened us with: The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Yes, I can read. My question is: does anyone know why this happens so often lately? Possibly real maintenance occasioned by a

Re: Flat file, Python accessible database?

2005-11-01 Thread Micah Elliott
On Nov 01, Karlo Lozovina wrote: I've been Googling around for _small_, flat file (no server processes), SQL-like database which can be easily access from Python. Speed and perforamnce are of no issue, most important is that all data is contained within single file and no server binary has to

Re: Python's website does a great disservice to the language

2005-11-01 Thread Grant Edwards
On 2005-11-01, CppNewB [EMAIL PROTECTED] wrote: I was trying to advocate using Python for an upcoming prototype, so my boss went out to take a look at the documentation and try and get a feel for what the language is all about. First comment; I hope the language is designed better than the

Re: python.org offline

2005-11-01 Thread calad . sigilon
Works fine for me, and I check it pretty frequently. Perhaps it's a problem with your ISP's communication with the Python.org ISP? Sybren Stuvel wrote: Hi all, In the past weeks, I often got this message from the python.org webserver:

Re: Python's website does a great disservice to the language

2005-11-01 Thread Steve Holden
CppNewB wrote: I was trying to advocate using Python for an upcoming prototype, so my boss went out to take a look at the documentation and try and get a feel for what the language is all about. First comment; I hope the language is designed better than the site. The site is readable,

Re: Storing empties

2005-11-01 Thread Aahz
In article [EMAIL PROTECTED], Alex Martelli [EMAIL PROTECTED] wrote: Aahz [EMAIL PROTECTED] wrote: In article [EMAIL PROTECTED], Alex Martelli [EMAIL PROTECTED] wrote: the canonical idiom when you need such distinction is: _not_there = object() def foo(bar=_not_there, baz=_not_there,

Re: Python's website does a great disservice to the language

2005-11-01 Thread CppNewB
Good news Steve. It's definitely time for a sneak preview. Let's see it! Steve Holden [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] CppNewB wrote: I was trying to advocate using Python for an upcoming prototype, so my boss went out to take a look at the documentation and try

Re: Python's website does a great disservice to the language

2005-11-01 Thread Micah Elliott
On Nov 01, CppNewB wrote: First comment; I hope the language is designed better than the site. The site is readable, but is amateurish. That's flaim bait if I ever saw it! I find the site quite lovely: very readable, no ads, well organized, nice colors, simple, easy to maintain (uses ht2html

Re: Python's website does a great disservice to the language

2005-11-01 Thread Fredrik Lundh
CppNewB wrote: I was trying to advocate using Python for an upcoming prototype, so my boss went out to take a look at the documentation and try and get a feel for what the language is all about. First comment; I hope the language is designed better than the site. so your boss is a troll,

Re: Python's website does a great disservice to the language

2005-11-01 Thread Robert Boyd
On 11/1/05, CppNewB [EMAIL PROTECTED] wrote: ...First comment; I hope the language is designed better than the site.Thesite is readable, but is amateurish.If I had an ounce of design skills inme, I would take a stab at it. Does boss have a problem with java.sun.com as well? The main visual

Re: Python's website does a great disservice to the language

2005-11-01 Thread bearophileHUGS
Grant Edwards wrote: May God save us from professional looking web sites. I like the Python web site. It's simple, easy to read, and easy to use. I strongly agree with you, the web is full of web sites that are nice looking but have microscopic fixed fonts (against the very spirit of Html),

Re: Python's website does a great disservice to the language

2005-11-01 Thread Fredrik Lundh
message = message.replace(you're, your) -- 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

callback for ctypes

2005-11-01 Thread James Hu
Hi, gurus, I would like to use ctypes to implement callback function for QImage Camera to capture image asynchronously, and I have the c++ code of callback, but I am totally in the dark, the ctypes tutorial is not good enough for me to do that, does someone know where to dig more info for ctypes

Python and DevTrack?

2005-11-01 Thread warpcat
I'm a python nubie, so be gental. I've been setting up functionality by managing my Perforce clientspec with python (since it seems all of P4's commands are avaliable at the prompt), and I'd love to get access to DevTrack in the same way, but it's looking like it's off limits, UI only. Does

Add attribute using pyxml

2005-11-01 Thread PyPK
How do I add a new attribute to the existing xml Document tree??? -- http://mail.python.org/mailman/listinfo/python-list

Re: python.org offline

2005-11-01 Thread Sybren Stuvel
Steve Holden enlightened us with: Possibly real maintenance occasioned by a recent move to a new server, in preparation for the new-look web site. Makes sense. Thanks for the info! Sybren -- The problem with the world is stupidity. Not saying there should be a capital punishment for

Re: python.org offline

2005-11-01 Thread Sybren Stuvel
[EMAIL PROTECTED] enlightened us with: Works fine for me, and I check it pretty frequently. Perhaps it's a problem with your ISP's communication with the Python.org ISP? I doubt it, since they are one and the same ;-) Sybren -- The problem with the world is stupidity. Not saying there should

Object-Relational Mapping API for Python

2005-11-01 Thread Aquarius
I explored Java's Hibernate a bit and I was intrigued by how you can map entity objects to database tables, preserving all the relations and constraits. I am interested if there is something like this for Python - I noticed some APIs in the Cheeseshop, but most of them were alpha, better, or

Re: Automatically creating a HOME environ variable on Windows?

2005-11-01 Thread jim . eggleston
Does Windows 98 have a %USERPROFILE% environment variable? -- http://mail.python.org/mailman/listinfo/python-list

Re: Python's website does a great disservice to the language

2005-11-01 Thread Sybren Stuvel
[EMAIL PROTECTED] enlightened us with: I strongly agree with you, the web is full of web sites that are nice looking but have microscopic fixed fonts (against the very spirit of Html), are full of useless flash, have lots of html structures nested inside other ones (PHP sites are often like

Re: Add attribute using pyxml

2005-11-01 Thread Robert Boyd
On 1 Nov 2005 11:09:10 -0800, PyPK [EMAIL PROTECTED] wrote: How do I add a new attribute to the existing xml Document tree??? Add an attribute of an element, or add a new element? I hope I've understood your question correctly...this demonstrates both adding a brand new element (tag) and an

Re: Automatically creating a HOME environ variable on Windows?

2005-11-01 Thread jim . eggleston
os.path.expanduser('~') is a bit cryptic for non-unix people. os.path.gethome() or something like that would be nicer. expanduser() should then call gethome() so the logic is in one place. It looks like the existing logic in expanduser() is out of date anyway. It should be updated to use

Re: Python's website does a great disservice to the language

2005-11-01 Thread svenn . are
So the first thing you do when you go to a web page is to google if they are going to redesign it? -- Svenn -- http://mail.python.org/mailman/listinfo/python-list

Re: Scanning a file

2005-11-01 Thread David Rasmussen
Lasse Vågsæther Karlsen wrote: David Rasmussen wrote: snip If you must know, the above one-liner actually counts the number of frames in an MPEG2 file. I want to know this number for a number of files for various reasons. I don't want it to take forever. Don't you risk getting more

Re: Scanning a file

2005-11-01 Thread David Rasmussen
Bengt Richter wrote: Good point, but perhaps the bit pattern the OP is looking for is guaranteed (e.g. by some kind of HDLC-like bit or byte stuffing or escaping) not to occur except as frame marker (which might make sense re the problem of re-synching to frames in a glitched video stream).

Re: Scanning a file

2005-11-01 Thread David Rasmussen
Steven D'Aprano wrote: However, there may be a simpler solution *fingers crossed* -- you are searching for a sub-string \x00\x00\x01\x00, which is hex 0x100. Surely you don't want any old substring of \x00\x00\x01\x00, but only the ones which align on word boundaries? Nope, sorry. On

Re: python.org offline

2005-11-01 Thread A.M. Kuchling
On Tue, 1 Nov 2005 18:18:06 +0100, Sybren Stuvel [EMAIL PROTECTED] wrote: Yes, I can read. My question is: does anyone know why this happens so often lately? I suspect this is teething problems related to the move to a new server. I've bumped up the number of Apache processes, so

  1   2   >