[issue21547] '!s' formatting documentation bug

2014-05-20 Thread Joshua Landau
New submission from Joshua Landau: In the docs for 2.x about the formatting syntax: https://docs.python.org/2/library/string.html#format-string-syntax it says "Two conversion flags are currently supported: '!s' which calls str() on the value, and '!r' which calls repr()." but for uni

[issue12806] argparse: Hybrid help text formatter

2014-05-20 Thread paul j3
Changes by paul j3 : Added file: http://bugs.python.org/file35306/wrap_sample.py ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue12806] argparse: Hybrid help text formatter

2014-05-20 Thread paul j3
Changes by paul j3 : Removed file: http://bugs.python.org/file35236/wrap_sample.py ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue21546] int('\0') gives wrong error message

2014-05-20 Thread eryksun
eryksun added the comment: See issue 16741. This is fixed in 3.3, but 2.7 intentionally keeps the old behavior. -- nosy: +eryksun ___ Python tracker ___

[issue1191964] asynchronous Subprocess

2014-05-20 Thread STINNER Victor
STINNER Victor added the comment: @Josiah: Modifications of the asyncio module should be done first in the Tulip project because we try to keep the same code base in Tulip, Python 3.4 and 3.5. You may duplicate the code the avoid this dependency? For the documentation, I don't think that you n

[issue17421] Drop restriction that meta.__prepare__() must return a dict (subclass)

2014-05-20 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue21546] int('\0') gives wrong error message

2014-05-20 Thread STINNER Victor
STINNER Victor added the comment: It looks like the issue was already fixed in Python 3: Python 3.5.0a0 (default:61d9aa8be445, May 20 2014, 16:03:51) >>> int('a') Traceback (most recent call last): File "", line 1, in ValueError: invalid literal for int() with base 10: 'a' >>> int('\0a') Tra

[issue21088] curses addch() argument position reverses in Python3.4.0

2014-05-20 Thread Masayuki Yamamoto
Changes by Masayuki Yamamoto : -- nosy: -masamoto ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue21546] int('\0') gives wrong error message

2014-05-20 Thread Kurt Rose
New submission from Kurt Rose: int() ignores everything after a null byte when reporting an error message. Here you can see an example of how this manifests, and why could be a problem. Python 2.7.6 (default, Nov 10 2013, 19:24:18) [MSC v.1500 32 bit(Intel)] on win32 Type "help", "copyright",

[issue21545] Tutorial: examples and comment about mutation methods

2014-05-20 Thread Chris Rebert
Changes by Chris Rebert : -- nosy: +cvrebert ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue21540] PEP 8 should recommend "is not" and "not in"

2014-05-20 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue21540] PEP 8 should recommend "is not" and "not in"

2014-05-20 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Agreed! I'll update the PEP. Thanks. -- assignee: -> barry ___ Python tracker ___ ___ Python-bug

[issue21545] Tutorial: examples and comment about mutation methods

2014-05-20 Thread Terry J. Reedy
New submission from Terry J. Reedy: The Tutorial section More on Lists https://docs.python.org/3.4/tutorial/datastructures.html#more-on-lists includes list.pop but ignores it in the example and final comment. I think the examples should be augmented and the comment modified. 1. (simplest) End

[issue21544] Spam

2014-05-20 Thread Berker Peksag
Changes by Berker Peksag : -- nosy: -bill.little resolution: -> not a bug status: open -> closed title: Did y ou call me -> Spam ___ Python tracker ___

[issue21544] Spam

2014-05-20 Thread Berker Peksag
Changes by Berker Peksag : -- Removed message: http://bugs.python.org/msg218856 ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue21542] pprint doesn't work well for counters, sometimes shows them like a dict

2014-05-20 Thread Ned Deily
Changes by Ned Deily : -- nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue21538] plistlib unable to load iOS7 Safari History.plist

2014-05-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Issue shouldn't be closed as resolved until patch is committed. Ronald, is it good to you? -- resolution: fixed -> status: closed -> open ___ Python tracker ___

[issue21543] json library fails to serialize objects such as datetime

2014-05-20 Thread R. David Murray
Changes by R. David Murray : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python

[issue21538] plistlib unable to load iOS7 Safari History.plist

2014-05-20 Thread John Lehr
John Lehr added the comment: Patch plistlib_read_refs_2.patch corrects load error for iOS Safari History.plist. -- resolution: -> fixed status: open -> closed ___ Python tracker __

[issue21543] json library fails to serialize objects such as datetime

2014-05-20 Thread Dann Ke
Dann Ke added the comment: I was reading the older 2.7 docs and it didn't click that default() was what I wanted. Thank you for clarifying. On Tue, May 20, 2014 at 10:09 AM, akira wrote: > > akira added the comment: > > json module already allows you to customize the serialization: see > *defa

[issue21543] json library fails to serialize objects such as datetime

2014-05-20 Thread akira
akira added the comment: json module already allows you to customize the serialization: see *default* parameter for json.dumps [1] [1] https://docs.python.org/3/library/json.html#json.dump -- nosy: +akira ___ Python tracker

[issue21528] Fix a number of typos in the documentation

2014-05-20 Thread Donald Stufft
Changes by Donald Stufft : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue21528] Fix a number of typos in the documentation

2014-05-20 Thread Roundup Robot
Roundup Robot added the comment: New changeset db302b88fdb6 by Donald Stufft in branch 'default': Fix Issue #21528 - Fix documentation typos http://hg.python.org/cpython/rev/db302b88fdb6 -- nosy: +python-dev ___ Python tracker

[issue21538] plistlib unable to load iOS7 Safari History.plist

2014-05-20 Thread John Lehr
John Lehr added the comment: Serhiy, I applied the patch and can confirm this is a fix (three previous failing loads of History.plists from three different devices now load successfully). Thank you, I would not likely have identified the issue myself. On Mon, May 19, 2014 at 11:08 PM, Serhiy St

[issue21543] json library fails to serialize objects such as datetime

2014-05-20 Thread Dann Ke
New submission from Dann Ke: I'm using the json library to serialize objects out for web use. Whenever I serialize a datetime or other included python library object (uuid as another example), it fails with TypeError: datetime.datetime(2014, 5, 20, 9, 37, 56, 133627) is not JSON serializable

[issue21542] pprint doesn't work well for counters, sometimes shows them like a dict

2014-05-20 Thread Ram Rachum
New submission from Ram Rachum: pprint doesn't work well for counters, sometimes shows them like a dict Python 3.4.0 (v3.4.0:04f714765c13, Mar 16 2014, 19:25:23) [MSC v.1600 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> dd={

[issue21161] list comprehensions don't see local variables in pdb in python3

2014-05-20 Thread Xavier de Gaye
Xavier de Gaye added the comment: The patch fails to invoke exec() with the locals argument set to the current frame locals. The attached patch fixes this, and test_pdb runs now fine with it. -- Added file: http://bugs.python.org/file35305/default.patch

[issue21541] Provide configure option --with-ssl for compilation with custom openssl

2014-05-20 Thread Pavel Machyniak
Pavel Machyniak added the comment: This is the proposed patch (compared 2 trees src & upd where src is latest release 3.4.1, upd is my working). Changes are in: configure, setup.py. Please review it and hopefully integrate to future releases. -- keywords: +patch versions: +Python 3.4 -

[issue21540] PEP 8 should recommend "is not" and "not in"

2014-05-20 Thread Ian Cordasco
Changes by Ian Cordasco : -- nosy: +icordasc ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue21541] Provide configure option --with-ssl for compilation with custom openssl

2014-05-20 Thread R. David Murray
R. David Murray added the comment: Aren't things like this normally accomplished by editing Modules/Setup? Granted, that's not the most convenient build API... -- nosy: +r.david.murray ___ Python tracker

[issue21541] Provide configure option --with-ssl for compilation with custom openssl

2014-05-20 Thread Pavel Machyniak
New submission from Pavel Machyniak: There is no easy way to build python with custom openssl build. This can lead to miscellaneous problems (like segmentation faults) in various situations/configurations (see eg. http://stackoverflow.com/questions/22409092/coredump-when-compiling-python-with-

[issue5575] Add env vars for controlling building sqlite, hashlib and ssl

2014-05-20 Thread Pavel Machyniak
Pavel Machyniak added the comment: Unfortunately this patch will not work if there is other (system) openssl installed in the default locations (`/usr/include`, `/usr/lib`) because this patch only add another path at the end of the search list. Instead of this I will make a ticket for providi

[issue21540] PEP 8 should recommend "is not" and "not in"

2014-05-20 Thread Steven Myint
Changes by Steven Myint : -- nosy: +myint ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.o

[issue13866] {urllib, urllib.parse}.urlencode should not use quote_plus

2014-05-20 Thread Facundo Batista
Changes by Facundo Batista : -- stage: resolved -> patch review versions: +Python 3.4 -Python 3.3 ___ Python tracker ___ ___ Python-bu

[issue21539] pathlib's Path.mkdir() should allow for "mkdir -p" functionality

2014-05-20 Thread Berker Peksag
Changes by Berker Peksag : -- keywords: +patch nosy: +berker.peksag Added file: http://bugs.python.org/file35303/issue21539.diff ___ Python tracker ___ __

[issue21539] pathlib's Path.mkdir() should allow for "mkdir -p" functionality

2014-05-20 Thread Antoine Pitrou
Antoine Pitrou added the comment: I think we can a new `exist_ok` parameter indeed. It should probably be False by default, though. -- versions: +Python 3.5 ___ Python tracker _

[issue20611] socket.create_connection() doesn't handle EINTR properly

2014-05-20 Thread Antoine Pitrou
Antoine Pitrou added the comment: @tholzer, to clarify Charles-François's comment: EINTR should be handled in socket.connect() and socket.getaddrinfo() (the two syscalls called by create_connection(), AFAIR). -- ___ Python tracker

[issue21539] pathlib's Path.mkdir() should allow for "mkdir -p" functionality

2014-05-20 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue21527] concurrent.futures.ThreadPoolExecutor does not use a default value

2014-05-20 Thread Josh Rosenberg
Josh Rosenberg added the comment: +1. Makes it easier to swap Executors (which is a big selling point for the Executor framework), and number of cores is a reasonable default value. -- nosy: +josh.rosenberg ___ Python tracker

[issue21477] Idle: improve idle_test.htest

2014-05-20 Thread Saimadhav Heblikar
Changes by Saimadhav Heblikar : Added file: http://bugs.python.org/file35302/about+classbrowser+cfghelpsrcedit+pathbrowser+textview.diff ___ Python tracker ___ _

[issue21477] Idle: improve idle_test.htest

2014-05-20 Thread Saimadhav Heblikar
Changes by Saimadhav Heblikar : Removed file: http://bugs.python.org/file35301/about+classbrowser+cfghelpsrcedit+pathbrowser+textview.diff ___ Python tracker ___ ___

[issue21477] Idle: improve idle_test.htest

2014-05-20 Thread Saimadhav Heblikar
Saimadhav Heblikar added the comment: Adds spec dicts for aboutDialog, ClassBrowser, PathBrowser, textView and configHelpSourceEdit and modifies the related modules appropriately. The spec dicts(and the tests relating to) for editorwindow and help dialog have not been modified in this patch. T

[issue21052] Consider dropping ImportWarning for empty sys.path_hooks and sys.meta_path

2014-05-20 Thread Simon de Vlieger
Changes by Simon de Vlieger : -- nosy: +ikanobori ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.