[issue16612] Integrate "Argument Clinic" specialized preprocessor into CPython trunk

2012-12-28 Thread Bradley Froehle
Bradley Froehle added the comment: First off, thanks for all the work so far. This has proven incredibly useful to me in a personal project. However, I think there needs to be some additional discussion of how to handle situations where the arguments passed to PyArg_ParseTuple require additiona

[issue16809] Tk 8.6.0 introduces TypeError. (Tk 8.5.13 works)

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

[issue16808] inspect.stack() should return list of named tuples

2012-12-28 Thread Raymond Hettinger
Raymond Hettinger added the comment: +1 -- keywords: +easy -patch nosy: +rhettinger stage: -> needs patch type: -> enhancement ___ Python tracker ___ __

[issue16810] inconsistency in weekday

2012-12-28 Thread Glenn Linderman
New submission from Glenn Linderman: Docs say: date.timetuple() Return a time.struct_time such as returned by time.localtime(). The hours, minutes and seconds are 0, and the DST flag is -1. d.timetuple() is equivalent to time.struct_time((d.year, d.month, d.day, 0, 0, 0, d.weekday(), yday

[issue16804] python3 -S -m site fails

2012-12-28 Thread Nick Coghlan
Nick Coghlan added the comment: Hmm, it works in 3.2, so I suspect that's a symptom of the code change that skipped the side effects on explicit import when "-S" was specified. -- ___ Python tracker __

[issue16809] Tk 8.6.0 introduces TypeError. (Tk 8.5.13 works)

2012-12-28 Thread Roger Serwy
New submission from Roger Serwy: I am running Arch Linux with the latest Tcl/Tk 8.6.0 build with Python 2.7.3 and 3.3.0, and the latest 3.4.0a0 build from the repository. Running the attached script fails when calling pack_info(). Here's is the script's output: 8.6 Traceback (most recent call

[issue16047] Tools/freeze no longer works in Python 3

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

[issue11824] freeze.py broken due to ABI flags

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

[issue16804] python3 -S -m site fails

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

[issue16781] execfile/exec execution in other than global scope uses locals(), leading to undefined behavior

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

[issue16801] Preserve original representation for integers / floats in docstrings

2012-12-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: If you wish to pursue this, I suggest starting with 'the simplest thing that works' for the text cases at hand. They all involve 'mode' and you have not presented and I cannot think of other cases. So somewhere in the signature generation code: if function n

[issue16801] Preserve original representation for integers / floats in docstrings

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

[issue12691] tokenize.untokenize is broken

2012-12-28 Thread Meador Inge
Changes by Meador Inge : -- nosy: +meador.inge ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue12486] tokenize module should have a unicode API

2012-12-28 Thread Meador Inge
Meador Inge added the comment: See also issue9969. -- nosy: +meador.inge ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue16283] ctypes.util.find_library does not find all DLLs anymore

2012-12-28 Thread Meador Inge
Changes by Meador Inge : -- nosy: +meador.inge ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue16286] Optimize a==b and a!=b for bytes and str

2012-12-28 Thread Meador Inge
Changes by Meador Inge : -- nosy: +meador.inge ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue16781] execfile/exec execution in other than global scope uses locals(), leading to undefined behavior

2012-12-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: I suppose you could say that I kicked that particular can over to the class doc ;-). The fundamental problem with exec is that it is at least as complicated as Python, since it executes any legal python code, and in fact is even more complicated* because ther

[issue16376] wrong type for wintypes.BYTE

2012-12-28 Thread Meador Inge
Changes by Meador Inge : -- nosy: +meador.inge ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue3871] cross and native build of python for mingw* hosts

2012-12-28 Thread Ray Donnelly
Ray Donnelly added the comment: Good work Jason, I think it would be great if everyone could collaborate better with this stuff; I'm as guilty as the next person on that score though. I might have been able to save you some effort by pointing you at either: https://github.com/mingwandroid/cru

[issue14369] make __closure__ writable

2012-12-28 Thread Meador Inge
Changes by Meador Inge : -- nosy: +meador.inge ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue16801] Preserve original representation for integers / floats in docstrings

2012-12-28 Thread Larry Hastings
Larry Hastings added the comment: Okay, counter-proposal time. We add a new field to the Parameter object, the preferred string representation of the default. If the parameter has a default, it is always a string, by default repr(parameter_default_value); if the parameter has no default then

[issue15840] Ambiguity with regard to the effect of accessing a closed IOBase instance

2012-12-28 Thread Andrew Svetlov
Andrew Svetlov added the comment: Agree with you, Hynek. It should be fixed in 3.4 only (and change should be well documented). -- ___ Python tracker ___ ___

[issue16798] DTD not checked

2012-12-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: I agree. The stdlib is not intended to do everything. That is why we maintain an index and optional repository for third party packages. For xml processing, lxml, in particular, is a recommended extension/replacement for advanced users. It includes an etree in

[issue16047] Tools/freeze no longer works in Python 3

2012-12-28 Thread Meador Inge
Changes by Meador Inge : -- nosy: +meador.inge ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue16694] Add pure Python operator module

2012-12-28 Thread Meador Inge
Changes by Meador Inge : -- nosy: +meador.inge ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue16808] inspect.stack() should return list of named tuples

2012-12-28 Thread Daniel Shahaf
New submission from Daniel Shahaf: Currently inspect.stack() returns a list of 6-tuples. I suggest to make it return a list of named tuples, so code that only needs one tuple element can get it by name. Current behaviour: % ./python -c 'import inspect; print(inspect.stack()[0])' (, '', 1, ''

[issue14516] test_tools assumes BUILDDIR=SRCDIR

2012-12-28 Thread Ned Deily
Ned Deily added the comment: Looks like this issue was addressed with 6d0c54b99ca9 (2.7), 5493299df0a0 (3.2) and c23b442b5d5e (default). Close? -- nosy: +ned.deily ___ Python tracker _

[issue16798] DTD not checked

2012-12-28 Thread Martin v . Löwis
Martin v. Löwis added the comment: Python's standard library does not currently provide a validating XML parser, and none is planned, so I propose to close this as "won't fix". -- nosy: +loewis ___ Python tracker

[issue15840] Ambiguity with regard to the effect of accessing a closed IOBase instance

2012-12-28 Thread Meador Inge
Changes by Meador Inge : -- nosy: +meador.inge ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue16320] Establish order in bytes/string dependencies

2012-12-28 Thread Meador Inge
Changes by Meador Inge : -- nosy: +meador.inge ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue16803] Make time_importlib run tests under both _frozen_importlib and importlib._bootstrap

2012-12-28 Thread Meador Inge
Changes by Meador Inge : -- nosy: +meador.inge ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue16795] Patch: some changes to AST to make it more useful for static language analysis

2012-12-28 Thread Meador Inge
Changes by Meador Inge : -- nosy: +meador.inge ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue16804] python3 -S -m site fails

2012-12-28 Thread Meador Inge
Changes by Meador Inge : -- nosy: +meador.inge ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue16749] Fatal Python error: PyEval_RestoreThread: NULL tstate

2012-12-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: OK, given Antoine's reply, I am going to close this until there is actionable information. -- resolution: -> invalid status: open -> closed ___ Python tracker ___

[issue16749] Fatal Python error: PyEval_RestoreThread: NULL tstate

2012-12-28 Thread Leonardo DaVinci
Leonardo DaVinci added the comment: Actually Antoine, Solidoodle has sent 2 email replies, 1 was a video link to some British guy opening his box which wasn't packed like mine and had missing parts. and the second email was just as useless stating that maybe I'm running both platforms at the sam

[issue16778] Logger.findCaller needs to be smarter

2012-12-28 Thread Antoine Pitrou
Antoine Pitrou added the comment: Passing a globals() instance looks hackish. importlib uses another approach: http://hg.python.org/cpython/file/5ef49659935f/Lib/importlib/_bootstrap.py#l303 Note that it is a pity that code objects don't have a __module__ attribute. Perhaps it would be a nice f

[issue16799] switch regrtest from getopt options to argparse Namespace

2012-12-28 Thread Chris Jerdonek
Chris Jerdonek added the comment: Here is a patch to start using a Namespace object. I also noticed that the usage() function I removed in 6e2e5adc0400 is still used elsewhere in regrtest.main(), so this patch also fixes that. -- keywords: +patch Added file: http://bugs.python.org/file

[issue16772] int() accepts float number base

2012-12-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: To me the doc strongly implies, but does not boldly and baldly say, that base should be an int. "A base-n literal consists of the digits 0 to n-1, with a to z (or A to Z) having values 10 to 35. The default base is 10. The allowed values are 0 and 2-36. Base-

[issue16807] argparse group nesting lost on inheritance

2012-12-28 Thread Dougal Sutherland
New submission from Dougal Sutherland: If you wrap a mutually exclusive group inside an argument group in an argparse.ArgumentParser, and then use parents= to inherit from that parser, the non-exclusive argument group is forgotten in the help output, and the arguments move to the default "opti

[issue16805] when building docs on Debian 7 --> ERROR: Error in "note" directive

2012-12-28 Thread Tshepang Lekhonkhobe
Tshepang Lekhonkhobe added the comment: It is my preference to be able to build all of CPython with the already-installed distro packages, instead of pulling in foreign ones. Any reason why not use later versions? Can't the docs be written such that they can run on various versions of these tools

[issue16801] Preserve original representation for integers / floats in docstrings

2012-12-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: David is correct >>> dbm.open.__doc__ "Open or create database at path given by *file*.\n\nOptional argument *flag* can be 'r' (default) for read-only access, 'w'\nfor read-write access of an existing database, 'c' for read-write access\nto a new o

[issue16781] execfile/exec execution in other than global scope uses locals(), leading to undefined behavior

2012-12-28 Thread R. David Murray
R. David Murray added the comment: It looks like you are correct Terry. The problem, I think, is that the behavior of name spaces inside a class definition is probably the least intuitive aspect of python scoping, so that sentence, while technically complete, doesn't provide enough guidance.

[issue16798] DTD not checked

2012-12-28 Thread Javier Domingo
Javier Domingo added the comment: I am currently using a subprocess with a call to xmllint to make it create a temporal file that gets created on execution for xmllint use. I have seen about lxml, but I wondered if there is any place in the standard python to put xml validation -- __

[issue16783] sqlite3 accepts strings it cannot (by default) return

2012-12-28 Thread William D. Colburn
William D. Colburn added the comment: I'm ranting against an improper bug closure and bad behavior from the python sqlite3. Treating invalid data as sometimes valid and sometime as invalid is a problem. Problems with a Python module are not anuser-error, they are an implementation error. Users

[issue16798] DTD not checked

2012-12-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: You should ask for usage tips on python-list or other forums. 2.6 and 3.1 only get security fixes. 2.7 and 3.2,3.3 only get bug fixes. This looks like a request for a new feature (assuming that it is not available now). I am not familiar with the modules, but I

[issue16806] col_offset is -1 for multiline string expressions resembling docstrings

2012-12-28 Thread Carsten Klein
Carsten Klein added the comment: In addition, the reported lineno will be set to the last line of the multi line string instead of the first line where parsing the parse began parsing the string. -- ___ Python tracker

[issue16783] sqlite3 accepts strings it cannot (by default) return

2012-12-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: Opening a duplicate issue to rant against the developers is not responsible behavior. Since you do not seem to understand Martin's 2.x solution, ask for help on python-list or elsewhere (and read below). The proper fix for multiple Unicode and text coding prob

[issue16758] SubprocessStartupError

2012-12-28 Thread Andrew Svetlov
Andrew Svetlov added the comment: I guess it is actually firewall. -- nosy: +asvetlov type: performance -> behavior ___ Python tracker ___ ___

[issue1062277] Pickle breakage with reduction of recursive structures

2012-12-28 Thread Eugene Toder
Changes by Eugene Toder : -- versions: +Python 3.3, Python 3.4 -Python 3.1 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue1062277] Pickle breakage with reduction of recursive structures

2012-12-28 Thread Eugene Toder
Eugene Toder added the comment: To recap, the issue is that pickle doesn't handle recursion via reduce arguments (i.e. arguments to the constructor function as returned in 2nd element of the tuple from __reduce__). This leads to 2 kind of effects: class C: def __init__(self, x=None):

[issue16805] when building docs on Debian 7 --> ERROR: Error in "note" directive

2012-12-28 Thread Sandro Tosi
Sandro Tosi added the comment: Hello Tshepang, the documentation is not compatible with Sphinx versions different than the one the Makefile will download (in this case it's 1.0.7 for all active branches). I'd suggest to build the doc with just $ make -C Doc html and it will fetch the needed m

[issue16749] Fatal Python error: PyEval_RestoreThread: NULL tstate

2012-12-28 Thread Antoine Pitrou
Antoine Pitrou added the comment: > I've tried installing on Mac at least 6 times and I still get error > messages. I'm dealing with Solidoodle with no success. > > I have an appointment with a 3d Print Lab on Jan 3rd (50 miles away) to > help me resolve my issues. Ciro, it seems you should wai

[issue16749] Fatal Python error: PyEval_RestoreThread: NULL tstate

2012-12-28 Thread Leonardo DaVinci
Leonardo DaVinci added the comment: Terry, I've tried installing on Mac at least 6 times and I still get error messages. I'm dealing with Solidoodle with no success. I have an appointment with a 3d Print Lab on Jan 3rd (50 miles away) to help me resolve my issues. Regards Ciro On Fri, Dec 28,

[issue16806] col_offset is -1 for multiline string expressions resembling docstrings

2012-12-28 Thread Carsten Klein
Carsten Klein added the comment: Please note that, regardless of the indent level, the col_offset for multi line str expressions will always be -1. -- ___ Python tracker ___ ___

[issue16806] col_offset is -1 for multiline string expressions resembling docstrings

2012-12-28 Thread Carsten Klein
New submission from Carsten Klein: Given an input module such as class klass(object): """multi line comment continued on this line """ """single line comment""" """ Another multi line comment""" and implementing a custom ast.NodeVisitor such as import as cl

[issue16805] when building docs on Debian 7 --> ERROR: Error in "note" directive

2012-12-28 Thread Tshepang Lekhonkhobe
New submission from Tshepang Lekhonkhobe: I am running Debian 7, which has sphinx is1.1.3+dfsg-4. When I run $ python tools/sphinx-build.py -bhtml . build/ I get a whole bunch of errors: Making output directory... Running Sphinx v1.1.3 loading pickled environment... not yet created building [

[issue16781] execfile/exec execution in other than global scope uses locals(), leading to undefined behavior

2012-12-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: This is at most a further doc clarification issue as the code is working as documented. In a previous issue, I added the following sentence to all current versions to try to clarify this type of behavior: " If exec gets two separate objects as globals and loca

[issue16784] Int tests enhancement and refactoring

2012-12-28 Thread Chris Jerdonek
Chris Jerdonek added the comment: Improvement of int/long tests should also be reflected in the Tests section of Misc/NEWS. An entry wasn't added in issue 16045. For linking purposes, this issue number would probably be the best to use for such an entry. -- _

[issue16778] Logger.findCaller needs to be smarter

2012-12-28 Thread Vinay Sajip
Changes by Vinay Sajip : -- keywords: +patch Added file: http://bugs.python.org/file28472/8756372f0f5f.diff ___ Python tracker ___ ___

[issue16778] Logger.findCaller needs to be smarter

2012-12-28 Thread Vinay Sajip
Changes by Vinay Sajip : -- hgrepos: +166 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.or

[issue16749] Fatal Python error: PyEval_RestoreThread: NULL tstate

2012-12-28 Thread Antoine Pitrou
Antoine Pitrou added the comment: Well, the error message comes from a misuse of the PyEval_RestoreThread() (by passing it a NULL argument), either directly or by using another API such as Py_END_ALLOW_THREADS which calls that function. The problem is likely to be in the Solidoodle extension.

[issue16749] Fatal Python error: PyEval_RestoreThread: NULL tstate

2012-12-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: Antoine: do you know anything about this message? Fatal Python error: PyEval_RestoreThread: NULL tstate Is there a serious possibility that it could indicate a CPython error, as opposed to an extension author error? Could running Windows on Mac hardware make a

[issue16793] Get rid of deprecated assertEquals etc in tests

2012-12-28 Thread Georg Brandl
Georg Brandl added the comment: That makes it more of a fix, true. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue16787] asyncore.dispatcher_with_send - increase the send buffer size

2012-12-28 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Would producer_fifo have to change from a deque() to a memoryview() > object? A memoryview is not a container, it's a view over an existing container. > In that case we might have to take backward compatibility into account > (producer_fifo already changed i

[issue16784] Int tests enhancement and refactoring

2012-12-28 Thread Chris Jerdonek
Chris Jerdonek added the comment: Another task: backport the tests for current behavior added under issue 16772 (e.g. test_int_base_limits() tests). -- ___ Python tracker ___ __

[issue16787] asyncore.dispatcher_with_send - increase the send buffer size

2012-12-28 Thread Charles-François Natali
Charles-François Natali added the comment: >> memoryview is also great to avoid copies when sending/receiving to a socket. > > That's interesting. How exactly? Would producer_fifo have to change from a > deque() to a memoryview() object? In that case we might have to take backward > compatibili

[issue3871] cross and native build of python for mingw* hosts

2012-12-28 Thread Jason Huntley
Jason Huntley added the comment: Finally! I was able to get all building on mingw64, gcc 4.7.2, and python 3.3. I had to take everybody's work here a little further, and I have produced a new patch which will build python33 using the latest minw64 compiler in an msys environment. I cloned the

[issue10527] multiprocessing.Pipe problem: "handle out of range in select()"

2012-12-28 Thread Antoine Pitrou
Antoine Pitrou added the comment: The order of the results is probably unimportant. -- ___ Python tracker ___ ___ Python-bugs-list mai

[issue16793] Get rid of deprecated assertEquals etc in tests

2012-12-28 Thread Ezio Melotti
Ezio Melotti added the comment: > And please don't commit cosmetic/"cleanup" changes to bugfix branches in the > future. Note that those methods are deprecated and thus raise deprecation warnings when the tests are run. It's not just a simple cosmetic/cleanup change IMHO. -- ___

[issue16793] Get rid of deprecated assertEquals etc in tests

2012-12-28 Thread Georg Brandl
Georg Brandl added the comment: Like Raymond said in the other issue: it's not going to be a problem once committed, but please be mindful of what you commit to bugfix branches in the future. -- ___ Python tracker

[issue16379] SQLite error code not exposed to python

2012-12-28 Thread Daniel Shahaf
Daniel Shahaf added the comment: I didn't compile-test the Doc/ part of the patch. -- ___ Python tracker ___ ___ Python-bugs-list mail

[issue16748] Ensure test discovery doesn't break for modules testing C and Python implementations

2012-12-28 Thread R. David Murray
R. David Murray added the comment: That sounds right to me. Note that PEP 399 is following older conventions that were laid down in a time when unittest did not *have* test discovery, so this is a new paradigm we'd like to move to (for the reasons Brett mentioned), and it may take a while to

[issue16761] Fix int(base=X)

2012-12-28 Thread Raymond Hettinger
Raymond Hettinger added the comment: > Should I now revert my changes to 2.7, 3.2 and 3.3? Once committed, I would say leave it in as long as you're confident that no currently working code will break as a result. In general, be very conservative about backporting any behavioral change.

[issue16379] SQLite error code not exposed to python

2012-12-28 Thread Daniel Shahaf
Daniel Shahaf added the comment: Attached patch that: - Adds sqlite3.SQLITE_OK constants - Adds sqlite3.errorcode dictionary - Adds "sqlite_errcode" attribute to sqlite.Error instances The patch does not add support for extended result codes (http://www.sqlite.org/c3ref/c_abort_rollback.html).

[issue16748] Ensure test discovery doesn't break for modules testing C and Python implementations

2012-12-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: I should think that the first fix should be to the PEP. If I understand msg177908, that would mean removing unittest.TestCase as a base for ExampleTest and adding it as bases for AcceleratedExampleTest and PyExampleTest. Or have I missed something? --

[issue16804] python3 -S -m site fails

2012-12-28 Thread Antoine Pitrou
New submission from Antoine Pitrou: $ python3.4 -S -m site sys.path = [ '', '/home/antoine/opt/lib/python34.zip', '/home/antoine/opt/lib/python3.4/', '/home/antoine/opt/lib/python3.4/plat-linux', '/home/antoine/opt/lib/python3.4/lib-dynload', ] Traceback (most recent call last

[issue16794] Can't get a list of modules in Python's help system

2012-12-28 Thread vertograd phrokhladny
vertograd phrokhladny added the comment: Re: 2012/12/27 R. David Murray > > R. David Murray added the comment: > > This is a duplicate of issue 10060, and as indicated there there really > isn't much Python can do about this. You should report the bug to Ubuntu, > but I'm pretty sure there

[issue10527] multiprocessing.Pipe problem: "handle out of range in select()"

2012-12-28 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: New patch in attachment. It always uses poll() and maintains and internal fd/Connection map. I get one failure due to the returned list being sorted differently than when using select() though. ===

[issue10848] Move test.regrtest from getopt to argparse

2012-12-28 Thread Brett Cannon
Brett Cannon added the comment: Since http://bugs.python.org/issue10967 is the meta issue for updating regrtest this can be closed. -- resolution: -> fixed status: open -> closed ___ Python tracker __

[issue16748] Ensure test discovery doesn't break for modules testing C and Python implementations

2012-12-28 Thread Brett Cannon
Brett Cannon added the comment: Making tests discoverable allows for the future possibility of dropping our custom test runner code and using more of unittest code by having regrtest use unittest's discovery code to find all tests. -- ___ Python tra

[issue7325] tempfile.mkdtemp() does not return absolute pathname when relative dir is specified

2012-12-28 Thread Brett Cannon
Changes by Brett Cannon : -- nosy: -brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue16642] Mention new "kwargs" named tuple parameter in sched module

2012-12-28 Thread Ezio Melotti
Ezio Melotti added the comment: LGTM. -- nosy: +ezio.melotti, rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue16795] Patch: some changes to AST to make it more useful for static language analysis

2012-12-28 Thread Brett Cannon
Changes by Brett Cannon : -- nosy: +brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue16642] Mention new "kwargs" named tuple parameter in sched module

2012-12-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: What anyone can say about this doc changes? -- ___ Python tracker ___ ___ Python-bugs-list mailing

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

2012-12-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Sorry, Chris. I have opened too many browser tabs. ;) -- nosy: -chris.jerdonek ___ Python tracker ___ ___

[issue16645] Wrong test_extract_hardlink() in test_tarfile.py

2012-12-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Sorry, Chris. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

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

2012-12-28 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +chris.jerdonek ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue16787] asyncore.dispatcher_with_send - increase the send buffer size

2012-12-28 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: > memoryview is also great to avoid copies when sending/receiving to a socket. That's interesting. How exactly? Would producer_fifo have to change from a deque() to a memoryview() object? In that case we might have to take backward compatibility into accoun

[issue16761] Fix int(base=X)

2012-12-28 Thread Antoine Pitrou
Antoine Pitrou added the comment: If PyPy gets away with a different behaviour, there's probably nobody relying on it, so I'd say the backports are safe. -- nosy: +pitrou ___ Python tracker ___

[issue16787] asyncore.dispatcher_with_send - increase the send buffer size

2012-12-28 Thread Charles-François Natali
Charles-François Natali added the comment: > What/where do you mean exactly? """ 187 def push (self, data): 188 sabs = self.ac_out_buffer_size 189 if len(data) > sabs: 190 for i in range(0, len(data), sabs): 191 self.producer_fifo.append(data[i:i+s

[issue16799] switch regrtest from getopt options to argparse Namespace

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

[issue15302] Use argparse instead of getopt in test.regrtest

2012-12-28 Thread Andrew Svetlov
Andrew Svetlov added the comment: Good step! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue16640] Less code under lock in sched.scheduler

2012-12-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Perhaps it was inherited from Python 2. -- ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue16803] Make time_importlib run tests under both _frozen_importlib and importlib._bootstrap

2012-12-28 Thread Brett Cannon
New submission from Brett Cannon: Need to do some work on the importlib tests such that they get run using both _frozen_importlib and importlib._bootstrap to prevent any drift between importlib/_bootstrap.py and import.c (and to make it easier to develop). -- components: Tests messages

[issue16640] Less code under lock in sched.scheduler

2012-12-28 Thread Antoine Pitrou
Antoine Pitrou added the comment: Ah, ok. By the way, the queue property says it returns "An ordered list", but it seems to actually return an iterator. -- ___ Python tracker __

[issue16799] switch regrtest from getopt options to argparse Namespace

2012-12-28 Thread Tshepang Lekhonkhobe
Changes by Tshepang Lekhonkhobe : -- nosy: +tshepang ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue12065] test_ssl failure when svn.python.org fails to resolve

2012-12-28 Thread Roundup Robot
Roundup Robot added the comment: New changeset 3436769a7964 by Antoine Pitrou in branch '2.7': Backport Python 3.2 fix for issue #12065, and add another test for SSLSocket.connect_ex(). http://hg.python.org/cpython/rev/3436769a7964 -- ___ Python trac

[issue16787] asyncore.dispatcher_with_send - increase the send buffer size

2012-12-28 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: > But even in asynchat, there's a lot of copying going on, length > computations performed twice in a row, etc. What/where do you mean exactly? I see little value in focusing efforts towards things such as initiate_with_send which are not supposed to be used

[issue16772] int() accepts float number base

2012-12-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > Serhiy: can you clarify this remark? Where do you see the OverflowError? > The current exception and message look fine to me, so maybe I'm > misunderstanding what you're talking about: Sorry, I have been confused (and confuse you) by the variety of PyLong_A

[issue16640] Less code under lock in sched.scheduler

2012-12-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This heapq.heappop does applied to a copy of self._queue. Copying done under a lock. -- ___ Python tracker ___ __

  1   2   >