[issue4709] Mingw-w64 and python on windows x64

2010-09-20 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : -- nosy: +giampaolo.rodola ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:/

[issue9882] abspath from directory

2010-09-20 Thread Éric Araujo
Éric Araujo added the comment: Would you bring this up on python-ideas? I am neither +1 nor -1 on your idea, but I know that symmetry/consistency is not always a winning rationale. Not every possibly useful one-liner should be a standard function. -- nosy: +eric.araujo

[issue9865] OrderedDict doesn't implement __sizeof__

2010-09-20 Thread Raymond Hettinger
Raymond Hettinger added the comment: See r84852 -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs

[issue8998] add crypto routines to stdlib

2010-09-20 Thread lorph
lorph added the comment: > Do you think that if OpenSSL provided its own implementation of strlen(), > every text that mentions strlen() needs to acknowledge OpenSSL? Do you > realize how ridiculous that is? If that text is deemed to be advertising by Eric Young and a court of law, then abso

[issue8998] add crypto routines to stdlib

2010-09-20 Thread Antoine Pitrou
Antoine Pitrou added the comment: > If there is a problem with multiple libraries, I'd like to reiterate > my support for migrating to NSS. Will your support go so far as to investigate feasibility and provide a patch? -- ___ Python tracker

[issue9868] test_locale leaves locale changed

2010-09-20 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +giampaolo.rodola, lemburg, michael.foord, pitrou ___ Python tracker ___ ___ Python-bugs-list mailing

[issue9901] GIL destruction can fail

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

[issue9864] email.utils.{parsedate, parsedate_tz} should have better return types

2010-09-20 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.araujo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue9583] PYTHONOPTIMIZE = 0 is not honored

2010-09-20 Thread Buck Golemon
Buck Golemon added the comment: Minimal demo: $ setenv PYTHONOPTIMIZE 0 $ python3.1 -OO -c "print(__debug__)" False I've used this code to get the desired functionality: if [[ $TESTING == 1 || ${PYTHONOPTIMIZE-2} =~ '^(0*|)$' ]]; then #someone is requesting no optimization export -n

[issue9533] metaclass can't derive from ABC

2010-09-20 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.araujo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue8998] add crypto routines to stdlib

2010-09-20 Thread geremy condra
geremy condra added the comment: On Mon, Sep 20, 2010 at 3:44 PM, lorph wrote: > > lorph added the comment: > >> Do you think that if OpenSSL provided its own implementation of strlen(), >> every text that mentions strlen() needs to acknowledge OpenSSL? Do you >> realize how ridiculous that

[issue8743] set() operators don't work with collections.Set instances

2010-09-20 Thread Raymond Hettinger
Raymond Hettinger added the comment: After discussion on IRC, have decided to make the Set ABC more closely match setobject.c: 1) loosen setobject.c binary operations to accept any Set rather than any set/frozenset (see attached patch). 2) tighten Set.__or__, etc to only accept Set rather th

[issue1887] distutils doesn't support out-of-source builds

2010-09-20 Thread Éric Araujo
Éric Araujo added the comment: #4151 and friends were about building Python, this is about building Python projects with distutils. As a feature request, I’m reassigning to distutils2. Monty: Would you like to update your patch? distutils is frozen except for bug fixes, we work on the next

[issue6305] islice doesn't accept large stop values

2010-09-20 Thread Raymond Hettinger
Raymond Hettinger added the comment: Unassigning. If someone is interested creating a patch, I think it is a reasonable request. -- assignee: rhettinger -> priority: low -> normal stage: -> needs patch versions: -Python 2.7 ___ Python tracker <

[issue1887] distutils doesn't support out-of-source builds

2010-09-20 Thread Éric Araujo
Éric Araujo added the comment: Let me add that distutils very much wants you to run the setup script from its parent directory, contrary to autotools which can run from another directory, so it could be that other parts than build* commands are affected. That said, specifying the target build

[issue9875] Garbage output when running setup.py on Windows

2010-09-20 Thread Éric Araujo
Éric Araujo added the comment: This is indeed invalid. In distutils2, we’re removing the custom log module in favor of standard logging, and I’ve added a note on my todo list to check that verbosity option passed to setup scripts do impact module-level logging calls. -- resolution:

[issue2200] find_executable fails to find .bat files on win32

2010-09-20 Thread Éric Araujo
Éric Araujo added the comment: distutils bugs follow standard Python rules: They are fixed in stable and development branches, now 2.7, 3.1 and py3k. If there is a security hazard, the fix would go into 2.6 and possibly 2.5 too. distutils2 has to work with 2.4-2.7 and (soon) 3.1-3.2, so Tare

[issue2200] find_executable fails to find .bat files on win32

2010-09-20 Thread Éric Araujo
Éric Araujo added the comment: Could someone provide use cases for this change? What programs which were not .exe did you need to run though distutils? -- ___ Python tracker __

[issue8743] set() operators don't work with collections.Set instances

2010-09-20 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- Removed message: http://bugs.python.org/msg116998 ___ Python tracker ___ ___ Python-bugs-list mailing

[issue8743] set() operators don't work with collections.Set instances

2010-09-20 Thread Raymond Hettinger
Raymond Hettinger added the comment: After discussion on IRC, have decided to make the Set ABC more closely match setobject.c by loosening setobject.c binary operations to accept any Iterable rather than any just a set/frozenset. -- ___ Python trac

[issue9583] PYTHONOPTIMIZE = 0 is not honored

2010-09-20 Thread Terry J. Reedy
Terry J. Reedy added the comment: I am following the suggestion in the last sentence of the original post and turning this into a doc issue. I believe it is standard that command-line switches override environmental variables when there is a conflict, but 'Using Python', section 1.2. 'Environ

[issue9583] Document startup option/environment interaction

2010-09-20 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- assignee: -> d...@python components: +Documentation -Interpreter Core nosy: +d...@python title: PYTHONOPTIMIZE = 0 is not honored -> Document startup option/environment interaction type: behavior -> ___ Python tracker

[issue2213] build_tkinter.py does not handle paths with spaces

2010-09-20 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: -terry.reedy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue9597] mac: Install 2to3 in /usr/local/bin

2010-09-20 Thread Sridhar Ratnakumar
Sridhar Ratnakumar added the comment: Ah, please close this then. I am not sure what I was thinking when reporting this bug. -- ___ Python tracker ___ __

[issue2636] Regexp 2.7 (modifications to current re 2.2.2)

2010-09-20 Thread Vlastimil Brom
Vlastimil Brom added the comment: I like the idea of the general "new" flag introducing the reasonable, backwards incompatible behaviour; one doesn't have to remember a list of non-standard flags to get this features. While I recognise, that the module probably can't work correctly with wide

[issue9908] os.stat() fails on bytes paths under Windows 7

2010-09-20 Thread Antoine Pitrou
New submission from Antoine Pitrou : Under Windows 7, there is another path in posixmodule.c for stat() (because of the link dereferencing feature, it seems). This path fails for the bytes version. It turns out that GetFinalPathNameByHandleA returns a value which is one byte too small (while G

[issue9583] Document startup option/environment interaction

2010-09-20 Thread Buck Golemon
Buck Golemon added the comment: If I understand this code, it means that PYTHONOPTIMIZE set to 1 or 2 works as expected, but set to 0, gives a flag value of 1. static int add_flag(int flag, const char *envs) { int env = atoi(envs); if (flag < env) flag = env;

[issue9597] mac: Install 2to3 in /usr/local/bin

2010-09-20 Thread Éric Araujo
Éric Araujo added the comment: I haven’t checked that *every* target containing pydoc contained 2to3 too. -- ___ Python tracker ___ __

[issue9908] os.stat() fails on bytes paths under Windows 7

2010-09-20 Thread Eric Smith
Changes by Eric Smith : -- nosy: +eric.smith, jaraco ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue9877] Expose sysconfig._get_makefile_filename() in public API

2010-09-20 Thread Éric Araujo
Éric Araujo added the comment: Will backport to distutils2 shortly and close again. -- assignee: barry -> eric.araujo status: closed -> pending ___ Python tracker ___ ___

[issue1327971] HTTPResponse instance has no attribute 'fileno'

2010-09-20 Thread Senthil Kumaran
Senthil Kumaran added the comment: Fix committed in revision 84932. A property based fileno was not required, because it is hardly set, it is always often a read-only attribute. Also, py3k behavior is same as the current fix. -- ___ Python tracker

[issue9583] Document startup option/environment interaction

2010-09-20 Thread R. David Murray
R. David Murray added the comment: I understood the documentation snippet Terry quoted as saying exactly what you say the code does. The doc could be clearer by replacing "multiple times" with "that number of times". Not that more than two has any meaning currently... Changing the behavior

[issue9583] Document startup option/environment interaction

2010-09-20 Thread Terry J. Reedy
Terry J. Reedy added the comment: I do not deny that the behavior described in the doc is a bit strange (keying off of type, ignoring value) is a bit bizarre and contrary to reasonable expectation based on other programs. But to alter behavior before 3.2 or later would require a clearly demon

[issue9360] nntplib cleanup

2010-09-20 Thread R. David Murray
R. David Murray added the comment: OK. It doesn't seem all that likely that we'll be adding parameters, but you never know. So I'm OK with file becoming keyword only. As for the overview headers...if they aren't decoded through decode_header already, why are they unicode? If they haven't b

[issue9908] os.stat() fails on bytes paths under Windows 7

2010-09-20 Thread Terry J. Reedy
Terry J. Reedy added the comment: The bug appears to really be limited to Vista?/W7. On WinXP, >>> os.path.exists('c:/programs/python31') True >>> os.path.exists(b'c:/programs/python31') True Has the patch been tested on WinXP to be sure it does not introduce a bug for this? -- nosy: +

[issue1327971] HTTPResponse instance has no attribute 'fileno'

2010-09-20 Thread Senthil Kumaran
Senthil Kumaran added the comment: Documented it in r84933, r84934 and r84935 -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker

[issue9583] Document startup option/environment interaction

2010-09-20 Thread Buck Golemon
Buck Golemon added the comment: "that number of times" isn't exactly accurate either, since "0" is effectively interpreted as "1". This change would only adversely affect people who use no -O option, set PYTHONOPTIMIZE to '0', and need optimization. I feel like that falls into the realm of ve

[issue9583] Document startup option/environment interaction

2010-09-20 Thread Buck Golemon
Buck Golemon added the comment: The file is here: http://svn.python.org/view/python/trunk/Python/pythonrun.c?view=markup The second if statement is doing exactly what I find troubling: set the flag even if the incoming value is 0. I guess this is to handle the empty string case, such as: s

[issue1778] SyntaxError.offset sometimes wrong

2010-09-20 Thread Benjamin Peterson
Benjamin Peterson added the comment: None offsets gone in r84931. -- nosy: +benjamin.peterson ___ Python tracker ___ ___ Python-bugs-l

[issue9899] tkinter test_font fails on OS X with Aqua Tk

2010-09-20 Thread Ned Deily
Ned Deily added the comment: Somebody want to commit it? -- stage: patch review -> commit review ___ Python tracker ___ ___ Python-bug

[issue9909] request for calendar.dayofyear() function

2010-09-20 Thread Jeffrey Finkelstein
New submission from Jeffrey Finkelstein : This is a function which computes the integer between 1 and 366 representing the day of the year, given a year, month, and day. The implementation I have provided computes the difference between the ordinal numbers of the given day and January first of

[issue9597] mac: Install 2to3 in /usr/local/bin

2010-09-20 Thread Ned Deily
Ned Deily added the comment: All of the current installers create 2to3 or versioned 2to3 links only (for Python 3). The most recent change was for 2.7 in Issue9392. Please reopen if you find one that's missed. -- nosy: +ned.deily resolution: -> works for me status: open -> closed _

[issue9864] email.utils.{parsedate, parsedate_tz} should have better return types

2010-09-20 Thread Jeffrey Finkelstein
Jeffrey Finkelstein added the comment: If the changes I propose in issue9909 are implemented (briefly: a calendar.dayofyear() function), the following patch (with documentation and tests) should fill in the missing fields in the returned tuple. Note that the email._parseaddr module now depend

[issue9864] email.utils.{parsedate, parsedate_tz} should have better return types

2010-09-20 Thread Jeffrey Finkelstein
Jeffrey Finkelstein added the comment: I was not clear: the patch I provided REQUIRES the function I provided in issue9909. But I don't know how to change the "Dependencies" field in Roundup. -- ___ Python tracker

[issue2027] Module containing C implementations of common text algorithms

2010-09-20 Thread Matthew Barnett
Matthew Barnett added the comment: I've started on a module called 'texttools'. So far it has Levenshtein and Porter (both coded in C). If there's interest I'll put it on PyPI. Suggestions for other additions? -- nosy: +mrabarnett ___ Python track

[issue6627] threading.local() does not work with C-created threads

2010-09-20 Thread Swapnil Talekar
Swapnil Talekar added the comment: Nick, the last statement, "While this is correct for most purposes, it does mean that..." can be simplified to, "It means...". I had to read it several times before I realized, there is no "not" after "does" :) BTW, since this particular arrangement of havi

[issue9910] Add Py_SetPath API for embeddint python

2010-09-20 Thread Kristján Valur Jónsson
New submission from Kristján Valur Jónsson : When calling Py_Initialize() from an embedding application, there is currently no way for the application to override Python's initial settin g of sys.path. An elaborate mechanism in getpathp.c kicks in, guessing the path based on several criteria.

[issue9862] PIPE_BUF is invalid on AIX

2010-09-20 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: Removing select.PIPE_BUF does not seem a good idea to me because this breaks compatibility. I suggest to simply set it to 512 on AIX. (An ideal solution would be to really determine the actual buffer size in ./configure; this is probably overkill) ---

[issue9887] distutil's build_scripts doesn't read utf-8 in all locales

2010-09-20 Thread Hagen Fürstenau
Hagen Fürstenau added the comment: Why does this matter? PEP 3120 specifies UTF-8 as the default source encoding. -- ___ Python tracker ___ __

[issue2200] find_executable fails to find .bat files on win32

2010-09-20 Thread Lev Shamardin
Lev Shamardin added the comment: My use case was compiling PyQt4 resources and Qt Designer .ui files from setup script using pyrcc4 and pyuic4 commands. On windows pyrcc4 is actually a pyrcc4.bat file (at least it was at the time of the original bug submission - haven't checked current status

<    1   2