[issue15775] Add StopParser() to expat

2012-09-06 Thread Nemeskey Dávid
Nemeskey Dávid added the comment: Amaury: see my previous comment. There are two problems with the method you proposed: 1. It is not mentioned in the documentation that exceptions are propagated through parse(). 2. Exceptions usually mean that an error has happened, and is not the preferred w

[issue15775] Add StopParser() to expat

2012-09-06 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: Your first point is true, even if the Python zen (try "import this") states that "Errors should never pass silently." For your second point: exceptions are a common thing in Python code. This is similar to the EAFP principle http://docs.python.org/gloss

[issue15868] leak in bytesio.c

2012-09-06 Thread Stefan Krah
New submission from Stefan Krah: Coverity found a leak in bytesio.c. Patch attached. -- components: Extension Modules files: bytesio_leak.diff keywords: patch messages: 169907 nosy: pitrou, skrah priority: normal severity: normal status: open title: leak in bytesio.c type: resource usage

[issue11715] Building Python on multiarch Debian and Ubuntu

2012-09-06 Thread Ezio Melotti
Ezio Melotti added the comment: Today I got the same problem on 3.2 too. I made a distclean and recompiled and got: Python build finished, but the necessary bits to build these modules were not found: _curses_curses_panel _dbm _gdbm _sqlite3 _ssl _tkinter

[issue15866] encode(..., 'xmlcharrefreplace') produces entities for surrogate pairs

2012-09-06 Thread Ezio Melotti
Ezio Melotti added the comment: Attached patch against 3.2 seems to fix the problem. -- keywords: +patch stage: -> patch review versions: +Python 3.2 Added file: http://bugs.python.org/file27134/issue15866.diff ___ Python tracker

[issue15866] encode(..., 'xmlcharrefreplace') produces entities for surrogate pairs

2012-09-06 Thread Ezio Melotti
Ezio Melotti added the comment: Note that there's similar code in charmap_encoding_error, PyUnicode_EncodeCharmap, PyUnicode_TranslateCharmap, and PyUnicode_EncodeDecimal, however I'm not sure how to reach these paths. -- nosy: +lemburg ___ Python

[issue15869] Include .desktop file and icon

2012-09-06 Thread Dominik George
New submission from Dominik George: As a graphical application, IDLE, is shipped, a .desktop file should be included for intallation to /usr/share/applications. Furthermore, a 16x16 pixel version in XPM format of the Python icon should be shipped to accompany the menu entries. Attached is a t

[issue15866] encode(..., 'xmlcharrefreplace') produces entities for surrogate pairs

2012-09-06 Thread STINNER Victor
STINNER Victor added the comment: Thanks to the PEP 393, this issue is already fixed in Python 3.3. $ ./python Python 3.3.0rc1+ (default:ba2c1def3710+, Sep 3 2012, 23:20:25) [GCC 4.6.3 20120306 (Red Hat 4.6.3-2)] on linux >>> ( u'\U0001f49d' ).encode('ascii', errors='xmlcharrefreplace') b'💝'

[issue15775] Add StopParser(), ResumeParser, and GetParsingStatus to expat

2012-09-06 Thread Martin v . Löwis
Martin v. Löwis added the comment: Dávid: Another (similar) example is the Python for loop. In it's original form, it would increase an index and invoke __getitem__ until that *raised* IndexError. In the current definition, it converts the iterated-over object into an iterator, and keeps calli

[issue1818] Add named tuple reader to CSV module

2012-09-06 Thread Ahsan Nawroj
Changes by Ahsan Nawroj : -- nosy: +ainur0160 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue1818] Add named tuple reader to CSV module

2012-09-06 Thread Ahsan Nawroj
Changes by Ahsan Nawroj : -- nosy: -ainur0160 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue11715] Building Python on multiarch Debian and Ubuntu

2012-09-06 Thread Ezio Melotti
Ezio Melotti added the comment: 2.7 is affected too: Python build finished, but the necessary bits to build these modules were not found: _bsddb _curses_curses_panel _sqlite3 _ssl _tkinter bsddb185 bz2dbm

[issue14531] Backtrace should not attempt to open file

2012-09-06 Thread Ahsan Nawroj
Changes by Ahsan Nawroj : -- nosy: +ainur0160 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue15867] It's hard to decypher how to build off of the provided objects from the importlib docs

2012-09-06 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +brett.cannon, ncoghlan ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue15863] Fine-grained info about Python versions which support changes introduced in micro releases

2012-09-06 Thread Andrew Svetlov
Andrew Svetlov added the comment: Hash randomization is security patch. It is applied to 2.6.8, 2.7.3, 3.2.3 and 3.3. Python doc should not enumerate all affected releases. For example, if you read docs for 2.6 branch it shows you 2.6.8 version only and that's ok. -- nosy: +asvetlov _

[issue15863] Fine-grained info about Python versions which support changes introduced in micro releases

2012-09-06 Thread Alexander Konovalenko
Alexander Konovalenko added the comment: Andrew, I don't get it. :( Why not? The docs for Python 2.7 generally inform the reader in which Python version every feature appeared. That's really helpful if your code should run on earlier version of Python. You don't have to dig through the docs fo

[issue15591] when building the extensions, stdout is lost when stdout is redirected

2012-09-06 Thread Christian Heimes
Christian Heimes added the comment: The fix doesn't work for me. With "make -s" I still see the output to stdout. Also there are much simpler ways to test for MAKEFLAGS: ifneq (,$(findstring s,$(MAKEFLAGS))) QUIET="-q" else QUIET="" endif then use $(QUIET) in the call to setup.py

[issue15591] when building the extensions, stdout is lost when stdout is redirected

2012-09-06 Thread Matthias Klose
Matthias Klose added the comment: @benjamin: no, the extensions were never built in parallel @christian: no, that again would match the `s' when you have something like --jobserver in MAKEFLAGS. -- ___ Python tracker

[issue15863] Fine-grained info about Python versions which support changes introduced in micro releases

2012-09-06 Thread Andrew Svetlov
Andrew Svetlov added the comment: Well, I can try to make patch. Please note: versionadded tag accepts only single version argument, you have to use couple of tags which looks weird. -- ___ Python tracker

[issue15591] when building the extensions, stdout is lost when stdout is redirected

2012-09-06 Thread Christian Heimes
Christian Heimes added the comment: Ah, got it. GNU sorts the arguments in MAKEFLAGS. The "s" flag is always in the first word. $ make -j4 -s "s --jobserver-fds=3,4 -j" $ make --quiet -j4 "s --jobserver-fds=3,4 -j" This make code works well for me: ifeq (s,$(findstring s,$(word 1,$(MAKEFLAGS

[issue15591] when building the extensions, stdout is lost when stdout is redirected

2012-09-06 Thread Matthias Klose
Matthias Klose added the comment: even if you pass other options to make, and -s not as the first flag? and does this work for other makes different than GNU make too? But maybe we already require GNU make. -- ___ Python tracker

[issue15591] when building the extensions, stdout is lost when stdout is redirected

2012-09-06 Thread Christian Heimes
Christian Heimes added the comment: The lines under each of my examples are the content of $MAKEFLAGS. It works when I pass the option in a different order and even with alternative spellings for -s like --quiet. It's always the "s" flag: $ make -s --jobs=4 "s --jobserver-fds=3,4 -j" $ make

[issue15867] It's hard to decypher how to build off of the provided objects from the importlib docs

2012-09-06 Thread Eric Snow
Eric Snow added the comment: As far as the import system goes, Barry Warsaw added a really nice page to the language reference[1]. However, it sounds like your concern is with taking advantage of the tools that importlib provides. First of all, a good thing to recognize is that importlib Pyth

[issue15868] leak in bytesio.c

2012-09-06 Thread Benjamin Peterson
Benjamin Peterson added the comment: LGTM -- nosy: +benjamin.peterson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue15870] PyType_FromSpec should take metaclass as an argument

2012-09-06 Thread Alexander Belopolsky
New submission from Alexander Belopolsky: PyType_FromSpec() is a convenient function to create types dynamically in C extension modules, but its usefulness is limited by the fact that it creates new types using the default metaclass. I suggest adding a new C API function PyObject *PyType_From

[issue15867] It's hard to decypher how to build off of the provided objects from the importlib docs

2012-09-06 Thread Brett Cannon
Brett Cannon added the comment: First off, what you want to do isn't easy to begin with. =) You are right that you want get_code() and that SourceLoader is what you want. The problem is that importlib inherited PEP 302s APIs, and there are so many that the docs don't repeat themselves in terms

[issue15591] when building the extensions, stdout is lost when stdout is redirected

2012-09-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset 048e13546a7c by Christian Heimes in branch '3.2': Issue #15591: run ctypes' configure in quiet mode when setup.py runs silently http://hg.python.org/cpython/rev/048e13546a7c New changeset e5569b03a287 by Christian Heimes in branch 'default': Issue #

[issue15870] PyType_FromSpec should take metaclass as an argument

2012-09-06 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: The patch is a bit light: see how type_new also computes the metaclass from the base classes. -- nosy: +amaury.forgeotdarc ___ Python tracker ___

[issue15870] PyType_FromSpec should take metaclass as an argument

2012-09-06 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Thu, Sep 6, 2012 at 12:44 PM, Amaury Forgeot d'Arc wrote: > The patch is a bit light: see how type_new also computes the metaclass from > the base classes. This was intentional. I was looking for a lightweight facility to create heap types. I know m

[issue15871] Online docs: make index search always available.

2012-09-06 Thread Terry J. Reedy
New submission from Terry J. Reedy: For the Windows Help version of the docs, the left side box has 4 tabs: Contents, Index, Search, Favorites. I now mostly use the Index tab. That means that I can enter an indexed keyword, topic, or object name and jump from place to place in the docs. The l

[issue15871] Online docs: make index search always available.

2012-09-06 Thread R. David Murray
R. David Murray added the comment: The index is available on every page via the link in the upper right corner. An index-specific search might be interesting, though I usually just click the 'index on one page' link and do a text search. But that is a two step process and doesn't give a nice

[issue15871] Online docs: make index search always available.

2012-09-06 Thread Ezio Melotti
Ezio Melotti added the comment: I find the current search quite useless. I think index search with a fallback on text search when there are no results would be better. -- ___ Python tracker ___

[issue15642] Integrate pickle protocol version 4 GSoC work by Stefan Mihaila

2012-09-06 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Are there also some known techniques on tracking down memory leaks? Nothing more than the usual debugging techniques. It is more of a matter of taste whether you like to add print() (or printf ;-)) calls, or set breakpoints in an actual debugger. > i.e. pic

[issue15871] Online docs: make index search always available.

2012-09-06 Thread Terry J. Reedy
Terry J. Reedy added the comment: I am not the only person who finds the 4 lines of Quick search [ ] [go] Enter search terms or a module, class or function name. more eye-catching than the more useful modules | index in th

[issue15872] shutil.rmtree(..., ignore_errors=True) doesn't ignore all errors

2012-09-06 Thread Jakub Wilk
New submission from Jakub Wilk: This used to work correctly in Python 3.2: Python 3.3.0rc1 (default, Aug 29 2012, 00:39:20) [GCC 4.7.1] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import shutil >>> shutil.rmtree('/etc/fstab', ignore_errors=True) Traceback

[issue15871] Online docs: make index search always available.

2012-09-06 Thread Stefan Krah
Stefan Krah added the comment: I like the quick search: It works very well for function names. For the use cases mentioned here I use Google. I never use the index, so for me personally the positioning of the quick search box is perfect. -- nosy: +skrah

[issue15861] ttk.Treeview "unmatched open brace in list"

2012-09-06 Thread Bryan Oakley
Bryan Oakley added the comment: I gave myself an hour or so to play around with this, and the crux of the matter seems to be in the function `_format_optdict()` which converts a dictionary of options and values into something suitable to pass to `tk.call()`. However, I think the same bug is in

[issue15870] PyType_FromSpec should take metaclass as an argument

2012-09-06 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- nosy: +Robin.Schreiber ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue7682] Optimisation of if with constant expression

2012-09-06 Thread STINNER Victor
STINNER Victor added the comment: I'm working on a different approach: an AST optimizer. It is already able to replace "if __debug__ and x: " with "if x: ..." ("pythonenv" option must be enabled). https://bitbucket.org/haypo/astoptimizer/ -- nosy: +haypo __

[issue15870] PyType_FromSpec should take metaclass as an argument

2012-09-06 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: > see how type_new also computes the metaclass from the base classes. As you can see from my first message, I originally considered PyType_FromSpecEx(PyObject *meta, PyType_Spec *spec) without bases. (In fact I was unaware of the recent addition of PyTy

[issue15873] "datetime" cannot parse ISO 8601 dates and times

2012-09-06 Thread John Nagle
New submission from John Nagle: The datetime module has support for output to a string of dates and times in ISO 8601 format ("2012-09-09T18:00:00-07:00"), with the object method "isoformat([sep])". But there's no support for parsing such strings. A string to datetime class method should be

[issue15870] PyType_FromSpec should take metaclass as an argument

2012-09-06 Thread Martin v . Löwis
Martin v. Löwis added the comment: What is your use case for this API? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue15873] "datetime" cannot parse ISO 8601 dates and times

2012-09-06 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +belopolsky ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue15873] "datetime" cannot parse ISO 8601 dates and times

2012-09-06 Thread R. David Murray
Changes by R. David Murray : -- versions: -Python 2.6, Python 2.7, Python 3.1, Python 3.2, Python 3.3 ___ Python tracker ___ ___ Pyth

[issue15873] "datetime" cannot parse ISO 8601 dates and times

2012-09-06 Thread R. David Murray
Changes by R. David Murray : -- nosy: +r.david.murray ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue15870] PyType_FromSpec should take metaclass as an argument

2012-09-06 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Sep 6, 2012, at 5:10 PM, Martin v. Löwis wrote: > > What is your use case for this API? > I can describe my use case, but it is somewhat similar to ctypes. I searched the tracker for a PEP 3121 refactoring applied to ctypes and could not find an

[issue15870] PyType_FromSpec should take metaclass as an argument

2012-09-06 Thread Martin v . Löwis
Martin v. Löwis added the comment: If it's very special, I'm -0 on this addition. This sounds like this is something very few people would ever need, and they can learn to write more complicated code to achieve the same effect. Convenience API exists to make the common case convenient. I'm -1

[issue11715] Building Python on multiarch Debian and Ubuntu

2012-09-06 Thread Matthias Klose
Matthias Klose added the comment: I think that the ma.diff can safely go to the 2.7 and 3.2 branches. For the other extensions which are not built you are probably missing the build dependencies (try: apt-get build-dep python2.7 python3.2). -- ___ P

[issue11715] Building Python on multiarch Debian and Ubuntu

2012-09-06 Thread Ezio Melotti
Ezio Melotti added the comment: The other missing extensions are not a problem, as long as the one that I need and already have (e.g. readline, _ssl) are built correctly. -- ___ Python tracker

[issue15298] _sysconfigdata is generated in srcdir, not builddir

2012-09-06 Thread Matthias Klose
Matthias Klose added the comment: looks fine. from my point of view this should go to the 3.3 branch after the 3.3.0 release, and to the trunk. -- keywords: -needs review ___ Python tracker __

[issue15872] shutil.rmtree(..., ignore_errors=True) doesn't ignore all errors

2012-09-06 Thread Alessandro Moura
Alessandro Moura added the comment: Yes, confirmed. When checking whether the provided path is a directory, rmtree does not check whether ignore_errors is set. According to the docstring, "If ignore_errors is set, errors are ignored". Presumably this means any error, in which case this is not

[issue15830] make -s no longer silences output from setup.py

2012-09-06 Thread Matthias Klose
Matthias Klose added the comment: now fixed, see http://bugs.python.org/issue15591#msg169927 -- resolution: -> fixed status: open -> closed ___ Python tracker ___ __

[issue15830] make -s no longer silences output from setup.py

2012-09-06 Thread Christian Heimes
Christian Heimes added the comment: Matthias: Not yet, my checkin didn't fix the issue. I've just added a minor modification to setup.py that forwards the -q option to ctypes' configure script. -- nosy: +christian.heimes ___ Python tracker

[issue15870] PyType_FromSpec should take metaclass as an argument

2012-09-06 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Sep 6, 2012, at 6:25 PM, Martin v. Löwis wrote: > I'm -1 on calling it PyType_FromSpecEx. I find it encouraging that you commented on the choice of name. :-) I can live with PyType_FromMetatypeAndSpec and leave out bases. PyType_FromTypeAndSpec is

[issue15867] It's hard to decypher how to build off of the provided objects from the importlib docs

2012-09-06 Thread Chris Jerdonek
Changes by Chris Jerdonek : -- nosy: +cjerdonek ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue15873] "datetime" cannot parse ISO 8601 dates and times

2012-09-06 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: %z format is supported, but it cannot accept colon in TZ offset. It can parse offsets like -0600 just fine. What OP is looking for is the GNU date %:z format which datetime does not support. For ISO 8601 compliance, however I think we need a way to sp

[issue14468] Update cloning guidelines in devguide

2012-09-06 Thread Mike Hoy
Changes by Mike Hoy : -- nosy: -mikehoy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org

[issue1185124] pydoc doesn't find all module doc strings

2012-09-06 Thread Mike Hoy
Changes by Mike Hoy : -- nosy: -mikehoy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue15591] when building the extensions, stdout is lost when stdout is redirected

2012-09-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset b9261dd34289 by Christian Heimes in branch '3.2': Issue #15591 and Issue #11715: silence output of setup.py when make is run with -s option. http://hg.python.org/cpython/rev/b9261dd34289 New changeset fcc629208842 by Christian Heimes in branch 'def

[issue11715] Building Python on multiarch Debian and Ubuntu

2012-09-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset b9261dd34289 by Christian Heimes in branch '3.2': Issue #15591 and Issue #11715: silence output of setup.py when make is run with -s option. http://hg.python.org/cpython/rev/b9261dd34289 New changeset fcc629208842 by Christian Heimes in branch 'def

[issue15870] PyType_FromSpec should take metaclass as an argument

2012-09-06 Thread Antoine Pitrou
Antoine Pitrou added the comment: This API may make it easier to declare ABCs in C. -- nosy: +pitrou ___ Python tracker ___ ___ Python

[issue15591] when building the extensions, stdout is lost when stdout is redirected

2012-09-06 Thread Christian Heimes
Changes by Christian Heimes : -- nosy: +brett.cannon resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bu

[issue15872] shutil.rmtree(..., ignore_errors=True) doesn't ignore all errors

2012-09-06 Thread Chris Jerdonek
Chris Jerdonek added the comment: Can you also provide a test? -- nosy: +cjerdonek ___ Python tracker ___ ___ Python-bugs-list mailing

[issue15870] PyType_FromSpec should take metaclass as an argument

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

[issue15873] "datetime" cannot parse ISO 8601 dates and times

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

[issue15872] shutil.rmtree(..., ignore_errors=True) doesn't ignore all errors

2012-09-06 Thread Alessandro Moura
Alessandro Moura added the comment: Added test to patch. -- Added file: http://bugs.python.org/file27139/shutil.patch ___ Python tracker ___ _

[issue15874] argparse cannot parse bash variable arguments in file-given arguments

2012-09-06 Thread Nat Hillard
New submission from Nat Hillard: When using the argparse argument fromfile_prefix_chars to obtain command line arguments from a file, it is not possible to make use of bash environment variables within this file. Ideally one would be able to `export BAR='/Users/x/Desktop/bar'`, and then give

[issue15591] when building the extensions, stdout is lost when stdout is redirected

2012-09-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset 8cd6acffbcb9 by Christian Heimes in branch '2.7': Issue #15591 and Issue #11715: silence output of setup.py when make is run with -s option. http://hg.python.org/cpython/rev/8cd6acffbcb9 -- ___ Python tr

[issue11715] Building Python on multiarch Debian and Ubuntu

2012-09-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset 8cd6acffbcb9 by Christian Heimes in branch '2.7': Issue #15591 and Issue #11715: silence output of setup.py when make is run with -s option. http://hg.python.org/cpython/rev/8cd6acffbcb9 -- ___ Python tr

[issue11715] Building Python on multiarch Debian and Ubuntu

2012-09-06 Thread Christian Heimes
Christian Heimes added the comment: Sorry for the noise! I confused two tickets. The checkin should have referred to #15830 and #15591 -- ___ Python tracker ___

[issue15871] Online docs: make index search always available.

2012-09-06 Thread Terry J. Reedy
Terry J. Reedy added the comment: 'print' *is* a function name ;-) which also happens to be a common word. If the current search box gives you the page where the function is defined, searching the index first should give you the same page. -- ___ Py

[issue15867] It's hard to decypher how to build off of the provided objects from the importlib docs

2012-09-06 Thread Nick Coghlan
Nick Coghlan added the comment: One specific change we should make is that the "see also" at the start of the 3.3 importlib docs should link to the new section of the language reference, rather than Guido's packaging essay. We can probably also cull that long list of PEPs, moving it to the end

[issue15875] tarfile may not make @LongLink for non-ascii character

2012-09-06 Thread Manuke
New submission from Manuke: When I will make a GNU tar-file with 'tarfile', @LongLink may not be made though the name of the archived-file is long, if the name uses non-ascii characters. In tarfile.py, the check code of the filename length is described as follows now: tarfile.py: 1032 <

[issue15874] argparse cannot parse bash variable arguments in file-given arguments

2012-09-06 Thread R. David Murray
R. David Murray added the comment: I'm not sure this is a good idea. $BAR is supported on the command line because your shell supports it. To support it in files, argparse would have to (re)implement shell parsing, and while we do have a parser in the stdlib that can do some of this (shlex),

[issue15873] "datetime" cannot parse ISO 8601 dates and times

2012-09-06 Thread John Nagle
John Nagle added the comment: Re: "%z format is supported". That's platform-specific; the actual parsing is delegated to the C library. It's not in Python 2.7 / Win32: ValueError: 'z' is a bad directive in format '%Y-%m-%dT%H:%M:%S%z' It really shouldn't be platform-specific; the underlyin

[issue15676] mmap: add empty file check prior to offset check

2012-09-06 Thread Steven Willis
Steven Willis added the comment: Here's a patch for 2.7. I don't know if it cleanly applies to the rest. -- keywords: +patch Added file: http://bugs.python.org/file27140/issue15676.patch ___ Python tracker

[issue15873] "datetime" cannot parse ISO 8601 dates and times

2012-09-06 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Thu, Sep 6, 2012 at 9:51 PM, John Nagle wrote: > It's not in Python 2.7 / Win32. Python 2.x series is closed and cannot accept new features. Both %z and fixed offset tzinfo subclass are implemented in 3.2. --

[issue15874] argparse cannot parse shell variable arguments in file-given arguments

2012-09-06 Thread Nat Hillard
Nat Hillard added the comment: Indeed these are all valid points, and as a zsh user myself I certainly considered the alternative shell issue. That said, if it were at all possible, through a combination of os.environ / shlex, subprocess, and even `source` if necessary, to offload this interpr

[issue15873] "datetime" cannot parse ISO 8601 dates and times

2012-09-06 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I am attaching a quick python only prototype for the proposed feature. My goal is to make date/time objects behave like numeric types for which constructors accept strings produced by str(). Since str() format is ISO 8601, it is natural to accept ISO 8

[issue12014] str.format parses replacement field incorrectly

2012-09-06 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- nosy: +belopolsky ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue15520] Document datetime.timestamp() in 3.3 What's New

2012-09-06 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Added in 7ca6b3a16e15 -- nosy: +belopolsky resolution: -> out of date status: open -> closed ___ Python tracker ___ _

[issue5023] Segfault in datetime.time.strftime("%z")

2012-09-06 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- status: pending -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

[issue15870] PyType_FromSpec should take metaclass as an argument

2012-09-06 Thread Martin v . Löwis
Martin v. Löwis added the comment: As for declaring ABCs: I don't think the API is necessary, or even helps. An ABC is best created by *calling* ABCMeta, with the appropriate name, a possibly-empty bases tuple, and a dict. What FromSpec could do is to fill out slots with custom functions, whic

[issue15876] test_curses refleak

2012-09-06 Thread Ross Lagerwall
New submission from Ross Lagerwall: [1/1] test_curses beginning 6 repetitions 123456 . test_curses leaked [1, 1, 1] references, sum=3 1 test failed: test_curses [154814 refs] -- assignee: rosslagerwall messages: 169973 nosy: rosslagerwall priority: low severity: normal status: open t

[issue15877] xml.dom.minidom cannot parse ISO-2022-JP

2012-09-06 Thread Dan Callaghan
New submission from Dan Callaghan: Python 2.7.3 (default, Jul 24 2012, 10:05:38) [GCC 4.7.0 20120507 (Red Hat 4.7.0-5)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> c = u'\u65e5\u672c\u8a9e' >>> import xml.dom.minidom Encoded as UTF-8, everything is fine:

[issue15876] test_curses refleak

2012-09-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset c82e3a6553fc by Ross Lagerwall in branch 'default': Issue #15876: Fix a refleak in the curses module http://hg.python.org/cpython/rev/c82e3a6553fc -- nosy: +python-dev ___ Python tracker

[issue15876] test_curses refleak

2012-09-06 Thread Ross Lagerwall
Ross Lagerwall added the comment: This didn't get picked up by Antoine's daily refleak test run because test curses only runs when stdout is a TTY. -- ___ Python tracker ___ ___