[issue16612] Integrate "Argument Clinic" into CPython trunk

2013-10-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > If you redirect stuff into a second file then you have way more points of failure--the files could get out sync, for example. Clinic can define a macro with a random value in a main file before including generated file and check this value by preprocessor i

[issue19286] error: can't copy '': doesn't exist or not a regular file

2013-10-18 Thread Jason R. Coombs
New submission from Jason R. Coombs: On Python 2.7 and 3.3, if the package_data glob happens to match a directory, it will trigger this error during build: error: can't copy '/': doesn't exist or not a regular file It seems that package_data is not very smart about filtering out directories,

[issue16803] Make test_import & test_importlib run tests under both _frozen_importlib and importlib._bootstrap

2013-10-18 Thread Roundup Robot
Roundup Robot added the comment: New changeset 66e219519279 by Brett Cannon in branch 'default': Issue #16803: Have test_importlib.test_locks use frozen and source http://hg.python.org/cpython/rev/66e219519279 -- ___ Python tracker

[issue19286] error: can't copy '': doesn't exist or not a regular file

2013-10-18 Thread Jason R. Coombs
Jason R. Coombs added the comment: The attached example minimally replicates the issue. -- Added file: http://bugs.python.org/file32210/example.zip ___ Python tracker ___ ___

[issue16803] Make test_import & test_importlib run tests under both _frozen_importlib and importlib._bootstrap

2013-10-18 Thread Roundup Robot
Roundup Robot added the comment: New changeset 862043d74fae by Brett Cannon in branch 'default': Issue #16803: Move test_importlib.test_util to use both frozen and http://hg.python.org/cpython/rev/862043d74fae -- ___ Python tracker

[issue19281] add __objclass__ to the docs

2013-10-18 Thread CliffM
Changes by CliffM : -- nosy: +CliffM ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/ma

[issue14881] multiprocessing.dummy craches when self._parent._children does not exist

2013-10-18 Thread Andres Riancho
Andres Riancho added the comment: Is this a duplicate for http://bugs.python.org/issue10015 #10015 ? -- nosy: +Andres.Riancho ___ Python tracker ___ _

[issue19287] __contains__() of dbm.ndbm databases fails with str

2013-10-18 Thread Arfrever Frehtes Taifersar Arahesis
New submission from Arfrever Frehtes Taifersar Arahesis: __contains__() of dbm.ndbm databases fails with str, probably since 8beaa9a37387. This is a regression in Python 3.3. $ python3.2 -c 'import dbm.ndbm; db=dbm.ndbm.open("/tmp/db1", "c"); db["key"]="value"; print(b"key" in db); print("key

[issue19285] test_asyncio failures on FreeBSD

2013-10-18 Thread Guido van Rossum
Guido van Rossum added the comment: Lgtm. Check it in if you can, otherwise I'll take care of it later. --Guido van Rossum (sent from Android phone) On Oct 18, 2013 11:51 AM, "Stefan Krah" wrote: > > Changes by Stefan Krah : > > > -- > keywords: +patch > Added file: http://bugs.python.

[issue19288] __contains__() of dbm.gnu databases fails with str

2013-10-18 Thread Arfrever Frehtes Taifersar Arahesis
New submission from Arfrever Frehtes Taifersar Arahesis: __contains__() of dbm.gnu databases fails with str. This is inconsistent with other databases (dbm.ndbm (issue #19287) and dbm.dumb). $ python3.2 -c 'import dbm.ndbm; db=dbm.ndbm.open("/tmp/ndbm_db", "c"); db["key"]="value"; print(b"ke

[issue19281] add __objclass__ to the docs

2013-10-18 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue10015] Creating a multiprocess.pool.ThreadPool from a child thread blows up.

2013-10-18 Thread Richard Oudkerk
Changes by Richard Oudkerk : -- nosy: +sbt ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.

[issue17576] PyNumber_Index() is not int-subclass friendly (or operator.index() docos lie)

2013-10-18 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue5411] Add xz support to shutil

2013-10-18 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue19282] dbm is not a context manager

2013-10-18 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue16612] Integrate "Argument Clinic" into CPython trunk

2013-10-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I have added a handful of nitpicks on Rietveld. -- ___ Python tracker ___ ___ Python-bugs-list mai

[issue19262] Add asyncio (tulip, PEP 3156) to stdlib

2013-10-18 Thread David Edelsohn
David Edelsohn added the comment: AIX buildbot is experiencing a similar failure: [276/382/4] test_asyncio Timeout (1:00:00)! Thread 0x0001: File "/home/shager/cpython-buildarea/3.x.edelsohn-aix-ppc64/build/Lib/selectors.py", line 265 in select File "/home/shager/cpython-buildarea/3.x

[issue19289] Incorrect documentation for format's fill character.

2013-10-18 Thread Eric V. Smith
New submission from Eric V. Smith: In http://docs.python.org/library/string.html#format-specification-mini-language, it says "The fill character can be any character other than ‘{‘ or ‘}’." But that's not actually true. It's only true when using str.format, as it does the parsing and the { an

[issue19262] Add asyncio (tulip, PEP 3156) to stdlib

2013-10-18 Thread koobs
koobs added the comment: @Guido, another expected delay test failure: == FAIL: test_run_until_complete (test.test_asyncio.test_events.KqueueEventLoopTests) --

[issue16612] Integrate "Argument Clinic" into CPython trunk

2013-10-18 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Or we could copy a page out of the PyPy playbook: generate a mandlebrot > as a comment at column 0, then put the real text at column 80+. In the > right editor you'd never see it again! That's only good if editing the file needs 3GB RAM. --

[issue10614] ZipFile: add a filename_encoding argument

2013-10-18 Thread Sergey Dorofeev
Sergey Dorofeev added the comment: OK, here you are: --- zipfile.py-orig 2013-09-18 16:45:56.0 +0400 +++ zipfile.py 2013-10-19 01:59:07.444346674 +0400 @@ -885,7 +885,7 @@ fp = None # Set here since __del__ checks it _windows_illegal_name_trans_table = No

[issue19201] Add 'x' mode to lzma.open()

2013-10-18 Thread Roundup Robot
Roundup Robot added the comment: New changeset b7948aaca1dd by Nadeem Vawda in branch 'default': Issue #19201: Add support for the 'x' mode to the lzma module. http://hg.python.org/cpython/rev/b7948aaca1dd -- nosy: +python-dev ___ Python tracker

[issue19222] Add 'x' mode to gzip.open()

2013-10-18 Thread Roundup Robot
Roundup Robot added the comment: New changeset a728a7d46553 by Nadeem Vawda in branch 'default': Issue #19222: Add support for the 'x' mode to the gzip module. http://hg.python.org/cpython/rev/a728a7d46553 -- nosy: +python-dev ___ Python tracker

[issue19223] Add 'x' mode to bz2.open()

2013-10-18 Thread Roundup Robot
Roundup Robot added the comment: New changeset 5abc04e6579b by Nadeem Vawda in branch 'default': Issue #19223: Add support for the 'x' mode to the bz2 module. http://hg.python.org/cpython/rev/5abc04e6579b -- nosy: +python-dev ___ Python tracker

[issue19222] Add 'x' mode to gzip.open()

2013-10-18 Thread Nadeem Vawda
Changes by Nadeem Vawda : -- assignee: -> nadeem.vawda nosy: +nadeem.vawda resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker

[issue19223] Add 'x' mode to bz2.open()

2013-10-18 Thread Nadeem Vawda
Changes by Nadeem Vawda : -- assignee: -> nadeem.vawda resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___

[issue19285] test_asyncio failures on FreeBSD

2013-10-18 Thread Roundup Robot
Roundup Robot added the comment: New changeset e042deeeb703 by Guido van Rossum in branch 'default': Relax some asyncio test timeouts (http://bugs.python.org/issue19285). http://hg.python.org/cpython/rev/e042deeeb703 -- nosy: +python-dev ___ Python tr

[issue13405] Add DTrace probes

2013-10-18 Thread Martin Marcher
Changes by Martin Marcher : -- nosy: -serverhorror ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue19201] Add 'x' mode to lzma.open()

2013-10-18 Thread Nadeem Vawda
Nadeem Vawda added the comment: Fix committed. Thanks for the patches! As Jesús and Terry have said, this won't be backported to 3.3/2.7, since it is a new feature. [oylenshpeegul] | It's weird how different these three patches are! We're | essentially doing the same thing: "please allow the x

[issue19262] Add asyncio (tulip, PEP 3156) to stdlib

2013-10-18 Thread Guido van Rossum
Guido van Rossum added the comment: Relaxed a bunch of timeouts. No news on the --without-threads case, that will have to happen post-alpha-4 I expect. -- ___ Python tracker ___

[issue19290] Clarify compile and eval interaction.

2013-10-18 Thread Terry J. Reedy
New submission from Terry J. Reedy: This issue was stimulated by #17294 where there seems to be some confusion over the purpose of the compile modes with regards to return values. I then noticed that the eval doc starts wrong and later corrects itself. I think the following sentence from the c

[issue19262] Add asyncio (tulip, PEP 3156) to stdlib

2013-10-18 Thread Guido van Rossum
Guido van Rossum added the comment: I've landed a bunch of stuff, and now I am pretty happy. It's also soon going to be weekend, which means family time, so I really hope everyone else is also happy. :-) A summary of what changed since the initial asyncio checkin: - Rename the logger to plain

[issue19262] Add asyncio (tulip, PEP 3156) to stdlib

2013-10-18 Thread Guido van Rossum
Guido van Rossum added the comment: Ready for release! -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Pyth

[issue17294] compile-flag for single-execution to return value instead of printing it

2013-10-18 Thread Terry J. Reedy
Terry J. Reedy added the comment: Albert: enhancements can only go in future releases. Also, when a core developer rejects a suggestion and closes an issue, it is better to just request a re-open, or otherwise post to python-list or python-ideas to refine the idea and possible gather more supp

[issue19201] Add 'x' mode to lzma.open()

2013-10-18 Thread Nadeem Vawda
Nadeem Vawda added the comment: [terry.reedy] | Arfrever's point about the order of characters makes me wonder why mode | strings (as opposed to characters in the strings) are being checked. | The following tests that exactly one of w, a, x appear in mode. | if len({'w', 'a', 'x'} & set(mode)) =

[issue19262] Add asyncio (tulip, PEP 3156) to stdlib

2013-10-18 Thread STINNER Victor
STINNER Victor added the comment: 2013/10/19 Guido van Rossum : > Ready for release! > > resolution: -> fixed > status: open -> closed The new module has no documentation at all. Do you plan to open a new issue for the documentation? Or maybe you don't plan to add documentation? :-) --

[issue19285] test_asyncio failures on FreeBSD

2013-10-18 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue19262] Add asyncio (tulip, PEP 3156) to stdlib

2013-10-18 Thread Guido van Rossum
Guido van Rossum added the comment: I'll track that separately: http://bugs.python.org/issue19291 For now, PEP 3156 has a lot of information. (But the PEP also needs to be updated to track recent developments.) -- ___ Python tracker

[issue19291] Add docs for asyncio package (Tulip, PEP 3156)

2013-10-18 Thread Guido van Rossum
New submission from Guido van Rossum: The asyncio module needs documentation. I'll work on this in time for the beta 1 release. Until then, please refer to PEP 3156. -- assignee: gvanrossum messages: 200324 nosy: gvanrossum priority: deferred blocker severity: normal status: open titl

[issue19237] Proposal : LCM function to complement GCD

2013-10-18 Thread Terry J. Reedy
Terry J. Reedy added the comment: I am -0 (or more negative) for the same reason. The need for lcm is very rare. I think the gcd doc should give the lcm formula, with perhaps an index entry. The gcd doc might also mention that gcd is associative: gcd(a,b,c) = gcd(gcd(a,b),c). The math module

[issue19238] Misleading explanation of fill and align in format_spec

2013-10-18 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: +terry.reedy versions: +Python 2.7, Python 3.3, Python 3.4 ___ Python tracker ___ ___ Python-bugs

[issue7200] multiprocessing deadlock on Mac OS X when queue collected before process terminates

2013-10-18 Thread Brian Quinlan
Brian Quinlan added the comment: OK, working as intended. -- resolution: -> invalid ___ Python tracker ___ ___ Python-bugs-list mailin

[issue19292] Make SSLContext.set_default_verify_paths() work on Windows

2013-10-18 Thread Guido van Rossum
New submission from Guido van Rossum: See discussion on https://groups.google.com/forum/#!topic/python-tulip/c_lqdFjPEbE . If you set sslcontext.verify_mode = ssl.CERT_REQUIRED and call sslcontext.set_default_verify_paths(), the stdlib ought to have enough smarts to use the system root certif

[issue10918] **kwargs unnecessarily restricted in concurrent.futures 'submit' API

2013-10-18 Thread Brian Quinlan
Brian Quinlan added the comment: I think that we are happy to not fix this. -- resolution: accepted -> wont fix status: open -> closed ___ Python tracker ___

[issue19251] bitwise ops for bytes of equal length

2013-10-18 Thread Terry J. Reedy
Terry J. Reedy added the comment: 'XOR of two bytes in one place' strikes me as a thin excuse for a new feature that abbreviates a simple, short, one-liner. To me, bytes(x ^ y for x, y in zip(a, b)) looks fine. a and b can be any iterables of ints. -- nosy: +terry.reedy __

[issue19289] Incorrect documentation for format's fill character.

2013-10-18 Thread Eric V. Smith
Eric V. Smith added the comment: See also issue 19238. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https

[issue19238] Misleading explanation of fill and align in format_spec

2013-10-18 Thread Eric V. Smith
Eric V. Smith added the comment: See also issue 19289. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https

[issue19259] Provide Python implementation of operator.compare_digest()

2013-10-18 Thread Terry J. Reedy
Terry J. Reedy added the comment: -1 "The operator module exports a set of efficient functions corresponding to the intrinsic operators of Python." As far as I know, _compare_digest does not correspond to any operator. -- nosy: +terry.reedy ___ Pyth

[issue19264] subprocess.Popen doesn't support unicode on Windows

2013-10-18 Thread Terry J. Reedy
Terry J. Reedy added the comment: The docs say that args should be a string or sequence of strings. It also says "On Windows, the class uses the Windows CreateProcess() function.", so it is not a bug for it to do that. However, CreateProcessW sounds like a good (and overdue, and overlooked) en

[issue19292] Make SSLContext.set_default_verify_paths() work on Windows

2013-10-18 Thread Guido van Rossum
Guido van Rossum added the comment: Maybe once this is addressed we could also change urllib.request.urlopen() to default to cadefault=True? -- ___ Python tracker ___ __

[issue19282] dbm.open should be a context manager

2013-10-18 Thread Terry J. Reedy
Terry J. Reedy added the comment: I agree with the revised title. Test_context_manager() should also test that db is actually closed after the with statement. I presume you can use self.assertRaises and try to do something with db that will fail if it is properly closed. with self.ass

[issue14881] multiprocessing.dummy craches when self._parent._children does not exist

2013-10-18 Thread Terry J. Reedy
Terry J. Reedy added the comment: Since this is already fixed and closed, the question is more relevant to #10015 and whether it should be closed. The answer seems to be yes. -- ___ Python tracker

[issue10015] Creating a multiprocess.pool.ThreadPool from a child thread blows up.

2013-10-18 Thread Terry J. Reedy
Terry J. Reedy added the comment: #14881 seems to be a duplicate of this. It was closed in May 2012 after 2.7, 3.2, and 3.3 were patched. The three tests in potential_issue_demo.py now pass with 2.7.5 and 3.3.2. So closing. -- nosy: +terry.reedy resolution: -> duplicate stage: -> com

[issue14881] multiprocessing.dummy craches when self._parent._children does not exist

2013-10-18 Thread Terry J. Reedy
Terry J. Reedy added the comment: By the way, thanks for noticing, so it *can* be closed. -- ___ Python tracker ___ ___ Python-bugs-li

[issue16742] PyOS_Readline drops GIL and calls PyOS_StdioReadline, which isn't thread safe

2013-10-18 Thread Roundup Robot
Roundup Robot added the comment: New changeset 6c9050ad1afc by Victor Stinner in branch 'default': Issue #16742: My fix on PyOS_StdioReadline() was incomplete, PyMem_FREE() was http://hg.python.org/cpython/rev/6c9050ad1afc -- ___ Python tracker

[issue19291] Add docs for asyncio package (Tulip, PEP 3156)

2013-10-18 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : -- nosy: +giampaolo.rodola ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https

[issue18874] Add a new tracemalloc module to trace memory allocations

2013-10-18 Thread STINNER Victor
STINNER Victor added the comment: Update the patch to the last implementation. -- Added file: http://bugs.python.org/file32211/57ae01bf96cb.patch ___ Python tracker ___ _

[issue18874] Add a new tracemalloc module to trace memory allocations

2013-10-18 Thread STINNER Victor
Changes by STINNER Victor : Removed file: http://bugs.python.org/file31976/ec121a72e848.patch ___ Python tracker ___ ___ Python-bugs-list mail

[issue16612] Integrate "Argument Clinic" into CPython trunk

2013-10-18 Thread Larry Hastings
Larry Hastings added the comment: Incorporated a small change from Antoine and a ton of small changes from Serhiy. Thanks guys! -- Added file: http://bugs.python.org/file32212/larry.clinic.patch.7.diff ___ Python tracker

[issue18709] SSL module fails to handle NULL bytes inside subjectAltNames general names (CVE-2013-4238)

2013-10-18 Thread Larry Hastings
Larry Hastings added the comment: So, this is fixed, but there's some suspicion of a memory leak? If that's true, maybe we could mark this as closed then open a new bug for the leak? This shows up as a big scary "release blocker" against 3.4, and I'm like making releases and stuff. --

[issue18747] Re-seed OpenSSL's PRNG after fork

2013-10-18 Thread Larry Hastings
Larry Hastings added the comment: I can't follow all this. Is this considered fixed in 3.4 or not? -- ___ Python tracker ___ ___ Pyth

[issue16043] xmlrpc: gzip_decode has unlimited read()

2013-10-18 Thread Larry Hastings
Larry Hastings added the comment: Ping. Can we get this fixed before beta 1? -- ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue16039] imaplib: unlimited readline() from connection

2013-10-18 Thread Larry Hastings
Larry Hastings added the comment: Ping. Please fix before "beta 1". -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue16042] smtplib: unlimited readline() from connection

2013-10-18 Thread Larry Hastings
Larry Hastings added the comment: Can we get this fixed in more recent versions? Like, maybe, trunk, before "beta 1"? -- ___ Python tracker ___

[issue16040] nntplib: unlimited readline() from connection

2013-10-18 Thread Larry Hastings
Larry Hastings added the comment: Ping. Please fix before "beta 1". -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue16041] poplib: unlimited readline() from connection

2013-10-18 Thread Larry Hastings
Larry Hastings added the comment: Ping. Please fix before "beta 1". -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue16037] httplib: header parsing is unlimited

2013-10-18 Thread Larry Hastings
Larry Hastings added the comment: Ping. Please fix before "beta 1". -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue16038] ftplib: unlimited readline() from connection

2013-10-18 Thread Larry Hastings
Larry Hastings added the comment: Ping. Please fix before "beta 1". -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue18509] CJK decoders should return MBERR_EXCEPTION on PyUnicodeWriter error

2013-10-18 Thread Larry Hastings
Larry Hastings added the comment: Victor, are you going to write a patch for this before beta 1? -- ___ Python tracker ___ ___ Python-

[issue19279] UTF-7 to UTF-8 decoding crash

2013-10-18 Thread Larry Hastings
Larry Hastings added the comment: Ping. Please fix before "beta 1". -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue19292] Make SSLContext.set_default_verify_paths() work on Windows

2013-10-18 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +christian.heimes type: security -> enhancement versions: -Python 3.3 ___ Python tracker ___ ___

[issue18509] CJK decoders should return MBERR_EXCEPTION on PyUnicodeWriter error

2013-10-18 Thread STINNER Victor
STINNER Victor added the comment: > Victor, are you going to write a patch for this before beta 1? Not before at least one week, I'm busy on tracemalloc. If anyone is interesting, please write a patch and I will review it :-) (The CJK macros are ugly!) -- _

[issue19292] Make SSLContext.set_default_verify_paths() work on Windows

2013-10-18 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Maybe once this is addressed we could also change urllib.request.urlopen() to > default to cadefault=True? I don't think it's ok to change the default and break compatibility. Passing True manually is easy enough. -- nosy: +pitrou _

[issue17087] Improve the repr for regular expression match objects

2013-10-18 Thread Ezio Melotti
Ezio Melotti added the comment: I discussed this briefly with Serhiy on IRC and I think the repr can be improved. Currently it looks like: >>> re.compile(r'[/\\]([.]svn)').match('/.svn') <_sre.SRE_Match object: groups=1, span=(0, 5), group0='/.svn'> One problem is that the group count doesn't i

[issue18509] CJK decoders should return MBERR_EXCEPTION on PyUnicodeWriter error

2013-10-18 Thread Larry Hastings
Larry Hastings added the comment: It's a month before beta 1. This weekend is alpha 4; it'd be nice if it were fixed for that, of course, but that does not seem likely. -- ___ Python tracker _

[issue19292] Make SSLContext.set_default_verify_paths() work on Windows

2013-10-18 Thread Guido van Rossum
Guido van Rossum added the comment: Why is this not a security patch? Because it's not a "vulnerability" in the narrow technical sense? I expect that it will greatly increase the actual practical security, by making it easier to do the right thing. -- _

[issue19251] bitwise ops for bytes of equal length

2013-10-18 Thread Ramchandra Apte
Ramchandra Apte added the comment: On 19 October 2013 04:56, Terry J. Reedy wrote: > > Terry J. Reedy added the comment: > > 'XOR of two bytes in one place' strikes me as a thin excuse for a new > feature that abbreviates a simple, short, one-liner. To me, bytes(x ^ y for > x, y in zip(a, b)) l

[issue18958] Exception('No JSON object could be decoded') when parsing a valid JSON

2013-10-18 Thread Ezio Melotti
Ezio Melotti added the comment: I'm not sure this should be documented in json.load/loads, and I'm not sure people will look there once they get this exception. The error is raised because the wrong codec is used (either by open() before passing the file object to json.load or by json.loads), s

[issue18958] Exception('No JSON object could be decoded') when parsing a valid JSON

2013-10-18 Thread Ezio Melotti
Ezio Melotti added the comment: Here is a proof of concept that raises this error: >>> import json; json.load(open('input.json')) Traceback (most recent call last): File "", line 1, in File "/home/wolf/dev/py/2.7/Lib/json/__init__.py", line 290, in load **kw) File "/home/wolf/dev/py/2.

[issue18958] Exception('No JSON object could be decoded') when parsing a valid JSON

2013-10-18 Thread Ezio Melotti
Changes by Ezio Melotti : Added file: http://bugs.python.org/file32213/issue18958.diff ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue18958] Exception('No JSON object could be decoded') when parsing a valid JSON

2013-10-18 Thread Ezio Melotti
Ezio Melotti added the comment: Forgot to add that the patch is for 2.7, and it also needs to be implemented in the unicode scanner. -- ___ Python tracker ___ __

[issue19262] Add asyncio (tulip, PEP 3156) to stdlib

2013-10-18 Thread David Edelsohn
David Edelsohn added the comment: How is this ready for release? The patch does not work on numerous POSIX systems. -- ___ Python tracker ___ ___

[issue19293] test_asyncio failures on AIX

2013-10-18 Thread David Edelsohn
New submission from David Edelsohn: test_asyncio times out after one hour on AIX and leaves a process consuming 100% of a thread. [145/382/3] test_asyncio Timeout (1:00:00)! Thread 0x0001: File "/home/shager/cpython-buildarea/3.x.edelsohn-aix-ppc64/build/Lib/selectors.py", line 265 in s

[issue19287] __contains__() of dbm.ndbm databases fails with str

2013-10-18 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- keywords: +patch Added file: http://bugs.python.org/file32214/issue19287.patch ___ Python tracker ___

[issue19287] __contains__() of dbm.ndbm databases fails with str

2013-10-18 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- keywords: +easy stage: -> patch review ___ Python tracker ___ ___ Python-bugs-lis

[issue15663] Investigate providing Tcl/Tk 8.5 with OS X installers

2013-10-18 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7f69f4fadfd8 by Ned Deily in branch 'default': Issue #15663: Update OS X installer to use Tcl/Tk 8.5.15. http://hg.python.org/cpython/rev/7f69f4fadfd8 -- ___ Python tracker

[issue18958] Exception('No JSON object could be decoded') when parsing a valid JSON

2013-10-18 Thread Nick Coghlan
Nick Coghlan added the comment: I like the new error message as a low-risk immediate improvement that nudges people in the direction of utf8-sig. It also leaves the door open to silently ignoring the BoM in the future without immediately committing to that approach. -- ___

[issue19019] Investigate using Apple clang for building OS X installers

2013-10-18 Thread Roundup Robot
Roundup Robot added the comment: New changeset 5e385dcfbd32 by Ned Deily in branch 'default': Issue #19019: Change the OS X installer build script to use CFLAGS instead http://hg.python.org/cpython/rev/5e385dcfbd32 -- nosy: +python-dev ___ Python trac

[issue14499] Extension module builds fail with Xcode 4.3 on OS X 10.7 due to SDK move

2013-10-18 Thread Roundup Robot
Roundup Robot added the comment: New changeset 73532f33fbb3 by Ned Deily in branch 'default': Issue #14499: Fix several problems with OS X universal build support: http://hg.python.org/cpython/rev/73532f33fbb3 -- nosy: +python-dev ___ Python tracker

[issue18985] Improve the documentation in fcntl module

2013-10-18 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +r.david.murray ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue18918] help('FILES') finds no documentation

2013-10-18 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +georg.brandl stage: needs patch -> patch review ___ Python tracker ___ ___ Python-bugs-list mailin

[issue19262] Add asyncio (tulip, PEP 3156) to stdlib

2013-10-18 Thread Guido van Rossum
Guido van Rossum added the comment: Please be more specific. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue8964] platform._sys_version does not parse correctly IronPython 2.x version

2013-10-18 Thread Martin Matusiak
Martin Matusiak added the comment: It seems the versions of IronPython 1.0 mentioned in test cases do actually support the "in" keyword, so the first version of the patch is probably sufficient. Example session: >>> sys.version IronPython 1.0.60816 on .NET 2.0.50727.3643 >>> "IronPython" in s

[issue877121] configure detects incorrect compiler optimization

2013-10-18 Thread koobs
koobs added the comment: This also affects Python 2.7 / 3.1 on FreeBSD 10.x with CC=clang Referencing the PR here: http://www.freebsd.org/cgi/query-pr.cgi?pr=182952 Would like to see the commit backported as well. -- nosy: +koobs ___ Python tracker

[issue19293] test_asyncio failures on AIX

2013-10-18 Thread Guido van Rossum
Guido van Rossum added the comment: Is that traceback upside down compared to normal Python tracebacks? -- nosy: +gvanrossum ___ Python tracker ___ __

[issue2771] Test issue

2013-10-18 Thread Ezio Melotti
Ezio Melotti added the comment: Ping. -- nosy: -berker.peksag ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

[issue19293] test_asyncio failures on AIX

2013-10-18 Thread Guido van Rossum
Guido van Rossum added the comment: Assuming it is, it is hanging in the poll() syscall, here: http://hg.python.org/cpython/file/f3a2dab1623b/Lib/selectors.py#265 Could you see if it works better with select()? Comment out lines 402, 403 in that file. -- __

[issue19289] Incorrect documentation for format's fill character.

2013-10-18 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue19238] Misleading explanation of fill and align in format_spec

2013-10-18 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti type: -> enhancement ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

[issue19265] Increased test coverage for datetime pickling

2013-10-18 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

<    1   2   3   >