[issue21233] Add *Calloc functions to CPython memory allocation API

2014-04-27 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Ok, now the real use case where it becomes faster: I implemented the > same optimization for bytearray. The real use case I envision is with huge powers of two. If I write: x = 2 ** 100 then all of x's bytes except the highest one will be zeros. If we

[issue19977] Use "surrogateescape" error handler for sys.stdin and sys.stdout on UNIX for the C locale

2014-04-27 Thread STINNER Victor
STINNER Victor added the comment: > We should not overcomplicate this. I suggest that we simply use utf-8 under > the C locale. Please open a new issue if you would prefer UTF-8. You will have to solve different technical issues. I tried to list some of them in issues #19846 and #19847. In s

[issue21233] Add *Calloc functions to CPython memory allocation API

2014-04-27 Thread STINNER Victor
STINNER Victor added the comment: > The real use case I envision is with huge powers of two. I'm not sure that it's a common use case, but it can be nice to optimize this case if it doesn't make longobject.c more complex. It looks like calloc() becomes interesting for objects larger than 1 MB.

[issue5001] Remove assertion-based checking in multiprocessing

2014-04-27 Thread Ned Deily
Changes by Ned Deily : -- nosy: +sbt versions: +Python 3.4, Python 3.5 -Python 3.2, Python 3.3 ___ Python tracker ___ ___ Python-bugs-l

[issue21369] Extended modes for tarfile.TarFile()

2014-04-27 Thread Ned Deily
Changes by Ned Deily : -- nosy: +lars.gustaebel ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue21369] Extended modes for tarfile.TarFile()

2014-04-27 Thread Berker Peksag
Changes by Berker Peksag : -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue21031] [patch] Add AlpineLinux to the platform module's supported distributions list

2014-04-27 Thread Elizabeth Myers
Elizabeth Myers added the comment: Any information or updates? :) -- status: open -> languishing ___ Python tracker ___ ___ Python-bug

[issue21371] struct lconv does not have decimal_point on android platform

2014-04-27 Thread Li Zhenhua
New submission from Li Zhenhua: When compile python for android, it gets error because struct lconv does not have a member "decimal_point". -- components: Cross-Build files: lconv_member.patch keywords: patch messages: 217335 nosy: lizhenhua priority: normal severity: normal status: ope

[issue10510] distutils upload/register should use CRLF in HTTP requests

2014-04-27 Thread Ian Cordasco
Ian Cordasco added the comment: I've attached a patch that should fix this issue. Please review and let me know if changes are necessary. -- keywords: +patch Added file: http://bugs.python.org/file35067/compliant_distutils.patch ___ Python tracker <

[issue1820] Enhance Object/structseq.c to match namedtuple and tuple api

2014-04-27 Thread Raymond Hettinger
Raymond Hettinger added the comment: > any chance of the easy (_fields) change being committed > and putting off the harder parts until later? Yes, it is not an all-or-nothing exercise. >> 1. _asdict() returns a normal dictionary. I don't know if this is what >>is required. A regular dic

[issue13204] sys.flags.__new__ crashes

2014-04-27 Thread Jessica McKellar
Jessica McKellar added the comment: Thanks for reporting this and providing a patch, Trundle. The Python 3 patch didn't apply cleanly anymore, so I regenerated it and added tests for sys.version_info and sys.getwindowsversion. * The patch passes `make patchcheck` * The full test suite passes w

[issue19776] Provide expanduser() on Path objects

2014-04-27 Thread Antoine Pietri
Antoine Pietri added the comment: > I think that `absolute` method should call `expanduser` and `expandvars` (do > you plan to include it?) automatically. This should be optional (via default > arguments: `expanduser=True, expandvars=True`. I think it shouldn't. (Or shouldn't be set to True by

[issue21340] Possible concurrency bug in asyncio, AttributeError in tasks.py

2014-04-27 Thread Guido van Rossum
Guido van Rossum added the comment: Sorry, should have let someone review it. I'm a bit out of practice. :-) But in this case I think three-arg getattr() is better; less code, less indentation, and the final question (is the frame not None?) must still be asked. -- __

[issue13096] ctypes: segfault with large POINTER type names

2014-04-27 Thread Jessica McKellar
Jessica McKellar added the comment: Thanks for the report and patch, meador.inge. I'd prefer not to add more globals that are only used in one place, but doing so is consistent with the existing style of test_pointers.py, and there's plenty in this file that could be cleaned up in another tick

[issue21026] Document sitecustomize.py problems with pythonw

2014-04-27 Thread Carol Willing
Carol Willing added the comment: Updated documentation using Terry Reedy's suggested addition. -- nosy: +willingc Added file: http://bugs.python.org/file35069/issue21026.patch ___ Python tracker ___

[issue13583] sqlite3.Row doesn't support slice indexes

2014-04-27 Thread Jessica McKellar
Jessica McKellar added the comment: Thanks for the ticket and patch, xapple! I updated the patch to address the compiler warning and use assertEqual. While testing, I noticed that slicing with steps wasn't supported, so I expanded the sqlite3.Row slicing code to support steps, and added some

[issue13583] sqlite3.Row doesn't support slice indexes

2014-04-27 Thread Jessica McKellar
Jessica McKellar added the comment: I've also uploaded a short script that sets up an in-memory sqlite database that fetches Rows, for easy manual testing. -- Added file: http://bugs.python.org/file35071/sqlite3_slicing_demo.py ___ Python tracker

[issue21369] Extended modes for tarfile.TarFile()

2014-04-27 Thread Lars Gustäbel
Lars Gustäbel added the comment: That was a design decision. What would be the advantage of having the TarFile class offer the compression itself? -- assignee: -> lars.gustaebel ___ Python tracker ___

<    1   2