How to build an application in Django which will handle Multiple servers accross network

2011-04-29 Thread Anurag (anu) Agarwal
Hi All, I want to build an application for one of my client which has following features 1. Client has some driver software which can be installed on Windows and Linux based systems. This driver software is fetching some operating system details using kernel level programming. 2. Now a new web

Re: unpickling derived LogRecord in python 2.7 from python2.6

2011-04-29 Thread ivdn...@gmail.com
On Apr 28, 9:22 am, Peter Otten __pete...@web.de wrote: Vinay Sajip wrote: On Apr 27, 5:41 pm, Peter Otten __pete...@web.de wrote: The Problem is that as of Python 2.7logging.LogRecord has become a newstyle class which is pickled/unpickled differently. I don't know if there is an

Re: Composition instead of inheritance

2011-04-29 Thread Jean-Michel Pichavant
Ben Finney wrote: Ethan Furman et...@stoneleaf.us writes: Carl Banks wrote: That's not what we mean by composition. Composition is when one object calls upon another object that it owns to implement some of its behavior. Often used to model a part/whole relationship, hence the name.

Re: [OT] From svn to something else? (was: VCS tools)

2011-04-29 Thread Hans Georg Schaathun
Hmmm. I am still using svn. How easy and reliable is it to import my svn version history into one of the three big DVCS-s mentioned here? I am fairly happy with svn, but then I use it more as a backup system and a means to synchronise multiple systems. Something better would not hurt, but

Re: How to build an application in Django which will handle Multiple servers accross network

2011-04-29 Thread Adam Tauno Williams
On Thu, 2011-04-28 at 23:47 -0700, Anurag (anu) Agarwal wrote: Hi All, I want to build an application for one of my client which has following features 1. Client has some driver software which can be installed on Windows and Linux based systems. This driver software is fetching some

Re: How to build an application in Django which will handle Multiple servers accross network

2011-04-29 Thread Paul Kölle
Hi, Am 29.04.2011 12:01, schrieb Adam Tauno Williams: On Thu, 2011-04-28 at 23:47 -0700, Anurag (anu) Agarwal wrote: Hi All, I want to build an application for one of my client which has following features 1. Client has some driver software which can be installed on Windows and Linux based

Re: [OT] From svn to something else?

2011-04-29 Thread Tim Chase
On 04/29/2011 05:07 AM, Hans Georg Schaathun wrote: How easy and reliable is it to import my svn version history into one of the three big DVCS-s mentioned here? I'd say that one of the things SVN has going for it is that it's the lingua-franca of VCSes, so just about everything (especially

Python wide-python-build unicode for Windows

2011-04-29 Thread satheesh
Hi All, How could i increase the unicode range beyond 1 ? In python 2.5.4 by default the unicode range is 0x1, but in some cases i have unicode char beyond the limit. For those conditions it th an error. File E:\OpenERP\OpenERP AllInOne\Server\library.zip\reportlab\pdfbase\ttfonts.py,

Re: How to build an application in Django which will handle Multiple servers accross network

2011-04-29 Thread Adam Tauno Williams
On Fri, 2011-04-29 at 13:24 +0200, Paul Kölle wrote: Am 29.04.2011 12:01, schrieb Adam Tauno Williams: 3. The web based application will be used internally in the network to moniter servers in that network only. You mean like OpenNMS or ZenOSS? 4. Web based application will be a real time

Re: Active Directory user creation with python-ldap

2011-04-29 Thread Michael Ströder
Nello wrote: I need to create an Active Directory user using python-ldap library. So, I authenticate with an admin account and I use add_s to create the user. This is possible. Which version of AD are you working with. Anyway, by default users are disabled on creation, That's the correct way

Re: [OT] From svn to something else?

2011-04-29 Thread Ben Finney
Hans Georg Schaathun ge...@schaathun.net writes: How easy and reliable is it to import my svn version history into one of the three big DVCS-s mentioned here? Bazaar's support for Subversion repositories is great (it requires the ‘bzr-svn’ plug-in, of course). Use the ‘svn-import’ subcommand

Re: [OT] From svn to something else?

2011-04-29 Thread D'Arcy J.M. Cain
On Fri, 29 Apr 2011 22:53:47 +1000 Ben Finney ben+pyt...@benfinney.id.au wrote: Bazaar's support for Subversion repositories is great (it requires the ‘bzr-svn’ plug-in, of course). Use the ‘svn-import’ subcommand to import an entire Subversion repository to a Bazaar repository with all

Re: [OT] Comparing VCS tools (was Development tools and practices for Pythonistas)

2011-04-29 Thread Kevin Walzer
Fossil is another SCM to consider: http://www.fossil-scm.org/ It's written by the author of SQLite, D. Richard Hipp. It's not as well-known as some of the other DCVS's, but the Tcl/Tk language projects have moved their core development to it (http://core.tcl.tk). This is relevant to Python

Re: Read-write lock for Python

2011-04-29 Thread Geoff Bache
On Fri, Apr 29, 2011 at 12:38 AM, Ryan Kelly r...@rfk.id.au wrote: On Thu, 2011-04-28 at 07:02 -0700, Geoff Bache wrote: Hi all, I currently find myself needing a Python read-write lock. I note that there is none in the standard library, but googling python read-write lock quickly produced 6

Re: [OT] From svn to something else?

2011-04-29 Thread Hans Georg Schaathun
On Fri, 29 Apr 2011 06:50:52 -0500, Tim Chase python.l...@tim.thechases.com wrote: : I'd say that one of the things SVN has going for it is that it's : the lingua-franca of VCSes, so just about everything (especially : the 3 big names mentioned in this thread: hg, bzr, git) can talk : to

Re: Deditor

2011-04-29 Thread Alec Taylor
I'll create an installer or two (an NSIS or InnoSetup .exe and an MSI) if you like, once you've released the windows version. On Fri, Apr 29, 2011 at 6:16 AM, Kruptein darragh@gmail.com wrote: On 28 apr, 07:46, jmfauth wxjmfa...@gmail.com wrote: On 27 avr, 19:22, Alec Taylor

Thank You Re: use of index (beginner's question)

2011-04-29 Thread Rusty Scalf
An overdue Thank You to everyone who responded. I got well more than I bargained for, including needed reinforcement (beyond the beginner's guides) of how Python actually works and some good programming habits. I am grateful. I liked Steven D'Aprano comment: Define does not work. What

Re: [OT] Comparing VCS tools (was Development tools and practices for Pythonistas)

2011-04-29 Thread Daniel Kluev
We were looking for some simple integrated SCM, issue tracker and wiki in our university for software design and software testing courses, and fossil seems to be perfect match, thanks for sharing. -- With best regards, Daniel Kluev -- http://mail.python.org/mailman/listinfo/python-list

Re: [OT] From svn to something else?

2011-04-29 Thread Tim Chase
On 04/29/2011 12:01 PM, Hans Georg Schaathun wrote: python.l...@tim.thechases.com wrote: : I'd say that one of the things SVN has going for it is that it's : the lingua-franca of VCSes, so just about everything (especially : the 3 big names mentioned in this thread: hg, bzr, git) can talk

Re: Deditor

2011-04-29 Thread jmfauth
On 28 avr, 22:16, Kruptein darragh@gmail.com wrote: On 28 apr, 07:46, jmfauth wxjmfa...@gmail.com wrote: On 27 avr, 19:22, Alec Taylor alec.tayl...@gmail.com wrote: Thanks, any plans for a Windows version? - Download the deb - Unpack it with a utility like 7zip - Throw away

Re: [OT] VCS tools

2011-04-29 Thread Martin Schöön
On 2011-04-28, Ben Finney ben+pyt...@benfinney.id.au wrote: Martin Schöön martin.sch...@gmail.com writes: This has been a pretty informative thread so far. Please keep it coming. I am a hardware development guy and do very little software development. I have been vaguely aware of tools for

Re: Development tools and practices for Pythonistas

2011-04-29 Thread Hans Georg Schaathun
On Wed, 27 Apr 2011 14:24:30 +0200, Jean-Michel Pichavant jeanmic...@sequans.com wrote: : I was talking about merge *issue* i.e merge resulting in conflicts that : are not easy to solve. With a single user most of the merge will be : solved automatically by any decent VCS. Exactly, and

Re: Python wide-python-build unicode for Windows

2011-04-29 Thread Martin v. Loewis
But how could i do this in Windows. It's not supported. Hopefully, it will be supported in Python 3.3, due to PEP 393. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: Python wide-python-build unicode for Windows

2011-04-29 Thread Terry Reedy
On 4/29/2011 7:52 AM, sathe...@e-ndicus.com wrote: How could i increase the unicode range beyond 1 ? Use Python3, which, after renaming unichar to chr, changed it to always accept the full range of codepoints, even when that means returning a two-char string on narrow builds, like

Re: windows 7 x64 shutdown

2011-04-29 Thread Brian Curtin
On Mon, Apr 25, 2011 at 16:15, rjmccorkle robert.mccor...@gmail.com wrote: does anyone know a solution to shutting down windows 7 x64 via python script? the win32 obviously doesn't work... something similar? the win32 obviously doesn't work -- It does. --

Re: Composition instead of inheritance

2011-04-29 Thread Ethan Furman
James Mills wrote: On Fri, Apr 29, 2011 at 11:43 AM, Ethan Furman et...@stoneleaf.us wrote: Hmmm. Okay -- any ideas for a better term? Something that describes taking different source classes and fusing them into a new whole, possibly using single-inheritance... Frankenstein, maybe? ;) I'd

Re: Deditor

2011-04-29 Thread Kruptein
On 29 apr, 20:25, jmfauth wxjmfa...@gmail.com wrote: On 28 avr, 22:16, Kruptein darragh@gmail.com wrote: On 28 apr, 07:46, jmfauth wxjmfa...@gmail.com wrote: On 27 avr, 19:22, Alec Taylor alec.tayl...@gmail.com wrote: Thanks, any plans for a Windows version? - Download the

Re: Composition instead of inheritance

2011-04-29 Thread Carl Banks
On Thursday, April 28, 2011 6:43:35 PM UTC-7, Ethan Furman wrote: Carl Banks wrote: The sorts of class that this decorator will work for are probably not the ones that are going to have problems cooperating in the first place. So you might as well just use inheritance; that way people

Re: Composition instead of inheritance

2011-04-29 Thread Ethan Furman
Carl Banks wrote: Here is my advice on mixins: [snip] Cool. Thanks! ~Ethan -- http://mail.python.org/mailman/listinfo/python-list

Re: Composition instead of inheritance

2011-04-29 Thread Ian Kelly
On Fri, Apr 29, 2011 at 3:09 PM, Carl Banks pavlovevide...@gmail.com wrote: Here is my advice on mixins: Mixins should almost always be listed first in the bases.  (The only exception is to work around a technicality.  Otherwise mixins go first.) If a mixin defines __init__, it should

Re: Composition instead of inheritance

2011-04-29 Thread Ethan Furman
Ian Kelly wrote: On Thu, Apr 28, 2011 at 11:15 AM, Ethan Furman et...@stoneleaf.us wrote: For anybody interested in composition instead of multiple inheritance, I have posted this recipe on ActiveState (for python 2.6/7, not 3.x):

Re: cx_Freeze 4.2.3

2011-04-29 Thread PuffTheMagic
I get this error too using Apple's system python. On Mar 31, 7:49 pm, James Mills prolo...@shortcircuit.net.au wrote: On Sun, Mar 20, 2011 at 9:52 AM, Anthony Tuininga anthony.tuini...@gmail.com wrote: Where do I get it? http://cx-freeze.sourceforge.net Just as a matter of interest, I

Re: Development tools and practices for Pythonistas

2011-04-29 Thread Ben Finney
Hans Georg Schaathun h...@schaathun.net writes: Exactly, and with svn that can be a true nightmare when directories are involved. The rumour is that git handles this much better. Any of the top-tier distributed VCS (Bazaar, Git, Mercurial) handle branching and merging very well. They have

Re: Composition instead of inheritance

2011-04-29 Thread Carl Banks
On Friday, April 29, 2011 2:44:56 PM UTC-7, Ian wrote: On Fri, Apr 29, 2011 at 3:09 PM, Carl Banks wrote: Here is my advice on mixins: Mixins should almost always be listed first in the bases.  (The only exception is to work around a technicality.  Otherwise mixins go first.) If a

(beginner) logging config not working

2011-04-29 Thread Unknown Moss
Hi This is a beginner question. Thanks for the hand. I've been asked to maintain some poorly constructed python code. Logging is weak. Getting it to work with python logging programmatically was easy. However, I'd like to refactor all the logging code into configuration since I see the need for

Re: Composition instead of inheritance

2011-04-29 Thread Ian Kelly
On Fri, Apr 29, 2011 at 5:54 PM, Carl Banks pavlovevide...@gmail.com wrote: Really, *any* class that uses super().__init__ should take its arguments and pass them along in this manner. If you are programming defensively for any possible scenario, you might try this (and you'd still fail).

Re: Development tools and practices for Pythonistas

2011-04-29 Thread CM
A lone developer using such a VCS reaps the benefits of this by getting good merging support. While we're on the topic, when should a lone developer bother to start using a VCS? At what point in the complexity of a project (say a hobby project, but a somewhat seriousish one, around ~5-9k LOC)

Fibonacci series recursion error

2011-04-29 Thread lalit
import os def fib(n): if n == 1: return(n) else: return (fib(n-1)+fib(n-2)) list=fib(20) print(list) The above function return the return (fib(n-1)+fib(n-2)) RuntimeError: maximum recursion depth exceeded in comparison [36355 refs] can any one help --

Re: Development tools and practices for Pythonistas

2011-04-29 Thread Shawn Milochik
Depends on the project, but I'd start with git the time I created the first file in my project. If you're in the habit of committing then you can easily rollback missteps. If you're in the habit of making branches you can experiment without breaking the currently-working code. --

Re: Fibonacci series recursion error

2011-04-29 Thread Gary Herron
On 04/29/2011 08:22 PM, lalit wrote: import os def fib(n): if n == 1: return(n) else: return (fib(n-1)+fib(n-2)) list=fib(20) print(list) The above function return the return (fib(n-1)+fib(n-2)) RuntimeError: maximum recursion depth exceeded in

Re: Development tools and practices for Pythonistas

2011-04-29 Thread Roy Smith
In article ad197191-042c-468a-9002-f449b633d...@s4g2000yql.googlegroups.com, CM cmpyt...@gmail.com wrote: While we're on the topic, when should a lone developer bother to start using a VCS? No need to use VCS at the very beginning of a project. You can easily wait until you've written 10

Re: Fibonacci series recursion error

2011-04-29 Thread Jason Friedman
import os def fib(n):        if n == 1:          return(n)        else:          return (fib(n-1)+fib(n-2)) list=fib(20) print(list) The above function return the return (fib(n-1)+fib(n-2)) RuntimeError: maximum recursion depth exceeded in comparison [36355 refs] can any one help

Re: Fibonacci series recursion error

2011-04-29 Thread harrismh777
lalit wrote: The above function return the return (fib(n-1)+fib(n-2)) RuntimeError: maximum recursion depth exceeded in comparison [36355 refs] There is much debate about this generally, but general wisdom is that recursion is to be avoided when possible. Another way to say this is, Only

Re: Fibonacci series recursion error

2011-04-29 Thread harrismh777
===begin== def fib(i=1): l=[] p=0 a=1 n=p+a for j in range(1,i+1): l.append(a) p=a a=n n=p+a return l list=fib(7) ===end== ... the above, if you want to return the

Re: (beginner) logging config not working

2011-04-29 Thread Peter Otten
Unknown Moss wrote: Hi This is a beginner question. Thanks for the hand. I've been asked to maintain some poorly constructed python code. Logging is weak. Getting it to work with python logging programmatically was easy. However, I'd like to refactor all the logging code into

Installing programs that depend on, or are, python extensions.

2011-04-29 Thread James A. Donald
I have noticed that installing python programs tends to be hell, particularly under windows, and installing python programs that rely on, or in large part are, python extensions written in C++ tends to be hell on wheels with large spiky knobs and scythes on the wheels. Is this because such

Re: Fibonacci series recursion error

2011-04-29 Thread Ian Kelly
On Fri, Apr 29, 2011 at 9:57 PM, Jason Friedman ja...@powerpull.net wrote: The first call to fib() recursively calls fib() twice.  Each of those will call fib() twice.  Each of those will call fib() twice.  Pretty soon, you've got a lot of calls. Which is hell for the running time, but doesn't

Re: Fibonacci series recursion error

2011-04-29 Thread harrismh777
def fib(i=1): a=1;n=1;l=[] for j in range(0,i): l.append(a) p=a;a=n;n=p+a return l list=fib(7) ... and the above, is how I would actually code it kind regards, m harris -- http://mail.python.org/mailman/listinfo/python-list

Re: Fibonacci series recursion error

2011-04-29 Thread harrismh777
Ian Kelly wrote: since the fact is that if the function were properly coded, the call stack for fib(20) would never be more than 20 entries deep at any one time. Not so much... and much more ! ... because each recursion level 'return' calls fib() twice, and each of those calls fib()

[issue11344] Add os.path.splitpath(path) function

2011-04-29 Thread blokeley
blokeley bloke...@gmail.com added the comment: The unit tests on the cpython tip revision fail even before applying my patches and I'm afraid haven't got the time to debug the threading module or existing unit tests. The traceback is: C:\workspace\cpython\Lib\test C:\Python32\python.exe

[issue11874] argparse assertion failure with brackets in metavars

2011-04-29 Thread ysj.ray
ysj.ray ysj@gmail.com added the comment: Seem as a problem in optparse.HelpFormatter._format_usage(): when the generated usage string is too long(longer than 78, e.g.), python tries to break the usage string into parts at some proper positions and group them to multiple lines, then join

[issue11874] argparse assertion failure with brackets in metavars

2011-04-29 Thread ysj.ray
Changes by ysj.ray ysj@gmail.com: -- components: +Library (Lib) -None ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11874 ___ ___

[issue11946] 2.7.1 'test_commands' build test fails

2011-04-29 Thread Jason Vas Dias
Jason Vas Dias jason.vas.d...@gmail.com added the comment: RE: msg134737 : indeed this test bug was only recently (April 4th!) fixed. Please can you let me know how to get the patch / source / that fixes this ? The bug # of the original bug ? Should I be building from GIT ? Which GIT tag ?

[issue11946] 2.7.1 'test_commands' build test fails

2011-04-29 Thread Jason Vas Dias
Jason Vas Dias jason.vas.d...@gmail.com added the comment: Aha ! Yes, I see, it is the extra '.' - this test now works : $ cat test.py import os import sys import re pat = r'''d. # It is a directory. [+.@]? \s+\d+ # It has some number of links.

[issue11206] test_readline unconditionally calls clear_history()

2011-04-29 Thread ysj.ray
ysj.ray ysj@gmail.com added the comment: This seems has already been fixed in issue11496, should be closed. -- nosy: +ysj.ray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11206 ___

[issue11946] 2.7.1 'test_commands' build test fails

2011-04-29 Thread Jason Vas Dias
Jason Vas Dias jason.vas.d...@gmail.com added the comment: In case you don't believe me, believe a C compiler : $ echo -e '#include stdio.h\nint main(){ printf(%u %u\\n,sizeof(int),sizeof(void*));}' si.c $ gcc -o si si.c $ ./si 4 8 Any code that assumes that sizeof(int) == sizeof(char*) on

[issue11946] 2.7.1 'test_commands' build test fails

2011-04-29 Thread Jason Vas Dias
Jason Vas Dias jason.vas.d...@gmail.com added the comment: Furthermore, look at your configure script output : checking for int32_t... yes checking for

[issue11946] 2.7.1 'test_commands' build test fails

2011-04-29 Thread Jason Vas Dias
Jason Vas Dias jason.vas.d...@gmail.com added the comment: OK, the test failures reported for this bug now succeed with Python-3.3 from latest HG head . But Python-3.3 now has its own new test failures : [149/354] test_import

[issue11946] 2.7.1 'test_commands' build test fails

2011-04-29 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: No, if you take a look at tip, the problem is that bit of re is not covering all cases, and should look like this: [.+@]? # It may have special attributes. I assumed the . was selinux, but I don't actually know, as I don't see

[issue11344] Add os.path.splitpath(path) function

2011-04-29 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Did you try a make distclean/configure/make? _thread.info is a new attribute introduced by a relatively recent patch. -- ___ Python tracker rep...@bugs.python.org

[issue11946] 2.7.1 'test_commands' build test fails

2011-04-29 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Sorry, didn't see that you'd figured it out in the midst of your other comments not relevant to this bug. If the re were simpler it wouldn't actually be *testing* the function under test, and so would be a useless test. (It would show

[issue11946] 2.7.1 'test_commands' build test fails

2011-04-29 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Jason, that the dl module requires sizeof(int) == sizeof(char *) does not mean that it (or we) thinks this to be true on every platform. Rather, the module is written in a way that requires this equality, and rather than crashing it does this

[issue11947] re.IGNORECASE does not match literal _ (underscore)

2011-04-29 Thread Robert Meerman
Robert Meerman robert.meer...@gmail.com added the comment: Oh, that's embarrassing. :-) Could a type-check be used to alert the user to their mistake? I suppose that would require re.IGNORECASE (et al) to be of some new type (presumably sub-classed from Integer). (Thanks for the quick

[issue11954] 3.3 - 'make test' fails

2011-04-29 Thread Jason Vas Dias
New submission from Jason Vas Dias jason.vas.d...@gmail.com: I do : $ hg clone http://hg.python.org/cpython ( my existing Python-2.7, following upgrade to glibc-2.13, started producing erroneous results - see gnome.org glib bug : https://bugzilla.gnome.org/show_bug.cgi?id=648863 So I

[issue11954] 3.3 - 'make test' fails

2011-04-29 Thread Jason Vas Dias
Changes by Jason Vas Dias jason.vas.d...@gmail.com: -- components: +Build versions: +Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11954 ___

[issue11954] 3.3 - 'make test' fails

2011-04-29 Thread Jason Vas Dias
Changes by Jason Vas Dias jason.vas.d...@gmail.com: -- type: - crash ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11954 ___ ___ Python-bugs-list

[issue11954] 3.3 - 'make test' fails

2011-04-29 Thread Jason Vas Dias
Jason Vas Dias jason.vas.d...@gmail.com added the comment: my expat was just built a few weeks ago from expat-2.0.1.tar.gz: $ ls -l /usr/lib64/libexpat* -rw-r--r-- 1 root root 577052 Apr 8 21:52 /usr/lib64/libexpat.a lrwxrwxrwx 1 root root 17 Apr 8 21:52 /usr/lib64/libexpat.so -

[issue11954] 3.3 - 'make test' fails

2011-04-29 Thread Jason Vas Dias
Jason Vas Dias jason.vas.d...@gmail.com added the comment: suspect cause #1 - bad system libffi ? I just built it, but : $ ls -l /usr/lib64/libffi* -rwxr-xr-x 1 root root 36839 May 25 2008 /usr/lib64/libffi-2.00-beta.so -rw-r--r-- 1 root root 201320 Apr 8 03:46 /usr/lib64/libffi.a lrwxrwxrwx

[issue11954] 3.3 - 'make test' fails

2011-04-29 Thread Jason Vas Dias
Jason Vas Dias jason.vas.d...@gmail.com added the comment: $ ls -l /usr/lib64/libffi* -rwxr-xr-x 1 root root 36839 May 25 2008 /usr/lib64/libffi-2.00-beta.so -rw-r--r-- 1 root root 193480 Apr 29 13:22 /usr/lib64/libffi.a -rwxr-xr-x 1 root root904 Apr 29 13:22 /usr/lib64/libffi.la

[issue11954] 3.3 - 'make test' fails

2011-04-29 Thread Jason Vas Dias
Jason Vas Dias jason.vas.d...@gmail.com added the comment: no, 'make test V=1' still fails with 'run in verbose mode for details' . does it mean 'make test verbose=1' ? 'make test mode=verbose' ? -- ___ Python tracker rep...@bugs.python.org

[issue11954] 3.3 - 'make test' fails

2011-04-29 Thread Jason Vas Dias
Jason Vas Dias jason.vas.d...@gmail.com added the comment: OK, so getting out strace shows I need to do : $ LD_LIBRARY_PATH=`pwd` LD_PRELINK=`pwd`/libpython3.3.so.1.0 ./python -Wd -E -bb /usr/src/cpython/Lib/test/regrtest.py -l -v 21 | tee make.test.verbose.log I'll show the failures from

[issue11954] 3.3 - 'make test' fails

2011-04-29 Thread Jason Vas Dias
Jason Vas Dias jason.vas.d...@gmail.com added the comment: [ 16/354] test_argparse ... # all ok up to: test_wb_1 (test.test_argparse.TestFileTypeRepr) ... ok test_failures_many_groups_listargs (test.test_argparse.TestFileTypeW) ... FAIL test_failures_many_groups_sysargs

[issue11954] 3.3 - 'make test' fails

2011-04-29 Thread Jason Vas Dias
Jason Vas Dias jason.vas.d...@gmail.com added the comment: test_successes_one_group_sysargs (test.test_argparse.TestTypeUserDefined) ... test test_argparse failed -- multiple errors occurred ok == FAIL:

[issue11954] 3.3 - 'make test' fails

2011-04-29 Thread Jason Vas Dias
Jason Vas Dias jason.vas.d...@gmail.com added the comment: test_start_with_double_slash (test.test_httpservers.SimpleHTTPRequestHandlerTestCase) ... /usr/src/cpython/Lib/unittest/case.py:799: BytesWarning: str() on a bytes instance (i, item1, item2)) test test_httpservers failed -- multiple

[issue11954] 3.3 - 'make test' fails

2011-04-29 Thread Jason Vas Dias
Jason Vas Dias jason.vas.d...@gmail.com added the comment: test_too_high_from_package (test.test_import.RelativeImportFromImportlibTests) ... test test_import failed -- Traceback (most recent call last): File /usr/src/cpython/Lib/test/test_import.py, line 545, in test_unwritable_directory

[issue11954] 3.3 - 'make test' fails

2011-04-29 Thread Jason Vas Dias
Jason Vas Dias jason.vas.d...@gmail.com added the comment: [237/354] test_pyexpat test_ordered_attributes (test.test_pyexpat.SetAttributeTest) ... ok test_specified_attributes (test.test_pyexpat.SetAttributeTest) ... ok test_parse_file (test.test_pyexpat.ParseTest) ... ok test_unicode

[issue11954] 3.3 - 'make test' fails

2011-04-29 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Just so you know, you aren't likely to get much help using this approach to bug reporting. A single, focused bug report is much more likely to get attention. You might also want to try starting with a vanilla configure and see how

[issue11954] 3.3 - 'make test' fails

2011-04-29 Thread Jason Vas Dias
Jason Vas Dias jason.vas.d...@gmail.com added the comment: In reply to last comment : RE: a single, focused bug What is this bug if not single and focused ? The SINGLE FOCUS of this bug, in case you missed it , is that there appears to be no source release of python that can build and pass

[issue11954] 3.3 - 'make test' fails

2011-04-29 Thread Jason Vas Dias
Jason Vas Dias jason.vas.d...@gmail.com added the comment: OK, so the ' vanilla configure ' build succeeds too - using DB module only gdbm , and with internal libffi: $ make clean $/usr/src/cpython/configure --prefix=/usr --libdir=/usr/lib64 --enable-shared ... $ echo $? 0 $ make -j2 ... $ echo

[issue11954] 3.3 - 'make test' fails

2011-04-29 Thread Jason Vas Dias
Jason Vas Dias jason.vas.d...@gmail.com added the comment: 'make test' failures after $ /usr/src/cypython/configure --prefix=/usr --libdir=/usr/lib64 --enable-shared $ make -j2 make test (make test fails) So, to run in verbose mode, I do : $ LD_LIBRARY_PATH=`pwd`

[issue11954] 3.3 - 'make test' fails

2011-04-29 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: A focused bug report would focus on *one* of the test failures (as in the failures from running a single test_x). Python3 does not support Berkeley DB out of the box, you need a third party library to get bdb support. You might be

[issue11954] 3.3 - 'make test' fails

2011-04-29 Thread Brian Curtin
Brian Curtin br...@python.org added the comment: I'm not confident to start using this build until I can pin down why eg test_argparse and test_import are failing. Feel free to look into the failures in Lib/test/test_argparse.py and Lib/test/test_import.py -- nosy: +brian.curtin

[issue11344] Add os.path.splitpath(path) function

2011-04-29 Thread blokeley
blokeley bloke...@gmail.com added the comment: My runtime came from the Python32 Windows installer and I don't have a C compiler on this machine. Therefore I updated to the 3.2 branch in hg and worked on that. This patch is pretty simple so should work on 3.3 without modifications. I have

[issue11344] Add os.path.splitpath(path) function

2011-04-29 Thread Brian Curtin
Changes by Brian Curtin br...@python.org: -- nosy: +brian.curtin ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11344 ___ ___ Python-bugs-list

[issue11786] ConfigParser.[Raw]ConfigParser optionxform()

2011-04-29 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: 2.5 and 2.6 are in security mode. Other bug fixes, build changes, documentation improvements, etc. should not go in these branches. Your commit does not break anything, but for process clarity, please back it out. -- nosy:

[issue11324] ConfigParser(interpolation=None) doesn't work

2011-04-29 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: You forgot the Misc/NEWS entry. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11324 ___ ___

[issue10419] distutils command build_scripts fails with UnicodeDecodeError

2011-04-29 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Indeed, I missed those two lines. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10419 ___ ___

[issue3526] Customized malloc implementation on SunOS and AIX

2011-04-29 Thread Sébastien Sablé
Sébastien Sablé sa...@users.sourceforge.net added the comment: I'm just proposing an alternative that I find cleaner, simpler and easier to maintain. I understand how LD_PRELOAD works but I find it neither clean nor simple to maintain. Also by using a wrapper to call Python you still

[issue3526] Customized malloc implementation on SunOS and AIX

2011-04-29 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Since I want PyMem_MALLOC to call dlmalloc, I would need to export the malloc symbol from libpython so that Python extensions could use it when calling PyMem_MALLOC, but that would impact all malloc calls in applications which embed Python for

[issue828450] sdist generates bad MANIFEST on Windows

2011-04-29 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- resolution: - accepted stage: test needed - patch review status: open - pending ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue828450 ___

[issue9756] Crash with custom __getattribute__

2011-04-29 Thread Andreas Stührk
Andreas Stührk andy-pyt...@hammerhartes.de added the comment: I think it is reasonable to restrict the self argument of method descriptors and slot wrapper descriptors to real instances of the type. The called method can't cope with the value anyway (in the general case). Alternative Python

[issue3526] Customized malloc implementation on SunOS and AIX

2011-04-29 Thread Sébastien Sablé
Sébastien Sablé sa...@users.sourceforge.net added the comment: Yes, I was probably not clear: When --with-dlmalloc is activated, PyMem_MALLOC/PyMem_Malloc will call dlmalloc, PyMem_REALLOC/PyMem_Realloc will call dlrealloc and PyMem_FREE/PyMem_Free will call dlfree. While calls to

[issue11343] Make errors due to full parser stack identifiable

2011-04-29 Thread Andreas Stührk
Andreas Stührk andy-pyt...@hammerhartes.de added the comment: FWIW, this also affects `ast.literal_eval()`. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11343 ___

[issue11955] 3.3 : test_argparse.py fails 'make test'

2011-04-29 Thread Jason Vas Dias
New submission from Jason Vas Dias jason.vas.d...@gmail.com: Hi - I've been experiencing many errors trying to build any version of Python that will pass its test suite - see issues : #11946 , #11954 - and now I've been advised to raise bugs about each test failure - hence this bug. For details

[issue3526] Customized malloc implementation on SunOS and AIX

2011-04-29 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Yes, I was probably not clear: When --with-dlmalloc is activated, PyMem_MALLOC/PyMem_Malloc will call dlmalloc, PyMem_REALLOC/PyMem_Realloc will call dlrealloc and PyMem_FREE/PyMem_Free will call dlfree. While calls to malloc/free/realloc

[issue11956] 3.3 : test_import.py causes 'make test' to fail

2011-04-29 Thread Jason Vas Dias
New submission from Jason Vas Dias jason.vas.d...@gmail.com: Hi - I've been experiencing many errors trying to build any version of Python that will pass its test suite - see issues : #11946 , #11954 - and now I've been advised to raise bugs about each test failure - hence this bug. For details

[issue10761] tarfile.extractall fails to overwrite symlinks

2011-04-29 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Senthil, Windows buildbots on 3.1, 3.2 and 3.x show test failures. See e.g. http://www.python.org/dev/buildbot/all/builders/x86%20XP-4%203.1/builds/1780/steps/test/logs/stdio -- assignee: lars.gustaebel - orsenthil nosy: +pitrou status:

[issue11956] 3.3 : test_import.py causes 'make test' to fail

2011-04-29 Thread Jason Vas Dias
Changes by Jason Vas Dias jason.vas.d...@gmail.com: -- components: +Build type: - crash versions: +Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11956 ___

[issue3526] Customized malloc implementation on SunOS and AIX

2011-04-29 Thread Floris Bruynooghe
Floris Bruynooghe floris.bruynoo...@gmail.com added the comment: On 29 April 2011 17:16, Antoine Pitrou rep...@bugs.python.org wrote: Antoine Pitrou pit...@free.fr added the comment: Yes, I was probably not clear: When --with-dlmalloc is activated, PyMem_MALLOC/PyMem_Malloc will call

[issue11956] 3.3 : test_import.py causes 'make test' to fail

2011-04-29 Thread Jason Vas Dias
Jason Vas Dias jason.vas.d...@gmail.com added the comment: So, in the statement that fails : self.assertFalse(os.path.exists(os.path.join(...))) . either self.assertFalse is failing or os.path.exists is failing or os.path.join is failing. The fact that the error message is 'AssertionError:

  1   2   >