[issue6692] asyncore kqueue support

2010-04-12 Thread Brian Curtin
Changes by Brian Curtin : -- versions: -Python 2.7 ___ Python tracker <http://bugs.python.org/issue6692> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue8364] Update site.setquit docstring

2010-04-12 Thread Brian Curtin
Brian Curtin added the comment: Committed in r80022 and r80023. Thanks. -- assignee: -> brian.curtin nosy: +brian.curtin priority: -> normal resolution: -> fixed stage: -> committed/rejected status: open -> closed type: -> behavior

[issue7306] Patch - skip winsound tests if no default sound is configured

2010-04-12 Thread Brian Curtin
Brian Curtin added the comment: Committed in r80026-r80029. -- assignee: -> brian.curtin resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker <http://bugs.pytho

[issue8385] _winreg remaining in test_winsound

2010-04-13 Thread Brian Curtin
Brian Curtin added the comment: Whoops, thanks for catching that, Tim. Fixed in r80044 and 80046. -- assignee: -> brian.curtin nosy: +brian.curtin priority: -> normal resolution: -> fixed stage: -> committed/rejected status: op

[issue8355] diff.py produce unified format by default

2010-04-13 Thread Brian Curtin
Brian Curtin added the comment: > Don't you want to add a recommendation to use diff.py tool so > that Windows users can also send patches? > http://python.org/dev/patches/ We could add that note but it should not be a recommendation. Patches should ideally be generated using

[issue2554] test_ioctl failed Python 2.6a2 Solaris 10 SUN C

2010-04-13 Thread Brian Curtin
Brian Curtin added the comment: Removing 2.5 as it's only receiving security fixes. -- nosy: +brian.curtin versions: -Python 2.5 ___ Python tracker <http://bugs.python.org/i

[issue8355] diff.py produce unified format by default

2010-04-13 Thread Brian Curtin
Changes by Brian Curtin : -- nosy: -brian.curtin ___ Python tracker <http://bugs.python.org/issue8355> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue8394] ctypes.dlopen() doesn't support surrogates

2010-04-13 Thread Brian Curtin
Changes by Brian Curtin : -- assignee: -> theller components: +ctypes nosy: +theller stage: -> unit test needed type: -> behavior ___ Python tracker <http://bugs.python.o

[issue4356] Add "key" argument to "bisect" module functions

2010-04-14 Thread Brian Scearce
Brian Scearce added the comment: This was closed over a year ago, but since mark.dickinson was asking for convincing use-cases: I'm breaking up a file into line-delimited chunks. These chunks are non-overlapping, contiguous, and tend to be fairly large, so I'm just recording the

[issue4356] Add "key" argument to "bisect" module functions

2010-04-14 Thread Brian Scearce
Brian Scearce added the comment: For what it's worth, after I posted my comment, I realized I could use tuple comparison semantics: loc = bisect.bisect(mapping, (line,)) since my key happens to be at index 0. "key=" woul

[issue8405] Improve test_os._kill (failing on slow machines)

2010-04-14 Thread Brian Curtin
New submission from Brian Curtin : test_os._kill is used by test_kill_sigterm and test_kill_int and is failing on a slow Windows buildbot due to timing issues between the process starting and the signal being sent. I've checked in a few small time.sleep hacks in the meantime to see if

[issue7863] platform module doesn't detect Windows 7

2010-04-21 Thread Brian Curtin
Brian Curtin added the comment: Any thoughts on this last bit about using the registry to identify between workstation and server? -- ___ Python tracker <http://bugs.python.org/issue7

[issue7863] platform module doesn't detect Windows 7

2010-04-21 Thread Brian Curtin
Changes by Brian Curtin : Removed file: http://bugs.python.org/file16371/issue7863.diff ___ Python tracker <http://bugs.python.org/issue7863> ___ ___ Python-bugs-list m

[issue7863] platform module doesn't detect Windows 7

2010-04-21 Thread Brian Curtin
Brian Curtin added the comment: Updated patch to remove the function. MSDN says nothing about available registry keys or their information, at least from what I could tell. I guess it is possible that future versions might not have the value we are looking for, but I kind of doubt that, plus

[issue7347] Add {Create|Delete}KeyEx to _winreg, doc and test updates

2010-04-21 Thread Brian Curtin
Brian Curtin added the comment: Ported to py3k in r80329. -- resolution: -> fixed status: open -> closed ___ Python tracker <http://bugs.python.org/

[issue8497] Technology and Licensing Related Query

2010-04-21 Thread Brian Curtin
Changes by Brian Curtin : -- resolution: -> invalid status: open -> closed ___ Python tracker <http://bugs.python.org/issue8497> ___ ___ Python-bugs-list

[issue7838] Undocumented subprocess functions on Windows

2010-04-24 Thread Brian Curtin
Brian Curtin added the comment: Fixed with r80439-r80442. -- assignee: georg.brandl -> brian.curtin components: +Extension Modules -Documentation resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed __

[issue8521] Allow some winreg functions to accept keyword arguments

2010-04-24 Thread Brian Curtin
Changes by Brian Curtin : -- assignee: brian.curtin components: Extension Modules, Windows nosy: brian.curtin priority: normal severity: normal stage: needs patch status: open title: Allow some winreg functions to accept keyword arguments type: feature request versions: Python 3.2

[issue5774] _winreg.OpenKey() is documented with keyword arguments, but doesn't take them

2010-04-24 Thread Brian Curtin
Brian Curtin added the comment: I changed the documentation to reflect that OpenKey, CreateKeyEx, and DeleteKeyEx (latter two are 2.7/3.2 only) do not take keyword arguments, but they have default values. Done in r80445-r80448. I created a feature request in #8521 to implement keyword

[issue8521] Allow some winreg functions to accept keyword arguments

2010-04-24 Thread Brian Curtin
Brian Curtin added the comment: Here's an expanded version of that patch to include two newer functions, plus docs and test. The doc might need work on those signatures -- there was some discussion on IRC about how keyword arguments should be documented. -- stage: needs

[issue8521] Allow some winreg functions to accept keyword arguments

2010-04-24 Thread Brian Curtin
Brian Curtin added the comment: Forgot to attach the patch... -- keywords: +patch Added file: http://bugs.python.org/file17073/issue8521.diff ___ Python tracker <http://bugs.python.org/issue8

[issue8532] Refinements to Python 3 New GIL

2010-04-25 Thread Brian Curtin
Changes by Brian Curtin : -- nosy: +nirai stage: -> patch review ___ Python tracker <http://bugs.python.org/issue8532> ___ ___ Python-bugs-list mailing list Un

[issue8553] 2to3 breaks relative imports

2010-04-27 Thread Brian Curtin
Brian Curtin added the comment: I believe sandbox/trunk/2to3 is the right spot. The patch seems ok to me, but Benjamin will probably want a look. -- nosy: +benjamin.peterson, brian.curtin ___ Python tracker <http://bugs.python.org/issue8

[issue8555] tkinter doesn't see _tkinter

2010-04-27 Thread Brian Curtin
Brian Curtin added the comment: Did you compile Python yourself or did this come on your OS? The comment in the traceback pretty much says it all. -- nosy: +brian.curtin ___ Python tracker <http://bugs.python.org/issue8

[issue2810] _winreg.EnumValue sometimes raises WindowsError ("More data is available")

2010-04-27 Thread Brian Curtin
Brian Curtin added the comment: test_changing_value is giving inconsistent results when the _winreg.c patch is not applied. It mostly fails on QueryValue, sometimes on EnumValue, and about 1/10 times the test does not fail at all. Ideally the tests should not use threads -- can the same

[issue2810] _winreg.EnumValue sometimes raises WindowsError ("More data is available")

2010-04-27 Thread Brian Curtin
Brian Curtin added the comment: After a quick glance, the _winreg.c changes look ok. I'll try to fit in a review shortly. -- ___ Python tracker <http://bugs.python.org/i

[issue7582] [patch] diff.py to use iso timestamp

2010-04-28 Thread Brian Curtin
Brian Curtin added the comment: 2.7 is now frozen as far as new features go. It's still good for 3.2. I think this is ready to go, so I'll probably commit it later in the day. -- versions: -Python 2.7 ___ Python tracker <http://bu

[issue8569] Upgrade OpenSSL in Windows builds

2010-04-29 Thread Brian Curtin
Brian Curtin added the comment: Tools/buildbot/external-common.bat does the checkout of OpenSSL 0.9.8l from svn.python.org/projects/external. What does it take to put a new 1.x version out there? -- ___ Python tracker <http://bugs.python.

[issue8575] Update/reorganize _winreg documentation

2010-04-29 Thread Brian Curtin
New submission from Brian Curtin : This patch cleans up the use of a few external MSDN links, adds a bunch of constants which were previously undocumented, and reorganizes a table to fit in with those constants. Patch uploaded to http://codereview.appspot.com/969045 for review

[issue8557] subprocess PATH semantics and portability

2010-04-30 Thread Brian Curtin
Brian Curtin added the comment: You could take the "(VS8.5)" part out of the link which will give the latest version, which may not always be the relevant version (although I doubt this specific API would change). That's about the best permalink-like feature you'll find,

[issue8579] Add missing tests for FlushKey, LoadKey, and SaveKey in winreg

2010-04-30 Thread Brian Curtin
New submission from Brian Curtin : Per the comment at the top of Lib/test/test_winreg.py, FlushKey, LoadKey, and SaveKey are currently untested. I have a minimal patch worked up. I'll expand on it and upload shortly. -- assignee: brian.curtin components: Extension Modules, Wi

[issue8525] Small enhancement to help()

2010-04-30 Thread Brian Curtin
Brian Curtin added the comment: Minor correction to the last comment: 3.2 is not in beta nor feature freeze. -- nosy: +brian.curtin ___ Python tracker <http://bugs.python.org/issue8

[issue8583] Hardcoded namespace_separator in the cElementTree.XMLParser

2010-04-30 Thread Brian Curtin
Changes by Brian Curtin : -- nosy: +flox ___ Python tracker <http://bugs.python.org/issue8583> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue8214] Add exception logging function to syslog module

2010-05-01 Thread Brian Curtin
Brian Curtin added the comment: The test file should use test_support.import_module("syslog") instead of the try/except, which would then make the skip decorators unnecessary. -- nosy: +brian.curtin ___ Python tracker <http://bu

[issue8597] build out-of-line asm on Windows

2010-05-02 Thread Brian Curtin
Changes by Brian Curtin : -- nosy: +brian.curtin ___ Python tracker <http://bugs.python.org/issue8597> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue8601] bz2.BZ2File should support "with" protocol per PEP 343

2010-05-03 Thread Brian Curtin
Changes by Brian Curtin : -- stage: -> needs patch versions: +Python 3.2 -Python 2.6 ___ Python tracker <http://bugs.python.org/issue8601> ___ ___ Python-

[issue8615] turtle.py - backport of 3.1 features

2010-05-04 Thread Brian Curtin
Changes by Brian Curtin : -- nosy: +benjamin.peterson ___ Python tracker <http://bugs.python.org/issue8615> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue8618] test_winsound failing on Windows Server 2008

2010-05-04 Thread Brian Curtin
New submission from Brian Curtin : Some of the test_alias_* functions in test_winsound are failing with a RuntimeError "Failed to play sound" when run on Server 2008 R2. The sound from each test exists in the registry so the test doesn't end up getting skipped. I'm gu

[issue7863] platform module doesn't detect Windows 7

2010-05-05 Thread Brian Curtin
Brian Curtin added the comment: Now that I have access to a Server 2008 R2 machine, I've verified that this fix works there. Committed in r80857 through r80860. -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed versions: +Python 3

[issue8634] get method for dbm interface

2010-05-06 Thread Brian Curtin
Changes by Brian Curtin : -- title: [PATCH] get method for dbm interface -> get method for dbm interface versions: -Python 2.7, Python 3.3 ___ Python tracker <http://bugs.python.org/iss

[issue8637] pydoc should respect MANPAGER over PAGER.

2010-05-06 Thread Brian Curtin
Changes by Brian Curtin : -- stage: -> unit test needed title: [PATCH] pydoc should respect MANPAGER over PAGER. -> pydoc should respect MANPAGER over PAGER. ___ Python tracker <http://bugs.python.org/

[issue6715] xz compressor support

2010-05-08 Thread Brian Curtin
Changes by Brian Curtin : -- versions: -Python 2.7 ___ Python tracker <http://bugs.python.org/issue6715> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue8666] Allow ConfigParser.get*() to take a default value

2010-05-08 Thread Brian Curtin
Changes by Brian Curtin : -- stage: -> unit test needed versions: +Python 3.2 -Python 2.6 ___ Python tracker <http://bugs.python.org/issue8666> ___ ___ Python-

[issue8666] Allow ConfigParser.get*() to take a default value

2010-05-08 Thread Brian Curtin
Changes by Brian Curtin : -- stage: -> unit test needed ___ Python tracker <http://bugs.python.org/issue8666> ___ ___ Python-bugs-list mailing list Unsubscri

[issue8618] test_winsound failing on Windows Server 2008

2010-05-08 Thread Brian Curtin
Brian Curtin added the comment: Seems like this happens because there is no playback device installed. Apparently there are audio drivers install but no playback device is configured to use them. I'm looking for a command line tool or some other way to find out details of playback de

[issue8618] test_winsound failing on Windows Server 2008

2010-05-08 Thread Brian Curtin
Brian Curtin added the comment: Attached is a patch which uses the multimedia mixer API to find out how many devices are known by the mixer. If none are known, 0 will be returned, and thus tests will be skipped. -- keywords: +patch Added file: http://bugs.python.org/file17270

[issue8618] test_winsound fails when no playback devices configured

2010-05-10 Thread Brian Curtin
Changes by Brian Curtin : -- title: test_winsound failing on Windows Server 2008 -> test_winsound fails when no playback devices configured ___ Python tracker <http://bugs.python.org/iss

[issue8575] Update/reorganize _winreg documentation

2010-05-11 Thread Brian Curtin
Brian Curtin added the comment: Committed in r81088-r81091. -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker <http://bugs.python.o

[issue8575] Update/reorganize _winreg documentation

2010-05-11 Thread Brian Curtin
Brian Curtin added the comment: I should also note that the 2.6 and 3.1 commits also exposed the *ReflectionKey documentation. That documentation was added as part of a feature for 2.7/3.2, but those documentation pieces should have been backported on their own but were not

[issue8046] mmap.mmap as a context manager

2010-05-12 Thread Brian Curtin
Changes by Brian Curtin : -- versions: -Python 2.7 ___ Python tracker <http://bugs.python.org/issue8046> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue8584] test_multiprocessing skips some tests

2010-05-13 Thread Brian Curtin
Brian Curtin added the comment: Value and copy come from multiprocessing.sharedctypes, not from ctypes. Changed the import and also the test skipping based on this. (done during a presentation with the Chicago Python Users Group) -- keywords: +patch nosy: +brian.curtin Added file

[issue8584] test_multiprocessing skips some tests

2010-05-13 Thread Brian Curtin
Changes by Brian Curtin : -- keywords: +needs review stage: needs patch -> patch review ___ Python tracker <http://bugs.python.org/issue8584> ___ ___ Python-

[issue2241] Additional Flag For Unit-Test Module: There Can Be Only One (Error)

2008-03-05 Thread Brian White
New submission from Brian White: The attached diff adds a "-o" ("--one") option to the "unittest" module that causes the run to abort on the first error encountered. I name my tests so that the lowest-level tests get run first so stopping at the first error tends

[issue2241] Additional Flag For Unit-Test Module: There Can Be Only One (Error)

2008-03-06 Thread Brian White
Brian White added the comment: Having tests run independently of each other is not the same as having tests be completely independent. I'd argue that the latter is impossible. You're never going to test the entire system in a single test case and thus the tests work together

[issue2241] Additional Flag For Unit-Test Module: There Can Be Only One (Error)

2008-03-08 Thread Brian White
Brian White added the comment: I am somewhat new to mock objects. I'm coding up my first one now (in D) to simulate a "stream" for other objects I want to write. Even within a single module, I typically have many tests for the methods within that module. And since a module

[issue4300] error in multiprocessing logging docs

2008-11-11 Thread Brian D'Urso
New submission from Brian D'Urso <[EMAIL PROTECTED]>: the 2.6 docs for the multiprocessing module have a minor error in the logging example which causes it to fail: the documentation says to get the logger with 'multiprocessing.get_logger()' which works

[issue4301] incorrect and inconsistent logging in multiprocessing

2008-11-11 Thread Brian D'Urso
New submission from Brian D'Urso <[EMAIL PROTECTED]>: logging in multiprocessing seems to give inconsistent results on Linux and XP, but neither appears to match the documentation: According to the docs, when first created "the logger has level logging.NOTSET and has a han

[issue4364] error in multiprocessing docs - rawvalue

2008-11-20 Thread Brian D'Urso
New submission from Brian D'Urso <[EMAIL PROTECTED]>: There is an error in the multiprocessing package documentation: In the sentence: 'Note that an array of ctypes.c_char has value and rawvalue attributes which allow one to use it to store and retrieve strings.' The er

[issue4412] Failure to test return value of PyUnicode_AsUTF8String() for NULL

2008-11-24 Thread Brian Szuter
New submission from Brian Szuter <[EMAIL PROTECTED]>: /home/rxc92/project/Python-2.5.2/Parser/tokenizer.c (translate_into_utf8) Line 573 The return value of PyUnicode_AsUTF8String() is never checked if it is NULL. Reference: http://www.python.org/doc/2.5.2/api/builtinCodecs.html#l

[issue4413] Failure to check PyUnicode_AsUTF8String() return value for NULL

2008-11-24 Thread Brian Szuter
New submission from Brian Szuter <[EMAIL PROTECTED]>: /home/rxc92/project/Python-2.5.2/Objects/unicodeobject.c(PyUnicodeUCS2_AsEncodedString) Line 699 Failed to check PyUnicode_AsUTF8String() for returning NULL. Referenced: http://www.python.org/doc/2.5.2/api/builtinCodecs.html#l

[issue4414] Failure to check return value of PyBool_FromLong for NULL

2008-11-24 Thread Brian Szuter
New submission from Brian Szuter <[EMAIL PROTECTED]>: /home/rxc92/project/Python-2.5.2/Objects/unicodeobject.c(unicode_istitle) Line 5953 Failed to check that the return value of PyBool_FromLong is not NULL Referenced: http://www.python.org/doc/2.5.2/api/boolObjects.html#l

[issue4415] Failure to check return value of PyBool_FromLong for NULL

2008-11-24 Thread Brian Szuter
New submission from Brian Szuter <[EMAIL PROTECTED]>: /home/rxc92/project/Python-2.5.2/Python/import.c(imp_is_frozen) Line 2740 Failed to check that the return value of PyBool_FromLong is not NULL Referenced: http://www.python.org/doc/2.5.2/api/boolObjects.html#l2h-400 -- comp

[issue4416] state_reset not called on 'state' before sre_search invoked

2008-11-24 Thread Brian Szuter
New submission from Brian Szuter <[EMAIL PROTECTED]>: /home/rxc92/project/Python-2.5.2/Modules/_sre.c (pattern_search) Line 2740 Elsewhere in the codebase, state_reset is called on the first parameter of sre_search before sre_search is invoked. The does not occur here. -- comp

[issue4417] PySequence_List is not checked for NULL return value

2008-11-24 Thread Brian Szuter
New submission from Brian Szuter <[EMAIL PROTECTED]>: Python-2.5.2/Objects/abstract.c(PySequence_Fast) Line 1611 PySequence_List is not checked for NULL return value -- messages: 76379 nosy: CWRU_Researcher1 severity: normal status: open title: PySequence_List is not checked fo

[issue4418] PyObject_CallObject is not checked for NULL return value

2008-11-24 Thread Brian Szuter
New submission from Brian Szuter <[EMAIL PROTECTED]>: Python-2.5.2/Modules/_sre.c(PySequence_Fast) Line 1963 PyObject_CallObject is not checked for NULL return value -- messages: 76380 nosy: CWRU_Researcher1 severity: normal status: open title: PyObject_CallObject is not check

[issue4418] PyObject_CallObject is not checked for NULL return value

2008-11-24 Thread Brian Szuter
Brian Szuter <[EMAIL PROTECTED]> added the comment: Python-2.5.2/Modules/_sre.c(join_list) Line 2023 PyObject_CallObject is not checked for NULL return value ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.pytho

[issue4419] PyUnicode_DecodeUTF8 is not checked for NULL return value

2008-11-24 Thread Brian Szuter
New submission from Brian Szuter <[EMAIL PROTECTED]>: Python-2.5.2/Objects/unicodeobject.c Line 587 PyUnicode_DecodeUTF8 is not checked for NULL return value -- components: None messages: 76382 nosy: CWRU_Researcher1 severity: normal status: open title: PyUnicode_DecodeUTF8

[issue4420] PyUnicode_Decode is not checked for NULL return value

2008-11-24 Thread Brian Szuter
New submission from Brian Szuter <[EMAIL PROTECTED]>: Python-2.5.2/Objects/unicodeobject.c(PyUnicodeUCS2_FromEncodedObject) Line 567 PyUnicode_Decode is not checked for NULL return value -- components: None messages: 76383 nosy: CWRU_Researcher1 severity: normal status: open

[issue4421] Failed to check 3rd Param of PyArena_AddPyObject() to ensure it isn't NULL

2008-11-24 Thread Brian Szuter
New submission from Brian Szuter <[EMAIL PROTECTED]>: Python-2.5.2/Python/ast.c(new_identifier) Line 52 Failed to check 3rd Param of PyArena_AddPyObject() to ensure it isn't NULL -- components: None messages: 76384 nosy: CWRU_Researcher1 severity: normal status: open title

[issue4422] Failed to check 3rd Param of PyArena_AddPyObject() to ensure it isn't NULL

2008-11-24 Thread Brian Szuter
New submission from Brian Szuter <[EMAIL PROTECTED]>: Python-2.5.2/Python/ast.c(alias_for_import_name) Line 2282, 2288 Failed to check 3rd Param of PyArena_AddPyObject() to ensure it isn't NULL -- components: None messages: 76385 nosy: CWRU_Researcher1 severity: normal s

[issue4460] The parameter of PyInt_AsSsize_t() is not checked to see if it is NULL

2008-11-29 Thread Brian Szuter
New submission from Brian Szuter <[EMAIL PROTECTED]>: Python-2.5.2/Modules/_sre.c(match_getindex) Line 2766 The parameter of PyInt_AsSsize_t() is not checked to see if it is NULL. -- components: None messages: 76600 nosy: CWRU_Researcher1 severity: normal status: open titl

[issue4461] parameters of PyLong_FromString() are not checked for NULL

2008-11-29 Thread Brian Szuter
New submission from Brian Szuter <[EMAIL PROTECTED]>: Python-2.5.2/Python/ast.c(parsenumber) Line 3061 The parameters of PyLong_FromString() are not checked for NULL before the method is called. -- components: None messages: 76602 nosy: CWRU_Researcher1 severity: normal status

[issue4462] result of PyList_GetItem() not validated

2008-11-29 Thread Brian Szuter
New submission from Brian Szuter <[EMAIL PROTECTED]>: Python-2.5.2/Python/import.c(find_module) Lines 1171 PyString_Check() is not called on the result of PyList_GetItem(), nor is the result checked to see if it is NULL. -- components: None messages: 76603 nosy: CWRU_Resea

[issue4463] Parameters and result of PyList_GetItem() are not validated

2008-11-29 Thread Brian Szuter
New submission from Brian Szuter <[EMAIL PROTECTED]>: Python-2.5.2/Python/import.c(get_path_importer) Lines 1079 PyString_Check() is not called on the result of PyList_GetItem() and the parameters of PyList_GetItem() are not validated before the method is called. -- components

[issue4464] PyList_GetItem() result and parameters not fully validated

2008-11-29 Thread Brian Szuter
New submission from Brian Szuter <[EMAIL PROTECTED]>: Python-2.5.2/Python/codecs.c(_PyCodec_Lookup) Lines 106, 144 PyString_Check() is not called on the result of PyList_GetItem() and the first parameter of PyList_GetItem() does not have PyList_Check() called on it. (See Python-2.5.2/

[issue4465] The result of set_copy() is not checked for NULL

2008-11-29 Thread Brian Szuter
New submission from Brian Szuter <[EMAIL PROTECTED]>: Python-2.5.2/Objects/setobject.c Line 1204 The result of set_copy() is not checked for NULL. [See Objects/setobject.c(set_difference) for example of correct usage] -- components: None messages: 76606 nosy: CWRU_Researcher1 se

[issue4460] The parameter of PyInt_AsSsize_t() is not checked to see if it is NULL

2008-11-29 Thread Brian Szuter
Brian Szuter <[EMAIL PROTECTED]> added the comment: abstract.c(PyNumber_AsSsize_t) shows this check of PyInt_AsSsize_t()'s parameter: 980:if (value == NULL) 981:return -1; 982: 983:/* We're done if PyInt_AsSsize_t() returns without error. */

[issue4466] The return value of PyFile_FromFile is not checked for NULL

2008-11-29 Thread Brian Szuter
New submission from Brian Szuter <[EMAIL PROTECTED]>: Python-2.5.2/Modules/posixmodule.c(posix_tmpfile) Line 6841 The return value of PyFile_FromFile is not checked for NULL See the following where it is checked: tokenizer.c(fp_setreadl) 429 fileobject.c(PyFile_FromString) 300 posixmo

[issue4467] return value of PyUnicode_AsEncodedString() is not checked for NULL

2008-11-29 Thread Brian Szuter
New submission from Brian Szuter <[EMAIL PROTECTED]>: Python-2.5.2/Objects/unicodeobject.c(unicode_str) Line 6816 The return value of PyUnicode_AsEncodedString() is not checked for NULL. According to http://www.python.org/doc/2.5.2/api/builtinCodecs.html#l2h-519 this indicates an exc

[issue4508] distutils compiler not handling spaces in path to output/src files

2008-12-03 Thread Brian Thorne
New submission from Brian Thorne <[EMAIL PROTECTED]>: I found this bug when using scipy's weave and having some inline C/C++ code. Weave uses distutils to compile the source in its own directory, python was installed under "program files". Unfortunately it doesn't se

[issue4416] state_reset not called on 'state' before sre_search invoked

2008-12-10 Thread Brian Szuter
Brian Szuter <[EMAIL PROTECTED]> added the comment: Examples: /Python-2.5.2/Modules/_sre.c Lines 3289 - 3297 (scanner_search) /Python-2.5.2/Modules/_sre.c Lines 2349 - 2357 (pattern_subx) /Python-2.5.2/Modules/_sre.c Lines 2197 - 2205 (pattern_split) /Python-2.5.2/Modules/_sre.c Line

[issue4416] state_reset not called on 'state' before sre_search invoked

2008-12-10 Thread Brian Szuter
Changes by Brian Szuter <[EMAIL PROTECTED]>: -- versions: +Python 2.7 -Python 2.5.3 ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.pytho

[issue4416] state_reset not called on 'state' before sre_search invoked

2008-12-10 Thread Brian Szuter
Brian Szuter <[EMAIL PROTECTED]> added the comment: This bug was found using a research tool that finds potential neglected condition bugs by examining a code base, deducing rules from the code base, and finding violations of those rules. I have not attempted to demonstrate a problem v

[issue4508] distutils compiler not handling spaces in path to output/src files

2009-01-11 Thread Brian Thorne
Brian Thorne added the comment: Ok - this bug has nothing to do with weave itself. I think any extension written in C or C++ that has a space in the filename will raise the error in both windows and gnu/linux. Here is a simple c extension with and without spaces. The one with spaces in the

[issue38029] Should io.TextIOWrapper raise an error at instantiation if a StringIO is passed as 'buffer'?

2019-09-04 Thread Brian Skinn
New submission from Brian Skinn : If I read the docs correctly, io.TextIOWrapper is meant to provide a str-typed interface to an underlying bytes stream. If a TextIOWrapper is instantiated with the underlying buffer=io.StringIO(), it breaks: >>> import io >>> tw

[issue38478] inspect.signature.bind does not correctly handle keyword argument with same name as positional-only parameter

2019-10-14 Thread Brian Shaginaw
New submission from Brian Shaginaw : >>> import inspect >>> def foo(bar, /, **kwargs): ... print(bar, kwargs) ... >>> foo(1, bar=2) 1 {'bar': 2} >>> inspect.signature(foo).bind(1, bar=2) Traceback (most recent call last): File "", l

[issue44476] "subprocess not supported for isolated subinterpreters" when running venv

2021-06-21 Thread Brian Curtin
New submission from Brian Curtin : I'm currently trying to run my `tox` testing environment—all of which runs under `coverage`—against 3.10b3 and am running into some trouble. I initially thought it was something about tox or coverage, but it looks lower level than that as the venv scri

[issue44476] "subprocess not supported for isolated subinterpreters" when running venv

2021-06-21 Thread Brian Curtin
Brian Curtin added the comment: Hmm. I asked around about this and someone installed 3.10.0-beta3 via pyenv and this worked fine. For whatever it's worth, this was built from source on OS X 10.14.6 via a pretty normal setup of `./configure` with no extra flags and then `make in

[issue44476] "subprocess not supported for isolated subinterpreters" when running venv

2021-06-21 Thread Brian Curtin
Brian Curtin added the comment: I think there was either something stale that got linked wrong or some other kind of build failure, as I just built v3.10.0b3 tag again from a properly cleaned environment and this is no longer occurring. Sorry for the noise. -- stage: -> resol

[issue44992] functools.lru_cache does not consider strings and numpy strings as equivalent

2021-08-24 Thread Brian Lee
New submission from Brian Lee : This seems like unexpected behavior: Two keys that are equal and have equal hashes should yield cache hits, but they do not. Python 3.9.6 (default, Aug 18 2021, 19:38:01) [GCC 7.5.0] :: Anaconda, Inc. on linux Type "help", "copyright", &

[issue44992] functools.lru_cache does not guarantee cache hits for equal values

2021-08-24 Thread Brian Lee
Brian Lee added the comment: Thanks for clarifying - I see now that the docs specifically call out the lack of guarantees here with "usually but not always regard them as equivalent". I did want to specifically explain the context of my bug; 1. NumPy's strings have some unex

[issue45151] Logger library with task scheduler

2021-09-09 Thread Brian Hunt
New submission from Brian Hunt : Version: Python 3.9.3 Package: Logger + Windows 10 Task Scheduler Error Msg: None Behavior: I built a logging process to use with a python script that will be scheduled with Windows 10 task scheduler (this could be a bug in task scheduler too, but starting

[issue45391] 3.10 objects.inv classifies UnionType as data

2021-10-06 Thread Brian Skinn
Brian Skinn added the comment: If I understand the problem correctly, these mis-attributions of roles (to 'data' instead of 'class' come about when a thing that is technically a class is defined in source using simple assignment, as with UnionType. Problematic entries

[issue45391] 3.10 objects.inv classifies UnionType as data

2021-10-06 Thread Brian Skinn
Brian Skinn added the comment: Identifiers starting with two uppercase letters returns a HUGE list. >>> pat2 = re.compile(r"([.][A-Z][A-Z])[^.]*$") Filtering down by only those that contain.lower() "type": >>> pprint([obj.name for obj in inv.objec

[issue45833] NamedTemporaryFile deleted before enclosing context manager exit

2021-11-17 Thread Brian McCutchon
New submission from Brian McCutchon : Consider the following code: # Copyright 2021 Google LLC. # SPDX-License-Identifier: Apache-2.0 import contextlib import os @contextlib.contextmanager def my_tmp_file(): with tempfile.NamedTemporaryFile('w') as f: yield f os.stat(m

[issue37699] Explicit mention of raised ValueError's after .detach() of underlying IO buffer

2021-11-29 Thread Brian Skinn
Brian Skinn added the comment: Indeed, I hadn't been thinking about the testing/maintenance burden to CPython or other implementations when I made the suggestion. I no longer have a strong opinion about this change, so I am happy to reject/close. -- resolution: -> reject

[issue38923] Spurious OSError "Not enough memory resources" when allocating memory using multiprocessing.RawArray

2019-11-26 Thread Brian Kardon
New submission from Brian Kardon : When I try to create a series of multiprocessing.RawArray objects, I get an "OSError: Not enough memory resources are available to process this command". However, by my calculations, the total amount of memory I'm trying to allocate is just

[issue38923] Spurious OSError "Not enough memory resources" when allocating memory using multiprocessing.RawArray

2019-11-26 Thread Brian Kardon
Brian Kardon added the comment: Ah, thank you so much! That makes sense. I'll have to switch to 64-bit python. I've marked this as closed - hope that's the right thing to do here. -- resolution: -> not a bug stage: -> resolved s

[issue39205] Hang when interpreter exits after ProcessPoolExecutor.shutdown(wait=False)

2020-01-03 Thread Brian Quinlan
New submission from Brian Quinlan : ``` from concurrent.futures import ProcessPoolExecutor import time t = ProcessPoolExecutor(max_workers=3) t.map(time.sleep, [1,2,3]) t.shutdown(wait=False) ``` Results in this exception and then a hang (i.e. Python doesn't terminate): ``` Excepti

[issue39251] outdated windows store links in WindowsApps folder

2020-01-07 Thread Brian McKim
New submission from Brian McKim : When I uninstalled the windows store version 3.8 it appears to have placed two links in my \AppData\Local\Microsoft\WindowsApps folder (though they may have always been there), python.exe and python3.exe. When I run these in PowerShell both send me to the

<    5   6   7   8   9   10   11   12   13   14   >