Re: OT: excellent book on information theory

2006-01-18 Thread Steve Holden
Terry Hancock wrote: > On Tue, 17 Jan 2006 13:28:15 + > Steve Holden <[EMAIL PROTECTED]> wrote: > >>Grant Edwards wrote: >> >>>Very interesting. And rather sad that editors think the >>>average Amermican reader too dim-witted to figure out >>>(in context, even) that a "car park" is a "parking

Re: Arithmetic sequences in Python

2006-01-18 Thread Antoon Pardon
Op 2006-01-17, Steven Bethard schreef <[EMAIL PROTECTED]>: > Antoon Pardon wrote: >> Why don't we give slices more functionality and use them. >> These are a number of ideas I had. (These are python3k ideas) >> >> 1) Make slices iterables. (No more need for (x)range) >> >> 2) Use a bottom and sto

Re: New Python.org website ?

2006-01-18 Thread Shalabh Chaturvedi
Steve Holden wrote: > http://beta.python.org Hm. Am I the only one not particularly impressed? Sure the front page is 'slick' but a few clicks reveal a fairly shallow facade of marketing material, with no real content. In general gives the impression of 'phony' company trying to make a big impr

Re: magical expanding hash

2006-01-18 Thread Steve Holden
Steven Bethard wrote: > Steve Holden wrote: > >>Steven Bethard wrote: >> >>>Agreed. I really hope that Python 3.0 applies Raymond Hettinger's >>>suggestion "Improved default value logic for Dictionaries" from >>> http://wiki.python.org/moin/Python3%2e0Suggestions >>> >>>This would allow you

Re: The Python cross? Was New Python.org website

2006-01-18 Thread Steve Holden
Obaid R. wrote: > Bugs wrote: > >>I thought I read here that a new website design was in the works for >>python.org in time for the new year? Is that still true and of so, >>anyone know what is it's status? >>Thanks! > > > > I googled around and found no background on how the new Python logo >

Re: The Python cross? Was New Python.org website

2006-01-18 Thread Steve Holden
Obaid R. wrote: > Bugs wrote: > >>I thought I read here that a new website design was in the works for >>python.org in time for the new year? Is that still true and of so, >>anyone know what is it's status? >>Thanks! > > > > I googled around and found no background on how the new Python logo >

Re: Arithmetic sequences in Python

2006-01-18 Thread Antoon Pardon
Op 2006-01-17, Gregory Petrosyan schreef <[EMAIL PROTECTED]>: > Hey guys, this proposal has already been rejected (it is the PEP 204). > No it isn't. In my proposal [1, 2:8, 8] would be equivallent to [1, slice(2,8), 8]. If someone would want the list [1,2,3,4,5,6,7,8] with this notation, I would

Re: 10060, 'Operation timed out'

2006-01-18 Thread Steve Holden
Sumit Acharya wrote: > I am using following script to connect to the server and i try the > connection for 1000 times. Some times it succeeds for all the 1000 > times,but some times it fails with error:- > 10060, 'Operation timed out'. When it fails with the abover error, it > seems timed out time

Re: New Python.org website ?

2006-01-18 Thread Tim N. van der Leeuw
Shalabh, You've managed very well to express the same things I feel about the new Python website. What I especially dislike about the new website are the flashy pictures on the front-page with no content and no purpose -- purely boasting but nothing to back up your claims. (I wouldn't mind some

Re: Arithmetic sequences in Python

2006-01-18 Thread Antoon Pardon
Op 2006-01-18, Tom Anderson schreef <[EMAIL PROTECTED]>: > On Tue, 17 Jan 2006, Antoon Pardon wrote: > >> Op 2006-01-16, Alex Martelli schreef <[EMAIL PROTECTED]>: >>> Paul Rubin wrote: >>> Steven D'Aprano <[EMAIL PROTECTED]> writes: > For finite sequences, your

Re: XML Writer in wxPython

2006-01-18 Thread Marco Meoni
i have to put the XML in a string. Is there a module with the XML writing funcion? -- http://mail.python.org/mailman/listinfo/python-list

Re: The Python cross? Was New Python.org website

2006-01-18 Thread Neil Hodgson
Steve Holden: > The history of this choice is lost in the mists of time. Many other > proposals were made and discussed at around the same time, to the extent > that it became clear no one choice could win universal approval. The two snakes have just been arguing (over decorator syntax, the

Re: New Python.org website ?

2006-01-18 Thread Tim Golden
[Shalabh Chaturvedi] | Hm. Am I the only one not particularly impressed? Sure the | front page is | 'slick' but a few clicks reveal a fairly shallow facade of marketing | material, with no real content. In general gives the impression of | 'phony' company trying to make a big impression. Most good

Re: search multiple dictionaries efficiently?

2006-01-18 Thread Duncan Booth
George Sakkis wrote: > It's not the *most* efficient way because value is looked up twice if > it is contained in the dictionary; if you absolutely need it to be as > efficient as possible and can't figure it out on your own, ask again > and someone will help you out. > How do you *know* it is no

Re: 10060, 'Operation timed out'

2006-01-18 Thread Sumit Acharya
can u please modify the script that i have posted with your suggestion, it will help me to a certain extent. Thanks -- http://mail.python.org/mailman/listinfo/python-list

Re: New Python.org website ?

2006-01-18 Thread Steve Holden
Tim N. van der Leeuw wrote: > Shalabh, > > You've managed very well to express the same things I feel about the > new Python website. > > What I especially dislike about the new website are the flashy pictures > on the front-page with no content and no purpose -- purely boasting but > nothing to

Re: search multiple dictionaries efficiently?

2006-01-18 Thread Ben Sizer
Duncan Booth wrote: > Test with the 'in' operator and then retrieving the value is the fastest > solution when the value isn't in the dictionary (it only does a single > lookup then), and is still fast when it is. [0.36/0.2] > > Using the get method of the dictionary with a default value to be retr

Re: Arithmetic sequences in Python

2006-01-18 Thread Antoon Pardon
Op 2006-01-16, Gregory Petrosyan schreef <[EMAIL PROTECTED]>: > Please visit http://www.python.org/peps/pep-0204.html first. > > As you can see, PEP 204 was rejected, mostly because of not-so-obvious > syntax. But IMO the idea behind this pep is very nice. So, maybe > there's a reason to adopt slig

Re: New Python.org website ?

2006-01-18 Thread Fredrik Lundh
Shalabh Chaturvedi wrote: > Hm. Am I the only one not particularly impressed? no. the design is alright (if a bit too "bland business"), but the little I've seen of the information architecture and the backend infrastructure feels like 1998 (which, I suppose, was when the project started...) o

Re: Find and slice problem

2006-01-18 Thread Juho Schultz
[EMAIL PROTECTED] wrote: > Hi guys, been going around in circles with this so I hope you can help! > > My current situation is I'm using Grinder and Jython to test pages, but > the log on process is giving me some headaches. After entering the > correct username and password, you then need to ente

Re: 10060, 'Operation timed out'

2006-01-18 Thread Steve Holden
Sumit Acharya wrote: > can u please modify the script that i have posted with your suggestion, > it will help me to a certain extent. > > Thanks > from ftplib import FTP import time import sys import socket socket.setdefaulttimeout(60) host = sys.argv[1] port = sys.argv[2] for x in range(1000):

Re: New Python.org website ?

2006-01-18 Thread Steve Holden
Tim Golden wrote: [...] > You might argue that the beta shouldn't have been unveiled > without suitable text etc. But I would say: well done to > the people who've made the effort and put the beta > together. It's been mentioned that the whole thing is > downloadable and open to contributions, so m

Re: New Python.org website ?

2006-01-18 Thread Tim N. van der Leeuw
> Checkins to subversion cause an automated update in the site content. Good :) What's the subversion URL where I can fetch the site? ;) regards, --Tim -- http://mail.python.org/mailman/listinfo/python-list

Re: New Python.org website ?

2006-01-18 Thread Steve Holden
Tim N. van der Leeuw wrote: >>Checkins to subversion cause an automated update in the site content. > > > Good :) What's the subversion URL where I can fetch the site? ;) > The URL is https://svn.python.org/www/trunk/beta.python.org but I don't know whether anonymous access is enabled. Mayb

Re: New Python.org website ?

2006-01-18 Thread Tim Golden
[Steve Holden] | https://svn.python.org/www/trunk/beta.python.org | but I don't know whether anonymous access is enabled. Maybe you can let |me know ... Doesn't look like it. Asking me for authentication. TJG -- http://mail.python.org/mailman/listinfo/python-list

Re: New Python.org website ?

2006-01-18 Thread Tim N. van der Leeuw
Steve, My apologies if this apppeared to be 'slagging'. I was trying to give some feedback but I do realize that I don't have anything better to offer yet to replace the pictures I dislike. Perhaps I should have withheld my criticisms until I could offer an alternative. (Still thinking about what

Re: New Python.org website ?

2006-01-18 Thread Steve Holden
Tim N. van der Leeuw wrote: > Steve, > > My apologies if this apppeared to be 'slagging'. I was trying to give > some feedback but I do realize that I don't have anything better to > offer yet to replace the pictures I dislike. > That's absolutely fine, the redevelopment of the site is intended t

Re: New Python.org website ?

2006-01-18 Thread Steve Holden
Tim Golden wrote: > [Steve Holden] > > | https://svn.python.org/www/trunk/beta.python.org > > | but I don't know whether anonymous access is enabled. Maybe you can > let > |me know ... > > Doesn't look like it. Asking me for authentication. > Rats, thanks for letting me know. As a first step

Re: New Python.org website ?

2006-01-18 Thread Tim N. van der Leeuw
I need to supply a username/password before I can look at the SVN repository in my webbrowser; I tried username/pwd 'anonymous' but that don't work. cheers, --Tim -- http://mail.python.org/mailman/listinfo/python-list

Re: magical expanding hash

2006-01-18 Thread Steven D'Aprano
On Tue, 17 Jan 2006 18:00:00 -0700, Steven Bethard wrote: > Steve Holden wrote: >> Steven Bethard wrote: >>> Agreed. I really hope that Python 3.0 applies Raymond Hettinger's >>> suggestion "Improved default value logic for Dictionaries" from >>> http://wiki.python.org/moin/Python3%2e0Sugge

Re: New Python.org website ?

2006-01-18 Thread Roel Schroeven
Tim N. van der Leeuw schreef: > Shalabh, > > You've managed very well to express the same things I feel about the > new Python website. FWIW, I don't like the new site at all. It tries to look slick (but fails to do so in my opinion), and buries the useful information in all kinds of misplaced

Being unjust

2006-01-18 Thread Kay Schluehr
I'd be interested in what people think about bundling one of the diverse Python webframeworks with the Python distribution which will be "just there" as like Tcl/Tk+Tkinter for GUI-programming. Its not that I don't trust people to make qualified decisions on their own or that I actually believe in

Re: check to see if value can be an integer instead of string

2006-01-18 Thread Steven D'Aprano
On Tue, 17 Jan 2006 18:02:52 -0800, nephish wrote: > Hello there, > i need a way to check to see if a certain value can be an integer. I > have looked at is int(), but what is comming out is a string that may > be an integer. Not in Python it isn't. int(value) returns an int, not a string. > i

Re: Being unjust

2006-01-18 Thread Fredrik Lundh
Kay Schluehr wrote: > I'd be interested in what people think about bundling one of the > diverse Python webframeworks with the Python distribution which will be > "just there" as like Tcl/Tk+Tkinter for GUI-programming. if you can find one that's relatively stable, simple enough to enable beginne

Re: On Numbers

2006-01-18 Thread Steven D'Aprano
On Tue, 17 Jan 2006 23:34:40 +, Tom Anderson wrote: ... >>> So I don't really know what point you are making. What solution(s) for >>> 1**0.5 were you expecting? >> >> He's probably getting at the fact that if you're dealing with complex >> numbers, square root get a lot more complicated: >

Re: Being unjust

2006-01-18 Thread Steven D'Aprano
On Wed, 18 Jan 2006 03:27:56 -0800, Kay Schluehr wrote: > I'd be interested in what people think about bundling one of the > diverse Python webframeworks with the Python distribution which will be > "just there" as like Tcl/Tk+Tkinter for GUI-programming. Its not that I > don't trust people to mak

Re: On Numbers

2006-01-18 Thread Erik Max Francis
Steven D'Aprano wrote: > Perhaps you meant to write (-1)**0.5, in which case Python developers have > a decision to make: should it assume real-valued maths unless explicitly > told differently, and hence raise an exception, or coerce the result to > complex? > > In this case, Python raises an ex

Re: Being unjust

2006-01-18 Thread Fuzzyman
Fredrik Lundh wrote: > Kay Schluehr wrote: > > > I'd be interested in what people think about bundling one of the > > diverse Python webframeworks with the Python distribution which will be > > "just there" as like Tcl/Tk+Tkinter for GUI-programming. > > if you can find one that's relatively stabl

making objects unassignable "read-only" (especially when extending)

2006-01-18 Thread Johannes Zellner
Hi, can I make an object read-only, so that x = new_value fails (and x keeps it's orginal value)? This would be especially of interest for me for an object created by a c extension. -- Johannes -- http://mail.python.org/mailman/listinfo/python-list

Re: Newcomer question wrt variable scope/namespaces

2006-01-18 Thread Magnus Lycka
Florian Daniel Otel wrote: > Do I understand it correctly > that actually the rule has to be refined as pertaining to the (so > called) "immutable" types (like e.g. integers, tuples/strings) > whereas lists and dictionaries are "mutable" types and the said > scoping rule does not apply ? No! The

Debugging python 2.2 code with Pydev

2006-01-18 Thread coujou
It's all in the title. Is there a way (using Pydev) to debug code written for and executed by python 2.2 ? I have only the 2.2 interpreter installed. The run command works fine but the debugger tells me : "Unexpected error setting up the debugger". (More info below). I'm working under windowsXP w

extending python: which python code calls the c iterator methods?

2006-01-18 Thread Johannes Zellner
Hello, when extending python there are type methods tp_iter and tp_iternext. Which python code calls the c iterator methods? -- Johannes -- http://mail.python.org/mailman/listinfo/python-list

[OT] Nit: please don't user "it's" unless you can substitute "it is" without changing your inteded meaning.

2006-01-18 Thread Bengt Richter
Typos happen to all of us, but in case you hadn't realized what "it's" is a contraction for ("it is"), now you do, and you can save yourself further embarrassment (assuming you care ;-). If your friends won't tell you, who will ;-) Write the contraction "it's" only when you want its meaning to be

Can a simple a==b 'hang' in and endless loop?

2006-01-18 Thread Claudio Grondi
In the process of learning about some deeper details of Python I am curious if it is possible to write a 'prefix' code assigning to a and b something special, so, that Python gets trapped in an endless loop in a line with: if a==b: print 'OK' I mean, it would be of much help to me on my way t

Re: making objects unassignable "read-only" (especially when extending)

2006-01-18 Thread Simon Brunning
On 18 Jan 2006 11:59:23 GMT, Johannes Zellner <[EMAIL PROTECTED]> wrote: > Hi, > > can I make an object read-only, so that > > x = new_value > > fails (and x keeps it's orginal value)? This works for me: http://groups.google.com/group/comp.lang.python/msg/2b1785397358ff90 -- Cheers, Simon B,

Re: chi-squared tests in python?

2006-01-18 Thread Michael Anthony Maibaum
On 17 Jan 2006, at 20:32, Rob Cowie wrote: >>> Matthew >>> ps: given the "batteries included" philosphy, there's a >>> remarkable dearth >>> of stats in python... > >> I think Chi^2 tests fall distinctly in the "third-party library" >> category, >myself. > > I don't know... I've often thought

Re: Can a simple a==b 'hang' in and endless loop?

2006-01-18 Thread Fredrik Lundh
Claudio Grondi wrote: > In the process of learning about some deeper details of Python I am > curious if it is possible to write a 'prefix' code assigning to a and b > something special, so, that Python gets trapped in an endless loop in a > line with: > > if a==b: print 'OK' > > I mean, it would

Re: Nit: please don't user "it's" unless you can substitute "it is" without changing your inteded meaning.

2006-01-18 Thread Fuzzyman
Bengt Richter wrote: > Typos happen to all of us, but in case you hadn't realized what "it's" > is a contraction for ("it is"), now you do, and you can save yourself further > embarrassment (assuming you care ;-). > If your friends won't tell you, who will ;-) > Making grammatical errors in the s

Re: check to see if value can be an integer instead of string

2006-01-18 Thread nephish
it isn't really that i will want to change it to an integer anyway. the script uses a table to reference a value to a key, if the key is a group of letters, that code tells the script to do something. if the value is a number, it means an equipment failure. The thing is, all the values come out as

Re: On Numbers

2006-01-18 Thread Steve Holden
Erik Max Francis wrote: > Steven D'Aprano wrote: > > >>Perhaps you meant to write (-1)**0.5, in which case Python developers have >>a decision to make: should it assume real-valued maths unless explicitly >>told differently, and hence raise an exception, or coerce the result to >>complex? >> >>In

Re: Nit: please don't user "it's" unless you can substitute "it is"without changing your inteded meaning.

2006-01-18 Thread Fredrik Lundh
Fuzzyman wrote: > Making grammatical errors in the subject of a post on gramamtical > errors must be embarrasing. ;-) http://linuxmafia.com/~rick/lexicon.html#moenslaw-corrections -- http://mail.python.org/mailman/listinfo/python-list

Re: extending python: which python code calls the c iterator methods?

2006-01-18 Thread Fredrik Lundh
Johannes Zellner wrote: > when extending python there are type methods tp_iter and tp_iternext. > Which python code calls the c iterator methods? iter(obj), for-in obj, etc. -- http://mail.python.org/mailman/listinfo/python-list

Re: New Python.org website ?

2006-01-18 Thread Tim Parkin
Shalabh Chaturvedi wrote: > Hm. Am I the only one not particularly impressed? Sure the front page is > 'slick' but a few clicks reveal a fairly shallow facade of marketing > material, with no real content. In general gives the impression of > 'phony' company trying to make a big impression. Most

Re: New Python.org website ?

2006-01-18 Thread Tim Parkin
Fredrik Lundh wrote: > Shalabh Chaturvedi wrote: > > >>Hm. Am I the only one not particularly impressed? > > > no. > > the design is alright (if a bit too "bland business"), but the little I've > seen of the > information architecture and the backend infrastructure feels like 1998 > (which,

Re: New Python.org website ?

2006-01-18 Thread Tim Parkin
Tim N. van der Leeuw wrote: > Shalabh, > > You've managed very well to express the same things I feel about the > new Python website. > > What I especially dislike about the new website are the flashy pictures > on the front-page with no content and no purpose -- purely boasting but > nothing to

Re: On Numbers

2006-01-18 Thread Erik Max Francis
Steve Holden wrote: > >>> import cmath > >>> cmath.sqrt(-1) > 1j > >>> > > Indeed. But even exponentiation can come respectably close: > > >>> (-1+0j)**0.5 > (6.123233995736766e-17+1j) Oh, no doubt. I was just pointing out that cmath.sqrt is what you want if you really do want the com

Re: 10060, 'Operation timed out'

2006-01-18 Thread Sumit Acharya
Hi Steve, It didnt help, i am getting same error. -- http://mail.python.org/mailman/listinfo/python-list

Re: New Python.org website ?

2006-01-18 Thread Tim Parkin
Roel Schroeven wrote: > Tim N. van der Leeuw schreef: > >>Shalabh, >> >>You've managed very well to express the same things I feel about the >>new Python website. > > > FWIW, I don't like the new site at all. It tries to look slick (but > fails to do so in my opinion), and buries the useful inf

Python embeding error!!

2006-01-18 Thread kiokju
I want run Python GUI program on MFC. So I coded this def start(): global Tkinter from Tkinter import * root = Tk() w = Label(root, text="Hello, world!") w.pack() but It returns error at rc = PyObject_CallObject(func, NULL); What is proble

Re: Nit: please don't user "it's" unless you can substitute "it is" without changing your inteded meaning.

2006-01-18 Thread Steve Holden
Fuzzyman wrote: > Bengt Richter wrote: > >>Typos happen to all of us, but in case you hadn't realized what "it's" >>is a contraction for ("it is"), now you do, and you can save yourself further >>embarrassment (assuming you care ;-). >>If your friends won't tell you, who will ;-) >> > > > Making

mod_python apache directives

2006-01-18 Thread jacob . miles
Hello. I want to create a catch-all python script, that gets called for any file request in a certain directory. I thought this apache setup would do it, but it doesn't: SetHandler mod_python PythonHandler handler PythonDebug On Options -MultiViews -Indexes Fo

Re: Can a simple a==b 'hang' in and endless loop?

2006-01-18 Thread Steve Holden
Claudio Grondi wrote: > In the process of learning about some deeper details of Python I am > curious if it is possible to write a 'prefix' code assigning to a and b > something special, so, that Python gets trapped in an endless loop in a > line with: > > if a==b: print 'OK' > > I mean, it wo

Re: Newcomer question wrt variable scope/namespaces

2006-01-18 Thread Florian Daniel Otel
Mike, Gary, Magnus First of all, thanks to you all for the clarifications. On 1/14/06, Mike Meyer <[EMAIL PROTECTED]> wrote: > Python variables are just names. They refer to (are "bound" to) > objects. An assignment statement doesn't change a value. It rebinds > the variable (or lvalue) to the va

RE: New Python.org website ?

2006-01-18 Thread Leeuw van der, Tim
Hi Tim, -Original Message- From: Tim Parkin [mailto:[EMAIL PROTECTED] Sent: woensdag 18 januari 2006 13:45 > > That sounds fine.. I think having a link to a high profile user of > python would be very useful though. I agree the XP link is a bit shite. > Hopefully we'd get the photos and

Puzzled by py.test output

2006-01-18 Thread Jan Decaluwe
I'm seeing a strange difference between error reporting on local versus global variables, when using py.test. Upon error, the actual value of a local is reported, but not of a global. Does anyone know why? I'm using the latest development version of py.test (from subversion). Example code in file

Re: Nit: please don't user "it's" unless you can substitute "it is" without changing your inteded meaning.

2006-01-18 Thread BartlebyScrivener
"The pronominal possessives hers, its, theirs, yours, and oneself have no apostrophe." Strunk & White, The Elements of Style. Section II.1 The Elements is a classic masterpiece of concision and lucidity, unlike Eats, Shoots, Sells Books, and Leaves. rpd -- http://mail.python.org/mailman/listin

Re: New Python.org website ?

2006-01-18 Thread Tim Parkin
Tim N. van der Leeuw wrote: > Steve, > > My apologies if this apppeared to be 'slagging'. I was trying to give > some feedback but I do realize that I don't have anything better to > offer yet to replace the pictures I dislike. > > Perhaps I should have withheld my criticisms until I could offer

Re: New Python.org website ?

2006-01-18 Thread Tim Parkin
Leeuw van der, Tim wrote: >I think that in general, I don't like the fact that links to >high-profile users are featured so prominently. That row of pictures >there looks good to me 'as such' but linking there to 'success stories' >feels, dunno, perhaps a bit cheesy to me. (That might be just my d

Re: On Numbers

2006-01-18 Thread Tom Anderson
On Wed, 18 Jan 2006, Steven D'Aprano wrote: > On Tue, 17 Jan 2006 23:34:40 +, Tom Anderson wrote: > So I don't really know what point you are making. What solution(s) for 1**0.5 were you expecting? >>> >>> He's probably getting at the fact that if you're dealing with complex >>> numb

Re: Can a simple a==b 'hang' in and endless loop?

2006-01-18 Thread Claudio Grondi
Steve Holden wrote: > Claudio Grondi wrote: > >> In the process of learning about some deeper details of Python I am >> curious if it is possible to write a 'prefix' code assigning to a and >> b something special, so, that Python gets trapped in an endless loop >> in a line with: >> >> if a==b:

Re: Nit: please don't user "it's" unless you can substitute "it is" without changing your inteded meaning.

2006-01-18 Thread Fuzzyman
BartlebyScrivener wrote: > "The pronominal possessives hers, its, theirs, yours, and oneself have > no apostrophe." > > Strunk & White, The Elements of Style. Section II.1 > > The Elements is a classic masterpiece of concision and lucidity, unlike > Eats, Shoots, Sells Books, and Leaves. > Which

ldap passwd need help

2006-01-18 Thread Sells, Fred
I've got the python-ldap version 2.0.11 with python 2.4 under Linux I've got the ldap stuff working for groups, but now I'm trying to use it to change a user password. I get a return of 2 and no error messages but it does not change ldap. I've tried it with uid = 'joeblow' and with oldpw=whateve

Re: 10060, 'Operation timed out'

2006-01-18 Thread Steve Holden
Sumit Acharya wrote: > Hi Steve, > > It didnt help, i am getting same error. > After 20 seconds or 60? regards Steve -- Steve Holden +44 150 684 7255 +1 800 494 3119 Holden Web LLC www.holdenweb.com PyCon TX 2006 www.python.org/pycon/ -- http://ma

Re: Convert Active Directory Object to string

2006-01-18 Thread Dirk Hagemann
Hi Fredrik! I think this will help me. I just have to do the same for danish encoding and may be some further encondings... Thanks! Dirk -- http://mail.python.org/mailman/listinfo/python-list

Re: Can a simple a==b 'hang' in and endless loop?

2006-01-18 Thread Fuzzyman
Claudio Grondi wrote: [snip..] > Thanks for the quick reply. > > I see, that I have overseen, that as Fredrik also stated, one can > directly manipulate __eq__() as the easiest way to achieve what I > requested. > > To explain why I am not happy with it, I will try here to give some more > backgro

Re: Converting TIFF files to PDF and/or JPEG

2006-01-18 Thread sophie_newbie
Hmm, does anyone know if there is a way to uncompress Tiff files in python itself without having to make an os call. This is because the script is kind of supposed to run on windows also... Sophie. -- http://mail.python.org/mailman/listinfo/python-list

Re: [OT] Nit: please don't user "it's" unless you can substitute "it is" without changing your inteded meaning.

2006-01-18 Thread Peter Hansen
Bengt Richter wrote: > Typos happen to all of us, but in case you hadn't realized what "it's" > is a contraction for ("it is"), now you do, and you can save yourself further > embarrassment (assuming you care ;-). > If your friends won't tell you, who will ;-) Maybe we can also hold forth on "whic

Re: 10060, 'Operation timed out'

2006-01-18 Thread Sumit Acharya
After 20 seconds only. -- http://mail.python.org/mailman/listinfo/python-list

Re: Can a simple a==b 'hang' in and endless loop?

2006-01-18 Thread Steve Holden
Claudio Grondi wrote: > Steve Holden wrote: > >>Claudio Grondi wrote: >> >> >>>In the process of learning about some deeper details of Python I am >>>curious if it is possible to write a 'prefix' code assigning to a and >>>b something special, so, that Python gets trapped in an endless loop >>>

Is there a maximum length of a regular expression in python?

2006-01-18 Thread olekristianvillabo
I have a regular expression that is approximately 100k bytes. (It is basically a list of all known norwegian postal numbers and the corresponding place with | in between. I know this is not the intended use for regular expressions, but it should nonetheless work. the pattern is ur'(N-|NO-)?(5259 H

Re: New Python.org website ?

2006-01-18 Thread Tim Parkin
Tim Golden wrote: >[Shalabh Chaturvedi] > >| Hm. Am I the only one not particularly impressed? Sure the >| front page is >| 'slick' but a few clicks reveal a fairly shallow facade of marketing >| material, with no real content. In general gives the impression of >| 'phony' company trying to make a

Re: Can a simple a==b 'hang' in and endless loop?

2006-01-18 Thread Claudio Grondi
Fuzzyman wrote: > Claudio Grondi wrote: > [snip..] > >>Thanks for the quick reply. >> >>I see, that I have overseen, that as Fredrik also stated, one can >>directly manipulate __eq__() as the easiest way to achieve what I >>requested. >> >>To explain why I am not happy with it, I will try here to

How to set a wx.textctrl can editable or readonly?

2006-01-18 Thread Hako
Hello All, I have a function to set readonly or editable of a textctrl. I'd like to make the textctrl initial set readonly and use other event funciton to set editable of the textctrl but it always can editable. How to set a textctrl can editable or readonly? Any Ideas? (see short snippet below

Uncompressing TIFF files directly in Python

2006-01-18 Thread sophie_newbie
Hey guys, OK this is a long shot but does anyone know of a way to uncompress tiff files directly in python. I know it can be done with an os call but that'll only work on unix and only if the right software is installed! I need to convert tiff images downloaded from uspto.gov to pdf, these images

Re: Is there a maximum length of a regular expression in python?

2006-01-18 Thread Steve Holden
[EMAIL PROTECTED] wrote: > I have a regular expression that is approximately 100k bytes. (It is > basically a list of all known norwegian postal numbers and the > corresponding place with | in between. I know this is not the intended > use for regular expressions, but it should nonetheless work. >

Retaining Unix EOL when reading/writing in windows

2006-01-18 Thread Nick Wain
Hello All, I'm relatively new to PYTHON, using PYTHON 2.4 on Windows XP. I'm having a problem as below. I've asked some other people in my office who are more experienced in PYTHON, but they can't help. I have a number of files created in UNIX that have the UNIX end of line (EOL) character. I

Re: New Python.org website ?

2006-01-18 Thread Markus Wankus
Well I think the new site is definitely a step in the right direction. The old site is definitely "utilitarian" and is quite functional, but not "sexy". And I think the whole point is to (hopefully) have a good first impression of the language and community by "impressing" (if you will) new us

Re: Is there a maximum length of a regular expression in python?

2006-01-18 Thread Fredrik Lundh
[EMAIL PROTECTED] wrote: > I have a regular expression that is approximately 100k bytes. (It is > basically a list of all known norwegian postal numbers and the > corresponding place with | in between. I know this is not the intended > use for regular expressions, but it should nonetheless work. >

Re: 10060, 'Operation timed out'

2006-01-18 Thread Steve Holden
Sumit Acharya wrote: > After 20 seconds only. > Of course I now realise there's no default timeout on sockets anyway, so that likely wasn't the problem. Which statement is failing? You would actually get much more information without the try/except clauses, as they are stopping the traceback f

Re: Is there a maximum length of a regular expression in python?

2006-01-18 Thread Roy Smith
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] wrote: > I have a regular expression that is approximately 100k bytes. (It is > basically a list of all known norwegian postal numbers and the > corresponding place with | in between. I know this is not the intended > use for regular expressions,

Re: New Python.org website ?

2006-01-18 Thread Tim Chase
> At any rate, opinions will always differ. You are always going to get > the people who want a cool flash-based animated site with 3D stereo > surround sound, and the other end of the spectrum where you will be > flamed if you do anything more than hand-code the html, on Unix machines > only,

Re: how do "real" python programmers work?

2006-01-18 Thread kpd
I have a python file type setup in Vim. When I hit F9, it saves the file and executes it in a python shell. My _vimrc: filetype on autocmd FileType python call FileType_Python() " Python coding function! TryPython() :w! :!python % endfunction function! FileType_Python() map :ca

Re: Can a simple a==b 'hang' in and endless loop?

2006-01-18 Thread Claudio Grondi
Steve Holden wrote: > Claudio Grondi wrote: > >> Steve Holden wrote: >> >>> Claudio Grondi wrote: >>> >>> In the process of learning about some deeper details of Python I am curious if it is possible to write a 'prefix' code assigning to a and b something special, so, that Python

Re: How to set a wx.textctrl can editable or readonly?

2006-01-18 Thread Frank Millman
Hako wrote: > Hello All, > > > I have a function to set readonly or editable of a textctrl. I'd like > to make the textctrl initial set readonly and use other event funciton > to set editable of the textctrl but it always can editable. How to set > a textctrl can editable or readonly? > Here is

Re: How to set a wx.textctrl can editable or readonly?

2006-01-18 Thread Frank Millman
Frank Millman wrote: > > def onGotFocus(self,evt): > if readonly: > self.Navigate() > Oops - I meant 'if self.readonly' ... Frank -- http://mail.python.org/mailman/listinfo/python-list

Re: Can a simple a==b 'hang' in and endless loop?

2006-01-18 Thread Steve Holden
Claudio Grondi wrote: [...] >> > Yes, I know about 'is', > > but I mean, that it is not possible to use 'is' as replacement for '==' > operator to achieve in Python same behaviour as it is the case in C and > Javascript when comparing values with '=='. > 'is' does the C, Javascript job when comp

Re: Retaining Unix EOL when reading/writing in windows

2006-01-18 Thread Steve Holden
Nick Wain wrote: > Hello All, > > I'm relatively new to PYTHON, using PYTHON 2.4 on Windows XP. I'm having a > problem as below. I've asked some other people in my office who are more > experienced in PYTHON, but they can't help. > > I have a number of files created in UNIX that have the UNIX e

Re: How to set a wx.textctrl can editable or readonly?

2006-01-18 Thread Tim Chase
> def onGotFocus(self,evt): > if readonly: > self.Navigate() > > This causes the control to react as if the user press 'tab'. By default > it always tabs forwards, but it takes an optional 'IsForward' argument > - set it to False to tab backwards. Just a pedantic query, no

Dr. Dobb's Python-URL! - weekly Python news and links (Jan 18)

2006-01-18 Thread Magnus Lycka
QOTW: "*what* the value is is defined by the operations that the object supports (via its type). *how* the value is represented inside the object is completely irrelevant; a Python implementation may use electric charges in small capacitors, piles of rocks, diapers,or an endless supply of small

Re: New Python.org website ?

2006-01-18 Thread JW
On Wed, 18 Jan 2006 00:33:06 -0800, Tim N. van der Leeuw wrote: > What I especially dislike about the new website are the flashy pictures > on the front-page with no content and no purpose -- purely boasting but > nothing to back up your claims. > > (I wouldn't mind some sleek pictures there if t

  1   2   3   4   >