[issue11218] pattern=None when following documentation for load_tests and unittest.main()

2011-02-15 Thread Martin von Gagern
New submission from Martin von Gagern : If I follow the documentation at http://docs.python.org/library/unittest.html#unittest.main by putting the following two snippets of code in my module file: def load_tests(loader, standard_tests, pattern='test*.py'): # top level directory cached on l

[issue7305] urllib2.urlopen() segfault using SSL on Solaris

2011-02-15 Thread Fabian Groffen
Fabian Groffen added the comment: Sorry for the noise. My issue seems to be caused by a broken openssl. It is a specific problem with the code for sparcv9 and the T1 CPU. Python can't do much about this. -- versions: -Python 2.7 ___ Python trac

[issue7305] urllib2.urlopen() segfault using SSL on Solaris

2011-02-15 Thread Senthil Kumaran
Senthil Kumaran added the comment: Thanks for the update on this issue. -- nosy: +orsenthil resolution: -> invalid stage: -> committed/rejected status: open -> closed ___ Python tracker __

[issue11217] python-32 not linked in /usr/local/bin in framework builds

2011-02-15 Thread Ned Deily
Ned Deily added the comment: Taking a quick look at it, it appears that the Mac Makefile "installunixtools" target could/should create those links. Note, this is not a problem for the standard OS X installers as Mac/BuildScript/build-installer.py (in buildPython) ensures that links are made

[issue11216] email.message.Message set_charset does not encode properly?

2011-02-15 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso added the comment: Shay.Rojansky: because of the fact that i needed a free last saturday for just having the time to click around a bit to find the relevant docs in the python.org jungle ... and *especially*

[issue877121] configure detects incorrect compiler optimization

2011-02-15 Thread Sébastien Sablé
Sébastien Sablé added the comment: If have the same issue with Oracle Studio 12.2 on Solaris 10 with Python 2.7.1: cc -G -L/livraison/test/sparc-sun-solaris2.10/support/support-2.6.x-py27/lib -L/livraison/test/sparc-sun-solaris2.10/support/support-internal-2.6.x-py27/lib -L/livraison/tes

[issue877121] configure detects incorrect compiler optimization

2011-02-15 Thread Antoine Pitrou
Antoine Pitrou added the comment: Was fixed in r85656 by Martin (in 3.2), but needs backporting. -- assignee: -> loewis nosy: +loewis, pitrou stage: needs patch -> committed/rejected versions: -Python 3.2 ___ Python tracker

[issue11210] PyErr_SetFromWindowsErrWithFilenameObject() doesn't exist: remove it from pyerrors.h

2011-02-15 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +loewis, mhammond ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue941346] AIX shared library fix

2011-02-15 Thread Sébastien Sablé
Sébastien Sablé added the comment: Hum, I was incorrect in previous note: You can remove -L\$(srcdir) on this line, but then you need to specify the full path to Modules/python.exp. See patch below: Index: configure.in === --- con

[issue5831] Doc mistake : threading.Timer is *not* a class

2011-02-15 Thread Martijn van Oosterhout
Martijn van Oosterhout added the comment: Note this is a behaviour change. Under the old scheme (Foo is a class) Foo.timerclass = Timer created a method, whereas now it will just assign the class as an attribute. To work around this you had to use _Timer. Will that dummy class remain as an a

[issue7305] urllib2.urlopen() segfault using SSL on Solaris

2011-02-15 Thread River Tarnell
River Tarnell added the comment: If no one else can reproduce this I suppose there's no point leaving it open, but it's still present for me using Python 2.7.1: % bzip2 -dc Python-2.7.1.tar.bz | tar xvf - % cd Python-2.7.1 % CC=cc CXX=CC CPPFLAGS='-I/usr/sfw/include' LDFLAGS='-L/usr/sfw/lib -

[issue7305] urllib2.urlopen() segfault using SSL on Solaris

2011-02-15 Thread River Tarnell
River Tarnell added the comment: Also, when compiled with OpenSSL 1.0.0c, the problem doesn't occur. -- ___ Python tracker ___ ___ Pyt

[issue7305] urllib2.urlopen() segfault using SSL on Solaris

2011-02-15 Thread Fabian Groffen
Fabian Groffen added the comment: I recompiled openssl with noasm flag now for sparcv9 (like I do on 32-bits compiles), and the example runs fine for me on the T1, proving Python is not to blame here. That said, if your problem only occurs with 0.9.8 isn't it then likely that that version ha

[issue941346] AIX shared library fix

2011-02-15 Thread Sébastien Sablé
Sébastien Sablé added the comment: OK, Python with shared libraries is broken in trunk since the library was renamed to libpython3.2m. Here is a patch to correct that: Index: Modules/ld_so_aix.in === --- Modules/ld_so_aix.in

[issue941346] AIX shared library fix

2011-02-15 Thread Georg Brandl
Georg Brandl added the comment: This looks like it should (and could) go into 3.2 final. Agreed? -- nosy: +barry, benjamin.peterson, georg.brandl priority: normal -> release blocker status: closed -> open ___ Python tracker

[issue941346] AIX shared library fix

2011-02-15 Thread Antoine Pitrou
Antoine Pitrou added the comment: Agreed. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue941346] AIX shared library fix

2011-02-15 Thread Georg Brandl
Georg Brandl added the comment: OK. Sébastien, could you make and attach a complete patch? -- ___ Python tracker ___ ___ Python-bugs

[issue5831] Doc mistake : threading.Timer is *not* a class

2011-02-15 Thread R. David Murray
R. David Murray added the comment: Discussion should be moved to #10968, please. -- ___ Python tracker ___ ___ Python-bugs-list mailin

[issue941346] AIX shared library fix

2011-02-15 Thread Sébastien Sablé
Sébastien Sablé added the comment: Here is the full patch. I also modified Makefile.pre.in to clean Modules/python.exp when doing distclean. -- Added file: http://bugs.python.org/file20764/patch_aix_shared_32.diff ___ Python tracker

[issue941346] AIX shared library fix

2011-02-15 Thread Antoine Pitrou
Antoine Pitrou added the comment: Looks good to me. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:/

[issue11212] Python memory limit on AIX

2011-02-15 Thread Sébastien Sablé
Sébastien Sablé added the comment: This link flag should only be applied to the python executable. There is already LINKFORSHARED which is great for that. LDFLAGS will apply it to all the shared libraries which is not really what we want. I can compile Python with support for 512MB without any

[issue11212] Python memory limit on AIX

2011-02-15 Thread Sébastien Sablé
Changes by Sébastien Sablé : -- versions: +Python 2.6, Python 2.7, Python 3.1 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue11212] Python memory limit on AIX

2011-02-15 Thread Antoine Pitrou
Antoine Pitrou added the comment: > LDFLAGS will apply it to all the shared libraries which is not really > what we want. Is there a downside? -- ___ Python tracker ___ ___

[issue11212] Python memory limit on AIX

2011-02-15 Thread Sébastien Sablé
Sébastien Sablé added the comment: I don't know distutils well enough, but I am afraid the LDFLAGS flag used to compile python is reused in some way when linking some python extensions or some application that embed python. (I use an application that embed python on AIX, I should check what ha

[issue11188] test_time error on AIX

2011-02-15 Thread Sébastien Sablé
Sébastien Sablé added the comment: Here is what I could find in the "man mktime": """ Upon successful completion, the mktime subroutine sets the values of the tm_wday and tm_yday fields appropriately. Other fields are set to represent the specified time since January 1, 1970. Howe

[issue941346] AIX shared library fix

2011-02-15 Thread Georg Brandl
Georg Brandl added the comment: Committed in r88426. -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue7305] urllib2.urlopen() segfault using SSL on Solaris

2011-02-15 Thread River Tarnell
River Tarnell added the comment: Well, I can "prove" it's not OpenSSL's fault either, since "openssl s_client" works fine ;-) (As do many other OpenSSL-using applications.) In any case, since I'm not using SPARC, it's unlikely that a bug in the SPARC asm code is the cause of the problem. Of

[issue11188] test_time error on AIX

2011-02-15 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Sébastien, Can you tell us what time.localtime(t) produces for t in (-2, -1, 0, 1)? Apparently time.mktime() fails on values produced by time.localtime() and this sounds like a platform bug. It is OK to restrict time_t to positive values, but in this

[issue7877] Iterators over _winreg EnumKey and EnumValue results

2011-02-15 Thread Brian Curtin
Changes by Brian Curtin : -- nosy: -BreamoreBoy versions: +Python 3.3 -Python 3.2 ___ Python tracker ___ ___ Python-bugs-list mailing

[issue11188] test_time error on AIX

2011-02-15 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: It looks like different standards have different requirements for localtime() error handling compare: http://pubs.opengroup.org/onlinepubs/009695399/functions/localtime.html and http://pubs.opengroup.org/onlinepubs/7990989775/xsh/localtime.html The lat

[issue640553] Misuse of /usr/local/in setup.py

2011-02-15 Thread Sébastien Sablé
Sébastien Sablé added the comment: This bug is still present in Python 2.7.1. I have also just been beaten by it on solaris. I have libintl.so.1 in /usr/lib and libintl.so.8 in /usr/local/lib. I have never specified that I wanted to use /usr/local/lib anywhere, but the compilation scripts in

[issue640553] Misuse of /usr/local/in setup.py

2011-02-15 Thread Sébastien Sablé
Sébastien Sablé added the comment: I can only bypass this by explicitly specifying -L/usr/lib so that it will take precedence over -L/usr/local/lib. But this behavior is still broken... "Explicit is better than implicit." I can see no reason why /usr/local should be implicitly added; people th

[issue3244] multipart/form-data encoding

2011-02-15 Thread Ben Gamari
Ben Gamari added the comment: Has there been any progress here? -- nosy: +bgamari ___ Python tracker ___ ___ Python-bugs-list mailing

[issue11188] test_time error on AIX

2011-02-15 Thread Sébastien Sablé
Sébastien Sablé added the comment: Python 3.2rc3+ (py3k:88422M, Feb 15 2011, 16:57:29) [C] on aix6 Type "help", "copyright", "credits" or "license" for more information. >>> import time >>> for t in (-2, -1, 0, 1): ... print(time.localtime(t)) ... time.struct_time(tm_year=1970, tm_mon=1, tm

[issue11188] test_time error on AIX

2011-02-15 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: 2011/2/15 Sébastien Sablé : .. for t in (-2, -1, 0, 1): > ...     print(time.localtime(t)) > ... > time.struct_time(tm_year=1970, tm_mon=1, tm_mday=1, tm_hour=0, tm_min=59, > tm_sec=58, tm_wday=3, tm_yday=1, tm_isdst=0) .. This looks right. (For tim

[issue3244] multipart/form-data encoding

2011-02-15 Thread Forest Bond
Forest Bond added the comment: Hi, Sorry for the long delay. I have tested against a Python web application using restish via various WSGI web servers (CherryPy, wsgiref) and I have not seen problems. It may cause problems with other server-side implementations. I will not have time to do

[issue3244] multipart/form-data encoding

2011-02-15 Thread Forest Bond
Forest Bond added the comment: Looks like bgamari and I stepped on each other's requests. -- ___ Python tracker ___ ___ Python-bugs-li

[issue3244] multipart/form-data encoding

2011-02-15 Thread R. David Murray
R. David Murray added the comment: This patch needs a Doc component. Having finally taken a quick look at the RFC (I haven't read it through yet), I think this does belong in email and not http. The RFC makes it clear that while the most common implementation is http, it is designed to be ge

[issue9437] can't build extensions with non-default ldflags (e.g. -m32)

2011-02-15 Thread Landreville
Landreville added the comment: > I've committed a patch which does just this (in r85422). Hopefully it > won't break anything. Could I convince you to patch 2.7 as well? -- nosy: +TheoLandreville, benjamin.peterson ___ Python tracker

[issue10709] Misc/AIX-NOTES needs updating

2011-02-15 Thread Sébastien Sablé
Sébastien Sablé added the comment: Antoine, can you take a look at issue 730467? That's a trivial patch to correct a compilation issue on AIX with a C++ compiler; and that means one less entry in the AIX-NOTES file to write before the 3.2 release... -- __

[issue730467] Not detecting AIX_GENUINE_CPLUSPLUS

2011-02-15 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +georg.brandl ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue10709] Misc/AIX-NOTES needs updating

2011-02-15 Thread Antoine Pitrou
Antoine Pitrou added the comment: > can you take a look at issue 730467? Yes, this is in my bug queue. But unless Georg decides otherwise, this will go in after 3.2 is released (in 3.2.1 probably). -- ___ Python tracker

[issue9437] can't build extensions with non-default ldflags (e.g. -m32)

2011-02-15 Thread Antoine Pitrou
Antoine Pitrou added the comment: > > I've committed a patch which does just this (in r85422). Hopefully it > > won't break anything. > > Could I convince you to patch 2.7 as well? It was backported in r86848. This means it should be available in 2.7.2. -- ___

[issue3244] multipart/form-data encoding

2011-02-15 Thread Jesse Noller
Jesse Noller added the comment: Yeah, despite what the RFC says, the most common usage is in web clients, and stuffing it in the email module won't be obvious to 95% of the population I think, unless that's where the implementation lives, but we can add a doc stub in the http docs pointing to

[issue730467] Not detecting AIX_GENUINE_CPLUSPLUS

2011-02-15 Thread Georg Brandl
Georg Brandl added the comment: Committed to py3k in r88430. -- resolution: -> fixed status: open -> closed ___ Python tracker ___

[issue3244] multipart/form-data encoding

2011-02-15 Thread Forest Bond
Forest Bond added the comment: Hi, So is the following enough to get this applied? If so, I'm game. * Review RFC and enforce Content-Encoding: binary if applicable [checat]. * Generate CR+LF line endings [checat]. * Review RFC and address "line-splitting and header-folding" if applicable [ch

[issue3244] multipart/form-data encoding

2011-02-15 Thread R. David Murray
R. David Murray added the comment: In principle I think something like this should go in. Since it is a Message subclass, I'd like it to follow the current Message API whether or not it is located in the email package. __str__ and as_string have the right default for line length (no folding

[issue11217] python-32 not linked in /usr/local/bin in framework builds

2011-02-15 Thread Tom Loredo
Tom Loredo added the comment: I believe the main Makefile makes the Mac/Makefile.in installunixtools target automatically, and I don't see that it should do "the right thing" regarding linking a python-32. I did the brew install again, logging the output, and adding an explicit "make framewo

[issue4709] Mingw-w64 and python on windows x64

2011-02-15 Thread Ralf Schmitt
Changes by Ralf Schmitt : -- nosy: +schmir ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.or

[issue10504] Trivial mingw compile fixes

2011-02-15 Thread Ralf Schmitt
Changes by Ralf Schmitt : -- nosy: +schmir ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue6335] Add support for mingw

2011-02-15 Thread Ralf Schmitt
Changes by Ralf Schmitt : -- nosy: +schmir ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.or

[issue10615] Trivial mingw compile fixes

2011-02-15 Thread Ralf Schmitt
Changes by Ralf Schmitt : -- nosy: +schmir ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue10775] assertRaises as a context manager should accept a 'msg' keyword argument.

2011-02-15 Thread Winston Ewert
Winston Ewert added the comment: I decided to try my hand at writing a patch for python. I ended up implementing the behavior for assertRaises, assertRaisesRegex, assertWarns, and assertWarnsRegex. I also made those functions complain about other arguments rather then just ignoring them. ---

[issue11219] Produce a warning when the license is specified in both the License and Classifier metadata fields

2011-02-15 Thread Kelsey
New submission from Kelsey : Distutils2 should produce a warning when the license is specified in both the License and Classifier metadata fields -- assignee: tarek components: Distutils2 messages: 128624 nosy: alexis, eric.araujo, kelseyhightower, tarek priority: normal severity: norma

[issue11219] Produce a warning when the license is specified in both the License and Classifier metadata fields

2011-02-15 Thread Kelsey
Kelsey added the comment: Changes and additional tests can be reviewed on my patch queue. https://bitbucket.org/khightower/distutils2-patch-queue/changeset/d7dff88ab524 -- ___ Python tracker _

[issue11220] https sslv3 error 14077417: illegal parameter

2011-02-15 Thread Ian Wetherbee
New submission from Ian Wetherbee : Certain https urls do not open using urllib2 (py2.6) and urllib(py3.1), but they open using the latest version of curl and firefox. To reproduce: >>> import urllib.request >>> urllib.request.urlopen("https://ui2web1.apps.uillinois.edu/BANPROD1/bwskfcls.P_GetC

[issue10907] OS X installer: warn users of buggy Tcl/Tk in OS X 10.6

2011-02-15 Thread Tom Loredo
Tom Loredo added the comment: I see this is marked as fixed but pending; perhaps the following comment will be useful. I encountered the IDLE/Tk instability issue when working on the Homebrew formula for Python-2.6.5 a year ago (March 2010). Building a universal framework Python on Intel (3

[issue11220] https sslv3 error 14077417: illegal parameter

2011-02-15 Thread Georg Brandl
Changes by Georg Brandl : -- nosy: +pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue1173475] __slots__ for subclasses of variable length types

2011-02-15 Thread Senthil Kumaran
Changes by Senthil Kumaran : -- keywords: -after moratorium resolution: -> wont fix ___ Python tracker ___ ___ Python-bugs-list ma

[issue1498363] Improve super() objects support for implicit method calls

2011-02-15 Thread Senthil Kumaran
Changes by Senthil Kumaran : -- keywords: -after moratorium ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: