Changes by Brian Curtin :
--
versions: -Python 2.7
___
Python tracker
<http://bugs.python.org/issue6692>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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
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
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
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
Changes by Brian Curtin :
--
nosy: -brian.curtin
___
Python tracker
<http://bugs.python.org/issue8355>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Brian Curtin :
--
assignee: -> theller
components: +ctypes
nosy: +theller
stage: -> unit test needed
type: -> behavior
___
Python tracker
<http://bugs.python.o
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
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
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
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
Changes by Brian Curtin :
Removed file: http://bugs.python.org/file16371/issue7863.diff
___
Python tracker
<http://bugs.python.org/issue7863>
___
___
Python-bugs-list m
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
Brian Curtin added the comment:
Ported to py3k in r80329.
--
resolution: -> fixed
status: open -> closed
___
Python tracker
<http://bugs.python.org/
Changes by Brian Curtin :
--
resolution: -> invalid
status: open -> closed
___
Python tracker
<http://bugs.python.org/issue8497>
___
___
Python-bugs-list
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
__
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
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
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
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
Changes by Brian Curtin :
--
nosy: +nirai
stage: -> patch review
___
Python tracker
<http://bugs.python.org/issue8532>
___
___
Python-bugs-list mailing list
Un
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
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
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
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
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
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.
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
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,
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
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
Changes by Brian Curtin :
--
nosy: +flox
___
Python tracker
<http://bugs.python.org/issue8583>
___
___
Python-bugs-list mailing list
Unsubscribe:
http://mail.pyth
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
Changes by Brian Curtin :
--
nosy: +brian.curtin
___
Python tracker
<http://bugs.python.org/issue8597>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Brian Curtin :
--
stage: -> needs patch
versions: +Python 3.2 -Python 2.6
___
Python tracker
<http://bugs.python.org/issue8601>
___
___
Python-
Changes by Brian Curtin :
--
nosy: +benjamin.peterson
___
Python tracker
<http://bugs.python.org/issue8615>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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
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
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/
Changes by Brian Curtin :
--
versions: -Python 2.7
___
Python tracker
<http://bugs.python.org/issue6715>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Brian Curtin :
--
stage: -> unit test needed
versions: +Python 3.2 -Python 2.6
___
Python tracker
<http://bugs.python.org/issue8666>
___
___
Python-
Changes by Brian Curtin :
--
stage: -> unit test needed
___
Python tracker
<http://bugs.python.org/issue8666>
___
___
Python-bugs-list mailing list
Unsubscri
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
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
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
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
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
Changes by Brian Curtin :
--
versions: -Python 2.7
___
Python tracker
<http://bugs.python.org/issue8046>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
Changes by Brian Curtin :
--
keywords: +needs review
stage: needs patch -> patch review
___
Python tracker
<http://bugs.python.org/issue8584>
___
___
Python-
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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/
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
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. */
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
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
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
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
Changes by Brian Szuter <[EMAIL PROTECTED]>:
--
versions: +Python 2.7 -Python 2.5.3
___
Python tracker <[EMAIL PROTECTED]>
<http://bugs.pytho
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
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
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
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
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
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
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
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", &
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
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
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
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
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
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
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
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
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
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
901 - 1000 of 1992 matches
Mail list logo