[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

[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

[issue16305] possible segfault in math.factorial

2012-10-24 Thread Mark Dickinson
Changes by Mark Dickinson : -- versions: +Python 3.4 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[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 self._map_a

[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 ___

[issue10182] match_start truncates large values

2012-10-24 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- stage: needs patch -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

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

2012-10-24 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- stage: -> needs patch ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

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

2012-10-24 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- versions: +Python 3.4 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue6972] zipfile.ZipFile overwrites files outside destination path

2012-10-24 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://

[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 : -- stage: needs patch -> commit review type: -> enhancement versions: +Python 3.4 ___ Python tracker ___ __

[issue16102] uuid._netbios_getnode() is outdated

2012-10-24 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- keywords: +needs review stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue16228] JSON crashes during encoding resized lists

2012-10-24 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:/

[issue16230] select.select crashes on resized lists

2012-10-24 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:/

[issue14625] Faster utf-32 decoder

2012-10-24 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:/

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

2012-10-24 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue15027] Faster UTF-32 encoding

2012-10-24 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:/

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

2012-10-24 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- stage: -> needs patch ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://

[issue15989] Possible integer overflow of PyLong_AsLong() results

2012-10-24 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:/

[issue14850] The inconsistency of codecs.charmap_decode

2012-10-24 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:/

[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 ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue15379] Charmap decoding of no-BMP characters

2012-10-24 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- stage: committed/rejected -> commit review versions: -Python 3.2, Python 3.3 ___ Python tracker ___

[issue13617] Reject embedded null characters in wchar* strings

2012-10-24 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- stage: -> needs patch ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://

[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 : -- status: open -> pending ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:/

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

2012-10-24 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://

[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 : -- stage: -> needs patch type: behavior -> enhancement ___ Python tracker ___ ___ Python-bugs-list mail

[issue1776674] glob.glob inconsistent

2012-10-24 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- stage: test needed -> needs patch ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr

[issue16215] Possible double memory free in str.replace

2012-10-24 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:/

[issue16216] Arithmetic operations with NULL

2012-10-24 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:/

[issue1634034] Show "expected" token on syntax error

2012-10-24 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- stage: test needed -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

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

2012-10-24 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:/

[issue14700] Integer overflow in classic string formatting

2012-10-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Mark, can I help? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:/

[issue15278] UnicodeDecodeError when readline in codecs.py

2012-10-24 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- keywords: +needs review stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue15999] Using new 'bool' format character

2012-10-24 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:/

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

2012-10-24 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:/

[issue15984] Wrong documentation for PyUnicode_FromObject()

2012-10-24 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- stage: -> needs patch ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://

[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 ___

[issue15436] __sizeof__ is not documented

2012-10-24 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- stage: -> needs patch type: -> enhancement versions: +Python 3.4 ___ Python tracker ___ ___ Python-

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

2012-10-24 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

[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() ? -- nos

[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 wrote: > >Christian Heimes added the comment: > >The functions should set an appropriate errno so it's >PyErr_SetFromErrno(PyExc_IOError). You should use the >PyErr_SetFromErrnoWi

[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 t

[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 ___

[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, ev

[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

[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 ___ _

[issue12886] datetime.strptime parses input wrong

2012-10-24 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue16307] multiprocess.pool.map_async callables not working

2012-10-24 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +hynek stage: -> patch review versions: +Python 3.4 ___ Python tracker ___ ___ Python-bugs-list

[issue15111] Wrong ImportError message with importlib

2012-10-24 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- nosy: +asvetlov ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[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_asyn

[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 issue.

[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 ___ ___ Python-bugs-list mailing list Un

[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 > http://buildbot.python.org/

[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 _encodeFile

[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

[issue9556] Specifying the time a TimedRotatingFileHandler rotates

2012-10-24 Thread Vinay Sajip
Changes by Vinay Sajip : Added file: http://bugs.python.org/file27693/b178bbafd564.diff ___ Python tracker ___ ___ Python-bugs-list mailing lis

[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 ___ ___ Python-bugs-list mail

[issue16310] zipfile: allow surrogates in filenames

2012-10-24 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +serhiy.storchaka type: -> enhancement versions: +Python 3.4 -Python 3.3 ___ Python tracker ___ __

[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 ___ ___ Python-bugs-list mailing list Unsubscr

[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 w

[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 ___ __

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

2012-10-24 Thread Ned Deily
Changes by Ned Deily : -- nosy: +ned.deily ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[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 to

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

2012-10-24 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- nosy: +asvetlov ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[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 how

[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 byt

[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. - Cha

[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 ___ ___ Python-bugs-list mailing l

[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 we

[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 proposa

[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 ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue16278] os.rename documentation slightly inaccurate

2012-10-24 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- nosy: +asvetlov ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue16310] zipfile: allow surrogates in filenames

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

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

2012-10-24 Thread Richard Oudkerk
Richard Oudkerk added the comment: LGTM -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

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

2012-10-24 Thread Richard Oudkerk
Changes by Richard Oudkerk : -- resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed ___ Python tracker ___ _

[issue16310] zipfile: allow surrogates in filenames

2012-10-24 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[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 _

[issue16311] Use _PyUnicodeWriter API in text decoders

2012-10-24 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +loewis, serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[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 f

[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. Ad

[issue16307] multiprocess.pool.map_async callables not working

2012-10-24 Thread Richard Oudkerk
Changes by Richard Oudkerk : -- nosy: +sbt ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[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 __

[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() docs

[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 ___ __

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

2012-10-24 Thread Ezio Melotti
Changes by Ezio Melotti : -- type: -> enhancement versions: +Python 2.7, Python 3.2, Python 3.3, Python 3.4 ___ 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: 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 _

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

2012-10-24 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

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

2012-10-24 Thread Matthias Klose
Matthias Klose added the comment: > Wait, does that mean you are explicitly supporting older Python versions? no, that is unchanged. the Parser/asdl_c.py script had a shebang with python. Of course you could replace the python in AC_CHECK_PROCS with the allowed python2.x versions. But then ma

  1   2   >