[issue8128] String interpolation with unicode subclass fails to call __str__

2010-04-27 Thread Georg Brandl
Georg Brandl added the comment: In Python 2.x, __unicode__ is called instead of __str__. Whether that's "correct" behavior, I'm not sure, but at least it is consistent with "{}".format(K()). In Python 3.x, __unicode__ doesn't exist and __str__ isn't called; but for "{}".format(K()), it is.

[issue4037] doctest.py should include method descriptors when looking inside a class __dict__

2010-04-27 Thread Georg Brandl
Georg Brandl added the comment: So for staticmethods and classmethods, valname doesn't need to be reassigned? -- nosy: +georg.brandl ___ Python tracker ___ __

[issue8546] The parameter buffering in _pyio.open doesn't work the same as in the builtin open

2010-04-27 Thread Patrick Sabin
New submission from Patrick Sabin : As far as I understand the _pyio.open function should resemble the builtin open, but in case of the buffering parameter, it doesn't. The builtin version doesn't allow None as argument, but this is the default in the _pyio.open signature. I attached a patch,

[issue7384] curses crash on FreeBSD

2010-04-27 Thread Stefan Krah
Stefan Krah added the comment: Roumen Petrov wrote: > Yes , I understand . > For the protocol did gcc on FreeBSD warn if library order is -lncursesw > -lreadline ? No. > P.S. Issue with readline library linked to termcap compatible library on > system that distribute more then one termc

[issue7946] Convoy effect with I/O bound threads and New GIL

2010-04-27 Thread Charles-Francois Natali
Charles-Francois Natali added the comment: @dabeaz I'm getting random segfaults with your patch (even with the last one), pretty much everywhere malloc or free is called. Ater skimming through the code, I think the problem is due to gil_last_holder: In drop_gil and take_gil, you dereference gil

[issue8128] String interpolation with unicode subclass fails to call __str__

2010-04-27 Thread Eric Smith
Eric Smith added the comment: I agree with Georg. I think 2.x is arguably correct, and 3.1 is broken. It looks like this has already been fixed in 3.2. It's not immediately obvious why that is, I'll have to look at the code more than the quick glance I just gave it. Python 3.1.1+ (release31-

[issue8005] datetime's comparison methods do not return NotImplemented when they should

2010-04-27 Thread Mark Dickinson
Mark Dickinson added the comment: See issue 5516 for a related issue. -- nosy: +belopolsky, mark.dickinson ___ Python tracker ___ ___

[issue8540] Make Context._clamp public in decimal module

2010-04-27 Thread Stefan Krah
Stefan Krah added the comment: (1) Perhaps I missed the relevant part in the spec, so I had to check what decNumber does: In the default context, clamp is 0, in the extended contexts, it is 1. So Python's ExtendedContext should indeed set _clamp to 1. (2) I agree about the importance of the fo

[issue8540] Make Context._clamp public in decimal module

2010-04-27 Thread Stefan Krah
Stefan Krah added the comment: I knew it was somewhere: In the test case description, clamp=0 is specified as the default: http://speleotrove.com/decimal/dtfile.html#syntax -- ___ Python tracker __

[issue8540] Make Context._clamp public in decimal module

2010-04-27 Thread Mark Dickinson
Mark Dickinson added the comment: Hmm. Yes, the spec itself is rather vague on the subject of clamping, so I withdraw my claim that clamping is necessary for compliance with the spec. It *is* necessary to make the those testcases with 'clamp=1' pass, though. So from the point of view of com

[issue7946] Convoy effect with I/O bound threads and New GIL

2010-04-27 Thread David Beazley
Changes by David Beazley : Removed file: http://bugs.python.org/file17102/dabeaz_gil.patch ___ Python tracker ___ ___ Python-bugs-list mailing

[issue7946] Convoy effect with I/O bound threads and New GIL

2010-04-27 Thread David Beazley
David Beazley added the comment: Added extra pointer check to avoid possible segfault. -- Added file: http://bugs.python.org/file17104/dabeaz_gil.patch ___ Python tracker ___ ___

[issue8540] Make Context._clamp public in decimal module

2010-04-27 Thread Mark Dickinson
Mark Dickinson added the comment: Re: ExtendedContext, the comments in decimal.py say: # Pre-made alternate contexts offered by the specification # Don't change these; the user should be able to select these # contexts and be able to reproduce results from other implementations # of the spec.

[issue7384] curses crash on FreeBSD

2010-04-27 Thread Jeroen Ruigrok van der Werven
Jeroen Ruigrok van der Werven added the comment: Stefan, I was emailing with Rong-En Fan, a FreeBSD committer, about this issue and he asked: "Basically, this is caused by a) our readline.so is linked against ncurses.so (via -ltermcap which is the same lib) b) wide-character enabled ncur

[issue7946] Convoy effect with I/O bound threads and New GIL

2010-04-27 Thread Charles-Francois Natali
Charles-Francois Natali added the comment: I don't see segfaults anymore, but there's still an unsafe dereference of gil_last_holder inside take_gil: /* Wait on the appropriate GIL depending on thread's classification */ if (!tstate->cpu_bound) { /* We are I/O bound. If the curr

[issue8547] unittest test discovery can fail when package under test is also installed globally

2010-04-27 Thread Michael Foord
New submission from Michael Foord : When test discovery is invoked on a package on the filesystem which is also installed in site-packages then importing the tests will look in the installed version. This causes discovery to run the wrong tests or fail. We can detect this (compare the __file__

[issue7946] Convoy effect with I/O bound threads and New GIL

2010-04-27 Thread donal djeo
donal djeo added the comment: I'm getting random segfaults with your patch (even with the last one), pretty much everywhere malloc or free is called. Ater skimming through the code, I think the problem is due to gil_last_holder: In drop_gil and take_gil, you dereference gil_last_holder->cpu_bou

[issue7946] Convoy effect with I/O bound threads and New GIL

2010-04-27 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/op

[issue7946] Convoy effect with I/O bound threads and New GIL

2010-04-27 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- components: +Interpreter Core -None ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue7833] Bdist_wininst installers fail to load extensions built with Issue4120 patch

2010-04-27 Thread Koen van de Sande
Koen van de Sande added the comment: There should be no manifest embedded into wininst, because then the cases which Issue 4120 fixed (a CRT installed into a local folder, instead of system-wide, due to limited access rights), will 'break' again: the installer can then no longer work unless t

[issue7384] curses crash on FreeBSD

2010-04-27 Thread Stefan Krah
Stefan Krah added the comment: Jeroen Ruigrok van der Werven wrote: > Stefan, I was emailing with Rong-En Fan, a FreeBSD committer, about this > issue and he asked: > > "Basically, this is caused by > > a) our readline.so is linked against ncurses.so (via -ltermcap which is the > same lib)

[issue7946] Convoy effect with I/O bound threads and New GIL

2010-04-27 Thread Guilherme Salgado
Changes by Guilherme Salgado : -- nosy: -salgado ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue7946] Convoy effect with I/O bound threads and New GIL

2010-04-27 Thread David Beazley
David Beazley added the comment: That second access of gil_last_holder->cpu_bound is safe because that block of code is never entered unless some other thread currently holds the GIL. If a thread holds the GIL, then gil_last_holder is guaranteed to have a valid value. -- __

[issue7833] Bdist_wininst installers fail to load extensions built with Issue4120 patch

2010-04-27 Thread Koen van de Sande
Koen van de Sande added the comment: Concerning the patch: what happens when the developer already added /MANIFEST:NO to the flags, and the code deduces that MSVCR9 is the only runtime, e.g. the case where /MANIFEST:NO is in the flags twice? Does the linker handle this OK, or does there need

[issue7946] Convoy effect with I/O bound threads and New GIL

2010-04-27 Thread Charles-Francois Natali
Charles-Francois Natali added the comment: Didn't have much sleep last night, so please forgive me if I say something stupid, but: Python/pystate.c: void PyThreadState_DeleteCurrent() { PyThreadState *tstate = _PyThreadState_Current; if (tstate == NULL) Py_Fatal

[issue7946] Convoy effect with I/O bound threads and New GIL

2010-04-27 Thread David Beazley
David Beazley added the comment: I stand corrected. However, I'm going to have to think of a completely different approach for carrying out that functionality as I don't know how the take_gil() function is able to determine whether gil_last_holder has been deleted or not. Will think about

[issue7027] test_io.py: codecs.IncrementalDecoder is sometimes None

2010-04-27 Thread STINNER Victor
STINNER Victor added the comment: Same error here: http://www.python.org/dev/buildbot/builders/AMD64 Ubuntu 2.6/builds/555/steps/test/logs/stdio (codecs_none.txt is a copy of stdio) -- nosy: +haypo Added file: http://bugs.python.org/file17105/codecs_none.txt _

[issue2810] _winreg.EnumValue sometimes raises WindowsError ("More data is available")

2010-04-27 Thread Daniel Stutzbach
Changes by Daniel Stutzbach : -- title: _winreg.EnumValue fails when the registry data includes multibyte unicode characters -> _winreg.EnumValue sometimes raises WindowsError ("More data is available") ___ Python tracker

[issue8540] Make Context._clamp public in decimal module

2010-04-27 Thread Stefan Krah
Stefan Krah added the comment: I'd prefer to drop the ExtendedContext completely. Reasons are: 1) _clamp, prec, emin and emax aren't set to IEEE754 values. 2) The use of 'extended' is decNumber specific (see http://speleotrove.com/decimal/dncont.html ). In IEEE754 'extended' has

[issue1289118] timedelta multiply and divide by floating point

2010-04-27 Thread Daniel Stutzbach
Changes by Daniel Stutzbach : -- nosy: +stutzbach ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue8128] String interpolation with unicode subclass fails to call __str__

2010-04-27 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis added the comment: It's probably a duplicate of issue #1583863. -- nosy: +Arfrever ___ Python tracker ___

[issue7946] Convoy effect with I/O bound threads and New GIL

2010-04-27 Thread David Beazley
Changes by David Beazley : Removed file: http://bugs.python.org/file17104/dabeaz_gil.patch ___ Python tracker ___ ___ Python-bugs-list mailing

[issue7946] Convoy effect with I/O bound threads and New GIL

2010-04-27 Thread Charles-Francois Natali
Charles-Francois Natali added the comment: > Do you have any examples or insight you can provide about how these segfaults > have shown up in Python code? I'm not able to observe any such behavior on > OS-X or Linux. Is this happening while running the ccbench program? Some > other progra

[issue7946] Convoy effect with I/O bound threads and New GIL

2010-04-27 Thread David Beazley
David Beazley added the comment: One more attempt at fixing tricky segfaults. Glad someone had some eagle eyes on this :-). -- Added file: http://bugs.python.org/file17106/dabeaz_gil.patch ___ Python tracker ___

[issue8128] String interpolation with unicode subclass fails to call __str__

2010-04-27 Thread Eric Smith
Eric Smith added the comment: Yes, that's the cause, thanks for finding that issue. It's actually fixed in 3.1.2, I just hadn't updated my local copy. Closing, since there's nothing to fix here. The 2.6 behavior is correct, and the 3.x behavior that was broken has been fixed. -- reso

[issue8005] datetime's comparison methods do not return NotImplemented when they should

2010-04-27 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Is there a patch with a fix or just a patch with a test. If the later, maybe someone can remove a patch keyword. -- nosy: +Alexander.Belopolsky -belopolsky ___ Python tracker

[issue8005] datetime's comparison methods do not return NotImplemented when they should

2010-04-27 Thread Thomas W. Barr
Thomas W. Barr added the comment: It's just a test. Finishing the patch completely slipped my mind. I'll work on it later tonight. -- ___ Python tracker ___

[issue8005] datetime's comparison methods do not return NotImplemented when they should

2010-04-27 Thread Daniel Stutzbach
Daniel Stutzbach added the comment: You're right. I asked Thomas the wrong question, and the Keywords and Stage need updating. Thomas, do you still plan to submit a patch that fixes the problem? -- ___ Python tracker

[issue7946] Convoy effect with I/O bound threads and New GIL

2010-04-27 Thread Nir Aides
Nir Aides added the comment: On Tue, Apr 27, 2010 at 12:23 PM, Charles-Francois Natali wrote: > @nirai > I have some more remarks on your patch: > - /* Diff timestamp capping results to protect against clock differences > * between cores. */ > _LOCAL(long double) _bfs_diff_ts(long double ts1,

[issue8005] datetime's comparison methods do not return NotImplemented when they should

2010-04-27 Thread Thomas W. Barr
Thomas W. Barr added the comment: I'm still reasonably new to the codebase, but I'm certainly going to try to fix the issue. -- ___ Python tracker ___ __

[issue8005] datetime's comparison methods do not return NotImplemented when they should

2010-04-27 Thread Daniel Stutzbach
Daniel Stutzbach added the comment: Great! If you get stuck or have a question, just ask. :-) -- ___ Python tracker ___ ___ Python-bu

[issue8005] datetime's comparison methods do not return NotImplemented when they should

2010-04-27 Thread Daniel Stutzbach
Changes by Daniel Stutzbach : -- keywords: -patch stage: unit test needed -> needs patch ___ Python tracker ___ ___ Python-bugs-list m

[issue2810] _winreg.EnumValue sometimes raises WindowsError ("More data is available")

2010-04-27 Thread Daniel Stutzbach
Changes by Daniel Stutzbach : -- assignee: -> stutzbach keywords: +needs review stage: needs patch -> patch review ___ Python tracker ___

[issue6672] Add Mingw recognition to pyport.h to allow building extensions

2010-04-27 Thread Daniel Stutzbach
Changes by Daniel Stutzbach : -- components: +Windows stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue5553] Py_LOCAL_INLINE(type) doesn't actually inline except using MSC

2010-04-27 Thread Daniel Stutzbach
Changes by Daniel Stutzbach : -- assignee: -> stutzbach priority: -> low stage: -> needs patch type: -> performance versions: +Python 3.2 -Python 2.7, Python 3.0, Python 3.1 ___ Python tracker __

[issue4295] closing stdout in a child process on cygwin means that process doesn't receive bytes from stdin anymore. I think.

2010-04-27 Thread Daniel Stutzbach
Changes by Daniel Stutzbach : -- resolution: -> works for me stage: -> committed/rejected status: open -> closed ___ Python tracker ___ _

[issue808164] socket.close() doesn't play well with __del__

2010-04-27 Thread Daniel Stutzbach
Changes by Daniel Stutzbach : -- assignee: -> stutzbach versions: +Python 2.7, Python 3.2 -Python 2.5 ___ Python tracker ___ ___ Pyt

[issue7079] file_close() ignores return value of close_the_file

2010-04-27 Thread Daniel Stutzbach
Changes by Daniel Stutzbach : -- keywords: +needs review stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue7079] file_close() ignores return value of close_the_file

2010-04-27 Thread Daniel Stutzbach
Changes by Daniel Stutzbach : -- assignee: gregory.p.smith -> stutzbach stage: patch review -> unit test needed ___ Python tracker ___

[issue8005] datetime's comparison methods do not return NotImplemented when they should

2010-04-27 Thread Daniel Stutzbach
Changes by Daniel Stutzbach : -- assignee: -> stutzbach ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://

[issue8005] datetime's comparison methods do not return NotImplemented when they should

2010-04-27 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Before someone spends more time writing a patch, lets pause and consider whether this is a bug in the first place. My understanding of the issue is that given >>> class A(object): ... def __eq__(self, other): ...return True ... OP expects date(1

[issue8548] Building on CygWin 1.7: PATH_MAX redefined

2010-04-27 Thread Jeff Binder
New submission from Jeff Binder : Building Python 3.1.2 on Cygwin 1.7, I got errors in main.c stemming from a warning: PATH_MAX redefined (see attached log). I got around this by commenting out the #define. I don't know if the best solution is #ifndef, #undef, or something else. . . . I know

[issue8506] SimpleXMLRPCServer Socket not closed after shutdown call

2010-04-27 Thread Santoso Wijaya
Changes by Santoso Wijaya : -- nosy: +santa4nt ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue7946] Convoy effect with I/O bound threads and New GIL

2010-04-27 Thread Antoine Pitrou
Antoine Pitrou added the comment: > I stand corrected. However, I'm going to have to think of a > completely different approach for carrying out that functionality as I > don't know how the take_gil() function is able to determine whether > gil_last_holder has been deleted or not. Please note

[issue8060] PEP 3101 string formatting missing engineering presentation type for floating point

2010-04-27 Thread Terry J. Reedy
Terry J. Reedy added the comment: Too late for 2.7, but I would like this to hit 3.2. Some calculators have engineering format as an output option and it would be good for Python. This issue is being discussed in python-list in thread "Engineering numerical format...". The OP (or someone) pos

[issue7027] test_io.py: codecs.IncrementalDecoder is sometimes None

2010-04-27 Thread STINNER Victor
STINNER Victor added the comment: This issue is specific to Python 2.6. It can be reproduced with: ./python -E -tt ./Lib/test/regrtest.py -l -w test_pep263 test_operator test_asynchat test_zipimport_support test_pydoc test_code test_dis test_quopri test_doctest test_class test_sax test_fileio

[issue7027] test_io.py: codecs.IncrementalDecoder is sometimes None

2010-04-27 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +amaury.forgeotdarc, loewis ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue7027] test_io.py: codecs.IncrementalDecoder is sometimes None

2010-04-27 Thread STINNER Victor
STINNER Victor added the comment: module-dealloc() was changed by #7140 by r75437: "imp.new_module does not function correctly if the module is returned from a function and used directly". Can we backport the fix to 2.6? It would be complex to write a workaround in the tests. -- ___

[issue7027] test_io.py: codecs.IncrementalDecoder is sometimes None

2010-04-27 Thread STINNER Victor
STINNER Victor added the comment: Here is a workaround. I didn't expected a short patch, but it's enough. -- keywords: +patch Added file: http://bugs.python.org/file17108/regrtest_preload_ascii.patch ___ Python tracker

[issue5727] doctest pdb readline broken

2010-04-27 Thread Sriram
Sriram added the comment: Hi, I believe this behaviour can be tested if we can prove that Cmd's cmdloop uses raw_input to get the data as against self.stdin.readline(). To test it, ideally I would have liked to override sys.stdin with a fake input stream and pass the list of args (like it's

[issue7833] Bdist_wininst installers fail to load extensions built with Issue4120 patch

2010-04-27 Thread Christoph Gohlke
Christoph Gohlke added the comment: > I have some doubts about option #4: it is a very specific use case, and then > the whole benefit of issue 4120 is lost Pythoncom are pywintypes are indeed special cases: Out of the 170 DLL files in my Python site-packages directory, these seem to be the o

[issue8060] PEP 3101 string formatting missing engineering presentation type for floating point

2010-04-27 Thread Mark Dickinson
Mark Dickinson added the comment: After the all-important issue of what letter to use (the folks on the python-list thread suggested 'm', and it seems as good a letter as any, so I'll use it in the examples below), there are some open questions: (1) The exact form of the output needs to be de

[issue8543] asynchat documentation issues

2010-04-27 Thread Josiah Carlson
Josiah Carlson added the comment: The suggested documentation changes sound good to me. Those items that aren't documented may need a note that they are deprecated and will be removed in the future, but I'd consider that optional. -- ___ Python tr

[issue8540] Make Context._clamp public in decimal module

2010-04-27 Thread Mark Dickinson
Mark Dickinson added the comment: > I'd prefer to drop the ExtendedContext completely. We have to be careful not to break existing 3rd party code, though. A newly-designed decimal module, prepared with 20/20 hindsight, probably wouldn't include an ExtendedContext with the current definition.

[issue8005] datetime's comparison methods do not return NotImplemented when they should

2010-04-27 Thread Daniel Stutzbach
Daniel Stutzbach added the comment: Thanks for pointing that out. For what it's worth, if I understand the documentation correctly the goal is to prevent the following misleading comparisons: date with time datetime with date datetime with time datetime w/ timezone with datetime w/o timezon

[issue7027] test_io.py: codecs.IncrementalDecoder is sometimes None

2010-04-27 Thread STINNER Victor
STINNER Victor added the comment: > Can we backport the fix to 2.6? It's too late to fix such subtle bug in module machinery, so I commited my workaround in regrtest.py: r80538. Wait for the buildbots before closing the issue. test_io and/or test_codecs failed on buildbots: - AMD64 Ubuntu 2

[issue8549] Modules/_ssl.c: extra comma breaks build on AIX

2010-04-27 Thread Sridhar Ratnakumar
New submission from Sridhar Ratnakumar : Modules/_ssl.c gu...@36917 64 enum py_ssl_version { gu...@36917 65 PY_SSL_VERSION_SSL2, gu...@36917 66 PY_SSL_VERSION_SSL3, gu...@36917 67 PY_SSL_VERSION_SSL23, gu...@36917 68 PY

[issue8549] Modules/_ssl.c: extra comma breaks build on AIX

2010-04-27 Thread Sridhar Ratnakumar
Changes by Sridhar Ratnakumar : -- keywords: +patch Added file: http://bugs.python.org/file17110/fix-extra-comma-aix.patch ___ Python tracker ___ _

[issue8549] Modules/_ssl.c: extra comma breaks build on AIX

2010-04-27 Thread Antoine Pitrou
Antoine Pitrou added the comment: Thank you very much! Committed in r80540 (trunk), r80541 (2.6), r80542 (py3k), r80543 (3.1). -- nosy: +pitrou resolution: -> fixed stage: -> committed/rejected status: open -> pending versions: +Python 3.2 ___ Pyt

[issue8549] Modules/_ssl.c: extra comma breaks build on AIX

2010-04-27 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- status: pending -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://

[issue8493] socket's send can raise errno 35 under OS X, which causes problems in sendall

2010-04-27 Thread Matthew Cowles
Matthew Cowles added the comment: Apologies! Further investigation indicates that the user had set a timeout in the ftplib module. I'll close this. In an ideal world, errors due to timeouts would look like they were related to timeouts. But that's a different matter entirely. -- stat

[issue8060] PEP 3101 string formatting missing engineering presentation type for floating point

2010-04-27 Thread Keith Brafford
Keith Brafford added the comment: Ok, let's zero in on how this should work. I'll start the concrete proposal discussion in terms of how it would have worked with the old-style specifiers (since I am more familiar with that method) and we can bring it up to Py3K standards as a group. I was

[issue7865] io close() swallowing exceptions

2010-04-27 Thread Antoine Pitrou
Antoine Pitrou added the comment: I just tried the patch. One problem is that you are supposed to be able to call close() several times without having it fail: >>> f = open("LICENSE") >>> f.close() >>> f.close() >>> f = io.open("LICENSE") >>> f.close() >>> f.close() Traceback (most recent call

[issue1054967] bdist_deb - Debian packager

2010-04-27 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: astraw: I've been playing with stdeb. I think it's a nice implementation of bdist_deb, but it doesn't seem to include the dh_make/debianize functionality of this patch. Is that the case or have I missed something? -- nosy: +barry _

[issue7079] file_close() ignores return value of close_the_file

2010-04-27 Thread Antoine Pitrou
Antoine Pitrou added the comment: Your proposal looks reasonable. Two things: - your patch should include an unit test (see Lib/test/test_file2k.py) - fileobject.c should use tabs for indentation, not spaces And you're right, py3k doesn't have this problem. -- nosy: +pitrou, tim_one ve

[issue1054967] bdist_deb - Debian packager

2010-04-27 Thread Éric Araujo
Éric Araujo added the comment: Hello There has been a number of discussions about bdist_deb, and some code too. I don’t have links handy, unfortunately, but I remember a conclusion that was: Don’t. Debian packages are best made by Debian tools, which go to great lengths to comply with Debi

[issue1054967] bdist_deb - Debian packager

2010-04-27 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: There are really two aspects of this patch. At the moment, I'm less interested in bdist_deb than I am in the 'debianize' (i.e. dh_make) functionality. I think 'python setup.py debianize' (or whatever) would be a nice way to jump start a debian/ directory f

[issue1054967] bdist_deb - Debian packager

2010-04-27 Thread Éric Araujo
Éric Araujo added the comment: Why not use Debian’s dh_make? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue1404] warnings module bug: BytesWarning: str() on a bytes instance

2010-04-27 Thread Martin v . Löwis
Changes by Martin v. Löwis : -- priority: -> normal ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue1601] IDLE not working correctly on Windows (Py30a2/IDLE30a1)

2010-04-27 Thread Martin v . Löwis
Changes by Martin v. Löwis : -- priority: -> normal ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue3947] configure --with-threads on cygwin => crash on thread related tests

2010-04-27 Thread Martin v . Löwis
Changes by Martin v. Löwis : -- priority: -> normal ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue5249] Fix strftime on windows.

2010-04-27 Thread Martin v . Löwis
Changes by Martin v. Löwis : -- priority: -> normal ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue5273] 3.0.1 crashes in unicode path

2010-04-27 Thread Martin v . Löwis
Changes by Martin v. Löwis : -- priority: -> normal ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue5334] array.fromfile() fails to insert values when EOFError is raised

2010-04-27 Thread Martin v . Löwis
Changes by Martin v. Löwis : -- priority: -> normal ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue6150] test_unicode fails in wide unicode build

2010-04-27 Thread Martin v . Löwis
Changes by Martin v. Löwis : -- priority: -> normal ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue6453] Improve bool TypeError message

2010-04-27 Thread Martin v . Löwis
Changes by Martin v. Löwis : -- priority: -> normal ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue7540] urllib2 request does not update content length after new add_data

2010-04-27 Thread Martin v . Löwis
Changes by Martin v. Löwis : -- priority: -> normal ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue1054967] bdist_deb - Debian packager

2010-04-27 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: That's essentially what I want, except I want to feed dh_make some better defaults based on metadata that already lives in setup.py. -- ___ Python tracker

[issue7027] test_io.py: codecs.IncrementalDecoder is sometimes None

2010-04-27 Thread STINNER Victor
STINNER Victor added the comment: test_io and test_codecs didn't fail in the last build of x86 Tiger 2.6 and x86 Windows7 2.6. I suppose that the issue is now closed. Repopen the issue if it's not the case. -- resolution: -> fixed status: open -> closed _

[issue8550] Expose SSL contexts

2010-04-27 Thread Antoine Pitrou
New submission from Antoine Pitrou : We should expose SSL contexts at the Python level, and rework SSL sockets to use those objects internally (rather than creating their own private context). It would allow to: - specify the various options iteratively, rather than having to dump them all in t

[issue8550] Expose SSL contexts

2010-04-27 Thread Jean-Paul Calderone
Jean-Paul Calderone added the comment: For reference: http://pyopenssl.sourceforge.net/pyOpenSSL.html/openssl-context.html http://www.heikkitoivonen.net/m2crypto/api/M2Crypto.SSL.Context%27.Context-class.html and `man -k SSL_CTX_` -- nosy: +exarkun ___

[issue8546] The parameter buffering in _pyio.open doesn't work the same as in the builtin open

2010-04-27 Thread Benjamin Peterson
Benjamin Peterson added the comment: Fixed in r80544. -- nosy: +benjamin.peterson resolution: -> fixed status: open -> closed ___ Python tracker ___

[issue1284316] Win32: Security problem with default installation directory

2010-04-27 Thread Fran Rogers
Fran Rogers added the comment: I'd like to concur that Python should install to %ProgramFiles% by default. The root-directory default is particularly anomalous on 64-bit Windows, where you have separate 64- and 32-bit Program Files directories; if I have a Python installation in "C:\Python26"

[issue4870] ssl module is missing SSL_OP_NO_SSLv2

2010-04-27 Thread Antoine Pitrou
Antoine Pitrou added the comment: Here is an updated patch for py3k (the previous one didn't apply cleanly). -- Added file: http://bugs.python.org/file17112/sslopts2.patch ___ Python tracker ___

[issue3596] Provide a way to disable SSLv2 (or better yet, disable by default)

2010-04-27 Thread Antoine Pitrou
Antoine Pitrou added the comment: Someone else requested it and even provided a patch. See you on issue4870. -- resolution: out of date -> duplicate status: pending -> closed superseder: -> ssl module is missing SSL_OP_NO_SSLv2 ___ Python tracker <

[issue2550] SO_REUSEADDR doesn't have the same semantics on Windows as on Unix

2010-04-27 Thread Antoine Pitrou
Antoine Pitrou added the comment: This is now fixed, right? Personal experience as well as buildbot behaviour seems to show that parallel test execution (either through -j, or by running several test suites at the same time) works ok. -- nosy: +exarkun, pitrou resolution: accepted ->

[issue6662] HTMLParser.HTMLParser doesn't handle malformed charrefs

2010-04-27 Thread Fredrik Håård
Changes by Fredrik Håård : -- nosy: +fredrik.haard ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue8086] ssl.get_server_certificate new line missing

2010-04-27 Thread Antoine Pitrou
Antoine Pitrou added the comment: This looks reasonable enough. -- nosy: +pitrou stage: unit test needed -> patch review ___ Python tracker ___ __

[issue6662] HTMLParser.HTMLParser doesn't handle malformed charrefs

2010-04-27 Thread Fredrik Håård
Fredrik Håård added the comment: Is there a reason for HTMLParser to treat anything that does not match the regex '&#\d+;' as a charref? -- ___ Python tracker ___ _

[issue8106] SSL session management

2010-04-27 Thread Antoine Pitrou
Antoine Pitrou added the comment: issue8550 is probably a prerequisite for implementing this properly. -- dependencies: +Expose SSL contexts nosy: +pitrou stage: -> needs patch versions: -Python 2.7 ___ Python tracker

  1   2   >