[issue44564] DeprecationWarning in test_enum over formatting

2021-07-11 Thread Brandon Schabell
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

[issue44159] mimetypes - "strict" on Windows

2021-07-11 Thread Brandon Schabell
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

[issue38820] Make Python compatible with OpenSSL 3.0.0

2021-06-02 Thread Brandon Weeks
Change by Brandon Weeks : -- nosy: +bweeks ___ Python tracker <https://bugs.python.org/issue38820> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue42316] Walrus Operator in list index

2020-11-10 Thread Brandon
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

[issue40332] RegEx for numbers in documentation (easy fix - solution provided)

2020-04-19 Thread Brandon
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

[issue39068] Base 85 encoding initialization race condition

2019-12-16 Thread Brandon Stansbury
Change by Brandon Stansbury : -- title: Base 85 encoding initialization race conditiong -> Base 85 encoding initialization race condition ___ Python tracker <https://bugs.python.org/issu

[issue39068] Base 85 encoding initialization race conditiong

2019-12-16 Thread Brandon Stansbury
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

[issue37749] ipaddress - is_global method all multicast addresses and networks return true

2019-08-02 Thread Brandon James
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

[issue37749] ipaddress - is_global method all multicast addresses and networks return true

2019-08-02 Thread Brandon James
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

[issue22343] Install bash activate script on Windows when using venv

2016-12-08 Thread Brandon VanVaerenbergh - NOAA Affiliate
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

[issue26780] Illustrate both binary operator conventions in PEP-8

2016-04-16 Thread Brandon Rhodes
Changes by Brandon Rhodes : -- type: -> enhancement ___ Python tracker <http://bugs.python.org/issue26780> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue26780] Illustrate both binary operator conventions in PEP-8

2016-04-16 Thread Brandon Rhodes
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

[issue26780] Illustrate both binary operator conventions in PEP-8

2016-04-16 Thread Brandon Rhodes
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

[issue26780] Illustrate both binary operator conventions in PEP-8

2016-04-16 Thread Brandon Rhodes
Changes by Brandon Rhodes : Removed file: http://bugs.python.org/file42487/pep8-knuth.patch ___ Python tracker <http://bugs.python.org/issue26780> ___ ___ Python-bug

[issue26780] Illustrate both binary operator conventions in PEP-8

2016-04-16 Thread Brandon Rhodes
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

[issue8232] webbrowser.open incomplete on Windows

2016-03-13 Thread Brandon Milam
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

[issue25884] inspect.getmro() fails when base class lacks __bases__ attribute.

2015-12-16 Thread Brandon Zerbe
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

[issue25884] inspect.getmro() fails when base class lacks __bases__ attribute.

2015-12-16 Thread Brandon Zerbe
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

[issue8232] webbrowser.open incomplete on Windows

2015-09-07 Thread Brandon Milam
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

[issue8232] webbrowser.open incomplete on Windows

2015-09-07 Thread Brandon Milam
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

[issue8232] webbrowser.open incomplete on Windows

2015-09-07 Thread Brandon Milam
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

[issue21297] csv.skipinitialspace only skips spaces, not "whitespace" in general

2015-06-18 Thread Brandon Milam
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

[issue24452] Make webbrowser support Chrome on Mac OS X

2015-06-14 Thread Brandon Milam
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

[issue8232] webbrowser.open incomplete on Windows

2015-06-07 Thread Brandon Milam
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

[issue24148] 'cum' not a valid sort key for pstats.Stats.sort_stats

2015-06-04 Thread Brandon Milam
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.

[issue8232] webbrowser.open incomplete on Windows

2015-06-04 Thread Brandon Milam
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

[issue12020] Attribute error with flush on stdout,stderr

2015-06-01 Thread Brandon Milam
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

[issue8232] webbrowser.open incomplete on Windows

2015-06-01 Thread Brandon Milam
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

[issue21297] csv.skipinitialspace only skips spaces, not "whitespace" in general

2015-05-29 Thread Brandon Milam
Changes by Brandon Milam : -- keywords: +patch Added file: http://bugs.python.org/file39560/csv_skipinitialspace_docfix.patch ___ Python tracker <http://bugs.python.org/issue21

[issue21297] csv.skipinitialspace only skips spaces, not "whitespace" in general

2015-05-29 Thread Brandon Milam
Changes by Brandon Milam : Added file: http://bugs.python.org/file39559/csv_skipinitialspace_testing.csv ___ Python tracker <http://bugs.python.org/issue21297> ___ ___

[issue21297] csv.skipinitialspace only skips spaces, not "whitespace" in general

2015-05-29 Thread Brandon Milam
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

[issue24147] Dialect class defaults are not documented.

2015-05-29 Thread Brandon Milam
Changes by Brandon Milam : Added file: http://bugs.python.org/file39553/csv.html ___ Python tracker <http://bugs.python.org/issue24147> ___ ___ Python-bugs-list mailin

[issue24147] Dialect class defaults are not documented.

2015-05-29 Thread Brandon Milam
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

[issue23659] csv.register_dialect doc string

2015-05-28 Thread Brandon Milam
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

[issue23659] csv.register_dialect doc string

2015-05-28 Thread Brandon Milam
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

[issue24147] Dialect class defaults are not documented.

2015-05-28 Thread Brandon Milam
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

[issue8232] webbrowser.open incomplete on Windows

2015-05-28 Thread Brandon Milam
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

[issue8232] webbrowser.open incomplete on Windows

2015-05-28 Thread Brandon Milam
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

[issue8232] webbrowser.open incomplete on Windows

2015-05-27 Thread Brandon Milam
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

[issue8232] webbrowser.open incomplete on Windows

2014-08-04 Thread Brandon Milam
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

[issue8232] webbrowser.open incomplete on Windows

2014-07-26 Thread Brandon Milam
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

[issue8232] webbrowser.open incomplete on Windows

2014-07-26 Thread Brandon Milam
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

[issue21956] Doc files deleted from repo are not deleted from docs.python.org.

2014-07-14 Thread Brandon Rhodes
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

[issue21956] Doc files deleted from repo are not deleted from docs.python.org.

2014-07-11 Thread Brandon Rhodes
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:

[issue21956] Deleted document should not appear in 3.4 docs

2014-07-11 Thread Brandon Rhodes
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

[issue21956] Deleted document should not appear in 3.4 docs

2014-07-11 Thread Brandon Rhodes
Changes by Brandon Rhodes : -- assignee: -> docs@python components: +Documentation nosy: +docs@python versions: +Python 3.4 ___ Python tracker <http://bugs.python.org/issu

[issue21956] Deleted document should not appear in 3.4 docs

2014-07-11 Thread Brandon Rhodes
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

[issue21570] String being confused with datetime.datetime object.

2014-05-24 Thread Brandon
Changes by Brandon : -- resolution: -> not a bug ___ Python tracker <http://bugs.python.org/issue21570> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue21570] String being confused with datetime.datetime object.

2014-05-24 Thread Brandon
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

[issue21570] String being confused with datetime.datetime object.

2014-05-24 Thread Brandon
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

[issue21095] EmailMessage should support Header objects

2014-03-28 Thread Brandon Rhodes
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&#

[issue21091] EmailMessage.is_attachment should be a method

2014-03-28 Thread Brandon Rhodes
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

[issue21079] EmailMessage.is_attachment == False if filename is present

2014-03-28 Thread Brandon Rhodes
Brandon Rhodes added the comment: Thanks — done! http://bugs.python.org/issue21083 -- ___ Python tracker <http://bugs.python.org/issue21079> ___ ___ Python-bug

[issue21083] Add get_content_disposition() to email.message.Message

2014-03-28 Thread Brandon Rhodes
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

[issue21079] EmailMessage.is_attachment == False if filename is present

2014-03-27 Thread Brandon Rhodes
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

[issue21079] EmailMessage.is_attachment == False if filename is present

2014-03-27 Thread Brandon Rhodes
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

[issue21079] EmailMessage.is_attachment == False if filename is present

2014-03-27 Thread Brandon Rhodes
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

[issue21079] EmailMessage.is_attachment == False if filename is present

2014-03-27 Thread Brandon Rhodes
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

[issue21079] EmailMessage.is_attachment == False if filename is present

2014-03-27 Thread Brandon Rhodes
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

[issue21079] EmailMessage.is_attachment == False if filename is present

2014-03-27 Thread Brandon Rhodes
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()

[issue21075] fileinput should use stdin.buffer for "rb" mode

2014-03-27 Thread Brandon Rhodes
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

[issue19536] MatchObject should offer __getitem__()

2013-11-09 Thread Brandon Rhodes
Changes by Brandon Rhodes : -- versions: +Python 3.4 -Python 3.5 ___ Python tracker <http://bugs.python.org/issue19536> ___ ___ Python-bugs-list mailing list Unsub

[issue19536] MatchObject should offer __getitem__()

2013-11-09 Thread Brandon Rhodes
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

[issue16487] Allow ssl certificates to be specified from memory rather than files.

2013-06-24 Thread Brandon Craig Rhodes
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

[issue16487] Allow ssl certificates to be specified from memory rather than files.

2013-06-11 Thread Brandon Craig Rhodes
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

[issue17855] Implement introspection of logger hierarchy

2013-06-01 Thread Brandon Craig Rhodes
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

[issue13477] tarfile module should have a command line

2013-03-19 Thread Brandon Craig Rhodes
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

[issue17370] PEP should note if it has been superseded

2013-03-06 Thread Brandon Craig Rhodes
Brandon Craig Rhodes added the comment: The original inspiration: https://twitter.com/theomn/status/309468740611891200 -- ___ Python tracker <http://bugs.python.org/issue17

[issue17370] PEP should note if it has been superseded

2013-03-06 Thread Brandon Craig Rhodes
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 __

[issue17370] PEP should not if it has been superseded

2013-03-06 Thread Brandon Craig Rhodes
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

[issue13477] tarfile module should have a command line

2011-11-24 Thread Brandon Craig Rhodes
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

[issue1947] Exception exceptions.AttributeError '_shutdown' in

2011-09-13 Thread Brandon Craig Rhodes
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

[issue11561] "coverage" of Python regrtest cannot see initial import of libs

2011-09-06 Thread Brandon Craig Rhodes
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

[issue11572] bring Lib/copy.py to 100% coverage

2011-08-04 Thread Brandon Craig Rhodes
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

[issue11561] "coverage" of Python regrtest cannot see initial import of libs

2011-08-01 Thread Brandon Craig Rhodes
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

[issue11572] bring Lib/copy.py to 100% coverage

2011-08-01 Thread Brandon Craig Rhodes
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

[issue12056] "…" (HORIZONTAL ELLIPSIS) should be an alternative syntax for "..." (FULL STOP FULL STOP FULL STOP)

2011-05-11 Thread Brandon Craig Rhodes
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

[issue11848] Comment for random.betavariate is intriguing and incomplete

2011-04-14 Thread Brandon W Maister
Brandon W Maister added the comment: Oh, awesome, thanks! -- ___ Python tracker <http://bugs.python.org/issue11848> ___ ___ Python-bugs-list mailing list Unsub

[issue11848] Comment for random.betavariate is intriguing and incomplete

2011-04-14 Thread Brandon W Maister
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: ## (

[issue11572] bring Lib/copy.py to 100% coverage

2011-03-21 Thread Brandon Craig Rhodes
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

[issue11572] bring Lib/copy.py to 100% coverage

2011-03-19 Thread Brandon Craig Rhodes
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

[issue11572] bring Lib/copy.py to 100% coverage

2011-03-18 Thread Brandon Craig Rhodes
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

[issue11572] bring Lib/copy.py to 100% coverage

2011-03-17 Thread Brandon Craig Rhodes
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

[issue11572] bring Lib/copy.py to 100% coverage

2011-03-17 Thread Brandon Craig Rhodes
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?

[issue11572] bring Lib/copy.py to 100% coverage

2011-03-16 Thread Brandon Craig Rhodes
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

[issue502085] pickle problems (with Boost.Python)

2011-03-16 Thread Brandon Craig Rhodes
Changes by Brandon Craig Rhodes : Removed file: http://bugs.python.org/file21245/test_copy2.patch ___ Python tracker <http://bugs.python.org/issue502085> ___ ___ Pytho

[issue502085] pickle problems (with Boost.Python)

2011-03-16 Thread Brandon Craig Rhodes
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

[issue11572] bring Lib/copy.py to 100% coverage

2011-03-16 Thread Brandon Craig Rhodes
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

[issue11561] "coverage" of Python regrtest cannot see initial import of libs

2011-03-15 Thread Brandon Craig Rhodes
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

[issue11561] "coverage" of Python regrtest cannot see initial import of libs

2011-03-15 Thread Brandon Craig Rhodes
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

[issue10979] setUpClass exception causes explosion with "-b"

2011-01-21 Thread Brandon Craig Rhodes
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

[issue10901] Python 3 MIME generator dies if not given boundary

2011-01-13 Thread Brandon Craig Rhodes
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

[issue10901] Python 3 MIME generator dies if not given boundary

2011-01-13 Thread Brandon Craig Rhodes
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

[issue9723] pipes.quote() needs to be documented

2010-08-31 Thread Brandon Craig Rhodes
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

[issue8713] multiprocessing needs option to eschew fork() under Linux

2010-05-14 Thread Brandon Craig Rhodes
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

[issue8713] multiprocessing needs option to eschew fork() under Linux

2010-05-14 Thread Brandon Craig Rhodes
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

[issue8517] Apple Style Guide link is broken in the "Documenting Python" chapter

2010-04-24 Thread Brandon Craig Rhodes
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

[issue8144] muliprocessing shutdown infinite loop

2010-03-14 Thread brandon
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

[issue8144] muliprocessing shutdown infinite loop

2010-03-14 Thread brandon
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

[issue7297] Releasing FamousFoodFinder.com

2009-11-09 Thread Brandon Dixon
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   2   >