[issue8067] OS X Installer: build errors on 10.6 when targeting 10.4 and earlier

2010-03-09 Thread Ned Deily
Ned Deily added the comment: Fix verified for 3.1 and py3k(3.2). -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue8067] OS X Installer: build errors on 10.6 when targeting 10.4 and earlier

2010-03-09 Thread Ronald Oussoren
Changes by Ronald Oussoren : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue8094] Multiprocessing infinite loop

2010-03-09 Thread Benjamin VENELLE
New submission from Benjamin VENELLE : Hi, The following code results in an infinite loop --> # import multiprocessing def f(m): print(m) p = multiprocessing.Process(target=f, args=('pouet',)) p.start() # I've firstly think about an issue in my code when Python loads this m

[issue8095] test_urllib2 crashes on OS X 10.3 attempting to retrieve network proxy configuration

2010-03-09 Thread Ned Deily
New submission from Ned Deily : The current mechanism for urllib and urllib2 on OS X to retrieve network proxy information is to call _scproxy.c to query the OS X SystemConfiguration Framework. _scproxy.c uses a schema key, kSCPropNetProxiesExcludeSimpleHostnames, that was introduced in OS X

[issue8095] test_urllib2 crashes on OS X 10.3 attempting to retrieve network proxy configuration

2010-03-09 Thread Ned Deily
Changes by Ned Deily : Added file: http://bugs.python.org/file16508/Python.crash.log ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue8096] locale.format_string fails on mapping keys

2010-03-09 Thread Marcel Tschopp
New submission from Marcel Tschopp : locale.format_string doesn't return same result as a normal "string" % format directive, but raises a TypeError. >>> locale.format_string('%(key)s', {'key': 'Test'}) Traceback (most recent call last): File "", line 1, in File "/usr/local/lib/python2.6/l

[issue8095] test_urllib2 crashes on OS X 10.3 attempting to retrieve network proxy configuration

2010-03-09 Thread Ronald Oussoren
Ronald Oussoren added the comment: I don't have a 10.3 system to test on, and definitely don't want to spent effort on enabling compiles on 10.3 The patch below would probably fix the crash when running a binary created on 10.4 or later on osx 10.3: Index: ../Mac/Modules/_scproxy.c =

[issue8097] bug in modulefinder: import_hook() got an unexpected keyword argument 'level'

2010-03-09 Thread Andreas Pfeiffer
New submission from Andreas Pfeiffer : Hi, the attached file (moduleFinderBug.py) crashes in python 2.6 on linux (RedHat EL 5) and Mac OS X (10.6) with the traceback below. A possible fix for this would be in modulefinder.py: 323c323 < self.import_hook(name, caller, level=level) -

[issue8091] TypeError at the end of 'make test'

2010-03-09 Thread Florent Xicluna
Changes by Florent Xicluna : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue8094] Multiprocessing infinite loop

2010-03-09 Thread Benjamin VENELLE
Benjamin VENELLE added the comment: Sorry I've not made clear my working platform. Yes, I'm running Python 3.1.1 32 bit on a Windows 7 x64. -- ___ Python tracker ___ ___

[issue8083] urllib proxy interface is too limited

2010-03-09 Thread Dominique Leuenberger
Dominique Leuenberger added the comment: I like the idea of having the proxy handler expanded. In fact I suggest to base the idea on libproxy ( http://code.google.com/p/libproxy ) which is available on Linux / openSolaris / Windows and Mac (currently). Libproxy queries the correct settings to

[issue8098] PyImport_ImportModuleNoBlock() may solve problems but causes others.

2010-03-09 Thread Graham Dumpleton
New submission from Graham Dumpleton : Back in time, the function PyImport_ImportModuleNoBlock() was introduced and used in modules such as the time module to supposedly avoid deadlocks when using threads. It may well have solved that problem, but only served to cause other problems. To illus

[issue6538] MatchObject is not a hyperlink in the 're' module documentation

2010-03-09 Thread Asheesh Laroia
Asheesh Laroia added the comment: Er, ignore my comment then! If this is reviewed, can it get committed? -- ___ Python tracker ___ __

[issue7755] copyright clarification for audiotest.au

2010-03-09 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Hi Martin, Conventional wisdom on #python-dev is that you have a Solaris machine that you could test this on. Can you do that? I'd like to get this patch into 2.6.6 if it works. -- assignee: -> loewis keywords: +needs review nosy: +loewis priorit

[issue6656] locale.format_string fails on escaped percentage

2010-03-09 Thread R. David Murray
R. David Murray added the comment: I meant issue 8096. -- nosy: +mtschopp ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue6656] locale.format_string fails on escaped percentage

2010-03-09 Thread R. David Murray
Changes by R. David Murray : -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/o

[issue8056] Piped parent's multiprocessing.Process children cannot write to stdout

2010-03-09 Thread Vilnis Termanis
Vilnis Termanis added the comment: I tried to reproduce / narrow-down the cause of this with a debug build in a VM but couldn't reproduce the behaviour (neither with debug nor with standard 2.6.4 binary). I have to conclude that there is something perculiar with my native Windows installation

[issue6656] locale.format_string fails on escaped percentage

2010-03-09 Thread R. David Murray
R. David Murray added the comment: Eric, the patch for this issue contains a fix for issue 8094. The only reason I haven't applied it is the fear of breaking existing correct behavior because there aren't enough tests. Maybe you can see an easy way to reuse the % test suite to check local.f

[issue8094] Multiprocessing infinite loop

2010-03-09 Thread R. David Murray
R. David Murray added the comment: Are you running this on windows? -- nosy: +r.david.murray ___ Python tracker ___ ___ Python-bugs-li

[issue7755] copyright clarification for audiotest.au

2010-03-09 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Or maybe this one :) -- Added file: http://bugs.python.org/file16510/guido.au ___ Python tracker ___ __

[issue8096] locale.format_string fails on mapping keys

2010-03-09 Thread R. David Murray
R. David Murray added the comment: See issue 6656. This bug isn't a quite a duplicate of that bug, but I did discover (and fix) the bug this one reports in the process of creating a patch for that one, so I'm closing this one as a duplicate anyway. -- nosy: +r.david.murray resolution

[issue6656] locale.format_string fails on escaped percentage

2010-03-09 Thread R. David Murray
Changes by R. David Murray : -- nosy: +eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue8036] Interpreter crashes on invalid arg to spawnl on Windows

2010-03-09 Thread Jean-Paul Calderone
Jean-Paul Calderone added the comment: Why is the Microsoft CRT argument error handler no longer disabled? -- nosy: +exarkun ___ Python tracker ___ __

[issue8097] bug in modulefinder: import_hook() got an unexpected keyword argument 'level'

2010-03-09 Thread R. David Murray
R. David Murray added the comment: Unless I'm missing something, this appears to be a bug in your code. You redefine import_hook in your subclass, but you don't give it a level parameter. -- components: +Library (Lib) -Extension Modules nosy: +r.david.murray priority: -> normal resol

[issue6656] locale.format_string fails on escaped percentage

2010-03-09 Thread R. David Murray
Changes by R. David Murray : -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/o

[issue6656] locale.format_string fails on escaped percentage

2010-03-09 Thread R. David Murray
R. David Murray added the comment: Eric, the patch for this issue contains a fix for issue 8096. The only reason I haven't applied it is the fear of breaking existing correct behavior because there aren't enough tests. Maybe you can see an easy way to reuse the % test suite to check local.f

[issue5099] subprocess.POpen.__del__() AttributeError (os module == None!)

2010-03-09 Thread Florent Xicluna
Changes by Florent Xicluna : -- nosy: +flox versions: +Python 3.2 -Python 3.0 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue8089] 2.6/3.1 32-bit/64-bit universal builds always run in 64-bit on 10.6

2010-03-09 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Thanks for the fix guys. I believe this means it's no longer a blocker for 2.6.5rc2, right? -- priority: release blocker -> high versions: -Python 2.6 ___ Python tracker __

[issue8094] Multiprocessing infinite loop

2010-03-09 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: The restriction that imposes the "__name__= '__main__'" idiom also applies when multiprocessing is not used in the main module. Actually the main module is always reloaded in the subprocess. The docs should be more explicit about it. -- assign

[issue8036] Interpreter crashes on invalid arg to spawnl on Windows

2010-03-09 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: 2.6 and 3.0.1 used to disable the Microsoft CRT argument error handler: they return EINVAL, but newer versions don't, and should check their arguments before calling _spawnv. FWIW, the checks are:: pathname != NULL *pathname != '\0' argv !=

[issue8036] Interpreter crashes on invalid arg to spawnl on Windows

2010-03-09 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: Because this is a global setting for the whole process. This was discussed with issue4804. -- ___ Python tracker ___

[issue8092] utf8, backslashreplace and surrogates

2010-03-09 Thread Walter Dörwald
Walter Dörwald added the comment: After the patch the comment: /* Implementation limitations: only support error handler that return bytes, and only support up to four replacement bytes. */ no longer applies. Also I would like to see a version of this patch where the length limitation fo

[issue8089] 2.6/3.1 32-bit/64-bit universal builds always run in 64-bit on 10.6

2010-03-09 Thread Ronald Oussoren
Ronald Oussoren added the comment: I've commited a fix for 2.6 in r78813. I will port that fix to 3.1 later today, but don't have time to test right now. My fix is simular to the patch by Ned. -- ___ Python tracker

[issue8096] locale.format_string fails on mapping keys

2010-03-09 Thread Eric Smith
Eric Smith added the comment: There's definitely some weirdness going on with handling mapping keys. I'll look at it. -- assignee: -> eric.smith keywords: +easy nosy: +eric.smith priority: -> normal stage: -> needs patch ___ Python tracker

[issue8091] TypeError at the end of 'make test'

2010-03-09 Thread Florent Xicluna
Changes by Florent Xicluna : -- resolution: -> duplicate status: pending -> open ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue8091] TypeError at the end of 'make test'

2010-03-09 Thread Florent Xicluna
Changes by Florent Xicluna : -- stage: -> committed/rejected status: open -> pending superseder: -> subprocess.POpen.__del__() AttributeError (os module == None!) type: -> behavior ___ Python tracker

[issue8094] Multiprocessing infinite loop

2010-03-09 Thread R. David Murray
Changes by R. David Murray : -- components: +Documentation -Library (Lib) priority: -> normal stage: -> needs patch type: crash -> behavior versions: +Python 2.6, Python 2.7, Python 3.2 ___ Python tracker

[issue8099] IDLE(Python GUI) Doesn't open

2010-03-09 Thread Estroms
New submission from Estroms : I downloaded Python 3.1 yesterday. I can open the Python command line, but when i press IDLE(Python GUI)shortcut no window or program opens. i typed to command promt C:\Python31\lib\idlelib\idle.py and got an error message. It's too long to write to here, but in t

[issue8090] PEP 4 should say something about the standard library

2010-03-09 Thread Brian Curtin
Changes by Brian Curtin : -- priority: -> low stage: -> needs patch type: -> behavior ___ Python tracker ___ ___ Python-bugs-list ma

[issue8093] IDLE processes don't close

2010-03-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: I reproduced this with 3.1.1 on xp. It took a while to get the shell menu to restart as the calculation process is hogging the cpu 99%. KeyboardInterrupt (^C) would not stop the runaway process. There may have been other issues about this. Two processes is no

[issue8100] `configure` incorrectly handles empty OPT variable

2010-03-09 Thread Arfrever Frehtes Taifersar Arahesis
New submission from Arfrever Frehtes Taifersar Arahesis : The comment in configure.in says that some changes aren't applied to OPT variable when OPT variable has been set by the user, but they are applied when empty OPT has been explicitly set. The attached patch fixes this problem. -

[issue6943] setup.py fails to find headers of system libffi

2010-03-09 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis added the comment: I noticed suboptimal output of `configure`: checking for --with-libs... no checking for --with-system-expat... yes checking for --with-system-ffi... checking for x86_64-pc-linux-gnu-pkg-config... no checking for pkg-config... /usr/bin/pkg-c

[issue8089] 2.6/3.1 32-bit/64-bit universal builds always run in 64-bit on 10.6

2010-03-09 Thread Ned Deily
Ned Deily added the comment: Almost! There's a small but significant typo that needs to be fixed in the change (r78813) that was committed for 2.6: - UNIVERSAL_ARCH64_FLAGS="-arch x86_64 -arch x86_64" + UNIVERSAL_ARCH64_FLAGS="-arch x86_64 -arch ppc64" -- ___

[issue8101] w32-shared-ptr.c assertion on Windows 7 with 2.6.4

2010-03-09 Thread Ned Batchelder
New submission from Ned Batchelder : 2.6.4 had been working fine for me. Today, though, it will not stay up. I run the Django development server on Windows 7, and 2.6.4 is repeatedly crashing on me: This application has requested the Runtime to terminate it in an unusual way. Please contact

[issue8089] 2.6/3.1 32-bit/64-bit universal builds always run in 64-bit on 10.6

2010-03-09 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- priority: high -> release blocker ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue7772] test_py3kwarn fails when running the whole test suite

2010-03-09 Thread Florent Xicluna
Florent Xicluna added the comment: Fixed with r78815. Issue #7092 should silence py3k warnings (soon). Next step is to activate "-3" on some buildbot. -- assignee: -> flox dependencies: -Test suite emits many DeprecationWarnings when -3 is enabled priority: -> normal resolution: ->

[issue8099] IDLE(Python GUI) Doesn't open

2010-03-09 Thread Martin v . Löwis
Martin v. Löwis added the comment: > What should I do? Unset the the TCL_LIBRARY and TK_LIBRARY environment variables, and report whether it helped. -- nosy: +loewis ___ Python tracker

[issue8101] w32-shared-ptr.c assertion on Windows 7 with 2.6.4

2010-03-09 Thread Martin v . Löwis
Martin v. Löwis added the comment: Where did you get your copy of Python from? -- nosy: +loewis ___ Python tracker ___ ___ Python-bugs

[issue8102] test_distutils fails on 2.6.5rc1: "No module named setuptools_build_ext"

2010-03-09 Thread Ned Deily
New submission from Ned Deily : Current 2.6.5rc1+ building on OS X: == ERROR: test_setuptools_compat (distutils.tests.test_build_ext.BuildExtTestCase) -- Traceb

[issue8102] test_distutils fails on 2.6.5rc1: "No module named setuptools_build_ext"

2010-03-09 Thread Ned Deily
Ned Deily added the comment: (I should add that this appears to be simply a missing test file. There is no indication that distutils itself has a problem.) -- ___ Python tracker __

[issue8101] w32-shared-ptr.c assertion on Windows 7 with 2.6.4

2010-03-09 Thread Ned Batchelder
Ned Batchelder added the comment: I got it from python.org, the .msi Windows installer: 03/02/10 05:27:37p 14,890,496 \kit\python-2.6.4.msi -- ___ Python tracker ___ __

[issue8100] `configure` incorrectly handles empty OPT variable

2010-03-09 Thread Brett Cannon
Changes by Brett Cannon : -- priority: -> low stage: -> patch review type: -> behavior ___ Python tracker ___ ___ Python-bugs-list m

[issue8102] test_distutils fails on 2.6.5rc1: "No module named setuptools_build_ext"

2010-03-09 Thread Tarek Ziadé
Tarek Ziadé added the comment: This file was added in r75256. Are you sure you miss that test file ? -- priority: -> high ___ Python tracker ___

[issue8101] w32-shared-ptr.c assertion on Windows 7 with 2.6.4

2010-03-09 Thread Ned Batchelder
Ned Batchelder added the comment: I tried rebooting my PC, but the problem persists. -- ___ Python tracker ___ ___ Python-bugs-list ma

[issue8101] w32-shared-ptr.c assertion on Windows 7 with 2.6.4

2010-03-09 Thread Martin v . Löwis
Martin v. Löwis added the comment: That's very strange. I'm fairly certain there is no GCC code whatsoever in my Python msi distribution. So you must be picking up some other code. Are you sure you are not running a Cygwin copy of Python or some such? -- _

[issue8103] threading.start() : unable to restart thread

2010-03-09 Thread Benjamin VENELLE
New submission from Benjamin VENELLE : Hi, I've found a bug in threading module. "self._started" event is never cleared when thread terminates. So, at line 452, in start() function, the test "if self._started.is_set():" prevents any restart. PS: I saw this bug in Python 3.1.1 32 bit on a Wind

[issue7037] test_asynchat fails on os x 10.6

2010-03-09 Thread Ned Deily
Ned Deily added the comment: Still failing as of 2.6.5rc1. -- nosy: +barry ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue7040] test_smtplib fails on os x 10.6

2010-03-09 Thread Ned Deily
Ned Deily added the comment: Still failing as of 2.6.5rc1. -- nosy: +barry ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue8101] w32-shared-ptr.c assertion on Windows 7 with 2.6.4

2010-03-09 Thread Dave Malcolm
Dave Malcolm added the comment: Perhaps this is an issue in a 3rd-party extension module? (Given that you're running Django, do you have a 3rd-party database connection module?; the last message in the log is "Validating models", does that require Django to go to the db to get the schema?)

[issue8101] w32-shared-ptr.c assertion on Windows 7 with 2.6.4

2010-03-09 Thread Martin v . Löwis
Martin v. Löwis added the comment: Dave: it's indeed entirely possible that this is caused by an extension module. -- ___ Python tracker ___ _

[issue8102] test_distutils fails on 2.6.5rc1: "No module named setuptools_build_ext"

2010-03-09 Thread Ned Deily
Ned Deily added the comment: The file is the source tree but it doesn't seem to get installed in the framework which is where the tests are being run from: /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/distutils/tests$ ls -l setuptools* -rw-rw-r-- 1 root admin 1592 Mar 9

[issue8101] w32-shared-ptr.c assertion on Windows 7 with 2.6.4

2010-03-09 Thread Ned Batchelder
Ned Batchelder added the comment: Yup, you're both right! I had a C extension (for coverage.py) built for 2.5 in the 2.6 path. Sorry for the false alarm. -- status: open -> closed ___ Python tracker

[issue8103] threading.start() : unable to restart thread

2010-03-09 Thread R. David Murray
Changes by R. David Murray : -- keywords: +easy nosy: +jnoller priority: -> normal stage: -> test needed ___ Python tracker ___ ___ P

[issue8101] w32-shared-ptr.c assertion on Windows 7 with 2.6.4

2010-03-09 Thread R. David Murray
Changes by R. David Murray : -- priority: -> normal resolution: -> invalid stage: -> committed/rejected ___ Python tracker ___ ___ P

[issue8103] threading.start() : unable to restart thread

2010-03-09 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: By design, a thread object can be started only once: http://docs.python.org/library/threading.html#threading.Thread.start You should create another threading.Thread object. -- nosy: +amaury.forgeotdarc resolution: -> invalid status: open -> clos

[issue6953] readline documenation needs work

2010-03-09 Thread stefanholek
stefanholek added the comment: To be zero-based, get_history_item would need to look like: diff --git a/rl/readline.c b/rl/readline.c index 33e9905..800bc00 100644 --- a/rl/readline.c +++ b/rl/readline.c @@ -559,7 +559,7 @@ get_history_item(PyObject *self, PyObject *args) if (!PyArg_P

[issue8089] 2.6/3.1 32-bit/64-bit universal builds always run in 64-bit on 10.6

2010-03-09 Thread Ronald Oussoren
Ronald Oussoren added the comment: Ned: I fixed the typo in r78816 -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue6953] readline documenation needs work

2010-03-09 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Tue, Mar 9, 2010 at 4:24 PM, stefanholek wrote: .. > To be zero-based, get_history_item would need to look like: .. > +       if ((hist_ent = history_get(history_base + idx))) Did you test this with libedit? -- __

[issue8100] `configure` incorrectly handles empty OPT variable

2010-03-09 Thread Benjamin Peterson
Benjamin Peterson added the comment: Fixed in r78817. -- assignee: -> benjamin.peterson nosy: +benjamin.peterson ___ Python tracker ___ _

[issue8100] `configure` incorrectly handles empty OPT variable

2010-03-09 Thread Benjamin Peterson
Changes by Benjamin Peterson : -- versions: -Python 2.7, Python 3.1, Python 3.2 ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue6943] setup.py fails to find headers of system libffi

2010-03-09 Thread Benjamin Peterson
Benjamin Peterson added the comment: Applied in r78819. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue8100] `configure` incorrectly handles empty OPT variable

2010-03-09 Thread Benjamin Peterson
Changes by Benjamin Peterson : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue6953] readline documenation needs work

2010-03-09 Thread Ronald Oussoren
Ronald Oussoren added the comment: Changing get_history_item to be 0-based would be a backward incompatible change. The point of my report is that the documentation of the readline documentation should mention how the APIs actually behave, you currently have to hunt down that information in t

[issue8095] test_urllib2 crashes on OS X 10.3 attempting to retrieve network proxy configuration

2010-03-09 Thread Ned Deily
Ned Deily added the comment: OK, I tried the patch. Reversing the default sense causes the proxy tests in test_urllib2 to fail on 10.6 et al. So I changed the sense of the tests in the patch to match previous behavior; the modified patch is attached. Unfortunately, it didn't help on 10.3;

[issue8065] Memory leak in readline.get_current_history_length

2010-03-09 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I my experience, reporting bugs in open source components of OSX to bugreport.apple.com is a waste of time. Such reports are largely ignored and they are not visible to upstream developers. I believe the upstream for libedit is NetBSD, http://cvsweb

[issue8089] 2.6/3.1 32-bit/64-bit universal builds always run in 64-bit on 10.6

2010-03-09 Thread Ned Deily
Ned Deily added the comment: Looks good for 2.6.5 (with 10.6 'intel' build). -- ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue8065] Memory leak in readline.get_current_history_length

2010-03-09 Thread Ronald Oussoren
Changes by Ronald Oussoren : Removed file: http://bugs.python.org/file16480/smime.p7s ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue8065] Memory leak in readline.get_current_history_length

2010-03-09 Thread Ronald Oussoren
Ronald Oussoren added the comment: Without filing a bug Apple won't know that something is wrong and they will definitly not fix the issue. If you file an issue and post the radar number I'll ping the Python maintainer inside Apple. There's little change that this will be fixed, but you neve

[issue6953] readline documenation needs work

2010-03-09 Thread stefanholek
stefanholek added the comment: I have read the readline source code, and it does mean just that. :-) Anyway, this does not really apply to the stdlib because unless someone implements 'stifle_history' and friends 'history_base' is going to be 1 at all times. --

[issue8065] Memory leak in readline.get_current_history_length

2010-03-09 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I submitted two bug reports: 7734961 libedit history_truncate_file () fails to preserve magic line Mac OS X Other Bug 09-Mar-2010 05:48 PM Open 7734839 libedit read_history() does not update history_length Mac OS X Other Bug 09-Mar-2010 05:39 PM Open --

[issue7300] Unicode arguments in str.format()

2010-03-09 Thread STINNER Victor
STINNER Victor added the comment: PyString_Format() uses a "goto unicode;" if a '%c' or '%s' argument is unicode. The unicode label converts the partial formatted result (byte string) to unicode, and use PyUnicode_Format() to finish to formatting. I don't think that you can apply the same alg

[issue7300] Unicode arguments in str.format()

2010-03-09 Thread STINNER Victor
STINNER Victor added the comment: *Draft* patch fixing the issue: render_field() raises an error if the argument is an unicode argument, string_format() catchs this error and converts self to unicode and call unicode.format(*args, **kw). Pseudo-code: try: # self.format() raises an error

[issue7300] Unicode arguments in str.format()

2010-03-09 Thread STINNER Victor
STINNER Victor added the comment: My patch converts the format string to unicode using the default encoding. It's inconsistent with str%args: str%args converts str to unicode using the ASCII charset (if a least one argument is an unicode string), not the default encoding. >>> "\xff%s" % u'\x

[issue7267] format method: c presentation type broken

2010-03-09 Thread STINNER Victor
STINNER Victor added the comment: u'{0:c}'.format(256) formatter in implemented in Objects/stringlib/formatter.h and this C template is instanciated in... Python/formatter_string.c (and not Python/formatter_unicode.c). Extract of formatter_unicode.c comment: /* don't define FORMAT_LONG, FORMA

[issue8104] socket.recv_into doesn't support a memoryview as an argument

2010-03-09 Thread Matt Gattis
New submission from Matt Gattis : >>> view = memoryview(bytearray(bufsize)) >>> while len(view): ...view = view[sock.recv_into(view,1024):] ... Traceback (most recent call last): File "", line 2, in TypeError: recv_into() argument 1 must be pinned buffer, not memoryview -- compone

[issue8105] mmap crash on Windows with out of range file descriptor

2010-03-09 Thread Brian Curtin
New submission from Brian Curtin : Creating an mmap object can crash the interpreter on Windows if a file descriptor is passed in which is outside of the range for _get_osfhandle. I noticed the crash possibility while reviewing the Modules/mmapmodule.c code for work on another issue related to

[issue8105] mmap crash on Windows with out of range file descriptor

2010-03-09 Thread Brian Curtin
Changes by Brian Curtin : Removed file: http://bugs.python.org/file16515/mmap_crash.diff ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue8105] mmap crash on Windows with out of range file descriptor

2010-03-09 Thread Brian Curtin
Changes by Brian Curtin : Added file: http://bugs.python.org/file16516/mmap_crash.diff ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue8105] mmap crash on Windows with out of range file descriptor

2010-03-09 Thread Brian Curtin
Brian Curtin added the comment: I should add that I tried the same thing on linux and no crash occured, it properly raised an exception. -- ___ Python tracker ___ __

[issue4473] POP3 missing support for starttls

2010-03-09 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: Ping... Any hope for 2.7/3.2? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr

[issue8106] SSL session management

2010-03-09 Thread Jesús Cea Avión
New submission from Jesús Cea Avión : Current SSL module doesn't manage SSL sessions, so any connection must do the full SSL handshake. SSL/TLS support session restarting, when an old SSL context is used in a new connection, so you don't need to do the full SSL handshake. This is a huge perfo

[issue8106] SSL session management

2010-03-09 Thread Brian Curtin
Changes by Brian Curtin : -- nosy: +janssen priority: -> normal ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue2001] Pydoc interactive browsing enhancement

2010-03-09 Thread Ron Adam
Changes by Ron Adam : Removed file: http://bugs.python.org/file16411/pydoc_gui.diff ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue2001] Pydoc interactive browsing enhancement

2010-03-09 Thread Ron Adam
Ron Adam added the comment: Missed a buffer write in the gettopic() method. Fixed. Plus some minor doc string changes. Can someone change the stage to "patch review". I can't do that myself. Or is there something else I need to do first? -- Added file: http://bugs.python.org/file1651