[ANN] PyYAML-3.09: YAML parser and emitter for Python

2009-08-31 Thread Kirill Simonov
Announcing PyYAML-3.09 A new bug fix release of PyYAML is now available: http://pyyaml.org/wiki/PyYAML Note that PyYAML supports both Python 2 and Python 3. For compatibility notes, please see

IMDbPY 4.2

2009-08-31 Thread Davide Alberani
MDbPY 4.2 is available (tgz, rpm, exe) from: http://imdbpy.sourceforge.net/ IMDbPY is a Python package useful to retrieve and manage the data of the IMDb movie database about movies, people, characters and companies. With this release, a lot of bugs were fixed, and some minor new features

Re: why python got less developers ?

2009-08-31 Thread Erik Reppen
It seems to be a language embraced by people who enjoy coding. Not so much by the time-spent-seeking-degree to paycheck ratio balancing crowd. Or maybe I just hate bloated IDEs and I've heard too many Java dev jokes to be impartial. -- http://mail.python.org/mailman/listinfo/python-list

Re: Overriding iadd for dictionary like objects

2009-08-31 Thread RunThePun
On Aug 30, 10:33 pm, a...@pythoncraft.com (Aahz) wrote: In article e09276e8-8152-4002-8366-4c12705a8...@l35g2000vba.googlegroups.com, RunThePun  ubershme...@gmail.com wrote: I made a DictMixin where the keys are filenames and the values are the file contents. It was very simple and

lambda functions

2009-08-31 Thread Pierre
Hello, I would like to know if it is possible to define a loop in a lambda function How to manage the indents ? Example : s_minus_1 = lambda s : for index in range(0, len(s)) : s[index] = s [index]-1 Thanks ! -- http://mail.python.org/mailman/listinfo/python-list

Re: An assessment of Tkinter and IDLE

2009-08-31 Thread eb303
On Aug 28, 4:41 pm, r rt8...@gmail.com wrote: Thanks eb303 for the wonderful post I have looked over the new ttk widgets and everything looks nice. I am very glad to see the death of Tix as i never much liked it anyhow and always believed these widgets should have been in the main Tkinter

Re: lambda functions

2009-08-31 Thread Javier Collado
Hello, This page has some advice about how to avoid some of the lambda functions limitations: http://p-nand-q.com/python/stupid_lambda_tricks.html In particular, it suggests to use map function instead of for loops. Best regards, Javier 2009/8/31 Pierre pierre.gaill...@gmail.com: Hello,

Re: initilize a memory zone in python

2009-08-31 Thread Diez B. Roggisch
Mug schrieb: On Aug 30, 8:58 pm, Diez B. Roggisch de...@nospam.web.de wrote: Mug schrieb: hello, i'm new in python, i used to program in C, i have a small problem, i tryed to do some serial port things manipulation with python. i have something like: import sys,termios fd = sys.stdin.fileno()

Re: lambda functions

2009-08-31 Thread Chris Rebert
On Mon, Aug 31, 2009 at 12:41 AM, Pierrepierre.gaill...@gmail.com wrote: Hello, I would like to know if it is possible to define a loop in a lambda function Not possible. Lambdas can only contain a single expression. A loop is a block statement. Just use a named function instead. There's

Re: lambda functions

2009-08-31 Thread Gabriel Genellina
En Mon, 31 Aug 2009 04:41:57 -0300, Pierre pierre.gaill...@gmail.com escribió: I would like to know if it is possible to define a loop in a lambda function How to manage the indents ? Example : s_minus_1 = lambda s : for index in range(0, len(s)) : s[index] = s [index]-1 You can't.

Re: An assessment of the Unicode standard

2009-08-31 Thread Hendrik van Rooyen
On Sunday 30 August 2009 22:46:49 Dennis Lee Bieber wrote: Rather elitist viewpoint... Why don't we just drop nukes on some 60% of populated landmasses that don't have a western culture and avoid the whole problem? Now yer talking, boyo! It will surely help with the basic problem which

Re: map

2009-08-31 Thread Hendrik van Rooyen
On Monday 31 August 2009 06:55:52 elsa wrote: 8 - map question (Ultimately, I want to call myFunc(myList[0], 'booHoo'), myFunc(myList [1], 'booHoo'), myFunc(myList[2], 'booHoo') etc. However, I might want to call myFunc(myList[0], 'woo'),

rcond in numpy :

2009-08-31 Thread Pierre
Hello, Anyone knows the numpy equivalent of the matlab function : rcond (Matrix reciprocal condition number estimate) ? Thanks. -- http://mail.python.org/mailman/listinfo/python-list

Re: map

2009-08-31 Thread Gabriel Genellina
En Mon, 31 Aug 2009 05:43:07 -0300, Hendrik van Rooyen hend...@microcorp.co.za escribió: On Monday 31 August 2009 06:55:52 elsa wrote: (Ultimately, I want to call myFunc(myList[0], 'booHoo'), myFunc(myList [1], 'booHoo'), myFunc(myList[2], 'booHoo') etc. However, I might want to call

Re: map

2009-08-31 Thread Piet van Oostrum
Hendrik van Rooyen hend...@microcorp.co.za (HvR) wrote: HvR On Monday 31 August 2009 06:55:52 elsa wrote: HvR 8 - map question (Ultimately, I want to call myFunc(myList[0], 'booHoo'), myFunc(myList [1], 'booHoo'), myFunc(myList[2], 'booHoo') etc.

starting a client remotely

2009-08-31 Thread jacopo
I am playing with multiprocessing and I would like to have a python script on one machine which initialize my whole system, in other words, this script should start the server (a python script) on my local machine and the clients (python scripts) on the other machines in my local network. Would

Re: starting a client remotely

2009-08-31 Thread Diez B. Roggisch
jacopo wrote: I am playing with multiprocessing and I would like to have a python script on one machine which initialize my whole system, in other words, this script should start the server (a python script) on my local machine and the clients (python scripts) on the other machines in my

Re: Return value of multiprocessing manager registerred function

2009-08-31 Thread jacopo
Hi Terry, I have just started working on similar things and I am strugling to find examples or documentations. So far I have found only the official documentation of the multiprocessing package. Would you be able to recommend me some good reference or a book. I dont want to overwhelm this

Re: Is behavior of += intentional for int?

2009-08-31 Thread Piet van Oostrum
Derek Martin c...@pizzashack.org (DM) wrote: DM On Sun, Aug 30, 2009 at 03:42:06AM -0700, Paul McGuire wrote: Is it any odder that 3 is an object than that the string literal Hello, World! is an object? DM Yes. Because 3 is a fundamental bit of data that the hardware knows DM how to deal

Re: starting a client remotely

2009-08-31 Thread jacopo
thank you Diez, unfortunatelly I am on Windows NT. Did you use SSH in a python script? Isn't multiprocessing.managers already doing something like Pyro? thanks Jacopo On Aug 31, 12:47 pm, Diez B. Roggisch de...@nospam.web.de wrote: jacopo wrote: I am playing with multiprocessing and I would

[ANN] PyYAML-3.09: YAML parser and emitter for Python

2009-08-31 Thread Kirill Simonov
Announcing PyYAML-3.09 A new bug fix release of PyYAML is now available: http://pyyaml.org/wiki/PyYAML Note that PyYAML supports both Python 2 and Python 3. For compatibility notes, please see

Re: starting a client remotely

2009-08-31 Thread Diez B. Roggisch
jacopo wrote: thank you Diez, unfortunatelly I am on Windows NT. Did you use SSH in a python script? Via subprocess, yes. Paramiko would be a way, too. Isn't multiprocessing.managers already doing something like Pyro? I never used it, so I don't know - but it appears to be, yes. Doesn't

Re: starting a client remotely

2009-08-31 Thread Gabriel Genellina
On Aug 31, 12:47 pm, Diez B. Roggisch de...@nospam.web.de wrote: jacopo wrote: I am playing with multiprocessing and I would like to have a python script on one machine which initialize my whole system, in other words, this script should start the server (a python script) on my local machine

Re: Object's nesting scope

2009-08-31 Thread Bruno Desthuilliers
zaur a écrit : On 28 авг, 16:07, Bruno Desthuilliers bruno. 42.desthuilli...@websiteburo.invalid wrote: zaur a écrit : On 26 авг, 17:13, Diez B. Roggisch de...@nospam.web.de wrote: Whom am we to judge? Sure if you propose this, you have some usecases in mind - how about you present these

Re: map

2009-08-31 Thread Steven D'Aprano
On Mon, 31 Aug 2009 10:43:07 +0200, Hendrik van Rooyen wrote: Here is some heretical advice: Do not use stuff like map and reduce unless they fit what you want to do perfectly, and JustWorks the first time. You have a very clear idea of what you want to do, so why do you not just simply

Re: map

2009-08-31 Thread Hendrik van Rooyen
On Monday 31 August 2009 11:31:34 Piet van Oostrum wrote: But ultimately it is also very much a matter of taste, preference and habit. This is true, but there is another reason that I posted - I have noticed that there seems to be a tendency amongst newcomers to the group to go to great

Re: An assessment of Tkinter and IDLE

2009-08-31 Thread Kevin Walzer
On 8/28/09 8:11 PM, r wrote: On Aug 28, 5:48 pm, Mark Rosemanm...@markroseman.com wrote: (snip) Thewww.tkdocs.comsite is 'language neutral' - currently the tutorial covers Tcl, Perl, Ruby and yes Python, and allows you to switch between any of those languages (or show all of them). True,

Math Notations, Computer Languages, and the “Form ” in Formalism

2009-08-31 Thread Xah Lee
• Math Notations, Computer Languages, and the “Form” in Formalism http://xahlee.org/cmaci/notation/index.html plain text version follows. (lacks links) - Math Notations, Computer Languages, and the “Form” in Formalism Xah Lee, 2009-08-31 This page is a collection

Re: Suggestion

2009-08-31 Thread Nitebirdz
On Sat, Aug 29, 2009 at 02:42:36PM +0530, Thangappan.M wrote: Dear all, I am in the process of learning Python programming language. I know Perl,PHP. Compare to both the language Python impressed me because here there is no lexical variables and all.Now I need suggestion saying that

Re: An assessment of the Unicode standard

2009-08-31 Thread Nigel Rantor
Hendrik van Rooyen wrote: On Sunday 30 August 2009 22:46:49 Dennis Lee Bieber wrote: Rather elitist viewpoint... Why don't we just drop nukes on some 60% of populated landmasses that don't have a western culture and avoid the whole problem? Now yer talking, boyo! It will surely help

Re: a popen command line question

2009-08-31 Thread Nitebirdz
On Sat, Aug 29, 2009 at 01:13:12PM -0700, Joni Lee wrote: Hi all, I write a small script status = os.popen('top').readlines() print status It calls the command line top and will print out the status. But I have to press the keyboard q to quit top, then the status will be printed,

Re: IDE for Python

2009-08-31 Thread Mike Driscoll
On Aug 29, 1:08 pm, ivanko@gmail.com wrote: 29.08.2009 4:14 пользователь Thangappan.M thangappan...@gmail.com   написал: Dear all, Please suggest some good IDE for python.I am working in linux platform. -- Regards, Thangappan.M You can use Eclipse + PyDev or Emacs+PythonMode .

Re: IDE for Python

2009-08-31 Thread Che M
On Aug 31, 10:53 am, Mike Driscoll kyoso...@gmail.com wrote: On Aug 29, 1:08špm, ivanko@gmail.com wrote: 29.08.2009 4:14 ÐÏÌØÚÏ×ÁÔÅÌØ Thangappan.M thangappan...@gmail.com š ÎÁÐÉÓÁÌ: Dear all, Please suggest some good IDE for python.I am working in linux platform. -- Regards,

Re: An assessment of Tkinter and IDLE

2009-08-31 Thread Terry Reedy
Kevin Walzer wrote: www.tkdocs.com [snip] and you'll have learned a lot. But I think the TkDocs site is essential, especially in its more advanced discussion of how to put together an attractive, polished user interface with Tk. Tk has a long-standing reputation of being the toolkit of

Re: map

2009-08-31 Thread Paul Rubin
elsa kerensael...@hotmail.com writes: map(myFunc(b='booHoo'), myList) Why doesn't this work? is there a way to make it work? You can use functools.partial but a listcomp might be simpler: list(myfunc(a, b='booHoo') for a in myList) There is another listcomp syntax with square brackets,

Re: lambda functions

2009-08-31 Thread Paul Rubin
Pierre pierre.gaill...@gmail.com writes: s_minus_1 = lambda s : for index in range(0, len(s)) : s[index] = s [index]-1 What are you trying to do here anyway? That looks broken. Maybe you want the list.insert method. -- http://mail.python.org/mailman/listinfo/python-list

executable path finding

2009-08-31 Thread koranthala
Hi, I am creating a python application using py2exe. I am facing a problem which I am not sure how to solve. The application contains many other files associated with it - like icons, config files etc. The executable can be in any directory. If the user creates a shortcut to the executable

Re: executable path finding

2009-08-31 Thread Diez B. Roggisch
koranthala wrote: Hi, I am creating a python application using py2exe. I am facing a problem which I am not sure how to solve. The application contains many other files associated with it - like icons, config files etc. The executable can be in any directory. If the user creates a

find free hard disk space remote windows host

2009-08-31 Thread Daniel
Hello, I'm trying to determine the amount of free hard disk space on a remote windows host. Seems like this should be simple, but it's giving me grief. Here's what I've tried: mystat = os.stat('//remotehost/share/') mystat (16895, 0L, 0, 0, 0, 0, 0L, 1251731920, 1251731289, 1249399952) For

Efficient way to sum a product of numbers...

2009-08-31 Thread vsoler
Hi, After simplifying my problem, I can say that I want to get the sum of the product of two culumns: Say m= [[ 'a', 1], [ 'b', 2],[ 'a', 3]] r={'a':4, 'b':5, 'c':6} What I need is the calculation 1*4 + 2*5 + 3*4 = 4 + 10 + 12 = 26 That is, for each row list in

Re: Efficient way to sum a product of numbers...

2009-08-31 Thread Tim Chase
After simplifying my problem, I can say that I want to get the sum of the product of two culumns: Say m= [[ 'a', 1], [ 'b', 2],[ 'a', 3]] assuming you meant ['c', 3] here...^ r={'a':4, 'b':5, 'c':6} What I need is the calculation 1*4 + 2*5 + 3*4 = 4 + 10 + 12 =

Re: An assessment of the Unicode standard

2009-08-31 Thread Rami Chowdhury
No need to feed the troll by actually trying to engage in the discussion, but just FYI: Sanskrit is mostly written in Devanagari these days which is also useful for selling things to people who speak Hindi and other Indian languages. Devanagari is what's used for Hindi and a handful of

Re: executable path finding

2009-08-31 Thread koranthala
On Aug 31, 9:07 pm, Diez B. Roggisch de...@nospam.web.de wrote: koranthala wrote: Hi,     I am creating a python application using py2exe. I am facing a problem which I am not sure how to solve.     The application contains many other files associated with it - like icons, config files

Re: rcond in numpy :

2009-08-31 Thread Robert Kern
On 2009-08-31 04:02 AM, Pierre wrote: Hello, Anyone knows the numpy equivalent of the matlab function : rcond (Matrix reciprocal condition number estimate) ? You will want to ask numpy questions on the numpy mailing list: http://www.scipy.org/Mailing_Lists numpy.linalg.cond() will give

Re: Efficient way to sum a product of numbers...

2009-08-31 Thread vsoler
On Aug 31, 6:30 pm, Tim Chase python.l...@tim.thechases.com wrote: After simplifying my problem, I can say that I want to get the sum of the product of two culumns: Say          m= [[ 'a', 1], [ 'b', 2],[ 'a', 3]] assuming you meant ['c', 3] here...    ^          r={'a':4, 'b':5, 'c':6}

Re: Efficient way to sum a product of numbers...

2009-08-31 Thread Tim Chase
vsoler wrote: On Aug 31, 6:30 pm, Tim Chase python.l...@tim.thechases.com wrote: After simplifying my problem, I can say that I want to get the sum of the product of two culumns: Say m= [[ 'a', 1], [ 'b', 2],[ 'a', 3]] assuming you meant ['c', 3] here...^ r={'a':4, 'b':5,

Re: An assessment of Tkinter and IDLE

2009-08-31 Thread r
Kevin and Terry, Kevin. I respectfully disagree that the site is ready for prime time *However* i do not wish to undermine the great work that Mark Roseman has done here and i thank him for his contribution. He has put much work into covering all the major languages and i think this site *could*

Re: Is behavior of += intentional for int?

2009-08-31 Thread Carl Banks
On Aug 31, 10:21 am, zaur szp...@gmail.com wrote: On 29 авг, 16:45, zaur szp...@gmail.com wrote: Python 2.6.2 (r262:71600, Apr 16 2009, 09:17:39) [GCC 4.0.1 (Apple Computer, Inc. build 5250)] on darwin Type copyright, credits or license() for more information. a=1 x=[a]

Re: IDE for Python

2009-08-31 Thread Chris Colbert
I'm a big fan of wing. Pay for the non-free version and you get all the goodies, plus PHENOMENAL support. Really. They answer support emails within a few minutes. Its has the best code completion i've seen in any python editor/ide and is also the most stable, fastest (for ide's), and

Re: Efficient way to sum a product of numbers...

2009-08-31 Thread Paul Rubin
vsoler vicente.so...@gmail.com writes: m= [[ 'a', 1], [ 'b', 2],[ 'a', 3]] r={'a':4, 'b':5, 'c':6} What I need is the calculation 1*4 + 2*5 + 3*4 = 4 + 10 + 12 = 26 sum(r[k]*w for k,w in m) -- http://mail.python.org/mailman/listinfo/python-list

Re: Efficient way to sum a product of numbers...

2009-08-31 Thread vsoler
On Aug 31, 6:59 pm, Tim Chase python.l...@tim.thechases.com wrote: vsoler wrote: On Aug 31, 6:30 pm, Tim Chase python.l...@tim.thechases.com wrote: After simplifying my problem, I can say that I want to get the sum of the product of two culumns: Say          m= [[ 'a', 1], [ 'b', 2],[

Re: Is behavior of += intentional for int?

2009-08-31 Thread zaur
On 29 авг, 16:45, zaur szp...@gmail.com wrote: Python 2.6.2 (r262:71600, Apr 16 2009, 09:17:39) [GCC 4.0.1 (Apple Computer, Inc. build 5250)] on darwin Type copyright, credits or license() for more information. a=1 x=[a] id(a)==id(x[0]) True a+=1 a 2 x[0] 1 I thought that +=

Re: Logging contents of IRC channel

2009-08-31 Thread Paul Rubin
devaru ajoys...@gmail.com writes: I am new to Python. I want to log the activities in an IRC channel. Any pointers regarding this would be of great help. http://science.slashdot.org/science/04/04/13/1356216.shtml -- http://mail.python.org/mailman/listinfo/python-list

Re: An assessment of Tkinter and IDLE

2009-08-31 Thread r
On Aug 28, 11:12 am, Mark Roseman m...@markroseman.com wrote: Would it be useful to link to this from the main Python Tkinter documentation? Mark Sorry Mark, i did not realize when i replied to you that YOU are the Mark of tkdoc.com. For some reason i only saw Tcl code when i visted the site,

Re: find free hard disk space remote windows host

2009-08-31 Thread Tim Golden
Daniel wrote: Hello, I'm trying to determine the amount of free hard disk space on a remote windows host. Seems like this should be simple, but it's giving me grief. Here's what I've tried: mystat = os.stat('//remotehost/share/') mystat (16895, 0L, 0, 0, 0, 0, 0L, 1251731920, 1251731289,

Re: Logging contents of IRC channel

2009-08-31 Thread Jonathan Gardner
On Aug 31, 10:23 am, devaru ajoys...@gmail.com wrote: I am new to Python. I want to log the activities in an IRC channel. Any pointers regarding this would be of great help. How are you going to plug into the chat server to obtain the data? How will you store the data? The in between parts

win32ui DLL Load Failed

2009-08-31 Thread MikeC
I have a python executable that's failing to load on a user's machine running Windows XP. My developer machine is also running Windows XP. I have determined that it is failing when it attempts to load win32ui. I have Python 2.6 on my developer machine and am using the pywin support (Mark

Unexpected 411 error response using httplib

2009-08-31 Thread John Gordon
I'm writing some code that queries a Microsoft Exchange Web Services server. The server is responding with a 411 Length Required error, which is strange because I am definitely sending a Content-Length header. Here's the code: - import httplib

Re: An assessment of the Unicode standard

2009-08-31 Thread Emile van Sebille
On 8/31/2009 10:41 AM Dennis Lee Bieber said... On Mon, 31 Aug 2009 15:36:46 +0100, Nigel Rantor wig...@wiggly.org snip Also, I'm surprised no-one has mentioned Esperanto yet. Sounds like something r and Xah would *love*. Hmmm, thought I had mentioned Esperanto (and Klingon) Just

pyjamas in action?

2009-08-31 Thread kj
At work we want to implement a webapp using Google's GWT, and we're debating whether to use the standard GWT approach with Java, or to try Pyjamas. There's no great love here for Java, but there's the concern that Pyjamas will not be able to deliver the full power and/or convenience of

Re: win32ui DLL Load Failed

2009-08-31 Thread Mike Driscoll
On Aug 31, 2:43 pm, MikeC mcrav...@att.net wrote: I have a python executable that's failing to load on a user's machine running Windows XP. My developer machine is also running Windows XP. I have determined that it is failing when it attempts to load win32ui. I have Python 2.6 on my developer

Re: win32ui DLL Load Failed

2009-08-31 Thread Chris Kaynor
You likely need to install the Microsoft Visual C++ 2008 SP1 Redistributable Package on the target machine. If you search Google for this, you should find it (make sure to grab the correct version of x86 or x64 depending upon the Python version). Chris On Mon, Aug 31, 2009 at 12:43 PM, MikeC

Re: map

2009-08-31 Thread Nobody
On Sun, 30 Aug 2009 21:55:52 -0700, elsa wrote: say I have a list, myList. Now say I have a function with more than one argument: myFunc(a, b='None') now, say I want to map myFunc onto myList, with always the same argument for b, but iterating over a: map(myFunc(b='booHoo'), myList)

Re: Efficient way to sum a product of numbers...

2009-08-31 Thread Jan Kaliszewski
31-08-2009 o 18:19:28 vsoler vicente.so...@gmail.com wrote: Say m= [[ 'a', 1], [ 'b', 2],[ 'a', 3]] r={'a':4, 'b':5, 'c':6} What I need is the calculation 1*4 + 2*5 + 3*4 = 4 + 10 + 12 = 26 That is, for each row list in variable 'm' look for its first element in

Re: pyjamas in action?

2009-08-31 Thread André
On Aug 31, 4:46 pm, kj no.em...@please.post wrote: At work we want to implement a webapp using Google's GWT, and we're debating whether to use the standard GWT approach with Java, or to try Pyjamas.  There's no great love here for Java, but there's the concern that Pyjamas will not be able to

Re: win32ui DLL Load Failed

2009-08-31 Thread MikeC
On Aug 31, 12:43 pm, MikeC mcrav...@att.net wrote: I have a python executable that's failing to load on a user's machine running Windows XP. My developer machine is also running Windows XP. I have determined that it is failing when it attempts to load win32ui. I have Python 2.6 on my

Re: Efficient way to sum a product of numbers...

2009-08-31 Thread Jan Kaliszewski
31-08-2009 o 22:28:56 Jan Kaliszewski z...@chopin.edu.pl wrote: setup = from itertools import starmap, imap ; from operator import mul; import random, string; names = [rndom.choice(string. ascii_letters) for x in xrange(1)]; hours = [random.randint( 1, 12) for x in xrange(1000)]; m =

Re: Object Reference question

2009-08-31 Thread Ethan Furman
josef wrote: On Aug 27, 1:35 pm, Ethan Furman et...@stoneleaf.us wrote: josef wrote: Thanks to everyone who responded. I will be going with some sort of a = MyClass(name = 'a') format. It's the Python way. For me, it was very hard to accept that EVERYTHING is an object reference. And

Re: lambda functions

2009-08-31 Thread Rhodri James
On Mon, 31 Aug 2009 08:41:57 +0100, Pierre pierre.gaill...@gmail.com wrote: Hello, I would like to know if it is possible to define a loop in a lambda function How to manage the indents ? Example : s_minus_1 = lambda s : for index in range(0, len(s)) : s[index] = s [index]-1 You can't

Python installation

2009-08-31 Thread Vo, Trinh (388C)
Hello Python Users, I am new to Python. I have errors message when I installed Python. I appreciate if you can help. I download Python-2.6-2. I then did the following steps: ./configure make In the second step make, I had the following message: Failed to find the necessary bits to build

Re: Python installation

2009-08-31 Thread Benjamin Kaplan
On Mon, Aug 31, 2009 at 9:32 PM, Vo, Trinh (388C)trinh...@jpl.nasa.gov wrote: Hello Python Users, I am new to Python.  I have errors message when I installed Python.  I appreciate if you can help. I download Python-2.6-2.  I then did the following steps: ./configure make In the

[issue5639] Support TLS SNI extension in ssl module

2009-08-31 Thread Daniel Black
Daniel Black dan...@cacert.org added the comment: The small deficiency with these patches is that the specified server_hostname is almost always the hostname that is used in the socket pair of connect. Is it appropriate to grab the hostname value and use it in the SNI extension header?

[issue6788] codecs.open on Win32 does not force binary mode

2009-08-31 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: I think your test is invalid: it creates the file in w mode, so \n are written as two bytes \r\n on the disk. codecs.open just reads them back. -- nosy: +amaury.forgeotdarc resolution: - invalid status: open - pending

[issue6809] Python string.lstrip bug?

2009-08-31 Thread Andrew Liu
New submission from Andrew Liu mushywu...@gmail.com: A simple lstrip on the following causes an extra character to be stripped, as per the below. Tried on 2.6.1 and on 2.4.3, as below. Python 2.6.1 (r261:67515, Feb 27 2009, 02:54:13) [GCC 4.3.2 20081105 (Red Hat 4.3.2-7)] on linux2 Type help,

[issue6801] symmetric_difference_update documentation fix

2009-08-31 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Well, in that case I don't understand how it is different from difference_update() ? It's different from difference_update because that takes multiple arguments. The operator form shows an equivalent and therefore shows how to write an

[issue6809] Python string.lstrip bug?

2009-08-31 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: This is not a bug: the argument to lstrip effectively specifies a set of characters to be removed; in your example, 'c' is in that set, so the 'c' at the beginning of city gets removed. 'i' is not in that set, so it stays. lstrip(...)

[issue2973] _ssl compiler warnings

2009-08-31 Thread Daniel Black
Daniel Black dan...@cacert.org added the comment: The changeset that changed the definitions is here: http://cvs.openssl.org/chngview?cn=12024 (2004-Mar-14 23:15:13 (UTC)) As you can see there is no easy identifier in the changeset (i'm not sure how portable an ifdef on a typedef is (possible

[issue6810] add link to the documentation of signal.signal

2009-08-31 Thread Yinon Ehrlich
New submission from Yinon Ehrlich yino...@users.sourceforge.net: in http://docs.python.org/library/signal.html#signal.signal the reader is referred to see the reference manual section on the standard type hierarchy. It would be generous if we will supply a link like

[issue3212] ssl module - should test for a wrong cert

2009-08-31 Thread Daniel Black
Daniel Black dan...@cacert.org added the comment: Is fixed in p3k Mon Sep 8 16:45:19 2008 UTC http://svn.python.org/view/python/branches/py3k/Lib/test/test_ssl.py?r1=65837r2=66311 -- nosy: +grooverdan versions: +Python 3.1, Python 3.2 ___ Python

[issue6802] build fails on Snow Leopard

2009-08-31 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: The patch works for me. Thanks. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6802 ___

[issue6297] Added Misc/python.pc to 'distclean' Rule

2009-08-31 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Thanks for the patch. Applied in r74604 (trunk), r74605 (py3k), r74606 (release31-maint). -- assignee: georg.brandl - marketdickinson components: +Build -Documentation nosy: +marketdickinson resolution: - accepted stage: -

[issue2637] urllib.quote() escapes characters unnecessarily and contrary to docs

2009-08-31 Thread Senthil
Senthil orsent...@gmail.com added the comment: Fixed and Committed revision 74608 - trunk Committed revision 74609 - py3k -- resolution: - fixed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2637

[issue6802] build fails on Snow Leopard

2009-08-31 Thread Ned Deily
Ned Deily n...@acm.org added the comment: With the patch installed, no regressions were seen running my standard set of OSX installer builds/installs/regtests on 10.4 and 10.5. -- ___ Python tracker rep...@bugs.python.org

[issue6811] add a filename argument to marshal.load*

2009-08-31 Thread Brett Cannon
New submission from Brett Cannon br...@python.org: For compatibility w/ import, importlib needs the ability to set code.co_filename to the actual location of the bytecode used to create a module and not the path embedded in the marshal data. But since co_filename is read-only it can't be done

[issue6811] add a filename argument to marshal.load*

2009-08-31 Thread Fred L. Drake, Jr.
Changes by Fred L. Drake, Jr. fdr...@acm.org: -- nosy: +fdrake ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6811 ___ ___ Python-bugs-list mailing

[issue6802] build fails on Snow Leopard

2009-08-31 Thread Jason Montleon
Changes by Jason Montleon mont...@hotmail.com: -- nosy: +xaoslaad ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6802 ___ ___ Python-bugs-list

[issue992389] attribute error after non-from import

2009-08-31 Thread Adam Olsen
Adam Olsen rha...@gmail.com added the comment: The key distinction between this and a bad circular import is that this is lazy. You may list the import at the top of your module, but you never touch it until after you've finished importing yourself (and they feel the same about you.) An ugly

[issue992389] attribute error after non-from import

2009-08-31 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: I have done a lazy importer like you describe, Adam, and it does help solve this issue. And it does have the problem of import errors being triggered rather late and in an odd spot. -- ___ Python

[issue992389] attribute error after non-from import

2009-08-31 Thread Adam Olsen
Adam Olsen rha...@gmail.com added the comment: It'd probably be sufficient if we raised NameError: lazy import 'foo' not yet complete. That should require a set of what names this module is lazy importing, which is checked in the failure paths of module attribute lookup and global/builtin

[issue6812] Snow Leopard python program fails because _PyType_Modified is missing from python framework

2009-08-31 Thread Seamus O'Shea
New submission from Seamus O'Shea os...@uleth.ca: Attempts to compile a simple example using XCode 3.2 (Xcode IDE: 1610.0, Xcode Core: 1608.0, ToolSupport: 1591.0)under Snow Leopard fail with error message Traceback (most recent call last): File /Users/seamus/Science/xcode exploration/Objc-

[issue5639] Support TLS SNI extension in ssl module

2009-08-31 Thread Phil Pennock
Phil Pennock python-...@spodhuis.org added the comment: (Sorry for dropping this, lost available time) I see your point. OTOH, use of SNI needs to be something that can be disabled and people need to be able to connect to host A while supplying host B, not necessarily using IP addresses for

[issue5468] urlencode does not handle bytes, and could easily handle alternate encodings

2009-08-31 Thread Miles Kaufmann
Changes by Miles Kaufmann mile...@umich.edu: Removed file: http://bugs.python.org/file14796/urllib_parse.py3k.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5468 ___

[issue6813] update format() documentation and tutorial

2009-08-31 Thread Daniel Black
New submission from Daniel Black dan...@cacert.org: Release notes show the use of '{}'.format('this') and the attached patch updates this to be the default example in the tutorial. Library references are updated to show field_name as optional and a few examples are added. Relates to the