[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

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

[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

[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

[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

[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

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

[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

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

[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

[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

[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

[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

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

[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

[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

[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

[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

[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

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

[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

[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

[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

[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

[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

[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

[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

[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

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

[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

[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

[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

[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

[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

[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

[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

[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

[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

[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

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

[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

[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

[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

[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

[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

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

[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

[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

[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

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

[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: Why do you force them to be optional? -- nosy: +benjamin.peterson ___ Python tracker ___ ___ Pyt

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

[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

[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

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

[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

[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

[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

[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

[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

[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

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

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

[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

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

[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

[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

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

[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

[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

[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 Antoine Pitrou
Antoine Pitrou added the comment: Posted a last review on Rietveld. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue14326] IDLE - allow shell to support different locales

2012-03-15 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

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

2012-03-15 Thread Matthias Klose
Matthias Klose added the comment: when configured with --(en|dis)able-ipv6 for cross builds, don't fail the configury due to the missing buggy-getaddrinfo check. -- Added file: http://bugs.python.org/file24876/buggy-getaddrinfo.diff ___ Python track

[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 Antoine Pitrou
Antoine Pitrou added the comment: > Do you insist? It's a small patch, and I need it as a precondition to > posting the... Yes, I do. It might a small patch, but it changes a core API and should be discussed on its own. -- ___ Python tracker

[issue14200] Idle shell crash on printing non-BMP unicode character

2012-03-15 Thread Roger Serwy
Roger Serwy added the comment: Martin, you are right. I created a separate issue #14326. Let me know what I can do to help. -- ___ Python tracker ___ __

[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: A fresh patch for adding st_mtime_ns etc to os.stat output. This is the same as last night's patch but with fresh line numbers. (Generated against 44eba26951f6.) -- Added file: http://bugs.python.org/file24875/larry.st_mtime_ns.patch.3.txt

[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: Do you insist? It's a small patch, and I need it as a precondition to posting the... *third* patch in this series, which adds the ns= parameter to utime and its brothers. (Most of the patch is test and doc; it really only adds about twenty lines of C.) ---

[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 Antoine Pitrou
Antoine Pitrou added the comment: > Attached is a second patch that adds keyword-only argument support to > PyArg_ParseTupleAndKeywords. This was developed in isolation. Please post that on a dedicated issue :) -- ___ Python tracker

[issue14326] IDLE - allow shell to support different locales

2012-03-15 Thread Roger Serwy
New submission from Roger Serwy : Per Martin's request, this issue has been separated from Issue14200. The IDLE shell presently has an effective locale of "BMP UTF8" due to a limitation in Tkinter, described in Issue12342. IDLE should support different output codecs, like "ascii" and "utf8".

[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: Attached is a second patch that adds keyword-only argument support to PyArg_ParseTupleAndKeywords. This was developed in isolation. The magic character is '$'; I would have used '*', but we already use '*' in the format string as a modifier to 'U' and 's' et

[issue14325] Stop using the garbage collector to manage the lifetime of the getargs.c freelist

2012-03-15 Thread Jean-Paul Calderone
Changes by Jean-Paul Calderone : -- keywords: +patch Added file: http://bugs.python.org/file24873/getargs.patch ___ Python tracker ___ ___

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

2012-03-15 Thread Mark Shannon
Mark Shannon added the comment: Could you try this new patch (with white space changes included)? -- Added file: http://bugs.python.org/file24872/yieldfrom.patch ___ Python tracker

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

2012-03-15 Thread Benjamin Peterson
Benjamin Peterson added the comment: Mercurial complains when trying to apply the patch: applying yieldfrom.patch patching file Lib/test/test_pep380.py Hunk #2 succeeded at 921 with fuzz 2 (offset 72 lines). abort: bad hunk #1 @@ -20,7 +20,6 @@ (7 7 7 6) -- __

[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 fbbf9c187662 by Matthias Klose in branch 'default': - Issue #14324: Fix configure tests for cross builds. http://hg.python.org/cpython/rev/fbbf9c187662 New changeset 29ee48f843ec by Matthias Klose in branch 'default': - Issue #14324: Fix configure

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

2012-03-15 Thread Matthias Klose
Matthias Klose added the comment: when configured --with(out)-computed-gotos for a cross, use this value instead of defaulting to no. -- Added file: http://bugs.python.org/file24871/computed-gotos.diff ___ Python tracker

[issue14200] Idle shell crash on printing non-BMP unicode character

2012-03-15 Thread Martin v . Löwis
Martin v. Löwis added the comment: > Is the following reasonable: The IDLE shell console has a locale of > "non-BMP utf8"? [BMP utf8] That's indeed the approach that Andrew and I were discussing. Unfortunately, there is no codec for it yet. We were discussing to add a "utf8bom" encoding to Pyt

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

2012-03-15 Thread Mark Shannon
Changes by Mark Shannon : Removed file: http://bugs.python.org/file24759/yieldfrom.patch ___ Python tracker ___ ___ Python-bugs-list mailing l

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

2012-03-15 Thread Mark Shannon
Mark Shannon added the comment: Updated Patch -- Added file: http://bugs.python.org/file24870/yieldfrom.patch ___ Python tracker ___

[issue14200] Idle shell crash on printing non-BMP unicode character

2012-03-15 Thread Martin v . Löwis
Martin v. Löwis added the comment: > The behavior of the console depends on its locale. IDLE has no > facility for changing the locale of the PyShell window. Should this > option be included somewhere? It may be remotely desirable to be able to set the terminal encoding in IDLE for debuggging p

[issue14200] Idle shell crash on printing non-BMP unicode character

2012-03-15 Thread Roger Serwy
Roger Serwy added the comment: The Tkinter Text widget is the output for the IDLE shell and it has the limitation imposed by Tcl/Tk of not handling non-BMP unicode characters. Is the following reasonable: The IDLE shell console has a locale of "non-BMP utf8"? If so, would it be reasonable t

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

2012-03-15 Thread Raymond Hettinger
Raymond Hettinger added the comment: The part of the patch for PySet_Add() is a reasonable improvement to the C API if it doesn't conflict with Martin's stable ABI effort. The question of whether to change the Python API requires much more thought and I'll do some research and evaluate it mor

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

2012-03-15 Thread Matthias Klose
Matthias Klose added the comment: when using gcc, use a compilation test for the cross build check for long long format. -- Added file: http://bugs.python.org/file24869/long-long-format.diff ___ Python tracker __

[issue14200] Idle shell crash on printing non-BMP unicode character

2012-03-15 Thread Andrew Svetlov
Andrew Svetlov added the comment: I think that doesn't make sense. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

[issue14325] Stop using the garbage collector to manage the lifetime of the getargs.c freelist

2012-03-15 Thread Jean-Paul Calderone
New submission from Jean-Paul Calderone : Allocating a Python list and a bunch of Capsules for each PyArg_ParseTuple call is expensive and unnecessarily complicated. The freelist never escapes getargs.c (if it ever did, it would be a bug). The same job can be accomplished with a normal C arra

[issue14280] packaging.pypi should not require checksums

2012-03-15 Thread Jim Fulton
Jim Fulton added the comment: I just clarified that 14279 doesn't imply local files. I'd be fine with a warning about lack of checksums for downloads. -- ___ Python tracker ___

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

2012-03-15 Thread Jim Fulton
Jim Fulton added the comment: Note that "ala a directory of files" wasn't meant to imply local files. It could be a directory of files served via a HTTP (or sftp) server. -- ___ Python tracker

[issue14156] argparse.FileType for '-' doesn't work for a mode of 'rb'

2012-03-15 Thread Matt Joiner
Matt Joiner added the comment: Steven, patch attached. I lost steam in the unittests with all the meta, suffice it that the names match the file descriptors of the stream sources. i.e. FileType('rb') would give a file with name=0, and so forth. My chosen method also allows other mode flags as

  1   2   >