[issue7782] new test for test_iter.py

2010-03-23 Thread showell
showell added the comment: My proposed test is final. Please either accept or reject it as is. I assume it runs pretty quickly, so I am not sure what the cost fear is. The benefit of accepting the test is that it would potentially catch bugs on changes to the implementation of list. -

[issue8213] Python 3 ignored PYTHONUNBUFFERED and -u

2010-03-23 Thread Noam Yorav-Raphael
Noam Yorav-Raphael added the comment: I typed "man python3" on ubuntu 9.10 and nothing was explained about that - I now checked and found out that it displayed the python2 man page. I don't know where to find the Python 3 man page. I don't quite see the point in having the streams buffered in

[issue8218] typo currect

2010-03-23 Thread David W. Lambert
David W. Lambert added the comment: There is an incredible number of frameworks s/is/are/ The majority of users is best s/is/are/ o work together as good as possible. s/good/well/ jects can be saven in a st s/saven/saved/ Thank you. I'm through for now. -- ___

[issue8218] typo currect

2010-03-23 Thread David W. Lambert
David W. Lambert added the comment: you can rely an already existing rely on an -- ___ Python tracker ___ ___ Python-bugs-list

[issue8218] typo currect

2010-03-23 Thread David W. Lambert
David W. Lambert added the comment: There is a number of middlewares are -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue8218] typo currect

2010-03-23 Thread Ezio Melotti
Ezio Melotti added the comment: Some more typos: "The benefit from this approach is that WSGI applications can be deployed much easier as is is specially designed to host WSGI applications" s/is is/it is/ "Pylons is much like TurboGears with ab even" s/ab/an/ Once you finish reading it I'll f

[issue8218] typo currect

2010-03-23 Thread David W. Lambert
David W. Lambert added the comment: much easier as is is specially designed more easily and is especially designed -- ___ Python tracker ___

[issue8218] typo currect

2010-03-23 Thread Ezio Melotti
Changes by Ezio Melotti : -- assignee: georg.brandl -> ezio.melotti nosy: +ezio.melotti priority: -> normal resolution: -> accepted versions: +Python 2.6, Python 2.7, Python 3.2 ___ Python tracker

[issue8218] typo currect

2010-03-23 Thread David W. Lambert
David W. Lambert added the comment: "Another problem ist the basic concept" is -- ___ Python tracker ___ ___ Python-

[issue8218] typo currect

2010-03-23 Thread David W. Lambert
David W. Lambert added the comment: In same file, "intermangled with Python” and it has a “Publisher” which destignates" intermingled? designates? Thanks, Dave. -- ___ Python tracker

[issue8218] typo currect

2010-03-23 Thread David W. Lambert
New submission from David W. Lambert : http://docs.python.org/py3k/howto/webservers.html The path to the interpreter in the shebang (#!/usr/bin/env python) must be currect. Sorry man there are a great many distractions here. -- assignee: georg.brandl components: Documentation message

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

2010-03-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: > I upload bfs.patch Interesting patch, but: - Please give understandable benchmark numbers, including an explicit comparison with baseline 3.2, and patched 3.2 (e.g. gilinter.patch) - Please also measure single-thread performance, because it looks like you are

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

2010-03-23 Thread Nir Aides
Nir Aides added the comment: I upload bfs.patch To apply the patch use the following commands on updated python 3.2: $ patch -fp1 < bfs.patch $ ./configure The patch replaces the GIL with a scheduler. The scheduler is a simplified implementation of the recent kernel Brain F**k Scheduler by th

[issue8217] typo unterlying

2010-03-23 Thread Ezio Melotti
Ezio Melotti added the comment: Fixed in r79358 (trunk), r79359 (release26-maint), r79360 (py3k) and r79361 (release31-maint), thanks for the report! -- assignee: georg.brandl -> ezio.melotti nosy: +ezio.melotti priority: -> normal resolution: -> fixed stage: -> committed/rejected s

[issue8217] typo unterlying

2010-03-23 Thread David W. Lambert
New submission from David W. Lambert : http://docs.python.org/py3k/howto/webservers.html The low-level view When a user enters a web site, his browser makes a connection to the site’s webserver (this is called the request). The server looks up the file in the file system and sends it back to

[issue6081] str.format_from_mapping()

2010-03-23 Thread Eric Smith
Eric Smith added the comment: I'm not sure I'm wild about the *args parameter. Calling "Fred" the 0-th parameter here seems non-intuitive: "My name is {0}".format_using_mapping({}, 'Fred') If you're going to have *args, why not **kwargs and then merge/update the dicts? I'm being facetious, b

[issue8186] spam

2010-03-23 Thread Ezio Melotti
Changes by Ezio Melotti : -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/opti

[issue8186] spam

2010-03-23 Thread Ezio Melotti
Changes by Ezio Melotti : Removed file: http://bugs.python.org/file16602/unnamed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue8187] spam

2010-03-23 Thread Ezio Melotti
Changes by Ezio Melotti : Removed file: http://bugs.python.org/file16603/unnamed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue8187] spam

2010-03-23 Thread Ezio Melotti
Changes by Ezio Melotti : -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/opti

[issue8216] spam

2010-03-23 Thread Ezio Melotti
Changes by Ezio Melotti : -- resolution: -> invalid stage: -> committed/rejected status: open -> closed title: Nur jetzt beste Software zu besten Preisen! -> spam ___ Python tracker ___

[issue8216] Nur jetzt beste Software zu besten Preisen!

2010-03-23 Thread Ezio Melotti
Changes by Ezio Melotti : Removed file: http://bugs.python.org/file16633/unnamed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue8216] Nur jetzt beste Software zu besten Preisen!

2010-03-23 Thread Ezio Melotti
Changes by Ezio Melotti : -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/opti

[issue8216] Nur jetzt beste Software zu besten Preisen!

2010-03-23 Thread Nobody/Anonymous
New submission from Nobody/Anonymous: body,#wrap{text-align:center;margin:0px;background-color:#FFFEF8;}/*...@tab Top b...@section top b...@tip Choose a set of colors that look good with the colors of your logo image or text header.*/#header{background-color:#FFFEF8;margin:0px;/*...@editable*/

[issue8215] getargs.c in Python3 contains some TODO and the documentation is outdated

2010-03-23 Thread STINNER Victor
STINNER Victor added the comment: See also issue #2322. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue8215] getargs.c in Python3 contains some TODO and the documentation is outdated

2010-03-23 Thread STINNER Victor
New submission from STINNER Victor : http://docs.python.org/py3k/c-api/arg.html contains some ambiguous (string or Unicode object) definitions: what is a string? what is an unicode object? Is it a string or not? The problem is that the documentation is for Python2: the code was changed, but no

[issue8214] Add exception logging function to syslog module

2010-03-23 Thread Eric Smith
Changes by Eric Smith : -- components: +Extension Modules ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:/

[issue8214] Add exception logging function to syslog module

2010-03-23 Thread Eric Smith
New submission from Eric Smith : Sean Reifschneider proposed [1] adding the ability to log an exception using the syslog module. My proposed implementation is along the lines of: def logexceptions(chain=True): import sys import traceback import syslog # Should we chain to the

[issue7936] sys.argv contains only scriptname

2010-03-23 Thread Tom Zych
Tom Zych added the comment: No joy :( I tried putting double-quotes around %%*, that didn't work either. Tried single-quotes too, just in case it works like a Bourne-type shell. BTW I forgot to set 3.1 on my earlier message. That business about having to double the % rings a faint bell from

[issue6081] str.format_from_mapping()

2010-03-23 Thread Filip Gruszczyński
Filip Gruszczyński added the comment: I have created a new patch, that should be satisfying now. There is help (though it is quite small, I tried to mimic those that were already in unicode.c) and tests. Right now format_using_mapping is called like this: format_using_mapping(mapping, *args)

[issue1222585] C++ compilation support for distutils

2010-03-23 Thread Roumen Petrov
Roumen Petrov added the comment: I could not found reasons python build to support C++ compiler as all source is C! Another case is distutils where is possible external module to use C++ code. -- nosy: +rpetrov ___ Python tracker

[issue8206] 2to3 doesn't convert 'types.InstanceType' to 'object'

2010-03-23 Thread Benjamin Peterson
Benjamin Peterson added the comment: Closing 2to3 request. -- nosy: +benjamin.peterson resolution: -> works for me status: open -> closed ___ Python tracker ___

[issue8210] rev 78820 causes problems on Solaris (Python 2.6)

2010-03-23 Thread Attila Nagy
Attila Nagy added the comment: Thank you, that was fast! :) -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue8210] rev 78820 causes problems on Solaris (Python 2.6)

2010-03-23 Thread Benjamin Peterson
Benjamin Peterson added the comment: Thanks. Fixed in r79351. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ _

[issue7279] decimal.py: == and != comparisons involving NaNs

2010-03-23 Thread Mark Dickinson
Mark Dickinson added the comment: Here's a patch (against py3k) to make all comparisons involving signaling nans raise InvalidOperation. Stefan, does this look okay to you? -- keywords: +patch Added file: http://bugs.python.org/file16631/issue7279.patch __

[issue7936] sys.argv contains only scriptname

2010-03-23 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: I've read on a random forum somewhere that % need to be doubled on Windows 7. Tom, can you try changing the association by typing FTYPE Python.File="C:\Python31\py31.exe" "%%1" %%* -- ___ Python tracker

[issue7936] sys.argv contains only scriptname

2010-03-23 Thread Tom Zych
Tom Zych added the comment: I'm getting something like this on Windows 7: C:\>assoc .py .py=Python.File C:\>ftype Python.File Python.File="C:\Python31\py31.exe" "%1" %* C:\>args.py 1 2 3 Python version: sys.version_info(major=3, minor=1, micro=1, releaselevel='final', serial=0) Command-line

[issue7279] decimal.py: == and != comparisons involving NaNs

2010-03-23 Thread Mark Dickinson
Mark Dickinson added the comment: > I think hash(Decimal("snan")) should also succeed On second thoughts, this would be bad, since it would lead to unpredictable results for sets of dicts containing a signaling nan: >>> from decimal import Decimal [69536 refs] >>> s = Decimal('snan'); h = has

[issue1544339] _ctypes fails to build on Solaris x86 32-bit (Sun compiler)

2010-03-23 Thread Thomas Heller
Thomas Heller added the comment: > It appears to me that no-one is maintaining this separate ctypes > code-base anymore so I'll have to ditch dependencies that use it > (Shapely) unfortunately. This is correct, the separate ctypes code base is linked via svn:external into the core Python svn re

[issue8211] configure: ignore AC_PROG_CC hardcoded CFLAGS

2010-03-23 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: STINNER Victor wrote: > > STINNER Victor added the comment: > >> (or to fix it, but that's a major task - the whole CFLAGS >> and LDFLAGS system used in Python's configure has over the >> years turned into a complete mess). > > What do you mean by "a co

[issue8211] configure: ignore AC_PROG_CC hardcoded CFLAGS

2010-03-23 Thread STINNER Victor
STINNER Victor added the comment: > (or to fix it, but that's a major task - the whole CFLAGS > and LDFLAGS system used in Python's configure has over the > years turned into a complete mess). What do you mean by "a complete mess"? Did you try my patch? Is it enough to fix this issue? A leas

[issue7782] new test for test_iter.py

2010-03-23 Thread Raymond Hettinger
Raymond Hettinger added the comment: Can you produce a more tightly focused test, the minimum code that would have segfaulted your change? -- ___ Python tracker ___

[issue6645] multiprocessing build fails on AIX - /dev/urandom (or equivalent) not found

2010-03-23 Thread Sridhar Ratnakumar
Sridhar Ratnakumar added the comment: This also breaks pydoc on AIX (Python 2.6.5). help> modules pydoc Here is a list of matching modules. Enter any module name to get more help. Traceback (most recent call last): File "", line 1, in File "/home/qatest/APy/lib/python2.6/site.py", line

[issue8211] configure: ignore AC_PROG_CC hardcoded CFLAGS

2010-03-23 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue8211] configure: ignore AC_PROG_CC hardcoded CFLAGS

2010-03-23 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Setting CFLAGS is broken in Python configure system, so it's better not to rely on it (or to fix it, but that's a major task - the whole CFLAGS and LDFLAGS system used in Python's configure has over the years turned into a complete mess). You should get

[issue8211] configure: ignore AC_PROG_CC hardcoded CFLAGS

2010-03-23 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +lemburg, loewis ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue1222585] C++ compilation support for distutils

2010-03-23 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis added the comment: To have proper support for C++ linking in distutils2 at least in when used with Python 2.7, Makefile should set a variable, which will specify default C++ linker. I think that LDCXXSHARED can be used as a name for this new variable. I'm a

[issue1222585] C++ compilation support for distutils

2010-03-23 Thread Tarek Ziadé
Changes by Tarek Ziadé : -- priority: normal -> high ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue8213] Python 3 ignored PYTHONUNBUFFERED and -u

2010-03-23 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- assignee: -> georg.brandl components: +Documentation -IO nosy: +georg.brandl ___ Python tracker ___ ___

[issue8213] Python 3 ignored PYTHONUNBUFFERED and -u

2010-03-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: In the current state of affaires this is more of a documentation issue. Python 3 doesn't support totally unbuffered text I/O (and standard streams are open in text mode). What `-u` and PYTHONUNBUFFERED do is that the binary layer of standard streams is unbuff

[issue8213] Python 3 ignored PYTHONUNBUFFERED and -u

2010-03-23 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue8213] Python 3 ignored PYTHONUNBUFFERED and -u

2010-03-23 Thread STINNER Victor
STINNER Victor added the comment: -u is not ignored, but use line buffering: see issue #4705 and commit r68977. -- nosy: +haypo ___ Python tracker ___ ___

[issue8212] A tp_dealloc of a subclassed class cannot resurrect an object

2010-03-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: Indeed. The io module has had to circumvent this and uses the following snippet when resurrecting an instance of a subclass of one of its types (see iobase_dealloc() in Modules/_io/iobase.c): /* When called from a heap type's dealloc, the type will be

[issue8213] Python 3 ignored PYTHONUNBUFFERED and -u

2010-03-23 Thread Noam Yorav-Raphael
New submission from Noam Yorav-Raphael : Hello, Python 3.1 ignored the PYTHONUNBUFFERED environment variable and the '-u' switch (which do the same thing): stdout remains buffered even when the flag is raised. To reproduce, run: > python3 -u -c 'import time, sys; sys.stdout.write("a"); time.s

[issue7279] decimal.py: == and != comparisons involving NaNs

2010-03-23 Thread Mark Dickinson
Mark Dickinson added the comment: Re-opening to address a couple of points that came out of the python-dev discussion: (1) As Stefan pointed out on python-dev, equality and inequality comparisons involving signaling nans should signal (order comparisons already do). IEEE 754 is fairly clear

[issue8202] sys.argv[0] and python -m package

2010-03-23 Thread Nick Coghlan
Nick Coghlan added the comment: I realised today that this behaviour is actually the case for any execution of a module inside a package with -m (i.e. any __init__ modules execute before sys.argv and __main__ are fully configured). As I recall, I used a bit of a hack to get main.c to implemen

[issue8188] Unified hash for numeric types.

2010-03-23 Thread Mark Dickinson
Mark Dickinson added the comment: Another update, partly to address comments raised by Guido on Rietveld. I'll upload these changes to Rietveld later today. - rename sys._hash_info to sys.hash_info and make it public rather than private (it still needs docs somewhere) - add some explanato

[issue8210] rev 78820 causes problems on Solaris (Python 2.6)

2010-03-23 Thread Brian Curtin
Changes by Brian Curtin : -- nosy: +benjamin.peterson priority: -> normal stage: -> needs patch type: -> behavior ___ Python tracker ___ ___

[issue8212] A tp_dealloc of a subclassed class cannot resurrect an object

2010-03-23 Thread Kristján Valur Jónsson
New submission from Kristján Valur Jónsson : The tp_dealloc of a type can chose to resurrect an object. the subtype_dealloc() in typeobject.c does this when it calls the tp_del() member and it has increased the refcount. The problem is, that if you subclass a custom C object, and that C objec

[issue4999] multiprocessing.Queue does not order objects

2010-03-23 Thread Stefan Praszalowicz
Stefan Praszalowicz added the comment: I just got surprised by this, and I agree that updating the doc would be nice, because as of now, it states quite explicitly that "the Queue and JoinableQueue types are multi-producer, multi-consumer FIFO queues". -- nosy: +Stefan.P type: -> beh

[issue8211] configure: ignore AC_PROG_CC hardcoded CFLAGS

2010-03-23 Thread STINNER Victor
New submission from STINNER Victor : configure.in uses AC_PROG_CC, extract of the autoconf manual: (http://www.delorie.com/gnu/docs/autoconf/autoconf_64.html) If using the GNU C compiler, set shell variable GCC to `yes'. If output variable CFLAGS was not already set, set it to `-g -O2' for th

[issue8210] rev 78820 causes problems on Solaris (Python 2.6)

2010-03-23 Thread Attila Nagy
New submission from Attila Nagy : The check-in http://svn.python.org/view?view=rev&revision=78820 causes problems on Solaris (SXCE 125, ksh, Studio 12). configure output: [...] checking for --with-pydebug... no ./configure: test: unknown operator == "test" on Solaris does not accept "==". "="

[issue8209] OptionParser keyword arg 'epilog' not mentioned in the docs

2010-03-23 Thread R. David Murray
R. David Murray added the comment: See also issue 8158. -- nosy: +r.david.murray ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue8158] documentation of 'optparse' module incomplete

2010-03-23 Thread R. David Murray
R. David Murray added the comment: Senthil documented epilog in issue 8209. -- ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue8205] test_multiprocessing failure

2010-03-23 Thread Florent Xicluna
Florent Xicluna added the comment: Fixed with r79310. -- resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed ___ Python tracker ___

[issue8133] test_imp fails on OS X; filename normalization issue.

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

[issue7880] sysconfig does not like symlinks

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

[issue7668] test_httpservers fails with non-ascii path

2010-03-23 Thread Florent Xicluna
Florent Xicluna added the comment: Fixed with r79297 -- priority: -> normal resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed ___ Python tracker

[issue6352] Compiler warning in unicodeobject.c

2010-03-23 Thread STINNER Victor
STINNER Victor added the comment: > Apparently this was never backported to 3.1. done: r79335 (py3k). -- ___ Python tracker ___ ___ P

[issue8207] test_pep277 fails on OS X

2010-03-23 Thread Ned Deily
Ned Deily added the comment: With the patch for trunk, the test no longer fails on the given file system. -- ___ Python tracker ___ __

[issue8207] test_pep277 fails on OS X

2010-03-23 Thread Florent Xicluna
Florent Xicluna added the comment: > Could you provide a reference link for this quote ? I put the link in the patch: http://developer.apple.com/mac/library/qa/qa2001/qa1173.html -- ___ Python tracker

[issue8209] OptionParser keyword arg 'epilog' not mentioned in the docs

2010-03-23 Thread Senthil Kumaran
Senthil Kumaran added the comment: merged into release26-maint branch - 79331 -- ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue8207] test_pep277 fails on OS X

2010-03-23 Thread Ned Deily
Ned Deily added the comment: Actually, the file system in question is what Apple calls a HFSX case-sensitive (see http://developer.apple.com/mac/library/technotes/tn/tn1150.html#HFSX). On a typical OS X system, you could encounter any combination of HFS+ case-insensitive, HFSX case-insensiti

[issue8207] test_pep277 fails on OS X

2010-03-23 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Florent Xicluna wrote: > > Florent Xicluna added the comment: > > This patch should fix it... > "HFS Plus uses a variant of Normal Form D in which U+2000 through U+2FFF, > U+F900 through U+FAFF, and U+2F800 through U+2FAFF are not decomposed." Could you

[issue8209] OptionParser keyword arg 'epilog' not mentioned in the docs

2010-03-23 Thread Senthil Kumaran
Senthil Kumaran added the comment: Fixed in revision 79329. -- resolution: -> fixed ___ Python tracker ___ ___ Python-bugs-list maili

[issue8209] OptionParser keyword arg 'epilog' not mentioned in the docs

2010-03-23 Thread Senthil Kumaran
New submission from Senthil Kumaran : I was looking for some option in optparse module which will allow me to add custom help text after the generated help. Realized that OptionParser class has a keyword argument 'epilog' for the same purpose. But this is not been explained in the documentatio

[issue8207] test_pep277 fails on OS X

2010-03-23 Thread Florent Xicluna
Florent Xicluna added the comment: This patch should fix it... "HFS Plus uses a variant of Normal Form D in which U+2000 through U+2FFF, U+F900 through U+FAFF, and U+2F800 through U+2FAFF are not decomposed." I believed there was only one Unicode... But obviously the Apple's Unicode is someth

[issue1544339] _ctypes fails to build on Solaris x86 32-bit (Sun compiler)

2010-03-23 Thread Nick
Nick added the comment: Martin, the patch is for libffi included in ctypes 1.0.2. This is python 2.4 (required for plone/zope) so python 2.5/2.6 etc is not a possibility. ctypes 1.0.2 compiles with this patch but then core dumps anyway during tests so false hope. It appears to me that no-on

[issue8207] test_pep277 fails on OS X

2010-03-23 Thread Ned Deily
Ned Deily added the comment: Also this failure on py3k: == ERROR: test_normalize (test.test_pep277.UnicodeFileTests) -- Traceback (most recent call last): Fi

[issue8196] sqlit3.paramstyle reported as 'qmark'

2010-03-23 Thread Gerhard Häring
Gerhard Häring added the comment: I said qmark vs numeric. I. e. vs: execute("UPDATE authors set name = :1, email = :2, comment = :3 WHERE id = :4", (form.name, form.email, form.text, form.id)) The sqlite3 module will always support both paramstyles qmark and named, simply because that is wh