[issue17445] Return the type you accept

2013-03-18 Thread Terry J. Reedy
Terry J. Reedy added the comment: Changing behavior that already matches the docs is an enhancement, not a bugfix, and one that will almost certainly break code. It is therefore one that would normally require a deprecation period. I think the most you should ask for is to skip the

[issue17452] ftplib raises exception if ssl module is not available

2013-03-18 Thread Russell Kackley
New submission from Russell Kackley: On a system with no ssl module the following test failure occurs: == ERROR: test_dir (test.test_ftplib.TestFTPClass) --

[issue17206] Py_XDECREF() expands its argument multiple times

2013-03-18 Thread Illia Polosukhin
Illia Polosukhin added the comment: I've worked on this with Dave Malcolm @PyCon2013 sprints. This patch is work in progress to make Py_XDECREF() and Py_XINCREF() expands their arguments once instead of multiple times. Because patch is work in progress, it contains old version for ease of

[issue17206] Py_XDECREF() expands its argument multiple times

2013-03-18 Thread Illia Polosukhin
Illia Polosukhin added the comment: Additionally, in macros Py_XINCREF and Py_XDECREF we've took an opportunity to increase readability by changing expression: if (item == NULL) ; else action(item); to more natural inverted condition: if (item != NULL) action(item); There is a chance that

[issue17206] Py_XDECREF() expands its argument multiple times

2013-03-18 Thread Illia Polosukhin
Illia Polosukhin added the comment: Benchmark run on Clang Mac OS X 10.7 attached of comparison with and without patch 17206.diff. -- Added file: http://bugs.python.org/file29440/perf.log ___ Python tracker rep...@bugs.python.org

[issue17206] Py_XDECREF() expands its argument multiple times

2013-03-18 Thread Illia Polosukhin
Illia Polosukhin added the comment: Command used for benchmarking was: python perf.py -b 2n3 -f ../cpython/baseline-clang/python.exe ../cpython/experiment-clang/python.exe | tee perf.log -- ___ Python tracker rep...@bugs.python.org

[issue3840] if TESTFN == /tmp/@test, some tests fail

2013-03-18 Thread R. David Murray
R. David Murray added the comment: To clarify Colin's comment (we worked on this at the sprints), in 2.7 and later regrtest no longer will generate a TESTFN that starts with /tmp in any circumstance, so that includes cygwin. (Instead regrtest creates a temporary directory in which the tests

[issue17453] logging.config.fileConfig error

2013-03-18 Thread Hervé Coatanhay
New submission from Hervé Coatanhay: In python 2.7 this code works: import logging.config import StringIO a=[loggers] ... keys = root ... [logger_root] ... handlers = ... [formatters] ... keys = ... [handlers] ... keys = ... logging.config.fileConfig(StringIO.StringIO(a)) whereas in

[issue17450] Failed to build _sqlite3

2013-03-18 Thread Ezio Melotti
Ezio Melotti added the comment: The module is not needed (unless you are planning to use sqlite), so you can simply ignore the warning. See also http://docs.python.org/devguide/setup.html#build-dependencies. -- nosy: +ezio.melotti resolution: - invalid stage: - committed/rejected

[issue17454] ld_so_aix not used when linking c++ (scipy)

2013-03-18 Thread alef
New submission from alef: error: Command xlC_r xlC_r -bI:/pathp/to/lib/python2.7/config/python.exp unixccompiler.py at line 251 override linker[0] with self.compiler_cxx[0]. This is not true for AIX that uses the script ld_so_aix, and not xlC_r. -- assignee: eric.araujo

[issue17445] Return the type you accept

2013-03-18 Thread Nick Coghlan
Nick Coghlan added the comment: At a glance, this just looks like a bug in difflib - it should use different literals when handling bytes. (Given that difflib newline processing assumes ASCII compatibility, a latin-1 based decode/encode solution may also be viable). --

[issue2786] Names in traceback should have class names, if they're methods

2013-03-18 Thread Illia Polosukhin
Illia Polosukhin added the comment: Talked with David Murray (r.david.murray) at @pycon2013 sprints - will try to address this. -- nosy: +ilblackdragon ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2786

[issue17452] ftplib raises exception if ssl module is not available

2013-03-18 Thread Roundup Robot
Roundup Robot added the comment: New changeset 0842c5411ed6 by Giampaolo Rodola' in branch 'default': (issue 17452 / ftplib) fix TypeError occurring in case ssl module is not installed http://hg.python.org/cpython/rev/0842c5411ed6 -- nosy: +python-dev

[issue17452] ftplib raises exception if ssl module is not available

2013-03-18 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Fixed, thanks. -- assignee: - giampaolo.rodola resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17452

[issue17299] Test cPickle with real files

2013-03-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Oh, yes. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17299 ___ ___ Python-bugs-list mailing list

[issue17299] Test cPickle with real files

2013-03-18 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: Removed file: http://bugs.python.org/file29433/test_cpickle_fileio.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17299 ___

[issue17455] ImportError (xml.dom.minidom) in /usr/lib/python2.7/dist-packages/apport/report.py

2013-03-18 Thread Felix Matenaar
New submission from Felix Matenaar: We're getting the following exception in a custom testing framework using sqlalchemy. Our process is running several days and the exception seems to occurs unproducably during runtime, sometimes after a day and sometimes after a couple of hours. The same

[issue17310] Ctypes callbacks shows problem on Windows Python (64bit)

2013-03-18 Thread Matt Clarke
Matt Clarke added the comment: Hi Amaury. I have tried removing pack and using /Zp1, but it makes no difference. The size of callback_t and the one in C are 8 bytes. Thanks, Matt On 13 March 2013 13:19, Amaury Forgeot d'Arc rep...@bugs.python.org wrote: Amaury Forgeot d'Arc added the

[issue17397] ttk::themes missing from ttk.py

2013-03-18 Thread klappnase
klappnase added the comment: I am not familiar with python's test unit, but I tried my best. As far as I see there are three possibilities to invoke the function: * without pattern - return tuple with all themes * with pattern that matches one or more themes * with pattern that matches no

[issue17456] os.py (unexpected character)

2013-03-18 Thread Corto Nexus
New submission from Corto Nexus: In Python 3.3 (Windows 32bits) the lib os.py start with an uncommented letter 'r'. -- messages: 184446 nosy: corto.nexus priority: normal severity: normal status: open title: os.py (unexpected character) type: enhancement versions: Python 3.3

[issue17299] Test cPickle with real files

2013-03-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Benjamin has fixed this in the changeset 6aab72424063. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17299

[issue17456] os.py (unexpected character)

2013-03-18 Thread Ezio Melotti
Ezio Melotti added the comment: os.py starts with: rOS routines for Mac, NT, or Posix depending on what system we're on. [...] Do you see only the 'r'? -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org

[issue17456] os.py (unexpected character)

2013-03-18 Thread Anuj Gupta
Anuj Gupta added the comment: http://docs.python.org/3/tutorial/introduction.html#strings This seems like a good opportunity for you to learn about raw strings. :) -- nosy: +anuj ___ Python tracker rep...@bugs.python.org

[issue17456] os.py (unexpected character)

2013-03-18 Thread Christian Heimes
Changes by Christian Heimes li...@cheimes.de: -- resolution: - invalid status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17456 ___

[issue17457] Unittest discover fails with namespace packages and builtin modules

2013-03-18 Thread Popa Claudiu
New submission from Popa Claudiu: There is a problem with unittest discovering and namespace packages. Given the following folder structure, where a namespace package X lies, the following command fails with the following error: -testbug - flufl (namespace package with some tests in it,

[issue16575] ctypes: unions as arguments

2013-03-18 Thread Eli Bendersky
Changes by Eli Bendersky eli...@gmail.com: -- nosy: +theller ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16575 ___ ___ Python-bugs-list mailing

[issue17458] Automatic type conversion from set to frozenset

2013-03-18 Thread Jose Antonio Martin H
New submission from Jose Antonio Martin H: Is it possible to consider the automatic type conversion from set to frozenset whenever a set is declared inside a set, as the key of a Counter and as the key of a Dict? Tha is, the case when a set is used but a hashable object is requested. Having

[issue17459] unittest.assertItemsEqual reports wrong order

2013-03-18 Thread Matthijs van der Vleuten
New submission from Matthijs van der Vleuten: When calling assertItemsEqual(first,second), if the items in a and b differ, the AssertionError treats second as the first sequence and first as the second sequence. Repro code: from unittest.case import TestCase class Foo(TestCase): ...

[issue17459] unittest.assertItemsEqual reports wrong order

2013-03-18 Thread Matthijs van der Vleuten
Matthijs van der Vleuten added the comment: Duplicate of 14832. -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17459 ___

[issue1291] test_resource fails on recent linux systems

2013-03-18 Thread Senthil Kumaran
Senthil Kumaran added the comment: The last commit 59292f366b53 was for fixing issue12921 and not this. Wrongly linked. -- nosy: +orsenthil ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1291

[issue17458] Automatic type conversion from set to frozenset

2013-03-18 Thread Ezio Melotti
Ezio Melotti added the comment: I think this is python-ideas material. Automatic conversions are usually not a good idea though. -- nosy: +ezio.melotti resolution: - rejected stage: - committed/rejected status: open - closed versions: -Python 2.7, Python 3.1, Python 3.2, Python

[issue17272] request.full_url: unexpected results on assignment

2013-03-18 Thread Senthil Kumaran
Senthil Kumaran added the comment: Sorry for taking long time to respond. full_url has been in the shape it is for many versions, changing it in backwards incompatible way be do more harm than good. - I would be really interested to know why the present form of full_url presented any

[issue17310] Ctypes callbacks shows problem on Windows Python (64bit)

2013-03-18 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: Sorry, I asked the wrong question; callback_t is a function pointer, so 8 bytes is expected. What is sizeof(myst_args) both in C and Python? -- ___ Python tracker rep...@bugs.python.org

[issue17460] Remove the strict and related params completely removing the 0.9 support

2013-03-18 Thread Senthil Kumaran
New submission from Senthil Kumaran: issue10711 Removed the HTTP 0.9 support in 3.2 and deprecated strict and related params in 3.2. It is time to remove those in 3.4. -- assignee: orsenthil messages: 184458 nosy: orsenthil, pitrou priority: normal severity: normal status: open title:

[issue17457] Unittest discover fails with namespace packages and builtin modules

2013-03-18 Thread Eric V. Smith
Changes by Eric V. Smith e...@trueblade.com: -- nosy: +eric.smith ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17457 ___ ___ Python-bugs-list

[issue17444] multiprocessing.cpu_count() should use hw.availcpu on Mac OS X

2013-03-18 Thread Ronald Oussoren
Ronald Oussoren added the comment: I'm not sure if hw.availcpu is the right value to use as it is not documented at all (neither in a manpage, nor in a headerfile). hw.activecpu seems to be the one that should be used: it is documented as The number of processors currently available for

[issue17310] Ctypes callbacks shows problem on Windows Python (64bit)

2013-03-18 Thread Matt Clarke
Matt Clarke added the comment: Hi Amaury. They are both 12 bytes. Matt -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17310 ___ ___

[issue17272] request.full_url: unexpected results on assignment

2013-03-18 Thread Demian Brecht
Demian Brecht added the comment: No worries. The change is not backwards incompatible. test_urllib2 test pass without any modification (I'm getting a segfault in test_heapq atm so can't run the full suite). I've simply moved the side effects cause by __init__ to a setter so that full_url may

[issue17461] Carole should be Carol in PEP 396

2013-03-18 Thread Ramchandra Apte
New submission from Ramchandra Apte: In here, now get it from the Cheeseshop. Carole maintains several namespace packages, -- messages: 184462 nosy: Ramchandra Apte priority: normal severity: normal status: open title: Carole should be Carol in PEP 396

[issue17444] multiprocessing.cpu_count() should use hw.availcpu on Mac OS X

2013-03-18 Thread John Szakmeister
John Szakmeister added the comment: Ronald: it is mentioned in some books (a Google search can turn them up), but they don't really offer much description behind the intent. When I looked into this several years ago, it was very unclear what `hw.activecpu` was intended for. It sounded more

[issue17460] Remove the strict and related params completely removing the 0.9 support

2013-03-18 Thread Senthil Kumaran
Senthil Kumaran added the comment: Tested this patch and all tests pass. -- keywords: +patch Added file: http://bugs.python.org/file29443/17460.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17460

[issue17453] logging.config.fileConfig error

2013-03-18 Thread Ned Deily
Changes by Ned Deily n...@acm.org: -- nosy: +vinay.sajip ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17453 ___ ___ Python-bugs-list mailing list

[issue17409] resource.setrlimit doesn't respect -1

2013-03-18 Thread Paul Price
Paul Price added the comment: The OSX manpage for setrlimit includes: COMPATIBILITY setrlimit() now returns with errno set to EINVAL in places that histori- cally succeeded. It no longer accepts rlim_cur = RLIM_INFINITY for RLIM_NOFILE. Use rlim_cur = min(OPEN_MAX, rlim_max).

[issue17461] Carole should be Carol in PEP 396

2013-03-18 Thread Benjamin Peterson
Benjamin Peterson added the comment: http://hg.python.org/peps/rev/dee47f9b87a4 -- nosy: +benjamin.peterson resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17461

[issue17455] ImportError (xml.dom.minidom) in /usr/lib/python2.7/dist-packages/apport/report.py

2013-03-18 Thread Christian Heimes
Christian Heimes added the comment: apport and sqlalchemy are both third-party extensions. apport is a part of Debian's / Ubuntu's Python infrastructure. There is nothing we can do about the two issues. -- nosy: +christian.heimes resolution: - invalid status: open - closed

[issue17462] argparse FAQ: how it is different from optparse

2013-03-18 Thread anatoly techtonik
New submission from anatoly techtonik: http://stackoverflow.com/questions/3217673/why-use-argparse-rather-than-optparse Too many votes. This should be confirmed by the official documentation. -- assignee: docs@python components: Documentation messages: 184468 nosy: docs@python,

[issue17462] argparse FAQ: how it is different from optparse

2013-03-18 Thread Andrew Svetlov
Andrew Svetlov added the comment: The patch is welcome -- nosy: +asvetlov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17462 ___ ___

[issue17462] argparse FAQ: how it is different from optparse

2013-03-18 Thread Ezio Melotti
Ezio Melotti added the comment: Is http://docs.python.org/dev/library/argparse.html#upgrading-optparse-code not enough? -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17462

[issue17462] argparse FAQ: how it is different from optparse

2013-03-18 Thread anatoly techtonik
anatoly techtonik added the comment: @asvetlov: I still don't have the answer which licence - Academic Free License v2.1 or Apache 2.0 should I choose to license my patches. What is the difference? Ezio: It explains what you should replace, but doesn't explain why. -- versions:

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

2013-03-18 Thread Benjamin Peterson
Benjamin Peterson added the comment: Hi Sven, I was about to apply this (sorry for the delay), and I realized there's one more thing. We have an example AST unparser in Tools/parser that needs to be updated for AST changes. You can run it's test suite by running test_tools in the main test

[issue17463] Fix test discovery for test_pdb.py

2013-03-18 Thread Andrew Svetlov
Changes by Andrew Svetlov andrew.svet...@gmail.com: -- nosy: asvetlov priority: normal severity: normal status: open title: Fix test discovery for test_pdb.py versions: Python 3.3, Python 3.4 ___ Python tracker rep...@bugs.python.org

[issue17463] Fix test discovery for test_pdb.py

2013-03-18 Thread Roundup Robot
New submission from Roundup Robot: New changeset 50af6682c6a7 by Andrew Svetlov in branch '3.3': Issue #17463: Fix test discovery for test_pdb.py http://hg.python.org/cpython/rev/50af6682c6a7 New changeset 30530f6c24bb by Andrew Svetlov in branch 'default': Issue #17463: Fix test discovery for

[issue17460] Remove the strict and related params completely removing the 0.9 support

2013-03-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: May be in 3.4 an exception should be raised? HTTPConnection('python.org', 80, False) now silently returns wrong result. -- components: +Library (Lib) nosy: +serhiy.storchaka stage: - patch review type: - enhancement versions: +Python 3.4

[issue17463] Fix test discovery for test_pdb.py

2013-03-18 Thread Andrew Svetlov
Changes by Andrew Svetlov andrew.svet...@gmail.com: -- resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17463 ___

[issue17451] Test to splitdoc in pydoc.py

2013-03-18 Thread Matt Bachmann
Changes by Matt Bachmann bachmann.m...@gmail.com: Added file: http://bugs.python.org/file29444/acks.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17451 ___

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

2013-03-18 Thread Sven Brauch
Sven Brauch added the comment: Hi Benjamin, the delay is not a problem -- as long as this is in time for Python 3.4, everything is fine. Attached is a patch which adjusts the unparser to the changes. Acoording to the tests, this is all that needs to be updated. Cheers, Sven --

[issue12160] codecs doc: what is StreamCodec?

2013-03-18 Thread Nick Weinhold
Nick Weinhold added the comment: I've noticed that this issue hasn't been looked at in a while, and from looking through the current docucmentation, it looks like this issue still exists. I've uploaded a patch with the changes that Marc-Andre mentioned. -- nosy: +ncweinhold Added

[issue17450] Failed to build _sqlite3

2013-03-18 Thread Christina Chan
Christina Chan added the comment: Hi, I am new to python and I am actually running script developed by others using python. So, In order for the script to use SQLite, does it means that it will have import SQLite in the script or how could one tell if SQLite is needed? For the build

[issue17397] ttk::themes missing from ttk.py

2013-03-18 Thread klappnase
klappnase added the comment: Update: I just tried Python-3.3.0 on WinXP, the same error, so it is obviously _not_ a bug specific to the debian python install. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17397

[issue17451] Test to splitdoc in pydoc.py

2013-03-18 Thread Matt Bachmann
Matt Bachmann added the comment: This has the test in the wrong place and I am actively expanding it. I will reopen later today. -- resolution: - rejected status: open - closed ___ Python tracker rep...@bugs.python.org

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

2013-03-18 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7c5c678e4164 by Benjamin Peterson in branch 'default': unify some ast.argument's attrs; change Attribute column offset (closes #16795) http://hg.python.org/cpython/rev/7c5c678e4164 -- nosy: +python-dev resolution: - fixed stage: -

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

2013-03-18 Thread Roundup Robot
Roundup Robot added the comment: New changeset 219c997b880b by Benjamin Peterson in branch 'default': add Sven Brauch for his #16795 contribution http://hg.python.org/cpython/rev/219c997b880b -- ___ Python tracker rep...@bugs.python.org

[issue16381] Introduce option to force the interpreter to exit upon MemoryErrors

2013-03-18 Thread Lukas Lueg
Lukas Lueg added the comment: Another proposal: Add a new BaseClass that, if inherited from, causes an exception to be uncatchable (e.g. class HardMemoryError(MemoryError, UncatchableException)). -- ___ Python tracker rep...@bugs.python.org

[issue17397] ttk::themes missing from ttk.py

2013-03-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This looks similar to issue16809 and requires a similar solution. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17397 ___

[issue5024] sndhdr.whathdr returns -1 for WAV file frame count

2013-03-18 Thread Ned Jackson Lovely
Ned Jackson Lovely added the comment: Added bytes literal 'b', made it a real patch, changed test to account for WAV files actually returning number of frames from this function. -- keywords: +patch nosy: +n versions: +Python 3.4 -Python 3.2 Added file:

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

2013-03-18 Thread Sven Brauch
Sven Brauch added the comment: Thanks for reviewing this, and thanks for guiding me through the implementation process. ;) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16795 ___

[issue17464] Improve Test Coverage Of Pydoc

2013-03-18 Thread Matt Bachmann
Changes by Matt Bachmann bachmann.m...@gmail.com: -- components: +Tests type: - enhancement ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17464 ___

[issue17464] Improve Test Coverage Of Pydoc

2013-03-18 Thread Matt Bachmann
New submission from Matt Bachmann: Adds some test coverage to pydoc. -- files: pydoctests.patch keywords: patch messages: 184486 nosy: Matt.Bachmann priority: normal severity: normal status: open title: Improve Test Coverage Of Pydoc versions: Python 3.5 Added file:

[issue17445] Return the type you accept

2013-03-18 Thread Greg Ward
Greg Ward added the comment: The original reproduction I posted was incorrect -- it makes difflib look worse than it should. (I passed strings rather than lists of strings.) Here is a more accurate version: import difflib a = [b'hello'] b = [b'hello!'] '\n'.join(line for line in

[issue1745722] please add wsgi to SimpleXMLRPCServer

2013-03-18 Thread Sanjeev Paskaradevan
Changes by Sanjeev Paskaradevan sanjeev@gmail.com: -- nosy: +Sanjeev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1745722 ___ ___

[issue17206] Py_XDECREF() expands its argument multiple times

2013-03-18 Thread Mark Dickinson
Mark Dickinson added the comment: I'd suggest less generic names for the temporary variables, just to minimise the chance of accidental name collisions. _py_xincref_tmp and _py_xdecref_tmp, perhaps? -- nosy: +mark.dickinson ___ Python tracker

[issue17465] Gut devinabox

2013-03-18 Thread Brett Cannon
New submission from Brett Cannon: While devinabox was originally designed such that anyone running a core dev sprint could have an easy way to grab everything, it has turned out only core devs end up using it. That makes having a script to do checkouts, builds, etc. is overkill. What

[issue17445] Return the type you accept

2013-03-18 Thread Greg Ward
Greg Ward added the comment: Replying to Terry Reedy: So a dual string/bytes function would not be completely trivial. Correct. I have one working, but it makes my eyes bleed. I fail ashamed to have written it. Greg, can you convert bytes to strings, or strings to bytes Nope. Here is the

[issue17358] imp.load_module() leads to the improper caching of the 'file' argument

2013-03-18 Thread Kushal Das
Kushal Das added the comment: Working on a patch for this. -- nosy: +kushaldas ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17358 ___ ___

[issue17206] Py_XDECREF() expands its argument multiple times

2013-03-18 Thread Illia Polosukhin
Illia Polosukhin added the comment: That names were my first idea - but then I saw Py_CLEAR uses _py_tmp variable I used it. Should I replace in Py_CLEAR to _py_clear_tmp as well? -- ___ Python tracker rep...@bugs.python.org

[issue17460] Remove the strict and related params completely removing the 0.9 support

2013-03-18 Thread Senthil Kumaran
Senthil Kumaran added the comment: I don't know what is the best way to raise an Exception when we are deprecating an argument. 1. The options are type checking on timeout parameter and then raising an error. This does not look good to me. 2. Making the rest of the arguments as keyword only

[issue17206] Py_XDECREF() expands its argument multiple times

2013-03-18 Thread Mark Dickinson
Mark Dickinson added the comment: Ignore me; I don't know what I was thinking. _py_tmp is fine. There's no issue with name clashes. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17206

[issue17397] ttk::themes missing from ttk.py

2013-03-18 Thread klappnase
klappnase added the comment: Yes, I happen to encounter these TclObjects occasionally, e.g. (not tested with the latest python): $ python3 Python 3.1.3 (r313:86834, Nov 28 2010, 11:28:10) [GCC 4.4.5] on linux2 Type help, copyright, credits or license for more information. from tkinter import

[issue17053] pydoc should use inspect.signature instead of inspect.getfullargspec

2013-03-18 Thread Sean Reifschneider
Sean Reifschneider added the comment: This may be related to: http://bugs.python.org/issue17424 Perhaps there is a common fix that can address this for both? -- nosy: +jafo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17053

[issue5051] test_update2 in test_os.py invalid due to os.environ.clear() followed by reliance on environ COMSPEC

2013-03-18 Thread Ned Jackson Lovely
Ned Jackson Lovely added the comment: Check if sys.platform == 'win32', if so, skip test. -- keywords: +patch nosy: +n versions: +Python 3.4 -Python 2.7 Added file: http://bugs.python.org/file29449/issue5051.diff ___ Python tracker

[issue17358] imp.load_module() leads to the improper caching of the 'file' argument

2013-03-18 Thread Kushal Das
Kushal Das added the comment: Can not reproduce it :( -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17358 ___ ___ Python-bugs-list mailing list

[issue17424] help() should use the class signature

2013-03-18 Thread Sean Reifschneider
Sean Reifschneider added the comment: This might be a duplicate of issue17053, but the patch provided there doesn't resolve the issue, at least as far as I know it. Here is an example, from David Beazley's talk at PyCon 2013: from inspect import Parameter, Signature def

[issue2943] Distutils should generate a better error message when the SDK is not installed

2013-03-18 Thread Ned Jackson Lovely
Ned Jackson Lovely added the comment: Improved msg per discussion. I don't see how to test this without messing with the windows registry. I am deeply reluctant to do that. -- keywords: +patch nosy: +n Added file: http://bugs.python.org/file29450/issue2943.diff

[issue17466] I can't make assignments to a list.

2013-03-18 Thread Georgiy Treyvus
New submission from Georgiy Treyvus: The conditions under which this bug occurs I can't explain. I will provide as much other information as I can. This is an issue with both Python2 and Python3. More specifically Python 2.7.3 and Python 3.2.3 as those are what come with the Fedora 17

[issue17466] I can't make assignments to a list.

2013-03-18 Thread Ezio Melotti
Ezio Melotti added the comment: Have you tried to print letters and see what it is? Have you verified that the asserts are executed? You are probably doing something wrong, and it would be better to ask this on python-list. -- nosy: +ezio.melotti

[issue17464] Improve Test Coverage Of Pydoc

2013-03-18 Thread Radu Voicilas
Radu Voicilas added the comment: Hi, Here are some small comments to your otherwise good to have patch: -- assertEquals has been deprecated in favor of assertEqual, and usually it's great to be consistent across the test suite -- likewise maxDiff should be max_diff mainly because of

[issue17464] Improve Test Coverage Of Pydoc

2013-03-18 Thread Matt Bachmann
Matt Bachmann added the comment: Sure thing, ill make the improvements and upload a new patch. Thanks! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17464 ___

[issue17466] I can't make assignments to a list.

2013-03-18 Thread Georgiy Treyvus
Georgiy Treyvus added the comment: Yes the assert statements are executed. They are not in any sort of if block or anything like that. When the encrypt function is called and it was in the above examples the assert statements execute period. They really don't have much else of a choice. Look

[issue17466] I can't make assignments to a list.

2013-03-18 Thread Mark Dickinson
Mark Dickinson added the comment: doQuadraticDistortion returns a string. Closing as invalid. -- nosy: +mark.dickinson resolution: - invalid status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17466

[issue17464] Improve Test Coverage Of Pydoc

2013-03-18 Thread Matt Bachmann
Matt Bachmann added the comment: --Changes assertequals to assertequal --Removes maxdiff as it should not really be there in the first place --Creates an explicit testdir, and cleans it up --Last patch did not actually apply cleanly... I reverted and applied this one and this seems to work

[issue17466] I can't make assignments to a list.

2013-03-18 Thread Mark Dickinson
Mark Dickinson added the comment: Sorry; that was a bit terse. To elaborate: on the first iteration of your for loop in the 'encrypt' function, you're correct that letters has type 'list'. But on the second iteration, it'll have type 'str', because the line

[issue17466] I can't make assignments to a list.

2013-03-18 Thread Georgiy Treyvus
Georgiy Treyvus added the comment: wait why was this closed? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17466 ___ ___ Python-bugs-list

[issue17466] I can't make assignments to a list.

2013-03-18 Thread Georgiy Treyvus
Georgiy Treyvus added the comment: ok will try -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17466 ___ ___ Python-bugs-list mailing list

[issue9090] Error code 10035 calling socket.recv() on a socket with a timeout (WSAEWOULDBLOCK - A non-blocking socket operation could not be completed immediately)

2013-03-18 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: Here is a patch for 2.7 Since 2.7 doesn't have pytime.c, we export floattime() as _Py_floattime out of time.c -- Added file: http://bugs.python.org/file29453/socket.patch ___ Python tracker

[issue17467] Enhancement: give mock_open readline() and readlines() methods

2013-03-18 Thread Toshio Kuratomi
New submission from Toshio Kuratomi: unittest.mock provides a mock_open convenience function[1]. The convenience function handled file.read() but does not handle file.readline() or file.readlines(). I'll attach a patch that adds support for both of these methods. [1]:

[issue17466] I can't make assignments to a list.

2013-03-18 Thread Georgiy Treyvus
Georgiy Treyvus added the comment: @Mark: You're right. Sorry for the erroneous bug report. -- resolution: invalid - status: closed - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17466

[issue17192] libffi-3.0.12 import

2013-03-18 Thread Gregory P. Smith
Changes by Gregory P. Smith g...@krypto.org: -- assignee: - gregory.p.smith ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17192 ___ ___

[issue17468] Generator memory leak

2013-03-18 Thread Anssi Kääriäinen
New submission from Anssi Kääriäinen: A generator is leaked to gc.garbage in a situation where `__del__` isn't defined. See the attached file for as-minimalistic test case as I could make. Tested on Python 3.3.0, 3.2.3 and 2.7.3. Note that if the try-except is removed from iterator(), then

[issue7573] Position independent include of Python.h

2013-03-18 Thread Ned Jackson Lovely
Ned Jackson Lovely added the comment: Should this be closed? -- nosy: +n ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7573 ___ ___

[issue1691387] Call sys.except_hook if exception occurs in __del__

2013-03-18 Thread R. David Murray
R. David Murray added the comment: Re-reported and fixed in issue 7317. -- nosy: +r.david.murray resolution: - duplicate stage: test needed - committed/rejected status: open - closed superseder: - Display full tracebacks when an error occurs asynchronously

  1   2   3   >