Pyro 3.11 released

2010-11-22 Thread Irmen de Jong
Hi, Pyro 3.11 has been released! Pyro is a an advanced and powerful Distributed Object Technology system written entirely in Python, that is designed to be very easy to use. Have a look at http://www.xs4all.nl/~irmen/pyro3/ for more information. Highlights of this release are: - improved

Re: Weibull distr. random number generation

2010-11-22 Thread Dimos
Hello Mark, Exactly, thanks very much! Dimos --- On Sat, 11/20/10, Mark Dickinson dicki...@gmail.com wrote: From: Mark Dickinson dicki...@gmail.com Subject: Re: Weibull distr. random number generation To: python-list@python.org Date: Saturday, November 20, 2010, 7:09 PM On Nov 19, 3:21 

Re: MATLAB to Python?

2010-11-22 Thread MATLABdude
On Nov 17, 10:53 am, Arnaud Delobelle arno...@gmail.com wrote: I guess that the step is supposed to be h, so you should write:     xx = range(-kappa, kappa+1, h) This is what I have in the source code: ---8---8---8---8--- h = 0.105069988414 xx = range(-kappa, kappa+1, h) ---8---8---8---8---

Re: MATLAB to Python?

2010-11-22 Thread Chris Rebert
On Mon, Nov 22, 2010 at 12:47 AM, MATLABdude matlab.d...@mbnet.fi wrote: On Nov 17, 10:53 am, Arnaud Delobelle arno...@gmail.com wrote: I guess that the step is supposed to be h, so you should write:     xx = range(-kappa, kappa+1, h) This is what I have in the source code:

Re: MATLAB to Python?

2010-11-22 Thread Peter Otten
MATLABdude wrote: On Nov 17, 10:53 am, Arnaud Delobelle arno...@gmail.com wrote: I guess that the step is supposed to be h, so you should write: xx = range(-kappa, kappa+1, h) This is what I have in the source code: ---8---8---8---8--- h = 0.105069988414 xx = range(-kappa, kappa+1, h)

Reading bz2 file into numpy array

2010-11-22 Thread Johannes Korn
Hi, is there a convenient way to read bz2 files into a numpy array? I tried: from bz2 import * from numpy import * fd = BZ2File(filename, 'rb') read_data = fromfile(fd, float32) but BZ2File doesn't seem to produce a transparent filehandle. Kind regards! Johannes --

Re: Reading bz2 file into numpy array

2010-11-22 Thread Peter Otten
Johannes Korn wrote: I tried: from bz2 import * from numpy import * fd = BZ2File(filename, 'rb') read_data = fromfile(fd, float32) but BZ2File doesn't seem to produce a transparent filehandle. is there a convenient way to read bz2 files into a numpy array? Try import numpy import

Re: building a web interface

2010-11-22 Thread Jean-Michel Pichavant
Shel wrote: Hello, I am pretty new to all this. I have some coding experience, and am currently most comfortable with Python. I also have database design experience with MS Access, and have just created my first mySQL db. So right now I have a mySQL db structure and some Python code. My end

Accepting a SAML 2 Assertion

2010-11-22 Thread raghu bg
Hello, I am working on providing a SSO solution to a customer who acts as an identity provider. He already has IDP on his side to generate SAML 2 assertions with user first name , last name and time stamp as parameters. Our task is to accept this assertion which is signed, decrypt it and send it

Re: multiple times subprocess fails on windows

2010-11-22 Thread kvbik
To be more specific, I have something like this in rvirtualenv itself (that's the pokus.py file): import os os.system(echo 128) I generate a batch file like this (that's the pokus.bat file): @echo off pokus.py And after that, I run the pokus.bat file from a test (that's the run.py file): from

unittests with different parameters

2010-11-22 Thread Ulrich Eckhardt
Hi! I'm writing tests and I'm wondering how to achieve a few things most elegantly with Python's unittest module. Let's say I have two flags invert X and invert Y. Now, for testing these, I would write one test for each combination. What I have in the test case is something like this: def

Re: Some syntactic sugar proposals

2010-11-22 Thread Andreas Löscher
if x in range(a, b): #wrong! it feels so natural to check it that way, but we have to write if a = x = b I understand that it's not a big deal, but it would be awesome to have some optimisations - it's clearly possible to detect things like that wrong one and fix it in a bytecode.

Re: Scheme as a virtual machine?

2010-11-22 Thread markhanif...@gmail.com
On Nov 21, 10:38 pm, Ertugrul Söylemez e...@ertes.de wrote: Jon Harrop use...@ffconsultancy.com wrote: Ertugrul Söylemez e...@ertes.de wrote in message news:20101014052650.510e8...@tritium.streitmacht.eu... That's nonsense. Actually namekuseijin is right. You really need to persevere

Re: unittests with different parameters

2010-11-22 Thread Richard Thomas
On Nov 22, 11:38 am, Ulrich Eckhardt ulrich.eckha...@dominolaser.com wrote: Hi! I'm writing tests and I'm wondering how to achieve a few things most elegantly with Python's unittest module. Let's say I have two flags invert X and invert Y. Now, for testing these, I would write one test for

Re: unittests with different parameters

2010-11-22 Thread Roy Smith
In article q91qr7-i9j@satorlaser.homedns.org, Ulrich Eckhardt ulrich.eckha...@dominolaser.com wrote: def test_invert_flags(self): test flags to invert coordinates tests = [((10, 20), INVERT_NONE, (10, 20)), ((10, 20), INVERT_X, (-10, 20)),

Error Starting Python(Django) App using Apache+Mod_Wsgi

2010-11-22 Thread Anurag Chourasia
All, I have a problem in starting my Python(Django) App using Apache and Mod_Wsgi I am using Django 1.2.3 and Python 2.6.6 running on Apache 2.2.17 with Mod_Wsgi 3.3 When I try to access the app from Web Browser, I am getting these errors. [Mon Nov 22 09:45:25 2010] [notice] Apache/2.2.17

Re: unittests with different parameters

2010-11-22 Thread Ulrich Eckhardt
Roy Smith wrote: Writing one test method per parameter combination, as you suggested, is a reasonable approach, especially if the number of combinations is reasonably small. The number of parameters and thus combinations are unfortunately rather large. Also, sometimes that data is not static

Re: unittests with different parameters

2010-11-22 Thread Ulrich Eckhardt
Richard Thomas wrote: [batch-programming different unit tests] You could have a parameter to the test method and some custom TestLoader that knows what to do with it. Interesting, thanks for this suggestion, I'll look into it! Uli -- Domino Laser GmbH Geschäftsführer: Thorsten Föcking,

Re: Scheme as a virtual machine?

2010-11-22 Thread Raffael Cavallaro
On 2010-11-22 08:12:27 -0500, markhanif...@gmail.com said: All opinions are biased. All opinions show some bias. Not all opinions represent what is usually called a conflict of interest. Since JH makes his living selling tools and training for certain languages, he has a severe conflict of

Re: unittests with different parameters

2010-11-22 Thread Roy Smith
In article ddbqr7-5rj@satorlaser.homedns.org, Ulrich Eckhardt ulrich.eckha...@dominolaser.com wrote: Yet another possibility is to leave it the way you originally wrote it and not worry about the fact that the loop aborts on the first failure. Let it fail, fix it, then re-run the test

Re: Scheme as a virtual machine?

2010-11-22 Thread Andreas Waldenburger
On 22 Nov 2010 06:26:34 GMT Steven D'Aprano st...@remove-this-cybersource.com.au wrote: On Sun, 21 Nov 2010 23:57:21 -0500, Steve Holden wrote: Perhaps we could take this thread to alt.small.minded.bickering now? Alas, my ISP doesn't carry that newsgroup. Where else can I get my

Python recursively __getattribute__

2010-11-22 Thread Roman Dolgiy
Hello, I need to implement such behavior: obj.attr1.attr2.attr3 -- obj.attr1__attr2__attr3 It looks like I have to override obj's class __getattribute__ and also use python descriptors somehow. Any help will be much appreciated.

Re: Scheme as a virtual machine?

2010-11-22 Thread Howard Brazee
On Mon, 22 Nov 2010 05:38:53 +0100, Ertugrul Söylemez e...@ertes.de wrote: Haskell is a simple language with a comparably small specification. It's not as simple as Common Lisp, but it's simple. Note that simple doesn't mean easy. Haskell is certainly more difficult to learn than other

Re: Python recursively __getattribute__

2010-11-22 Thread Andreas Waldenburger
On Mon, 22 Nov 2010 07:46:47 -0800 (PST) Roman Dolgiy tost...@gmail.com wrote: Hello, I need to implement such behavior: obj.attr1.attr2.attr3 -- obj.attr1__attr2__attr3 It looks like I have to override obj's class __getattribute__ and also use python descriptors somehow. Any help

Re: Scheme as a virtual machine?

2010-11-22 Thread toby
On Nov 22, 10:57 am, Howard Brazee how...@brazee.net wrote: On Mon, 22 Nov 2010 05:38:53 +0100, Ertugrul S ylemez e...@ertes.de wrote: Haskell is a simple language with a comparably small specification. It's not as simple as Common Lisp, but it's simple.  Note that simple doesn't mean easy.  

Re: print line number and source filename

2010-11-22 Thread Wei Sun
Here is what you want for printing python source filename: print __file__ On Tuesday, June 22, 2010 12:44 PM Peng Yu wrote: I want to print filename and line number for debugging purpose. So far I only find how to print the line number but not how to print filename. import inspect print

Re: Scheme as a virtual machine?

2010-11-22 Thread scattered
On Nov 22, 9:45 am, Raffael Cavallaro raffaelcavall...@pas.despam.s.il.vous.plait.mac.com wrote: On 2010-11-22 08:12:27 -0500, markhanif...@gmail.com said: All opinions are biased. All opinions show some bias. Not all opinions represent what is usually called a conflict of interest. Since

Re: Python recursively __getattribute__

2010-11-22 Thread Roman Dolgiy
On Nov 22, 6:04 pm, Andreas Waldenburger use...@geekmail.invalid wrote: On Mon, 22 Nov 2010 07:46:47 -0800 (PST) Roman Dolgiy tost...@gmail.com wrote: Hello, I need to implement such behavior: obj.attr1.attr2.attr3 -- obj.attr1__attr2__attr3 It looks like I have to override obj's

Re: Scheme as a virtual machine?

2010-11-22 Thread Howard Brazee
On Mon, 22 Nov 2010 08:14:40 -0800 (PST), toby t...@telegraphics.com.au wrote: This is a good (if familiar) observation. Teaching children (or young people with little exposure to computers) how to program in various paradigms could produce interesting primary evidence. Pity that this isn't

Re: Scheme as a virtual machine?

2010-11-22 Thread Tamas K Papp
On Mon, 22 Nov 2010 08:25:34 -0800, scattered wrote: On Nov 22, 9:45 am, Raffael Cavallaro raffaelcavall...@pas.despam.s.il.vous.plait.mac.com wrote: On 2010-11-22 08:12:27 -0500, markhanif...@gmail.com said: All opinions are biased. All opinions show some bias. Not all opinions represent

Re: Python recursively __getattribute__

2010-11-22 Thread Andreas Waldenburger
On Mon, 22 Nov 2010 08:41:49 -0800 (PST) Roman Dolgiy tost...@gmail.com wrote: On Nov 22, 6:04 pm, Andreas Waldenburger use...@geekmail.invalid wrote: On Mon, 22 Nov 2010 07:46:47 -0800 (PST) Roman Dolgiy tost...@gmail.com wrote: Hello, I need to implement such behavior:

Re: unittests with different parameters

2010-11-22 Thread Ian Kelly
On 11/22/2010 4:38 AM, Ulrich Eckhardt wrote: Let's say I have two flags invert X and invert Y. Now, for testing these, I would write one test for each combination. What I have in the test case is something like this: def test_invert_flags(self): test flags to invert coordinates

Re: Scheme as a virtual machine?

2010-11-22 Thread namekuseijin
On 22 nov, 14:47, Howard Brazee how...@brazee.net wrote: On Mon, 22 Nov 2010 08:14:40 -0800 (PST), toby t...@telegraphics.com.au wrote: This is a good (if familiar) observation. Teaching children (or young people with little exposure to computers) how to program in various paradigms could

Re: Scheme as a virtual machine?

2010-11-22 Thread markhanif...@gmail.com
On Nov 22, 8:45 am, Raffael Cavallaro raffaelcavall...@pas.despam.s.il.vous.plait.mac.com wrote: On 2010-11-22 08:12:27 -0500, markhanif...@gmail.com said: All opinions are biased. All opinions show some bias. Not all opinions represent what is usually called a conflict of interest.

Re: Scheme as a virtual machine?

2010-11-22 Thread toby
On Nov 22, 12:28 pm, namekuseijin namekusei...@gmail.com wrote: On 22 nov, 14:47, Howard Brazee how...@brazee.net wrote: On Mon, 22 Nov 2010 08:14:40 -0800 (PST), toby t...@telegraphics.com.au wrote: This is a good (if familiar) observation. Teaching children (or young people with

Re: Python recursively __getattribute__

2010-11-22 Thread Terry Reedy
On 11/22/2010 10:46 AM, Roman Dolgiy wrote: Hello, I need to implement such behavior: obj.attr1.attr2.attr3 -- obj.attr1__attr2__attr3 obj.attr1.attr2.attr3 is parsed as ((obj.attr1).attr2).attr3, so this cannot work in general but only if attr1 and attr2 are known to not be 'final' names.

Re: unittests with different parameters

2010-11-22 Thread Ulrich Eckhardt
Ian Kelly wrote: On 11/22/2010 4:38 AM, Ulrich Eckhardt wrote: Also, I'd rather construct the error message from the data instead of maintaining it in different places, because manually keeping those in sync is another, errorprone burden. I'm not sure I follow the problem you're

Re: unittests with different parameters

2010-11-22 Thread Ben Finney
Ulrich Eckhardt ulrich.eckha...@dominolaser.com writes: Let's say I have two flags invert X and invert Y. Now, for testing these, I would write one test for each combination. What I have in the test case is something like this: def test_invert_flags(self): test flags to invert

Need advices regarding the strings (str, unicode, coding) used as interface for an external library.

2010-11-22 Thread jmfauth
I'm planning to build an external lib. This lib will exchange a lot of strings between the lib and the core Python code of applications. I wish this lib to be modern, 100% unicode compliant. It will be developped for Python 2.7 and for Python 3. In an early phase, technically, it will be

Re: Python recursively __getattribute__

2010-11-22 Thread Roman Dolgiy
On Nov 22, 7:57 pm, Terry Reedy tjre...@udel.edu wrote: On 11/22/2010 10:46 AM, Roman Dolgiy wrote: Hello, I need to implement such behavior: obj.attr1.attr2.attr3 --  obj.attr1__attr2__attr3 obj.attr1.attr2.attr3 is parsed as ((obj.attr1).attr2).attr3, so this cannot work in general

Glob in python which supports the ** wildcard

2010-11-22 Thread Martin Lundberg
Hi, I want to be able to let the user enter paths like this: apps/name/**/*.js and then find all the matching files in apps/name and all its subdirectories. However I found out that Python's glob function doesn't support the recursive ** wildcard. Is there any 3rd party glob function which do

Re: Glob in python which supports the ** wildcard

2010-11-22 Thread Stefan Sonnenberg-Carstens
Am 22.11.2010 22:43, schrieb Martin Lundberg: Hi, I want to be able to let the user enter paths like this: apps/name/**/*.js and then find all the matching files in apps/name and all its subdirectories. However I found out that Python's glob function doesn't support the recursive ** wildcard.

Re: Scheme as a virtual machine?

2010-11-22 Thread Raffael Cavallaro
On 2010-11-22 11:25:34 -0500, scattered said: And you don't think that [JH] could write a book about Haskell if he honestly came to think that it were a superior all-aroung language? Until he actually does, he has a financial interest in trash-talking Haskell. This makes anything he says

Re: Glob in python which supports the ** wildcard

2010-11-22 Thread Kurt Mueller
HI, Am 22.11.2010 um 23:05 schrieb Stefan Sonnenberg-Carstens: Am 22.11.2010 22:43, schrieb Martin Lundberg; I want to be able to let the user enter paths like this: apps/name/**/*.js and then find all the matching files in apps/name and all its subdirectories. However I found out that

Re: Glob in python which supports the ** wildcard

2010-11-22 Thread Kurt Mueller
Hi, Am 22.11.2010 um 23:05 schrieb Stefan Sonnenberg-Carstens: Am 22.11.2010 22:43, schrieb Martin Lundberg: I want to be able to let the user enter paths like this: apps/name/**/*.js and then find all the matching files in apps/name and all its subdirectories. However I found out that

Re: Need advices regarding the strings (str, unicode, coding) used as interface for an external library.

2010-11-22 Thread Terry Reedy
On 11/22/2010 3:25 PM, jmfauth wrote: I'm planning to build an external lib. This lib will exchange a lot of strings between the lib and the core Python code of applications. Are you planning to exchange indirectly via disk files or directly via memory buffers? This pretty much amounts to

How to install uTidylib, easy_install problem

2010-11-22 Thread goldtech
I'm using activepython 2.6 on XP. I am trying to install uTidylib 0.2 with easy_install. I like uTidylib more vs. newer modules.and want to use it. I get output below. How do I install it? I do see it in http://pypi.python.org/simple/uTidylib/ Thanks. C:\Documents and Settings\user1easy_install

Re: Glob in python which supports the ** wildcard

2010-11-22 Thread Martin v. Loewis
Am 22.11.2010 22:43, schrieb Martin Lundberg: Hi, I want to be able to let the user enter paths like this: apps/name/**/*.js and then find all the matching files in apps/name and all its subdirectories. However I found out that Python's glob function doesn't support the recursive **

Re: How to install uTidylib, easy_install problem

2010-11-22 Thread Sridhar Ratnakumar
On 2010-11-22, at 4:22 PM, goldtech wrote: I'm using activepython 2.6 on XP. I am trying to install uTidylib 0.2 with easy_install. I like uTidylib more vs. newer modules.and want to use it. I get output below. How do I install it? I do see it in http://pypi.python.org/simple/uTidylib/

File Reading In Mac

2010-11-22 Thread dilip raghavan
Hello , I have been trying to read contents from a file in MAC. I wrote the code filename = test.rtf FileHandle = open(filename,'r') fileStr = FileHandle.read() print fileStr FileHandle.close() When I see the output I see a lot of junk. The junk is like a lot of question marks, the

bug? mmap doesn't like 0-length files

2010-11-22 Thread Neal Becker
mmap.mmap (f.fileno(), 0, prot=mmap.PROT_READ) error: [Errno 22] Invalid argument According to http://docs.python.org/library/mmap.html, mmap on _windows_ doesn't accept 0-length file. But this was tested on linux. Is this a bug? I don't see anything in linux man-page about the underlying

Re: File Reading In Mac

2010-11-22 Thread Ned Deily
In article 66e4164c-e81d-4a65-b847-c5ef900fa...@a37g2000yqi.googlegroups.com, dilip raghavan dilip198...@gmail.com wrote: I have been trying to read contents from a file in MAC. I wrote the code filename = test.rtf FileHandle = open(filename,'r') fileStr = FileHandle.read()

Re: Round Trip: C to Python to C Module

2010-11-22 Thread bobicanprogram
On Nov 19, 11:05 am, Eric Frederich eric.freder...@gmail.com wrote: I have a proprietary software PropSoft that I need to extend. They support extensions written in C that can link against PropLib to interact with the system. I have a Python C module that wraps a couple PropLib functions that

Re: bug? mmap doesn't like 0-length files

2010-11-22 Thread Cameron Simpson
On 22Nov2010 20:33, Neal Becker ndbeck...@gmail.com wrote: | mmap.mmap (f.fileno(), 0, prot=mmap.PROT_READ) | error: [Errno 22] Invalid argument | | According to http://docs.python.org/library/mmap.html, mmap on _windows_ | doesn't accept 0-length file. But this was tested on linux. Is this a

Re: bug? mmap doesn't like 0-length files

2010-11-22 Thread Cameron Simpson
On 23Nov2010 13:59, I wrote: | On 22Nov2010 20:33, Neal Becker ndbeck...@gmail.com wrote: | | mmap.mmap (f.fileno(), 0, prot=mmap.PROT_READ) | | error: [Errno 22] Invalid argument [...] | | I don't see anything in linux man-page about the underlying C mmap function | | not accepting 0-length

Re: Reading bz2 file into numpy array

2010-11-22 Thread Nobody
On Mon, 22 Nov 2010 11:37:22 +0100, Peter Otten wrote: is there a convenient way to read bz2 files into a numpy array? Try f = bz2.BZ2File(filename) data = numpy.fromstring(f.read(), numpy.float32) That's going to hurt if the file is large. You might be better off either extracting to a

Re: bug? mmap doesn't like 0-length files

2010-11-22 Thread Nobody
On Mon, 22 Nov 2010 20:33:08 -0500, Neal Becker wrote: I don't see anything in linux man-page about the underlying C mmap function not accepting 0-length files. My mmap(2) manpage says: ERRORS ... EINVAL (since Linux 2.6.12) length was 0. --

Re: CGI FieldStorage instances?

2010-11-22 Thread Gnarlodious
Let me rephrase the question. Say I have a query string like this: ?view=Dataitem=9875 What I want to do is simply invoke process view with variable Data. This would replace my existing query string mess which looks like this: if 'view' in form and 'item' in form: HTML=view(Data,

Re: MATLAB to Python?

2010-11-22 Thread MATLABdude
On Nov 22, 11:11 am, Peter Otten __pete...@web.de wrote: Try numpy.arange() instead: numpy.arange(0, 1, .1) array([ 0. ,  0.1,  0.2,  0.3,  0.4,  0.5,  0.6,  0.7,  0.8,  0.9]) Thanks! It worked. What's wrong with the following code? ---8---8---8--- T0_orig = [5, 50, 500, 5000] for

Re: MATLAB to Python?

2010-11-22 Thread Arnaud Delobelle
MATLABdude matlab.d...@mbnet.fi writes: On Nov 22, 11:11 am, Peter Otten __pete...@web.de wrote: Try numpy.arange() instead: numpy.arange(0, 1, .1) array([ 0. ,  0.1,  0.2,  0.3,  0.4,  0.5,  0.6,  0.7,  0.8,  0.9]) Thanks! It worked. What's wrong with the following code?

Re: MATLAB to Python?

2010-11-22 Thread MATLABdude
On Nov 23, 9:43 am, Arnaud Delobelle arno...@gmail.com wrote: T0_orig is a list and you are trying to multiply this list by a float (m**-1) Yes, yes of course. Thanks! :) This works: ---8---8---8--- T0_orig = [5, 50, 500, 5000] for counter in T0_orig: T0 =

[issue10483] http.server - what is executable on Windows

2010-11-22 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Martin, that is an interesting viewpoint, and one I considered, but didn't state, because it seems much too restrictive. Most CGI programs are written in scripting languages, not compiled to .exe. So it seems the solution should allow

[issue1284316] Win32: Security problem with default installation directory

2010-11-22 Thread Gynvael Coldwind
Gynvael Coldwind gynv...@gmail.com added the comment: (since Issue 10491 is superseded by this one, I'll reply here) As I've said in issue 10491, in my opinion this is not a case of frustrating users because they have to elevate the console (I think they have to do that in case of UAC

[issue10459] missing character names in unicodedata (CJK...)

2010-11-22 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: For 3.2, this now fixed in r86681. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10459 ___

[issue10500] Palevo.DZ worm msix86 installer 3.x installer

2010-11-22 Thread Vil
New submission from Vil viligno...@gmail.com: scan on msi installer x86 win 3.x python gives Win32/Palevo.DZ worm and erases. -- messages: 122101 nosy: VilIgnoble priority: normal severity: normal status: open title: Palevo.DZ worm msix86 installer 3.x installer type: security versions:

[issue10483] http.server - what is executable on Windows

2010-11-22 Thread Glenn Linderman
Glenn Linderman v+pyt...@g.nevcal.com added the comment: The rest of the code has clearly never had its deficiencies exposed on Windows, simply because executable() has prevented that. So what the rest of the code already supports is basically nothing. Reasonable Windows support is

[issue10231] SimpleHTTPRequestHandler directory bugs

2010-11-22 Thread Hallvard B Furuseth
Hallvard B Furuseth h.b.furus...@usit.uio.no added the comment: Senthil Kumaran writes: I have doubts on the validity of this bug itself. - First is, query and fragment are usually for the file being served from the webserver, not on the directories. If there are characters such as '?' and

[issue10501] make_buildinfo regression with unquoted path

2010-11-22 Thread Martin
New submission from Martin gzl...@googlemail.com: My build got broken by the change for issue 9981 in revision 86137. The problem is it adds $(IntDir) to various places in the vcproj file, including the command line arguments to make_buildinfo, and my svn checkout is under a dir with a space

[issue10470] python -m unittest ought to default to discovery

2010-11-22 Thread Michael Foord
Michael Foord mich...@voidspace.org.uk added the comment: Eli - I quite agree. TestProgram is a *particularly* obscure part of unittest. A much better solution (well - both would be ideal) would be to refactor the code so that it isn't so obscure. TestProgram is an artefact of unittest's

[issue9771] add an optional default argument to tokenize.detect_encoding

2010-11-22 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: no cookie found, returns ('utf-8', [line1, line2]) I never understood the usage of the second item. IMO it should be None if no cookie found. -- ___ Python tracker

[issue10459] missing character names in unicodedata (CJK...)

2010-11-22 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: The patch for 3.1 is r86685. The patch for 2.7 is r86686. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10459

[issue10483] http.server - what is executable on Windows

2010-11-22 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Your suggestion of making CGIHTTPRequestHandler easier to subclass is certainly a good one, and is almost imperative to implement to fix this bug in a useful manner without implementing an insufficient set of Windows extensions (for

[issue10501] make_buildinfo regression with unquoted path

2010-11-22 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Kristjan, can you take a look? -- assignee: - krisvale nosy: +loewis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10501 ___

[issue1675455] Use getaddrinfo() in urllib2.py for IPv6 support

2010-11-22 Thread Senthil Kumaran
Changes by Senthil Kumaran orsent...@gmail.com: -- assignee: facundobatista - orsenthil nosy: -BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1675455 ___

[issue10483] http.server - what is executable on Windows

2010-11-22 Thread Senthil Kumaran
Changes by Senthil Kumaran orsent...@gmail.com: -- nosy: +orsenthil ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10483 ___ ___ Python-bugs-list

[issue10502] Add unittestguirunner to Tools/

2010-11-22 Thread Michael Foord
New submission from Michael Foord mich...@voidspace.org.uk: Add the unittestgui test runner, built with Tk, to the Tools directory. It would be good to have this script included in the bin/ directory of the Mac installer as well. The unittestgui runner can be found at:

[issue10502] Add unittestguirunner to Tools/

2010-11-22 Thread Michael Foord
Michael Foord mich...@voidspace.org.uk added the comment: It will need documenting, or at least pointing to in the documentation, probably with a note recommending Hudson for production use - unittestgui is a tool for beginners / convenience. Note also that Brian Curtin has contributed a

[issue7257] Improve documentation of list.sort and sorted()

2010-11-22 Thread Ole Laursen
Ole Laursen o...@iola.dk added the comment: Okay. I can only say that while the current docstrings are likely good reminders for you, knowing Python in and out, they were pretty useless to me as documentation, which I believe docstrings should be, they're called docstrings, after all, not

[issue10501] make_buildinfo regression with unquoted path

2010-11-22 Thread Kristján Valur Jónsson
Kristján Valur Jónsson krist...@ccpgames.com added the comment: Ah yes, spaces in filenames. One always forgets. Fixed the make_buildinfo.c (quote whole string, not just part of it) and committed in revision 86689 -- resolution: - accepted status: open - closed

[issue8890] Use tempfile instead of /tmp in examples

2010-11-22 Thread Vinay Sajip
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: Actually, I don't think it's a great idea in general to use temporary files for logging, though of course there are specific cases where one might do this. So for the logging examples in the docs (which used '/tmp/XXX') I just removed the

[issue8525] Small enhancement to help()

2010-11-22 Thread Rob Cliffe
Rob Cliffe rob.cli...@btinternet.com added the comment: Thanks for your work. Glad if I have made a contribution to Python, however small. Rob Cliffe On 22/11/2010 00:26, Éric Araujo wrote: Éric Araujomer...@netwok.org added the comment: Thank you. I uploaded your patch to Rietveld and

[issue8525] Small enhancement to help()

2010-11-22 Thread Rob Cliffe
Rob Cliffe rob.cli...@btinternet.com added the comment: I would not be at all surprised if my patch could be simplified (in fact I'd be surprised if it couldn't). However, I did try out your version on Python 2.5 specifically, and it did not work for me. Trying it out on help(Exception), the

[issue10503] os.getuid() documentation should be clear on what kind of uid it is referring

2010-11-22 Thread Giampaolo Rodola'
New submission from Giampaolo Rodola' g.rod...@gmail.com: http://docs.python.org/library/os.html#os.getuid os.getuid() documentation just states: Return the current process’s user id. It is not clear, however, whether user id refers to real, effective or saved user id. As per:

[issue8525] Small enhancement to help()

2010-11-22 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: New features can only go into 3.2, so you have to test with an updated checkout of the Subversion branch named py3k. See the link I have in a previous message. (P.S. Would you be so kind as to edit quoted text out of your replies? It’s

[issue10466] locale.py resetlocale throws exception on Windows (getdefaultlocale returns value not usable in setlocale)

2010-11-22 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: I think that's a bug in the resetlocale() API. The correct way to reset the locale setting to defaults, it to use setlocale(category, ) The other issues here is that getlocale() appears to return non-ISO language codes on Windows. If

[issue9424] Disable unittest.TestCase.assertEquals and assert_ during a regrtest run

2010-11-22 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: Committed in r86690 on py3k, blocked in r86691 and r88692 on 3.1/2.7. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9424 ___

[issue4493] urllib2 doesn't always supply / where URI path component is empty

2010-11-22 Thread Wes Chow
Wes Chow wes.c...@gmail.com added the comment: This same bug also exists in HTTPClient, and my patch addresses that. Addressing it in HTTPClient has a side effect of taking care of it for urllib2 as well (and all future libraries that use HTTPClient). Even if the urllib2 patch is preferable,

[issue10504] Trivial mingw compile fixes

2010-11-22 Thread Johann Hanne
New submission from Johann Hanne pyt...@jf.hanne.name: There are a number of mingw compile issues which are easily fixed * some _MSC_VER #if's should be MS_WINDOWS instead * for cross-compiling, windows.h should be all-lowercase * mingw has a strcasecmp, so private implementations must not use

[issue940286] pydoc.Helper.help() ignores input/output init parameters

2010-11-22 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- stage: unit test needed - patch review versions: +Python 2.7, Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue940286 ___

[issue10503] os.getuid() documentation should be clear on what kind of uid it is referring

2010-11-22 Thread Giampaolo Rodola'
Giampaolo Rodola' g.rod...@gmail.com added the comment: Update: I think also os.getlogin() doc is wrong. This is what it states (2.7 doc): Return the name of the user logged in on the controlling terminal of the process. For most purposes, it is more useful to use the environment variable

[issue8890] Use tempfile instead of /tmp in examples

2010-11-22 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Whatsnew documents are not edited after the corresponding release is done. Using either /home/user or tempfile depending on the example seems good to me. -- stage: needs patch - patch review ___

[issue10490] mimetypes read_windows_registry fails for non-ASCII keys

2010-11-22 Thread And Clover
Changes by And Clover a...@doxdesk.com: -- type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10490 ___ ___ Python-bugs-list mailing

[issue10351] Add autocompletion for keys in dictionaries

2010-11-22 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Review time! +elif [ in text: +self.matches = self.dict_key_matches(text) Does this complete only dicts? What about other mappings? What about other sequences implementing __getitem__? One of the function name and

[issue9095] patchcheck should handle extraneous whitespace in .rst files

2010-11-22 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I tried to use “make patchcheck” after edits to reST files and it hung. Do you have the same behavior? I suspect reindent-rst is the culprit. I’m wondering about the reindenting; other checks in patchcheck don’t edit files, they just print

[issue10466] locale.py resetlocale throws exception on Windows (getdefaultlocale returns value not usable in setlocale)

2010-11-22 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: I had a report from a user on IRC during the bug weekend that they could not reproduce the failure on windows. So it may be dependent on the windows version. That doesn't answer your question of why it hasn't come up before, though,

[issue8890] Use tempfile instead of /tmp in examples

2010-11-22 Thread anatoly techtonik
anatoly techtonik techto...@gmail.com added the comment: On Mon, Nov 22, 2010 at 3:59 PM, Éric Araujo rep...@bugs.python.org wrote: Using either /home/user or tempfile depending on the example seems good to me. There is no /home/user on Windows. --

[issue10505] test_compileall: failure on Windows

2010-11-22 Thread Stefan Krah
New submission from Stefan Krah stefan-use...@bytereef.org: On Windows, test_compileall fails due to #10197: == FAIL: test_quiet (test.test_compileall.CommandLineTests)

[issue10505] test_compileall: failure on Windows

2010-11-22 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Can you post on #10453? Thanks in advance. -- nosy: +eric.araujo resolution: - duplicate stage: patch review - committed/rejected status: open - closed superseder: - Add -h/--help option to compileall

[issue10087] HTML calendar is broken

2010-11-22 Thread Chris Lambacher
Chris Lambacher ch...@kateandchris.net added the comment: I don't understand what you mean by elides the line breaks in output. They are still there, you just don't see them as \n because print() is no longer implicitly converting the bytes to a string (which appears to actually result in a

[issue10087] HTML calendar is broken

2010-11-22 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10087 ___ ___

  1   2   >