[issue14897] struct.pack raises unexpected error message

2012-10-24 Thread Matti Mäki
Matti Mäki added the comment: A second try, now taking into account buffer and offset params in pack_into. -- Added file: http://bugs.python.org/file27689/issue14897-2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14897

[issue16307] multiprocess.pool.map_async callables not working

2012-10-24 Thread Bbb
New submission from Bbb: When using map_async() my callbacks don't get called back. When using apply_async() they do get called. CODE: from multiprocessing import Pool,TimeoutError from time import sleep servers=[s1,s2,s3,s4,s5,s6] blah = no callback def f(x): print(start f( + x + ))

[issue16305] possible segfault in math.factorial

2012-10-24 Thread Mark Dickinson
Mark Dickinson added the comment: I can reproduce this on 3.2 (OS X). I'll take a look tonight. -- assignee: - mark.dickinson components: +Extension Modules priority: normal - high stage: - needs patch ___ Python tracker rep...@bugs.python.org

[issue16305] possible segfault in math.factorial

2012-10-24 Thread Mark Dickinson
Changes by Mark Dickinson dicki...@gmail.com: -- versions: +Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16305 ___ ___

[issue16307] multiprocess.pool.map_async callables not working

2012-10-24 Thread Janne Karila
Janne Karila added the comment: Indeed, the current implementation map_async simply ignores the callback arguments: def map_async(self, func, iterable, chunksize=None, callback=None, error_callback=None): ''' Asynchronous version of `map()` method. ''' return

[issue14897] struct.pack raises unexpected error message

2012-10-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: LGTM. -- components: +Extension Modules stage: - commit review versions: +Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14897 ___

[issue10182] match_start truncates large values

2012-10-24 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- stage: needs patch - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10182 ___ ___

[issue2005] posixmodule expects sizeof(pid_t/gid_t/uid_t) = sizeof(long)

2012-10-24 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- stage: - needs patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2005 ___ ___

[issue2005] posixmodule expects sizeof(pid_t/gid_t/uid_t) = sizeof(long)

2012-10-24 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- versions: +Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2005 ___ ___

[issue6972] zipfile.ZipFile overwrites files outside destination path

2012-10-24 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- stage: - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6972 ___ ___

[issue16307] multiprocess.pool.map_async callables not working

2012-10-24 Thread Janne Karila
Janne Karila added the comment: Here's a patch that adds the missing arguments to the call to _map_async. The bug seems to originate from enhancement #12708 that added starmap_async to 3.3. -- keywords: +patch Added file: http://bugs.python.org/file27690/callback.patch

[issue16053] strict parameter is not documented in csv module

2012-10-24 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- stage: needs patch - commit review type: - enhancement versions: +Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16053 ___

[issue16102] uuid._netbios_getnode() is outdated

2012-10-24 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- keywords: +needs review stage: - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16102 ___

[issue16228] JSON crashes during encoding resized lists

2012-10-24 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- stage: - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16228 ___ ___

[issue16230] select.select crashes on resized lists

2012-10-24 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- stage: - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16230 ___ ___

[issue14625] Faster utf-32 decoder

2012-10-24 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- stage: - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14625 ___ ___

[issue1470548] Bugfix for #1470540 (XMLGenerator cannot output UTF-16)

2012-10-24 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- stage: - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1470548 ___ ___

[issue15027] Faster UTF-32 encoding

2012-10-24 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- stage: - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15027 ___ ___

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

2012-10-24 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- stage: - needs patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15872 ___ ___

[issue15989] Possible integer overflow of PyLong_AsLong() results

2012-10-24 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- stage: - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15989 ___ ___

[issue14850] The inconsistency of codecs.charmap_decode

2012-10-24 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- stage: - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14850 ___ ___

[issue16255] subrocess.Popen needs /bin/sh but Android only has /system/bin/sh

2012-10-24 Thread Andrew Svetlov
Andrew Svetlov added the comment: Chris, agree with you. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16255 ___ ___ Python-bugs-list mailing

[issue15379] Charmap decoding of no-BMP characters

2012-10-24 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- stage: committed/rejected - commit review versions: -Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15379 ___

[issue13617] Reject embedded null characters in wchar* strings

2012-10-24 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- stage: - needs patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13617 ___ ___

[issue13572] import _curses fails because of UnicodeDecodeError('utf8' codec can't decode byte 0xb5 ...') on ARM Ubuntu 3.x

2012-10-24 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- status: open - pending ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13572 ___ ___

[issue9290] IDLE and Command line present different behavior for sys.stdin

2012-10-24 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- stage: - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9290 ___ ___

[issue16308] Undocumented (?) behaviour change in argparse from 3.2.3 to 3.3.0

2012-10-24 Thread telmich
New submission from telmich: Using argparse with subparsers, the default behaviour if no subparser was selected, was to print help: cdist% git describe 2.0.14-59-g5315c41 cdist% ./bin/cdist usage: cdist [-h] [-d] [-v] [-V] {banner,config} ... cdist: error: too few arguments cdist% python3 -V

[issue16240] Document a way to escape metacharacters in glob/fnmatch

2012-10-24 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- stage: - needs patch type: behavior - enhancement ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16240 ___

[issue1776674] glob.glob inconsistent

2012-10-24 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- stage: test needed - needs patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1776674 ___ ___

[issue16215] Possible double memory free in str.replace

2012-10-24 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- stage: - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16215 ___ ___

[issue16216] Arithmetic operations with NULL

2012-10-24 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- stage: - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16216 ___ ___

[issue1634034] Show expected token on syntax error

2012-10-24 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- stage: test needed - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1634034 ___

[issue13451] sched.py: speedup cancel() method

2012-10-24 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- stage: - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13451 ___ ___

[issue14700] Integer overflow in classic string formatting

2012-10-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Mark, can I help? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14700 ___ ___ Python-bugs-list mailing list

[issue15278] UnicodeDecodeError when readline in codecs.py

2012-10-24 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- keywords: +needs review stage: - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15278 ___

[issue15999] Using new 'bool' format character

2012-10-24 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- stage: - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15999 ___ ___

[issue16165] sched.scheduler.run() blocks scheduler

2012-10-24 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- stage: - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16165 ___ ___

[issue15984] Wrong documentation for PyUnicode_FromObject()

2012-10-24 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- stage: - needs patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15984 ___ ___

[issue15984] Wrong documentation for PyUnicode_FromObject()

2012-10-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This is a bug of 2 - 3 transition. -- type: - enhancement versions: +Python 3.2, Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15984 ___

[issue15436] __sizeof__ is not documented

2012-10-24 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- stage: - needs patch type: - enhancement versions: +Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15436 ___

[issue4997] xml.sax.saxutils.XMLGenerator should write to io.RawIOBase.

2012-10-24 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4997 ___ ___

[issue15948] Unchecked return value of I/O functions

2012-10-24 Thread Marek Šuppa
Marek Šuppa added the comment: Since there is probably a lot to work on here I'd also like to participate. I've got one question though. In case these function don't return 0 and the test fails what should happen then? What kind of error should be thrown for let's say fseek() ? --

[issue15948] Unchecked return value of I/O functions

2012-10-24 Thread Christian Heimes
Christian Heimes added the comment: The functions should set an appropriate errno so it's PyErr_SetFromErrno(PyExc_IOError). You should use the PyErr_SetFromErrnoWithFilename*() variants when a file name (PyObject*, char*, unicode) is available. --

[issue15948] Unchecked return value of I/O functions

2012-10-24 Thread Marek Šuppa
Marek Šuppa added the comment: Thanks for a quick response. Should we also test this somewhere? Christian Heimes rep...@bugs.python.org wrote: Christian Heimes added the comment: The functions should set an appropriate errno so it's PyErr_SetFromErrno(PyExc_IOError). You should use the

[issue16309] PYTHONPATH= different from no PYTHONPATH at all

2012-10-24 Thread Armin Rigo
New submission from Armin Rigo: On Posix, it is documented that setting PATH to the empty string is equivalent to not setting PATH at all, which is an exception to the rule that in a string like /bin::/usr/bin the empty string in the middle gets interpreted as .. PYTHONPATH does not have this

[issue16305] possible segfault in math.factorial

2012-10-24 Thread Mark Dickinson
Mark Dickinson added the comment: Here's a patch. -- keywords: +patch stage: needs patch - commit review Added file: http://bugs.python.org/file27691/fix_factorial_segfault.patch ___ Python tracker rep...@bugs.python.org

[issue16136] Removal of VMS support

2012-10-24 Thread Trent Nelson
Trent Nelson added the comment: On Mon, Oct 22, 2012 at 11:18:03AM -0700, Christian Heimes wrote: Christian Heimes added the comment: We don't have any box that is capable of running VMS. Even Trent's Snakebit setup doesn't have VMS although he has lots of exotic hardware and OS, even

[issue15948] Unchecked return value of I/O functions

2012-10-24 Thread Marek Šuppa
Marek Šuppa added the comment: Appended is the patch for _cursesmodule.c Let me know if it's OK. -- keywords: +patch Added file: http://bugs.python.org/file27692/issue15948__cursesmodule.patch ___ Python tracker rep...@bugs.python.org

[issue16309] PYTHONPATH= different from no PYTHONPATH at all

2012-10-24 Thread Antoine Pitrou
Antoine Pitrou added the comment: Given how confusing it seems, perhaps we should change it to adopt a PATH-like behaviour. -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16309

[issue12886] datetime.strptime parses input wrong

2012-10-24 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti stage: - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12886 ___

[issue16307] multiprocess.pool.map_async callables not working

2012-10-24 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +hynek stage: - patch review versions: +Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16307 ___

[issue15111] Wrong ImportError message with importlib

2012-10-24 Thread Andrew Svetlov
Changes by Andrew Svetlov andrew.svet...@gmail.com: -- nosy: +asvetlov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15111 ___ ___

[issue16274] test_asyncore failing on Solaris 10 2.7 (nitrogen/s10)

2012-10-24 Thread Trent Nelson
Trent Nelson added the comment: On Mon, Oct 22, 2012 at 05:51:23AM -0700, Giampaolo Rodola' wrote: Giampaolo Rodola' added the comment: This should do it: diff --git a/Lib/test/test_asyncore.py b/Lib/test/test_asyncore.py --- a/Lib/test/test_asyncore.py +++ b/Lib/test/test_asyncore.py

[issue8713] multiprocessing needs option to eschew fork() under Linux

2012-10-24 Thread Richard Oudkerk
Richard Oudkerk added the comment: A use case for not using fork() is when your parent process opens some system resources of some sort (for example a listening TCP socket). The child will then inherit those resources, which can have all kinds of unforeseen and troublesome consequences

[issue16308] Undocumented (?) behaviour change in argparse from 3.2.3 to 3.3.0

2012-10-24 Thread R. David Murray
R. David Murray added the comment: There was bug fixing/enhancement activity around subparsers, one of them probably had an unexpected side effect for which there are currently no tests. If you can figure out which change set introduced the change, that might speed up resolution of the

[issue16307] multiprocess.pool.map_async callables not working

2012-10-24 Thread Hynek Schlawack
Hynek Schlawack added the comment: Could you add a test please? Thanks! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16307 ___ ___

[issue16262] srcdir != builddir builds fail, if hg is not installed

2012-10-24 Thread R. David Murray
R. David Murray added the comment: Ah, good point. From what I understand, that's entirely possible on that machine. Then the question becomes, do we want to support pre-2.4 for a rebuild? The answer is almost certainly no, but that leaves the DMG builders hosed. Re-closing issue, as this

[issue16262] srcdir != builddir builds fail, if hg is not installed

2012-10-24 Thread Trent Nelson
Trent Nelson added the comment: On Sun, Oct 21, 2012 at 02:59:37PM -0700, R. David Murray wrote: R. David Murray added the comment: This change appears to have broken the dmg builders: http://buildbot.python.org/all/builders/bolen-dmg-3.x/builds/19

[issue16310] zipfile: allow surrogates in filenames

2012-10-24 Thread Stefan Holek
New submission from Stefan Holek: Please allow for surrogates in the zipfile module like it was done for tarfile in #8390. Currently zipfile breaks when encountering surrogates: Traceback (most recent call last): File /usr/local/python3.3/lib/python3.3/zipfile.py, line 392, in

[issue16262] srcdir != builddir builds fail, if hg is not installed

2012-10-24 Thread Matthias Klose
Matthias Klose added the comment: yes, the test checks with a recent version first, then the older ones. However you can configure with PYTHON=python2.4 configure ... to overwrite these defaults. -- ___ Python tracker rep...@bugs.python.org

[issue9556] Specifying the time a TimedRotatingFileHandler rotates

2012-10-24 Thread Vinay Sajip
Changes by Vinay Sajip vinay_sa...@yahoo.co.uk: Added file: http://bugs.python.org/file27693/b178bbafd564.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9556 ___

[issue9556] Specifying the time a TimedRotatingFileHandler rotates

2012-10-24 Thread Vinay Sajip
Vinay Sajip added the comment: Thanks for the comments on Rietveld - patch updated. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9556 ___ ___

[issue16310] zipfile: allow surrogates in filenames

2012-10-24 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- nosy: +serhiy.storchaka type: - enhancement versions: +Python 3.4 -Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16310 ___

[issue16262] srcdir != builddir builds fail, if hg is not installed

2012-10-24 Thread R. David Murray
R. David Murray added the comment: Wait, does that mean you are explicitly supporting older Python versions? In that case there's still a bug here (either fix the set, or don't accept versions older than 2.4). -- ___ Python tracker

[issue16305] possible segfault in math.factorial

2012-10-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: LGTM. -- nosy: +serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16305 ___ ___ Python-bugs-list

[issue16308] Undocumented (?) behaviour change in argparse from 3.2.3 to 3.3.0

2012-10-24 Thread telmich
telmich added the comment: Having a closer look at the changes using hg diff -r v3.2:v3.3.0 Lib/argparse.py, it seems the following removal could be related to the different behaviour: -# if we didn't use all the Positional objects, there were too few -# arg strings supplied.

[issue16310] zipfile: allow surrogates in filenames

2012-10-24 Thread R. David Murray
R. David Murray added the comment: The problem you are reporting looks different than the problem addressed in issue 8390. There, the surrogates are being introduced when reading filenames from the archive file. Here, the surrogates presumably arose because the filename on your file system

[issue16308] Undocumented (?) behaviour change in argparse from 3.2.3 to 3.3.0

2012-10-24 Thread R. David Murray
R. David Murray added the comment: Thanks. I've put this on my todo list to look at this weekend during the bug day. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16308 ___

[issue16262] srcdir != builddir builds fail, if hg is not installed

2012-10-24 Thread Ned Deily
Changes by Ned Deily n...@acm.org: -- nosy: +ned.deily ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16262 ___ ___ Python-bugs-list mailing list

[issue16308] Undocumented (?) behaviour change in argparse from 3.2.3 to 3.3.0

2012-10-24 Thread telmich
telmich added the comment: Thanks a lot - let me know when I can help more. After re-reading the documentation, I think the behaviour for subparsers is not specified: It is not specified, whether a subparser is required to be present or not. Attached stripped down version of the cdist code

[issue8913] Document that datetime.__format__ is datetime.strftime

2012-10-24 Thread Andrew Svetlov
Changes by Andrew Svetlov andrew.svet...@gmail.com: -- nosy: +asvetlov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8913 ___ ___ Python-bugs-list

[issue16308] Undocumented (?) behaviour change in argparse from 3.2.3 to 3.3.0

2012-10-24 Thread telmich
telmich added the comment: I've copy pasted the example from the documentation and added the following lines to it (attached full file) args = parser.parse_args('') args.func(args) Following the style / way show in the documentation, I'd expect this block to work (3.2.2 behaviour). I do

[issue16308] Undocumented (?) behaviour change in argparse from 3.2.3 to 3.3.0

2012-10-24 Thread telmich
telmich added the comment: Assuming 3.3.0 behaviour is correct (as in no subparser specified, args.func not setup), I'd expect to have setup a function on the main parser. Trying this, it prevents the subparsers function from being completly: [16:03] brief:~% python3 subparse3.py

[issue16310] zipfile: allow surrogates in filenames

2012-10-24 Thread Stefan Holek
Stefan Holek added the comment: A little more context perhaps: The use-case is building Python distributions containing non-ASCII filenames. These seemingly invalid filenames can occur in real-life when the files have been created by, say, a 'git clone' operation. So yes, I have Latin-1

[issue16308] Undocumented (?) behaviour change in argparse from 3.2.3 to 3.3.0

2012-10-24 Thread telmich
telmich added the comment: Proposal / resume from the previous tests: - add a parameter to add_subparsers(): required If required=True, one of the subcommand names need to be present. If required=False (default), allow parse_args() to return successfully, if no subcommand is given. -

[issue16308] Undocumented (?) behaviour change in argparse from 3.2.3 to 3.3.0

2012-10-24 Thread R. David Murray
R. David Murray added the comment: How does all of this relate to issue 9253? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16308 ___ ___

[issue16310] zipfile: allow surrogates in filenames

2012-10-24 Thread R. David Murray
R. David Murray added the comment: I'm guessing that is because (if you read the issue) there are no specified standards for the filenames in tar (other than PAX format). Although I would personally have preferred to need to specify a yes really use these binary filenames flag to tar, as

[issue16308] Undocumented (?) behaviour change in argparse from 3.2.3 to 3.3.0

2012-10-24 Thread telmich
telmich added the comment: Interesting! The issue 9523 has now somehow become obsolete, as in 3.3.0 subcommands are de-facto optional, which is the problem I am facing. Regarding my last comment, here are the relations: - add a parameter to add_subparsers(): required This is a similar

[issue16308] Undocumented (?) behaviour change in argparse from 3.2.3 to 3.3.0

2012-10-24 Thread telmich
telmich added the comment: s/9523/9253/g in my previous post -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16308 ___ ___ Python-bugs-list

[issue16278] os.rename documentation slightly inaccurate

2012-10-24 Thread Andrew Svetlov
Changes by Andrew Svetlov andrew.svet...@gmail.com: -- nosy: +asvetlov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16278 ___ ___

[issue16310] zipfile: allow surrogates in filenames

2012-10-24 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16310 ___

[issue16284] concurrent.futures ThreadPoolExecutor keeps unnecessary references to worker functions.

2012-10-24 Thread Richard Oudkerk
Richard Oudkerk added the comment: LGTM -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16284 ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue16295] With VS2010 the select extension links against wsock32 instead of ws2_32

2012-10-24 Thread Richard Oudkerk
Changes by Richard Oudkerk shibt...@gmail.com: -- resolution: - fixed stage: needs patch - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16295 ___

[issue16310] zipfile: allow surrogates in filenames

2012-10-24 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16310 ___ ___ Python-bugs-list mailing

[issue2005] posixmodule expects sizeof(pid_t/gid_t/uid_t) = sizeof(long)

2012-10-24 Thread Petri Lehtinen
Petri Lehtinen added the comment: Yeah, it seems that uid_t and gid_t can be signed or unsigned, while pid_t is always signed. Serhiy: What do you suggest? -- nosy: +petri.lehtinen ___ Python tracker rep...@bugs.python.org

[issue16311] Use _PyUnicodeWriter API in text decoders

2012-10-24 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: -- nosy: +loewis, serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16311 ___ ___

[issue16311] Use _PyUnicodeWriter API in text decoders

2012-10-24 Thread STINNER Victor
New submission from STINNER Victor: Attached patch modifies text decoders to use the _PyUnicodeWriter API to factorize the code. It removes unicode_widen() and unicode_putchar() functions. * Don't overallocate by default (except for raw-unicode-escape codec), enable overallocation on the

[issue6975] symlinks incorrectly resolved on Linux

2012-10-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Previous patches contain redundant code, are not protected from all symlink loops (link - link/x; dir/link - ../dir/link) and when a loop is detected the returned result differs from the current one. The proposed patch solves this issue and some others.

[issue16307] multiprocess.pool.map_async callables not working

2012-10-24 Thread Richard Oudkerk
Changes by Richard Oudkerk shibt...@gmail.com: -- nosy: +sbt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16307 ___ ___ Python-bugs-list mailing

[issue16311] Use _PyUnicodeWriter API in text decoders

2012-10-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Soon I'll post a patch, which speeds up unicode-escape and raw-unicode-escape decoders to 1.5-3x. Also there are not yet reviewed patches for UTF-32 (issue14625) and charmap (issue14850) decoders. Will be merge conflicts. But I will review the patch.

[issue16210] combine the two type() definitions in built-in function docs

2012-10-24 Thread Raymond Hettinger
Raymond Hettinger added the comment: This patch looks good. Ezio, if you agree, please apply it. -- assignee: docs@python - ezio.melotti nosy: +rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16210

[issue16312] New command line option supported by unittest.main() for running initialization code before tests

2012-10-24 Thread Piotr Dobrogost
New submission from Piotr Dobrogost: When running tests bundled with a library it would be useful to be able to run some initialization code before tests are being run so that one can configure options pertaining to logging for example. For this reason it would be useful to have a new command

[issue16210] combine the two type() definitions in built-in function docs

2012-10-24 Thread Roundup Robot
Roundup Robot added the comment: New changeset 6dde85f2e4af by Ezio Melotti in branch '2.7': #16210: combine the two type() docs. Patch by Pete Sevander. http://hg.python.org/cpython/rev/6dde85f2e4af New changeset 997ab4f1530f by Ezio Melotti in branch '3.2': #16210: combine the two type()

[issue16210] combine the two type() definitions in built-in function docs

2012-10-24 Thread Ezio Melotti
Ezio Melotti added the comment: Done, thanks for the patch! -- resolution: - fixed stage: needs patch - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16210

[issue15569] Doc doc: incorrect description of some roles as format-only

2012-10-24 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- type: - enhancement versions: +Python 2.7, Python 3.2, Python 3.3, Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15569 ___

[issue2005] posixmodule expects sizeof(pid_t/gid_t/uid_t) = sizeof(long)

2012-10-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I suggest use PyLong_AsLongAndOverflow/PyLong_AsLongLongAndOverflow and then PyLong_AsUnsignedLong/PyLong_AsUnsignedLongLong in case if positive overflow. Perhaps you need also special converters for O format in PyArg_ParseTuple. This issue is not as easy

[issue16303] typo in error message in pstats.py

2012-10-24 Thread Roundup Robot
Roundup Robot added the comment: New changeset ad1cc596bedb by Ezio Melotti in branch '2.7': #16303: remove extra quotes from exception and add (). Initial patch by Vladimir Rutsky. http://hg.python.org/cpython/rev/ad1cc596bedb -- nosy: +python-dev

[issue16303] typo in error message in pstats.py

2012-10-24 Thread Ezio Melotti
Ezio Melotti added the comment: Fixed, thanks for the patch and the report! -- assignee: - ezio.melotti nosy: +ezio.melotti resolution: - fixed stage: - committed/rejected status: open - closed type: - enhancement ___ Python tracker

[issue2005] posixmodule expects sizeof(pid_t/gid_t/uid_t) = sizeof(long)

2012-10-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Of course PyLong_AsUnsignedLong* should be used only if the type is unsigned. In such case any negative values except -1 are invalid. -- keywords: -easy ___ Python tracker rep...@bugs.python.org

[issue15916] change doctest DocTestSuite not to raise ValueError if no docstrings

2012-10-24 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15916 ___ ___

  1   2   >