[issue14324] Do not rely on AC_RUN_IFELSE tests in the configury

2012-03-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset 58cd710d9dff by Matthias Klose in branch 'default': - Issue #14324: Fix configure tests for cross builds. http://hg.python.org/cpython/rev/58cd710d9dff -- ___ Python tracker

[issue829370] math.signum(int)

2012-03-15 Thread Mark Dickinson
Changes by Mark Dickinson : -- nosy: -mark.dickinson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue14127] add st_*time_ns fileds to os.stat(), add ns keyword to os.*utime*(), os.*utimens*() expects a number of nanoseconds

2012-03-15 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- nosy: +gregory.p.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://

[issue14320] set.add can return boolean indicate newly added item

2012-03-15 Thread Raymond Hettinger
Raymond Hettinger added the comment: Here's the results of the research so far: Guido gave it a -1: http://mail.python.org/pipermail/python-ideas/2012-March/014510.html Smalltalk does not return a boolean: http://www.gnu.org/software/smalltalk/manual-base/gst-base.html#Set http://www.gn

[issue14255] tempfile.gettempdir() didn't return the path with correct case.

2012-03-15 Thread Jeff McNeil
Jeff McNeil added the comment: It doesn't seem to me that the right approach on either platform is to simply downcase. Maybe just deprecate the call altogether as its not doing anything normpath isn't if the .lower call is removed? -- ___ Python t

[issue14327] replace use of uname in the configury with macros set by AC_CANONICAL_HOST

2012-03-15 Thread Matthias Klose
New submission from Matthias Klose : the configury uses uname, which fails for cross builds. this issue tracks patches tor replace the uname calls with the use of macros set by AC_CANONICAL_HOST (host*, build*) -- assignee: doko components: Cross-Build keywords: needs review messages:

[issue9290] IDLE and Command line present different behavior for sys.stdin

2012-03-15 Thread Jim Jewett
Jim Jewett added the comment: msvcrt.getwch has a similar failure, returning (2**16)-1. Because of this, getpass.win_getpass (used as getpass.getpass on windows) echoes the password when using Idle (even without a subprocess), but does not echo passwords when from a command-line python.

[issue14327] replace use of uname in the configury with macros set by AC_CANONICAL_HOST

2012-03-15 Thread Matthias Klose
Matthias Klose added the comment: call AC_CANONICAL_HOST and check in config.{guess,sub}, taken from git://git.savannah.gnu.org/config.git --- a/configure.ac Thu Mar 15 20:42:23 2012 +0100 +++ b/configure.ac Thu Mar 15 21:17:32 2012 +0100 @@ -33,6 +33,8 @@ AC_CONFIG_SRCDIR([Include/o

[issue14311] ConfigParser does not parse utf-8 files with BOM bytes

2012-03-15 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +lukasz.langa stage: -> needs patch versions: +Python 3.2, Python 3.3 ___ Python tracker ___ ___

[issue11199] urllib hangs when closing connection

2012-03-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset 6ce4868861ba by Senthil Kumaran in branch '2.7': Fix the urllib closing issue which hangs on particular ftp urls/ftp servers. closes issue11199 http://hg.python.org/cpython/rev/6ce4868861ba New changeset 891184abbf6e by Senthil Kumaran in branch '

[issue14327] replace use of uname in the configury with macros set by AC_CANONICAL_HOST

2012-03-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset 04aa26c572ba by Matthias Klose in branch 'default': - Issue #14327: Call AC_CANONICAL_HOST in configure.ac and check in http://hg.python.org/cpython/rev/04aa26c572ba -- nosy: +python-dev ___ Python track

[issue14230] Delegating generator is not always visible to debugging tools such as inspect & pdb

2012-03-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset 72556ff86828 by Benjamin Peterson in branch 'default': perform yield from delegation by repeating YIELD_FROM opcode (closes #14230) http://hg.python.org/cpython/rev/72556ff86828 -- nosy: +python-dev resolution: -> fixed stage: -> committe

[issue14234] CVE-2012-0876 (hash table collisions CPU usage DoS) for embedded copy of expat

2012-03-15 Thread Jim Jewett
Jim Jewett added the comment: Looking at http://sourceforge.net/projects/expat/files/expat/2.1.0/, so long as XML_ATTR_INFO isn't defined at compile time, the changes are all considered bugfixes, and the XML_SetHashSalt is the only other changed API. Is a potential Denial of Service really wo

[issue14327] replace use of uname in the configury with macros set by AC_CANONICAL_HOST

2012-03-15 Thread Matthias Klose
Matthias Klose added the comment: the following patch still keeps the uname calls for native builds, but sets the ac_sys_* macros depending on $host for cross builds. For now the cross configure fails for everything except linux and cygwin targets. -- keywords: +patch Added file: http

[issue14327] replace use of uname in the configury with macros set by AC_CANONICAL_HOST

2012-03-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset d0cce5a2c0cf by Matthias Klose in branch 'default': - Issue #14327: Call AC_CANONICAL_HOST in configure.ac and check in http://hg.python.org/cpython/rev/d0cce5a2c0cf -- ___ Python tracker

[issue14280] packaging.pypi should not require checksums

2012-03-15 Thread Alexis Metaireau
Alexis Metaireau added the comment: Right, I'll go for this then. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue14279] packaging.pypi should support flat directories of distributions

2012-03-15 Thread Alexis Metaireau
Alexis Metaireau added the comment: Oh, thanks for clarifying this. I'll have a look at what the blockers are on this. I'm wondering if "local files" can be considered a simple index or not. If not, we can add another PyPI reader, which works with local files. -- __

[issue14328] Add keyword-only parameter support to PyArg_ParseTupleAndKeywords

2012-03-15 Thread Larry Hastings
New submission from Larry Hastings : This has been split off from #14127 at Antoine's request. The attached patch adds support for keyword-only arguments to the PyArg_ParseTupleAndKeywords() family of functions. Includes doc and test. I used '$' to indicate "all parameters after this are keyw

[issue2377] Replace __import__ w/ importlib.__import__

2012-03-15 Thread Benjamin Peterson
Benjamin Peterson added the comment: Okay; I added review. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

[issue14127] add st_*time_ns fileds to os.stat(), add ns keyword to os.*utime*(), os.*utimens*() expects a number of nanoseconds

2012-03-15 Thread Larry Hastings
Larry Hastings added the comment: I've created a separate issue for adding keyword-only parameter support to PyArg_ParseTupleAndKeywords, #14328. I've also posted a new patch to that issue incorporating Greg's suggestions. Please file all further comments regarding this topic on that issue.

[issue14328] Add keyword-only parameter support to PyArg_ParseTupleAndKeywords

2012-03-15 Thread Benjamin Peterson
Benjamin Peterson added the comment: Why do you force them to be optional? -- nosy: +benjamin.peterson ___ Python tracker ___ ___ Pyt

[issue14328] Add keyword-only parameter support to PyArg_ParseTupleAndKeywords

2012-03-15 Thread Larry Hastings
Larry Hastings added the comment: It frankly never occurred to me that you'd want mandatory keyword-only arguments. Implementing them as optional-only was easy; I'm not sure but making them possibly mandatory (or both!) might complicate matters. Is there a use case for 'em? --

[issue14328] Add keyword-only parameter support to PyArg_ParseTupleAndKeywords

2012-03-15 Thread Benjamin Peterson
Benjamin Peterson added the comment: 2012/3/15 Larry Hastings : > > Larry Hastings added the comment: > > It frankly never occurred to me that you'd want mandatory keyword-only > arguments.  Implementing them as optional-only was easy; I'm not sure but > making them possibly mandatory (or bot

[issue1519638] Unmatched Group issue - workaround

2012-03-15 Thread Nikki DelRosso
Nikki DelRosso added the comment: I'm having the same issue as the original author of this issue was. The workaround does not apply to the situation where the captured text is on one side of an "or" grouping, rather than just being optional. I'm trying to remove groups of text in parenthese

[issue14328] Add keyword-only parameter support to PyArg_ParseTupleAndKeywords

2012-03-15 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue14328] Add keyword-only parameter support to PyArg_ParseTupleAndKeywords

2012-03-15 Thread Larry Hastings
Larry Hastings added the comment: How about we leave it for now, and if we need it later we can fix the implementation. Adding that feature won't break existing calls--we'll just permit $ to occur before/without | in the format string. -- ___ Pyth

[issue1519638] Unmatched Group issue - workaround

2012-03-15 Thread Nikki DelRosso
Nikki DelRosso added the comment: Sorry, the non-working command should look as follows: re.sub(r'(?:\((?:(\d+)|.*?)\)\s*)+$','\\1','avatar (special edition)') -- ___ Python tracker

[issue1006238] cross compile patch

2012-03-15 Thread Matthias Klose
Matthias Klose added the comment: closing this issue. please continue in issue 3754. -- components: +Cross-Build -Build nosy: +doko resolution: -> out of date status: open -> closed ___ Python tracker _

[issue3754] cross-compilation support for python build

2012-03-15 Thread Matthias Klose
Matthias Klose added the comment: some of these changes are now available in trunk, tested with a x86_64-linux-gnu to arm-linux-gnueabihf cross build. using issue 14324 for configure tests which need fixes, and issue 14327 for the use of uname in the configure script. please feel free to ope

[issue14202] The docs of xml.dom.pulldom are almost nonexistent

2012-03-15 Thread Florian Mladitsch
Changes by Florian Mladitsch : Added file: http://bugs.python.org/file24879/xml.dom.pulldom.rst ___ Python tracker ___ ___ Python-bugs-list ma

[issue14324] Do not rely on AC_RUN_IFELSE tests in the configury

2012-03-15 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue14327] replace use of uname in the configury with macros set by AC_CANONICAL_HOST

2012-03-15 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue3754] cross-compilation support for python build

2012-03-15 Thread Éric Araujo
Éric Araujo added the comment: Not for distutils (feature-frozen, see previous messages) -- ___ Python tracker ___ ___ Python-bugs-lis

[issue3754] cross-compilation support for python build

2012-03-15 Thread Mike Frysinger
Changes by Mike Frysinger : -- nosy: +vapier ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue14329] proxy_bypass_macosx_sysconf does not handle singel ip addresses correctly

2012-03-15 Thread Serge Droz
New submission from Serge Droz : On MacOS in urllib the function proxy_bypass_macosx_sysconf does not handle proxy settings which are just IP addresses correctly: If there is any IP address, always true is reported. Reason: the mask is calculated wrong. The attached patch fixes this. NB This i

[issue14202] The docs of xml.dom.pulldom are almost nonexistent

2012-03-15 Thread Éric Araujo
Éric Araujo added the comment: Could you provide a diff? (instructions in the devguide) -- ___ Python tracker ___ ___ Python-bugs-li

[issue14202] The docs of xml.dom.pulldom are almost nonexistent

2012-03-15 Thread Florian Mladitsch
Florian Mladitsch added the comment: It is a diff-file, or am I missing something? I generated the file with 'hg diff > xml.dom.pulldom.rst' Probably should have given it a '*.patch' file-ending =/ -- ___ Python tracker

[issue3754] cross-compilation support for python build

2012-03-15 Thread Matthias Klose
Matthias Klose added the comment: issue 14330 handles not using the host python for the build -- ___ Python tracker ___ ___ Python-bug

[issue14330] do not use the host python for cross builds

2012-03-15 Thread Matthias Klose
New submission from Matthias Klose : for various tasks, the just built python for the host is used. this patch searches for a suitable python for the build machine and uses it for the build. -- assignee: doko components: Cross-Build files: no-host-python-for-build.diff keywords: needs r

[issue14330] do not use the host python for cross builds

2012-03-15 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue11105] Compiling evil ast crashes interpreter

2012-03-15 Thread Gregory P. Smith
Gregory P. Smith added the comment: i haven't confirmed if it is this exact bug but I believe a coworker just ran into something similar. he wrote code to use the ast to remove docstrings from code before passing it to compile() (as that saves a noticable amount of memory). in the case the

[issue3754] cross-compilation support for python build

2012-03-15 Thread Matthias Klose
Matthias Klose added the comment: I'm now able to build the interpreter (and run it in qemu on the same machine), but building the extension modules fails. the build is configured as: CC="arm-linux-gnueabihf-gcc" \ CXX="arm-linux-gnueabihf-g++" \ CFLAGS="-g -fstack-protector --param=ssp-buffer

[issue14328] Add keyword-only parameter support to PyArg_ParseTupleAndKeywords

2012-03-15 Thread Larry Hastings
Larry Hastings added the comment: BTW, I have the os.utime patch nearly ready for review; it works, it just needs doc and test. But it's dependent on this patch--and it'd be smoother if #14127 were finished too. So I'll hold off on posting the new patch until the fates of these two are deci

[issue14331] Python/import.c uses a lot of stack space due to MAXPATHLEN

2012-03-15 Thread Gregory P. Smith
New submission from Gregory P. Smith : Python/import.c in 2.7 and 3.2 consume a lot of stack space when importing modules. In stack constrained environments (think: 64k stack) this can cause a crash when you have a large chain of imports. The bulk of this likely comes from places where a char

[issue1519638] Unmatched Group issue - workaround

2012-03-15 Thread Matthew Barnett
Matthew Barnett added the comment: The replacement can be a callable, so you could do this: re.sub(r'(?:\((?:(\d+)|.*?)\)\s*)+$', lambda m: m.group(1) or '', 'avatar (special edition)') -- ___ Python tracker _

[issue14328] Add keyword-only parameter support to PyArg_ParseTupleAndKeywords

2012-03-15 Thread Eric Snow
Changes by Eric Snow : -- nosy: +eric.snow ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue14331] Python/import.c uses a lot of stack space due to MAXPATHLEN

2012-03-15 Thread Eric Snow
Changes by Eric Snow : -- nosy: +eric.snow ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue1519638] Unmatched Group issue - workaround

2012-03-15 Thread Nikki DelRosso
Nikki DelRosso added the comment: Perfect; thank you! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue11082] ValueError: Content-Length should be specified

2012-03-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset 057cf78ed576 by Senthil Kumaran in branch '3.2': Explain the use of charset parameter with Content-Type header. Issue11082 http://hg.python.org/cpython/rev/057cf78ed576 New changeset 90e35b91756d by Senthil Kumaran in branch 'default': Explain the

[issue11082] ValueError: Content-Length should be specified

2012-03-15 Thread Senthil Kumaran
Senthil Kumaran added the comment: I have rewritten some parts of the documentation, explaining the use of charset parameter with Content-Type header. Used the suggestions from the previous patch's review comments too. I see that other parts of the documentation can be improved further, I sh

[issue11105] Compiling evil ast crashes interpreter

2012-03-15 Thread Benjamin Peterson
Benjamin Peterson added the comment: Have him try on 3.3. This should be less of an issue there where there is an AST validator. It doesn't fix this bug, but it does fix most accidental AST construction bugs. -- ___ Python tracker

[issue14328] Add keyword-only parameter support to PyArg_ParseTupleAndKeywords

2012-03-15 Thread Benjamin Peterson
Benjamin Peterson added the comment: I want #14325 to go in first. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

[issue14326] IDLE - allow shell to support different locales

2012-03-15 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- nosy: +asvetlov ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue14202] The docs of xml.dom.pulldom are almost nonexistent

2012-03-15 Thread Éric Araujo
Éric Araujo added the comment: Ah, right, I just assumed that your .rst file was the full file (like in your first upload), but it is indeed a diff. Our tools don’t care about the file extension, but they sometimes are useful conventions for humans :) --

[issue14321] Do not run pgen during the build if files are up to date

2012-03-15 Thread Éric Araujo
Changes by Éric Araujo : -- resolution: -> fixed stage: -> committed/rejected ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue14331] Python/import.c uses a lot of stack space due to MAXPATHLEN

2012-03-15 Thread Eric V. Smith
Changes by Eric V. Smith : -- nosy: +eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue11105] Compiling evil ast crashes interpreter

2012-03-15 Thread Eric Snow
Changes by Eric Snow : -- nosy: +eric.snow ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue14202] The docs of xml.dom.pulldom are almost nonexistent

2012-03-15 Thread Eli Bendersky
Eli Bendersky added the comment: Looks good, pending fixing of Éric's comments. Florian, could you do that? We can then proceed to commit (to 3.3) and consider backports. -- stage: needs patch -> patch review ___ Python tracker

[issue14246] Accelerated ETree XMLParser cannot handle io.StringIO

2012-03-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7bdf5c96fdc0 by Eli Bendersky in branch 'default': Closes Issue #14246: _elementtree parser will now handle io.StringIO http://hg.python.org/cpython/rev/7bdf5c96fdc0 -- nosy: +python-dev ___ Python track

[issue14246] Accelerated ETree XMLParser cannot handle io.StringIO

2012-03-15 Thread Eli Bendersky
Changes by Eli Bendersky : -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___ __

[issue14065] Element should support cyclic GC

2012-03-15 Thread Eli Bendersky
Changes by Eli Bendersky : -- assignee: -> eli.bendersky versions: -Python 3.2 ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue14065] Element should support cyclic GC

2012-03-15 Thread Eli Bendersky
Eli Bendersky added the comment: Martin, why do you think it's important for Element to support this? After all, this is XML, not an arbitrary tree. As such, the children of Element can only be other elements, and attribute values should be strings. Anything else will result in errors when at

[issue14332] difflib.ndiff appears to ignore linejunk argument

2012-03-15 Thread Weronika Patena
New submission from Weronika Patena : According to difflib.ndiff help, the optional linejunk argument is "A function that should accept a single string argument, and return true iff the string is junk." Presumably the point is to ignore the junk lines in the comparison. But the function does

[issue14331] Python/import.c uses a lot of stack space due to MAXPATHLEN

2012-03-15 Thread Gregory P. Smith
Gregory P. Smith added the comment: Here's a patch for python 2.7. test cases pass but it could use review to see if I missed any free()s. -- keywords: +patch Added file: http://bugs.python.org/file24882/malloc-import-pathbufs-py27.001.diff ___ Py

[issue2486] Recode (parts of) decimal module in C

2012-03-15 Thread Ramchandra Apte
Ramchandra Apte added the comment: If issue7652 finishes. There's no point in fixing this bug. -- nosy: +ramchandra.apte ___ Python tracker ___ __

[issue14207] ElementTree.ParseError - needs documentation and consistent C&Py implementations

2012-03-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset b76fa310e73d by Eli Bendersky in branch 'default': Issue #14207: the ParseError exception raised by _elementtree was made http://hg.python.org/cpython/rev/b76fa310e73d -- nosy: +python-dev ___ Python tra

[issue14207] ElementTree.ParseError - needs documentation and consistent C&Py implementations

2012-03-15 Thread Eli Bendersky
Changes by Eli Bendersky : -- resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed ___ Python tracker ___ ___

[issue10484] http.server.is_cgi fails to handle CGI URLs containing PATH_INFO

2012-03-15 Thread Senthil Kumaran
Senthil Kumaran added the comment: To note in the tracker, the original 2.6 code was changed in Issue 2254 and the relevant changeset is c6c4398293bd I find, Glenn's suggestion a possibly okay solution for PATH_INFO problem, keeping in tact the security issue the the previous change dealt wit

[issue14009] Clearer documentation for cElementTree

2012-03-15 Thread Eli Bendersky
Eli Bendersky added the comment: Éric, what stops us from closing this issue? Given Ezio and Fred's feedback, I don't object to indexing cET in 3.3 - I guess it can't hurt. -- ___ Python tracker

[issue14328] Add keyword-only parameter support to PyArg_ParseTupleAndKeywords

2012-03-15 Thread Larry Hastings
Larry Hastings added the comment: Attached is r3 of my patch incorporated Benjamin's suggestions. > I want #14325 to go in first. Why do you care? If I get signoff before 14325 does please explain to me why I should wait. They don't touch the same lines; should be a clean merge no matter w

[issue9257] cElementTree iterparse requires events as bytes; ElementTree uses strings

2012-03-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset 84e4d76bd146 by Eli Bendersky in branch '3.2': Issue #9257: clarify the events iterparse accepts http://hg.python.org/cpython/rev/84e4d76bd146 New changeset 00c7142ee54a by Eli Bendersky in branch 'default': Issue #9257: clarify the events iterpars

[issue9257] cElementTree iterparse requires events as bytes; ElementTree uses strings

2012-03-15 Thread Eli Bendersky
Changes by Eli Bendersky : -- resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed ___ Python tracker ___

[issue12908] Update dev-in-a-box for new coverage steps

2012-03-15 Thread Eli Bendersky
Changes by Eli Bendersky : -- nosy: -eli.bendersky ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

<    1   2