Change by Brandon Schabell :
--
keywords: +patch
nosy: +brandonschabell
nosy_count: 2.0 -> 3.0
pull_requests: +25638
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/27090
___
Python tracker
<https://bugs.p
Change by Brandon Schabell :
--
keywords: +patch
nosy: +brandonschabell
nosy_count: 5.0 -> 6.0
pull_requests: +25636
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/27088
___
Python tracker
<https://bugs.p
Change by Brandon Weeks :
--
nosy: +bweeks
___
Python tracker
<https://bugs.python.org/issue38820>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Brandon :
Reading the PEP 572 document I don't see anything stating that Walrus operator
in list indexes must be enclosed in parenthesis.
Minimal Example:
'''
In [1]: a = list(range(10))
In [2]: idx = -1
In [3]: a[idx := idx +1]
File "&quo
New submission from Brandon :
The regular expression used for matching numbers in the documentation for the
regular expressions module (the tokenizer section) doesn't match the string
".5", but does match the string "3.".
Here's a link to the tokenizer sectio
Change by Brandon Stansbury :
--
title: Base 85 encoding initialization race conditiong -> Base 85 encoding
initialization race condition
___
Python tracker
<https://bugs.python.org/issu
New submission from Brandon Stansbury :
Under multi-threading scenarios a race condition may occur where a thread sees
an initialized `_b85chars` table but an uninitialized `_b85chars2` table due to
the guard only checking the first table.
This causes an exception like:
```
File "/us
Change by Brandon James :
--
keywords: +patch
pull_requests: +14833
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/15088
___
Python tracker
<https://bugs.python.org/issu
New submission from Brandon James :
When using the ipaddress library, all multicast addresses and networks return
True when using the is_global method for their respective classes. I believe
their are two possible fixes for this.
1) In practice no multicast addresses are globally routable
Brandon VanVaerenbergh - NOAA Affiliate added the comment:
+1 just experienced this issue migrating from Python3.4 to Python3.5 on windows
with bash (MINGW git bash) as primary shell
Temporarily resolved issue (on this workstation) by simply copying
Python35\Lib\venv\scripts\posix\activate
Changes by Brandon Rhodes :
--
type: -> enhancement
___
Python tracker
<http://bugs.python.org/issue26780>
___
___
Python-bugs-list mailing list
Unsubscrib
Brandon Rhodes added the comment:
Another important objection against the current text is that it stacks a series
of `and` and `or` operators at the same level of indentation, as though they
naturally evaluate in the order the programmer writes them. In fact, they have
different levels of
Changes by Brandon Rhodes :
Added file: http://bugs.python.org/file42489/pep8-knuth.patch
___
Python tracker
<http://bugs.python.org/issue26780>
___
___
Python-bugs-list m
Changes by Brandon Rhodes :
Removed file: http://bugs.python.org/file42487/pep8-knuth.patch
___
Python tracker
<http://bugs.python.org/issue26780>
___
___
Python-bug
New submission from Brandon Rhodes:
I am delighted to see that PEP-8 has pivoted to breaking long formulae before,
rather than after, each binary operator! But I would like to pivot the PEP away
from citing my own PyCon Canada talk as the authority on the matter, and toward
citing Knuth
Brandon Milam added the comment:
I've tested the new patch and it is still able to properly find both chrome and
firefox and is able to differentiate between new window and new tab for those
two browsers so it is still working. Would someone review the
Brandon Zerbe added the comment:
I am using Python 2.7.5. The segment of code from inspect that I previously
extracted came from line 332 although you may also find it by "finding"
_searchbases.
This is really an issue with Forthon:
http://hifweb.lbl.gov/Forthon/
Specifically t
New submission from Brandon Zerbe:
I am using a possibly non-standard python package called Forthon, and when I
inspect an object that is dependent on the Forthon class, I get the following
error:
File "/Users/zerbeb/homemade_programs/config2class/src/method_parsing.py",
l
Brandon Milam added the comment:
Finally got it rebuilt after having trouble with visual studio for awhile. I've
tested the new patch and it is still able to properly find both chrome and
firefox and is able to differentiate between new window and new tab for those
two browsers so it ap
Brandon Milam added the comment:
Ok I've been able to test the new patch now and I'm not sure that os.startfile
is going to work. I've been able to get os.startfile() to open a specified
browser (>>> os.startfile("chrome.exe", "open")), howe
Brandon Milam added the comment:
applying 25005_1.patch
patching file Lib/webbrowser.py
Hunk #1 FAILED at 498
Hunk #2 FAILED at 524
Hunk #3 FAILED at 532
Hunk #4 FAILED at 540
Hunk #5 FAILED at 548
I'm trying to apply your patch after applying webbrowserfix6.patch but I am
encountering pro
Brandon Milam added the comment:
This is my first attempt at working with the test suite but I believe this is
what you were asking for. Due to this being my first attempt at writing tests I
have included it as a separate patch file. Any further changes just let me know.
--
Added file
Brandon Milam added the comment:
Boštjan Mejak the windows issue has been addressed in issue 8232 and recently
patched for 3.5. http://bugs.python.org/issue8232
--
nosy: +jbmilam
___
Python tracker
<http://bugs.python.org/issue24
Brandon Milam added the comment:
Moved the 64 bit browser list to its own loop and switched to browsers.append
rather than +=.
--
Added file: http://bugs.python.org/file39650/webbrowserfix6.patch
___
Python tracker
<http://bugs.python.org/issue8
Brandon Milam added the comment:
They are correct. 'cum' is not one of the available keywords and so here is the
fix changing it to say 'cumulative' for consistency as ramiro suggested.
--
keywords: +patch
nosy: +jbmilam
Added file: http://bugs.
Brandon Milam added the comment:
Here's a patch addressing all of the comments in the review. Changing the
browsers from a set to a list though resulted in duplicates in the _tryorder
list that were not present before because the set had filtered the duplicates
before the partial s
Brandon Milam added the comment:
I've been looking over the issue and the error is just raised by the stdout
change not the stderr change (when the stdout line is commented out in the
setAutoFlush function no error is raised). The flush method doesn't seem to be
required as Serhiy p
Brandon Milam added the comment:
Forgive me the excessive number of patch submissions as I am still getting my
feet wet in contributing to Python. I'm posting another patch that is not
functionally different from the last patch but should better adhere to the PEP8
style guide.
Please l
Changes by Brandon Milam :
--
keywords: +patch
Added file: http://bugs.python.org/file39560/csv_skipinitialspace_docfix.patch
___
Python tracker
<http://bugs.python.org/issue21
Changes by Brandon Milam :
Added file: http://bugs.python.org/file39559/csv_skipinitialspace_testing.csv
___
Python tracker
<http://bugs.python.org/issue21297>
___
___
Brandon Milam added the comment:
This code shows what Daniel Andersson was talking about. I changed the
"whitespace" references in the documentation that Daniel mentioned to say
spaces. Also I changed "ignore space at the start of the field" to "ignore
spaces at the s
Changes by Brandon Milam :
Added file: http://bugs.python.org/file39553/csv.html
___
Python tracker
<http://bugs.python.org/issue24147>
___
___
Python-bugs-list mailin
Brandon Milam added the comment:
Here I added on to the Dialects and Formatting Parameters paragraph explaining
that the defaults listed are for the excel dialect and that all the attributes
need to be specified if the user is wanting to create custom dialects through
sub-classing. I will
Brandon Milam added the comment:
Sorry, I forgot an end parentheses in the doc string of the last patch.
--
Added file:
http://bugs.python.org/file39541/register_dialect_docstring_fix.patch
___
Python tracker
<http://bugs.python.org/issue23
Brandon Milam added the comment:
I believe this was the requested change. Let me know if more was desired.
--
keywords: +patch
nosy: +jbmilam
Added file:
http://bugs.python.org/file39540/register_dialect_docstring_fix.patch
___
Python tracker
<h
Brandon Milam added the comment:
Hi all,
I've been looking at this bug and am ready to start putting in some work on it
but I have some questions about what is wanting to be done. From what I can
tell these are the possible tasks for this issue.
- Add to the docs under the dialect se
Brandon Milam added the comment:
On second thought no type testing is required if sets are used because the
union will take out duplicates anyways and so I removed the type testing and
left in the set union code.
--
Added file: http://bugs.python.org/file39534/webbrowserfix3.patch
Brandon Milam added the comment:
I went ahead and took the assert statement out and added support for vista
using a union of sets for both the 32 bit and 64 bit locations.
--
Added file: http://bugs.python.org/file39533/webbrowserfix3.patch
Brandon Milam added the comment:
I kept the changes to the WindowsDefault.open() method and used and extended
eryksun's code to build the browser list using the registry. Also I added
support for a few more browsers. Some of the browsers I could not find ways to
differentiate between op
Brandon Milam added the comment:
I got rid of the __init__ for the WindowsDefault class that I asked about
earlier and changed it to match the sub-classing model that the Unix browsers
use. This caused some changes in the get function too. Due to the _isexecutable
still not completely working
Brandon Milam added the comment:
How the _isexecutable function is set up now it would require a full path name
in order to be able to tell if a specific browser is on the system. The area
under platform support for windows checks for multiple browsers using this
function but only passes it
Brandon Milam added the comment:
In order to fix the issue I added on to the WindowsDefault class so that it is
the main browser class for windows platforms as opposed to being a default when
no other browser is given. I gave the class an init where it specifies specific
flags for firefox
Brandon Rhodes added the comment:
Now that I am back at a full keyboard, I see that my previous response
to @BreamoreBoy about this issue is too short and too cryptic to really
serve as a fair answer to his question. And, with some embarrassment, I
note that my words did not even achieve the
Brandon Rhodes added the comment:
I do not find it unreasonable, on a page of Python idioms, the we would call an
example that explicitly says "Don't" in its title an "anti-idiom."
--
___
Python tracker
<http:
Brandon Rhodes added the comment:
The question of whether the document ought to be removed is not at issue here.
The document was already deleted, in 2011, by Raymond Hettinger, with the
consent of its author. I told that story merely as background.
The issue here is that the Python web site
Changes by Brandon Rhodes :
--
assignee: -> docs@python
components: +Documentation
nosy: +docs@python
versions: +Python 3.4
___
Python tracker
<http://bugs.python.org/issu
New submission from Brandon Rhodes:
There was an old document in the "howto" folder whose advice was in many cases
flat-out wrong, so Raymond Hettinger performed a wonderful public service by
deleting it back in 2011:
http://hg.python.org/cpython/rev/80ff78425419
Unfortunately it
Changes by Brandon :
--
resolution: -> not a bug
___
Python tracker
<http://bugs.python.org/issue21570>
___
___
Python-bugs-list mailing list
Unsubscrib
Brandon added the comment:
Type returned as datetime, I was not familiar with the MySQLdb code. Sorry for
the bad report.
--
status: open -> closed
___
Python tracker
<http://bugs.python.org/issu
New submission from Brandon:
Observe the following code:
import MySQLdb, MySQLdb.cursors, datetime
""" ... mysqlCursor is a cursor object from a connection to database from the
MySQLdb module ... """
mysqlCursor.execute("SELECT NOW()")
timeRow
New submission from Brandon Rhodes:
Currently, the new wonderful EmailMessage class ignores the encoding specified
in any Header objects that are provided to it.
import email.message, email.header
m = email.message.Message()
m['Subject'] = email.header.Header('Böðvarr
New submission from Brandon Rhodes:
I love properties and think they should be everywhere. But consistency is more
important, so I suspect that EmailMessage.is_attachment should be demoted to a
normal method. Why? Because if it remains a property then I am likely to first
write:
if
Brandon Rhodes added the comment:
Thanks — done! http://bugs.python.org/issue21083
--
___
Python tracker
<http://bugs.python.org/issue21079>
___
___
Python-bug
New submission from Brandon Rhodes:
"Content-Disposition is an optional header field. In its absence, the MUA may
use whatever presentation method it deems suitable." — RFC 2183
The email.message.Message class should gain a get_content_disposition() method
with the three possi
Brandon Rhodes added the comment:
I agree that is_attachment supports the most common use-case of people who need
to inspect the content disposition!
But people implementing heavyweight tools and email clients might additionally
need to distinguish between a MIME part whose disposition is
Brandon Rhodes added the comment:
Understood. I wonder where in the documentation the ability to get the content
disposition should wind up? I am almost tempted to suggest a
get_content_disposition() method that parallels get_content_type(), mostly to
avoid having to document the asymmetry
Brandon Rhodes added the comment:
Given that methods like get_param() already exist for pulling data out of
the right-hand-side of the ';' in a parameterized email header, would it
be amiss for EmailMessage to also have a method that either returns
everything to the left of the sem
Brandon Rhodes added the comment:
Okay, having looked at the source a bit more it would probably make
more sense to use _splitparam() instead of doing the split manually.
--
___
Python tracker
<http://bugs.python.org/issue21
Brandon Rhodes added the comment:
Oh - this also, happily, explains why iter_attachments() is ignoring
all of the attachments on my email: because it internally relies upon
is_attachment to make the decision. So this fix will also make
iter_attachments() usable
New submission from Brandon Rhodes:
Most attachments (in my inbox, at least) specify a filename, and thus
have a Content-Disposition header that looks like:
Content-Disposition: attachment; filename="attachment.gz"
In fact, this sample header was generated by the new add_attachment()
New submission from Brandon Rhodes:
In Python 3, fileinput.input() returns str lines whether the data is
coming from stdin or from a list of files on the command line. But if
input(mode='rb') is specified, then its behavior becomes inconsistent:
lines from stdin are delivered as alrea
Changes by Brandon Rhodes :
--
versions: +Python 3.4 -Python 3.5
___
Python tracker
<http://bugs.python.org/issue19536>
___
___
Python-bugs-list mailing list
Unsub
New submission from Brandon Rhodes:
Regular expression re.MatchObject objects are sequences.
They contain at least one “group” string, possibly more,
which are integer-indexed starting at zero.
Today, groups can be accessed in one of two ways.
(1) You can call the method match.group(N).
(2
Brandon Craig Rhodes added the comment:
Kristján, you are certainly correct that a single-argument that can be either a
filename or a cert is inappropriate; we should not be peeking inside of strings
to guess what they contain.
And I think you also have a good point about Pythonic-ness when
Brandon Craig Rhodes added the comment:
Kristján, your patch is a wonderful idea—I am about to commit production code
that will have to create tens of thousands of temporary files during operation,
one file each time SSL is started up on a socket, which could be avoided if
something like this
Brandon Craig Rhodes added the comment:
Adding an entirely separate API for introspection strikes me as
counter-productive — instead of merely having to maintain the logging API that
you already maintain, you will additionally now have an entirely separate and
second API that also has to be
Brandon Craig Rhodes added the comment:
Larry Hastings writes:
> Huh. tar *can* infer it from the data itself. On the other hand, it
> chooses explicitly not to. I guess "tar" knows explicit is better
> than implicit too ;-)
I am told that the refusal of "tar&qu
Brandon Craig Rhodes added the comment:
The original inspiration:
https://twitter.com/theomn/status/309468740611891200
--
___
Python tracker
<http://bugs.python.org/issue17
Brandon Craig Rhodes added the comment:
(Corrected "not" to "note" in the title and went with "enhancement")
--
title: PEP should not if it has been superseded -> PEP should note if it has
been superseded
type: -> enhancement
__
New submission from Brandon Craig Rhodes:
A friend (@theomn on Twitter) was just working off of PEP-333 when I mentioned
to him that PEP-, and he had never heard of it, and he expressed the wish
that PEPs would have a banner or something at the top if there is a more recent
version of
New submission from Brandon Craig Rhodes :
The tarfile module should have a simple command line that allows it to be
executed with "-m" — even if its only ability was to take a filename and
extract it to the current directory, it could be a lifesaver on Windows
machines where Pytho
Brandon Craig Rhodes added the comment:
In case Google brings anyone else to this bug: this error typically indicates
that a `threading.py` which is not actually the Standard Library's `threading`
module has somehow wound up on an earlier path in `sys.path` and is therefore
shadowin
Brandon Craig Rhodes added the comment:
Brett, yes, you are welcome to close this issue — Ned quite handily convinced
me that coverage code belongs in the "coverage" distribution, not languishing
about in the CPython source tree. That solution also quite beautifully solves
the
Brandon Craig Rhodes added the comment:
Ezio and Sandro, thank you very much for your attention to this issue, and for
helping me split it into manageable chunks! To answer the question about why
"coverage" does not show as high a total as it ought: it's because coverage
nor
Brandon Craig Rhodes added the comment:
Éric, I think your suggestions are all good ones, and I have incorporated them
into the file. (But do note that the departures we are now making from Ned's
own copy of the tracer code — removing the commented-out debugging statement,
and the
Brandon Craig Rhodes added the comment:
Éric, I think your points are good ones. (And, as I return to this patch after
three months, I should thank the PSF for sponsoring the CPython sprint here at
PyOhio, and creating this opportunity for me to continue trying to land this
patch!) I am
Brandon Craig Rhodes added the comment:
But if we allow for ellipsis, then would we not also have to start allowing
characters like ≥ and ≤ in Python? And the problem with any of these
(admittedly very attractive) substitutions is that they seem to abandon the
principle of there being One
Brandon W Maister added the comment:
Oh, awesome, thanks!
--
___
Python tracker
<http://bugs.python.org/issue11848>
___
___
Python-bugs-list mailing list
Unsub
New submission from Brandon W Maister :
The comment just before the random.betavariate method reads in part:
## See
## http://sourceforge.net/bugs/?func=detailbug&bug_id=130030&group_id=5470
## for Ivan Frohne's insightful analysis of why the original implementation:
## (
Brandon Craig Rhodes added the comment:
Nick Coghlan writes:
> Regarding "__reduce__", other readers will have the same question Éric
> did, so that point should definitely go in a comment after the
> "__reduce_ex__" check.
I just sat down to review this issu
Brandon Craig Rhodes added the comment:
Nick Coghlan writes:
> Nick Coghlan added the comment:
>
> Regarding "__reduce__", other readers will have the same question Éric
> did, so that point should definitely go in a comment after the
> "__reduce_ex__" che
Brandon Craig Rhodes added the comment:
Éric, after checking line 112 of the two patches and then of the new file, I
figured out that you meant line 112 of the old file — and, yes, that test can
go away too since in python3 "complex" always exists and "unicode" neve
Brandon Craig Rhodes added the comment:
Antoine, neither this issue, nor either version of my patch, was intended to
assert that 100% test coverage indicates that a test of tests are complete. If
you will point out where in the text this is implied, I will correct it. Thanks
Brandon Craig Rhodes added the comment:
Éric, the Makefile in Python trunk seems to include Objects/complexobject.o in
the build unilaterally without any way to turn it off. What is leading you to
believe that Python 3 can conditionally turn the "complex" type off during a
build?
Brandon Craig Rhodes added the comment:
Benjamin, thanks for the pointers! The attached patch now uses assertIs() and
assertIsNot(), and calls self.fail() instead of using the exception from
"support".
In the future I would like some way to determine when test coverage is fully
ac
Changes by Brandon Craig Rhodes :
Removed file: http://bugs.python.org/file21245/test_copy2.patch
___
Python tracker
<http://bugs.python.org/issue502085>
___
___
Pytho
Brandon Craig Rhodes added the comment:
Benjamin, I would like some way to know when our tests achieve 100% coverage
because otherwise I will keep coming back to this module to add more tests and
have to re-discover code that is not CPython relevant. But for now I have
removed the pragmas
New submission from Brandon Craig Rhodes :
The attached patch will bring Lib/copy.py to 100% test coverage.
A bug in "coverage" results in its only reporting 99% at the moment; see
coverage issue #122 on bitbucket:
https://bitbucket.org/ned/coveragepy/issue/122/for-else-always-repor
Brandon Craig Rhodes added the comment:
Here is a module that solves this problem if the tests are run with the
"fullcoverage" directory at the front of the PYTHONPATH, like this:
PYTHONPATH=Tools/fullcoverage ./python -m coverage run --pylib
Lib/test/regrtest.py
New submission from Brandon Craig Rhodes :
When running the Python regression tests in "coverage", the initial outer level
of interpreted code in several standard library modules shows as not having
been covered by the tests, because they were imported during the Python boot
proces
New submission from Brandon Craig Rhodes :
Normally, unittest cleanly reports an exception in a setUpClass method. But if
I place the attached test in a directory by itself and then run "python -m
unittest discover -b" from inside of the same directory, then instead of being
Brandon Craig Rhodes added the comment:
Here is a patch that fixes the problem. The problem probably only occurs if the
MIMEMultipart is actually given several MIME parts to use in its interior.
--
keywords: +patch
Added file: http://bugs.python.org/file20391/email-boundary.diff
New submission from Brandon Craig Rhodes :
If you try doing "msg.as_string()" to a MIMEMultipart message that has not been
given a boundary, then it dies with this exception:
Traceback (most recent call last):
File "mime_gen_alt.py", line 40, in
print(msg.as_str
New submission from Brandon Craig Rhodes :
The only way to safely build shell command lines from inside of Python — which
is necessary when sending commands across SSH, since that behaves like
os.system() rather than like subprocess.call() — is to use the wonderful
pipes.call() method to turn
Brandon Craig Rhodes added the comment:
Jesse, it's great to learn it's on your wish list too!
Should I design the patch so that (a) there is some global in the module that
needs tweaking to choose the child creation technique, or (b) that an argument
to the Process() constructo
New submission from Brandon Craig Rhodes :
The "multiprocessing" module uses a bare fork() to create child processes under
Linux, so the children get a copy of the entire state of the parent process.
But under Windows, child processes are freshly spun-up Python interpreters with
n
New submission from Brandon Craig Rhodes :
On this page, the Style Guide for people who want to try contributing to the
Python documentation:
docs.python.org/documenting/style.html
there is a broken link to the Apple Style Guide. The 2008 edition now seems
gone and people are now apparently
brandon added the comment:
After getting into the infinite loop, here's exception from CTRL-C (posted just
to show stack trace -- i am still working on getting come sample code together
-- meant to show it is infact in that while(1) a 251 in connection.py):
KeyboardInterrupt
^CErr
New submission from brandon :
Multiprocessing goes into an infinite loop during shutdown, trying to connect
to a remote queue - I *think* during finalization.
The actual loop appears to be the while(1) in connection.py line 251, and I
think it is being called initially from manager.py
improve the design/functionality. We hope
you find it as useful as we do.
Please
send any feedback, comments, or requests to: mailto:bran...@famousfoodfinder.com";>bran...@famousfoodfinder.com.
-- Brandon Dixon - CCNA, OSCP, WebSphere DataPower Solution
DeveloperInformation Systems Se
1 - 100 of 117 matches
Mail list logo