[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

[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 ___ __

[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) ---

[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.

[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

[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

[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

[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

[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 _

[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

[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

[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

[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

[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

[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

[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: +

[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

[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

[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

[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

[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 ___ ___

[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

[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 ___ __

[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;

[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

[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

[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 ___ __

[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

[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

[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

[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

[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

[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 __

[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

[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:

[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

[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: #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

[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

[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

[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

[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

[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

[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://

[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

[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

[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

[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

[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

[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:/

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

2010-09-20 Thread Éric Araujo
Éric Araujo added the comment: Does POSIX mandate an encoding when using the C locale? -- ___ Python tracker ___ ___ Python-bugs-list

[issue9891] Minor doc typo at datamodel.rst: "list" -> "alist"

2010-09-20 Thread Éric Araujo
Changes by Éric Araujo : -- versions: -Python 2.5, Python 2.6, Python 3.3 ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue9893] Usefulness of the Misc/Vim/ files?

2010-09-20 Thread Éric Araujo
Éric Araujo added the comment: Those files are useful for me, even if I had to tweak them slightly. -- nosy: +eric.araujo ___ Python tracker ___ _

[issue9906] including elementary mathematical functions in default types

2010-09-20 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.smith, lemburg, mark.dickinson, rhettinger, stutzbach type: -> feature request versions: -Python 2.5, Python 2.6, Python 2.7, Python 3.1, Python 3.3 ___ Python tracker _

[issue2090] __import__ with fromlist=

2010-09-20 Thread Éric Araujo
Changes by Éric Araujo : -- versions: +Python 3.2 -Python 2.6 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

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

2010-09-20 Thread Éric Araujo
Éric Araujo added the comment: Sorry for being out of touch. I’m fine with the new feature here and now; we still have the deprecation process if we want to make both get_config_h_filename and get_makefile_filename private later (as implementation details), or we could have them return None

[issue2027] Module containing C implementations of common text algorithms

2010-09-20 Thread Benjamin Peterson
Changes by Benjamin Peterson : -- resolution: -> rejected status: pending -> closed ___ Python tracker ___ ___ Python-bugs-list mailin

[issue2057] difflib: add patch capability

2010-09-20 Thread anatoly techtonik
anatoly techtonik added the comment: On Mon, Sep 20, 2010 at 11:58 PM, Terry J. Reedy wrote: > Given that difflib produces unified diffs (among 3 others) and that diff.py > is a thin command-line wrapper that provides access to all 4 formats (with no > default), I consider those two files 're

[issue4151] Separate build dir broken

2010-09-20 Thread Éric Araujo
Éric Araujo added the comment: For the record, I’m not clear about what is fixed or not in each branch. -- ___ Python tracker ___ ___

[issue9907] interactive mode TAB does not insert on OS X built with editline instead of GNU readline

2010-09-20 Thread Ned Deily
Ned Deily added the comment: [Thanks to Nik Krumm for reporting the problem on python-list/comp.lang.python] -- ___ Python tracker ___ ___

[issue2180] tokenize: mishandles line joining

2010-09-20 Thread Raymond Hettinger
Raymond Hettinger added the comment: Mark, please stop closing these based on age. The needs to be a determination whether this is a valid bug. If so, then a patch is needed. If not, it can be closed. -- assignee: jhylton -> nosy: +rhettinger status: pending -> open _

[issue2175] Expat sax parser silently ignores the InputSource protocol

2010-09-20 Thread Yitz Gale
Yitz Gale added the comment: Perhaps more people would be interested if you raise the priority. This bug can cause serious data corruption, or even crashes. It should also be tagged as "easy". An alternative would be to remove the expat sax parser from the libraries, since we don't support it.

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

2010-09-20 Thread Mark Lawrence
Mark Lawrence added the comment: Is this still valid? -- nosy: +BreamoreBoy, gpolo, taleinat, terry.reedy versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.6, Python 3.0 ___ Python tracker ___

[issue1953] Compact int and float freelists

2010-09-20 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: The remarks above haven't been addressed. The feature is OK, but the patch is not yet perfect. -- nosy: +amaury.forgeotdarc ___ Python tracker __

[issue9907] interactive mode TAB does not insert on OS X built with editline instead of GNU readline

2010-09-20 Thread Ned Deily
New submission from Ned Deily : When building Python on OS X, there is now support for linking Python with the readline compatibility interface of the OS X supplied BSD editline library rather than using the GNU readline library. Because of deficiencies in the version in earlier OS X releases

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

2010-09-20 Thread Mark Lawrence
Mark Lawrence added the comment: I think distutils changes should be aimed at several versions, please correct them if I'm wrong. -- nosy: +BreamoreBoy, eric.araujo versions: +Python 2.5, Python 2.6, Python 3.1, Python 3.2 ___ Python tracker

[issue9571] argparse: Allow the use of -- to break out of nargs and into subparser

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

[issue2193] Cookie Colon Name Bug

2010-09-20 Thread Mark Lawrence
Mark Lawrence added the comment: Is this a bug or isn't it, so should it be behaviour or feature request or what? -- nosy: +BreamoreBoy versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.6 ___ Python tracker _

[issue9583] PYTHONOPTIMIZE = 0 is not honored

2010-09-20 Thread Éric Araujo
Changes by Éric Araujo : -- versions: +Python 3.1 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

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

2010-09-20 Thread Éric Araujo
Changes by Éric Araujo : -- components: +Macintosh ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

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

2010-09-20 Thread Éric Araujo
Changes by Éric Araujo : -- components: +Installation -2to3 (2.x to 3.0 conversion tool), Build, Macintosh ___ Python tracker ___ ___ P

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

2010-09-20 Thread Éric Araujo
Éric Araujo added the comment: Which makefile target are you referring to? I see 2to3 listed alongside idle and other programs in some targets. Also, doesn’t this apply to 3.1? -- nosy: +eric.araujo ___ Python tracker

[issue2180] tokenize: mishandles line joining

2010-09-20 Thread Mark Lawrence
Mark Lawrence added the comment: Nobody appears to be interested so I'll close this in a couple of weeks unless someone objects, unless a patch is provided. -- nosy: +BreamoreBoy status: open -> pending ___ Python tracker

[issue9621] Graphviz output for 2to3 fixer patterns

2010-09-20 Thread Éric Araujo
Éric Araujo added the comment: Can you port your diff to 3.2? It’s where new features land. I think the implicit relative import (“import gvgraph” with the Tools/scripts dir is not on sys.path) won’t work. -- nosy: +benjamin.peterson, eric.araujo stage: -> patch review type: -> fea

[issue2175] Expat sax parser silently ignores the InputSource protocol

2010-09-20 Thread Mark Lawrence
Mark Lawrence added the comment: As nobody appears to be interested I'll close this in a couple of weeks unless someone objects. -- nosy: +BreamoreBoy status: open -> pending ___ Python tracker ___

[issue9272] CGIHTTPServer poisons os.environ

2010-09-20 Thread anatoly techtonik
anatoly techtonik added the comment: So.. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue7162] 2to3 does not convert __builtins__.file

2010-09-20 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.araujo versions: +Python 3.3 -Python 2.6, Python 2.7, Python 3.0 ___ Python tracker ___ ___ Pyt

[issue9847] Binary strings never compare equal to raw/normal strings

2010-09-20 Thread Éric Araujo
Changes by Éric Araujo : -- resolution: works for me -> invalid stage: -> committed/rejected ___ Python tracker ___ ___ Python-bugs-li

[issue9850] obsolete macpath module dangerously broken and should be removed

2010-09-20 Thread Éric Araujo
Éric Araujo added the comment: I agree with Ronald’s proposal. (Re “I don't remember if I redid my OS9-removal work”: Looks like you didn’t.) -- nosy: +eric.araujo ___ Python tracker __

[issue9860] Building python outside of source directory fails

2010-09-20 Thread Éric Araujo
Éric Araujo added the comment: Does this apply to 2.7 too? -- nosy: +eric.araujo ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue9272] CGIHTTPServer poisons os.environ

2010-09-20 Thread Éric Araujo
Changes by Éric Araujo : -- stage: unit test needed -> patch review versions: -Python 2.6 ___ Python tracker ___ ___ Python-bugs-list

[issue9552] ssl build under Windows always rebuilds OpenSSL

2010-09-20 Thread Antoine Pitrou
Antoine Pitrou added the comment: > This is the patch I'm thinking of. I confirmed this works > on VS8.0. (After replaced "..\\.." with "..\\..\\..") Works here too (VS 2008)! -- ___ Python tracker ___

[issue2057] difflib: add patch capability

2010-09-20 Thread Terry J. Reedy
Terry J. Reedy added the comment: Given that difflib produces unified diffs (among 3 others) and that diff.py is a thin command-line wrapper that provides access to all 4 formats (with no default), I consider those two files 'ready'. So I presume you are referring to your patch.py, which is s

[issue9845] Allow changing the method in urllib.request.Request

2010-09-20 Thread Éric Araujo
Éric Araujo added the comment: +1 on the idea and code patch. Needs test and doc update. -- nosy: +eric.araujo stage: -> patch review versions: +Python 3.2 -Python 3.3 ___ Python tracker _

[issue9650] format codes in time.strptime docstrings

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

[issue675698] New block cipher API

2010-09-20 Thread intgr
Changes by intgr : -- nosy: +intgr ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mail

[issue9901] GIL destruction can fail

2010-09-20 Thread Antoine Pitrou
Antoine Pitrou added the comment: Committed in r84927. -- resolution: -> fixed stage: needs patch -> committed/rejected status: open -> pending ___ Python tracker ___ __

[issue1531775] HTTPSConnection request hangs

2010-09-20 Thread Charles-Francois Natali
Charles-Francois Natali added the comment: Skimming through the code, the only place where we can reasonably block is inside HTTPConnection._send_output(), when the data is actually sent to the socket. What probably happens is the following: - connect() call succeeded, we have an established T

[issue9906] including elementary mathematical functions in default types

2010-09-20 Thread Michael Gilbert
New submission from Michael Gilbert : hi, it would be really nice if elementary mathematical operations such as sin/cosine (via __sin__ and __cos__) were available as base parts of the python data model [0]. this would make it easier to write new math classes, and it would eliminate the ugli

[issue9401] automatically try forward operations when reverse operations are NotImplemented

2010-09-20 Thread Michael Gilbert
Michael Gilbert added the comment: i think that, for example, the default __rsub__ implementation could be: return self + -other which should just do the right thing assuming the addition and negation functions already do the right thing for the class type. anyway, any implementation shoul

[issue1625] bz2.BZ2File doesn't support multiple streams

2010-09-20 Thread Antoine Pitrou
Antoine Pitrou added the comment: Here is an update of the patch against current py3k. I've added a copyright mention at the top of Modules/bz2module.c which I hope manages to capture the essence of msg93721. Martin, what do you think? -- nosy: +loewis stage: -> patch review versions

[issue1865] Document bytes alias for 2.7

2010-09-20 Thread Terry J. Reedy
Terry J. Reedy added the comment: Changing title to match current issue status. DOC PATCH Grammar section: As near as I can tell, the alternatives for stringprefix::= "r" | "u" | "ur" | "R" | "U" | "UR" | "Ur" | "uR" should simply be augmented with | "b" | "B" | "

[issue1800] ctypes callback fails when called in Python with array argument

2010-09-20 Thread Lenard Lindstrom
Lenard Lindstrom added the comment: I have checked over the proposed patch and made a small change that more elegantly obtains PyCArrayType. Decaying arrays into pointers is not an ideal solution. Ctypes arrays have bounds checking (pointers do not) adding an extra margin of safety when a C f

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

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

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

2010-09-20 Thread Terry J. Reedy
Terry J. Reedy added the comment: I suspect so, but I leave it to Eric to decide. -- ___ Python tracker ___ ___ Python-bugs-list maili

[issue2057] difflib: add patch capability

2010-09-20 Thread anatoly techtonik
anatoly techtonik added the comment: Unified diffs is the preferred type on this tracker as http://www.python.org/dev/patches/ describes. I also sure that they constitute more than 90% of patches attached here. If you have access to tracker attachments - you can test this. Unfortunately, dif

[issue9360] nntplib cleanup

2010-09-20 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Gah. I reviewed patch4, didn't noticed today's update :( Oops, I'm sorry for that. It turns out most of your comments are useful anyway. > Why is it a good thing to make file a keyword only parameter? I was thinking that if we want to add other function pa

[issue1977] Python reinitialization test

2010-09-20 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Quote msg83564 "This is still a good idea.", in which case shouldn't > someone push this forward, failing that close as out of date? Just because someone doesn't "push this forward" doesn't mean it's out of date. -- _

[issue9905] subprocess.Popen fails with stdout=PIPE, stderr=PIPE if standard descriptors (0, 1, 2) are closed.

2010-09-20 Thread Thomas Claveirole
New submission from Thomas Claveirole : Hello, Here is a code that exhibits an invalid behavior (Python 2.6.6): ---8<--- import subprocess, os os.close(0) # Works correctly if any of these two are commented out. os.close(2) print subprocess.Popen('echo foo>&2', shell=True,

[issue9898] cProfile.runctx doesn't allow sort argument

2010-09-20 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: yes, as you can see in the diffs, it's already in 3.2alpha2. -- ___ Python tracker ___ ___ Pyt

  1   2   >