[issue30620] textwrap: dedent contains logic that can never execute

2017-06-09 Thread Jonathan Eunice
New submission from Jonathan Eunice: textwrap.dedent contains a bit of code that appears logical at first blush, but in fact can never execute under any input conditions. Not only are the lines "dead code," they are the only thing (i.e. only non-debugging lines) now standing in

[issue30603] textwrap: declining indent level has no test case

2017-06-09 Thread Jonathan Eunice
Changes by Jonathan Eunice : -- pull_requests: +2128 ___ Python tracker <http://bugs.python.org/issue30603> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue30620] textwrap: dedent contains logic that can never execute

2017-06-09 Thread Jonathan Eunice
Changes by Jonathan Eunice : -- pull_requests: +2126 ___ Python tracker <http://bugs.python.org/issue30620> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue30591] textwrap: placeholder backtracking special case lacks test coverage

2017-06-09 Thread Jonathan Eunice
Changes by Jonathan Eunice : -- pull_requests: +2127 ___ Python tracker <http://bugs.python.org/issue30591> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue26910] dictionary literal should not allow duplicate keys

2019-03-06 Thread Jonathan Fine
Jonathan Fine added the comment: I mention this issue, and related pages, in [Python-ideas] dict literal allows duplicate keys https://mail.python.org/pipermail/python-ideas/2019-March/055717.html It arises from a discussion of PEP 584 -- Add + and - operators to the built-in dict class

[issue16385] evaluating literal dict with repeated keys gives no warnings/errors

2019-03-06 Thread Jonathan Fine
Jonathan Fine added the comment: I mention this issue, and related pages, in [Python-ideas] dict literal allows duplicate keys https://mail.python.org/pipermail/python-ideas/2019-March/055717.html It arises from a discussion of PEP 584 -- Add + and - operators to the built-in dict class

[issue16385] evaluating literal dict with repeated keys gives no warnings/errors

2019-03-11 Thread Jonathan Fine
Jonathan Fine added the comment: This is was closed and tagged as resolved in 2012. The status has not been changed since then. Using dict(a=1, ...) provides a workaround, but only when the keys are valid as variable names. The general workaround is something like helper([ (1

[issue36520] Email header folded incorrectly

2019-04-03 Thread Jonathan Horn
New submission from Jonathan Horn : I encountered a problem with replacing the 'Subject' header of an email. After serializing it again, the utf8 encoding was wrong. It seems to be occurring when folding the internal header objects. Example: >> email.policy.default.fold

[issue33042] New 3.7 startup sequence crashes PyInstaller

2018-03-15 Thread Jonathan Springer
Change by Jonathan Springer : -- nosy: +springermac ___ Python tracker <https://bugs.python.org/issue33042> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33119] python sys.argv argument parsing not clear

2018-03-22 Thread Jonathan Huot
New submission from Jonathan Huot : Executing python modules with -m can lead to weird sys.argv parsing. "Argument parsing" section at https://docs.python.org/3.8/tutorial/interpreter.html#argument-passing mention : - When -m module is used, sys.argv[0] is set to the full name of t

[issue31583] 2to3 call for file in current directory yields error

2017-10-03 Thread Jonathan Abdo
Jonathan Abdo added the comment: Issue also effects 3.5 -- nosy: +jabdo versions: +Python 3.5 Added file: https://bugs.python.org/file47187/2to3bugpython.png ___ Python tracker <https://bugs.python.org/issue31

[issue31583] 2to3 call for file in current directory yields error

2017-10-03 Thread Jonathan Abdo
Jonathan Abdo added the comment: Gotcha, sorry about that. Active uses 3.5, so I guess I would take it up with them? On Oct 3, 2017 2:27 PM, "R. David Murray" wrote: > > R. David Murray added the comment: > > 3.5 is in security-fix-only mode, and we use versions to ind

[issue31583] 2to3 call for file in current directory yields error

2017-10-03 Thread Jonathan Abdo
Jonathan Abdo added the comment: Inserting (with 12 spaces) if not output_dir: output_dir = "./" at lines 83 and 84 works as a temporary workaround. `StdoutRefactoringTool` is not receiving an `output_dir` from `option`, which seems to only be an i

[issue2504] Add gettext.pgettext() and variants support

2017-11-20 Thread Jonathan Schoonhoven
Jonathan Schoonhoven added the comment: Is there anything I can do to help get this into the codebase and out issue purgatory? We're not that far off from the 10 year anniversary of this issue. -- nosy: +Jonathan Schoonhoven ___ Python tr

[issue22589] mimetypes uses image/x-ms-bmp as the type for bmp files

2017-12-05 Thread Jonathan Watt
Jonathan Watt added the comment: Using image/x-ms-bmp because that's all that IE7 supports makes no sense. Chrome doesn't support image/x-ms-bmp (it only supports the official IANA type image/bmp), so if the concern is over browser support then it's clear that Chrome (the b

[issue22589] mimetypes uses image/x-ms-bmp as the type for bmp files

2017-12-05 Thread Jonathan Watt
Jonathan Watt added the comment: I should note that while Chrome will refuse to open an image/x-ms-bmp file directly, when loaded as an image embedded in a document (e.g. via HTML's ) then Chrome doesn't care what MIME type it has. It will sniff the image stream and detect from it

[issue22589] mimetypes uses image/x-ms-bmp as the type for bmp files

2017-12-05 Thread Jonathan Watt
Jonathan Watt added the comment: > If image/bmp is now[*] the official IANA type You can find image/bmp here: https://www.iana.org/assignments/media-types/media-types.xhtml#image -- ___ Python tracker <https://bugs.python.org/issu

[issue22589] mimetypes uses image/x-ms-bmp as the type for bmp files

2017-12-05 Thread Jonathan Watt
Jonathan Watt added the comment: I'm unfamiliar with the Python contribution procedures. If it's simply a case of cloning from github.com and putting up a PR then I can do that. I'm overloaded currently though, so if it's more involved than that it may take me a while

[issue32431] Two bytes objects of zero length don't compare equal

2017-12-27 Thread Jonathan Underwood
New submission from Jonathan Underwood : With the current logic in Objects/bytesobject.c in the function bytes_compare_eq it can be the case that zero length bytes object object created in an extension module like this: val = PyBytes_FromStringAndSize (NULL, 20); Py_SIZE(val) = 0; won&#

[issue32431] Two bytes objects of zero length don't compare equal

2017-12-27 Thread Jonathan Underwood
Jonathan Underwood added the comment: https://github.com/python/cpython/pull/5021 -- ___ Python tracker <https://bugs.python.org/issue32431> ___ ___ Python-bug

[issue32431] Two bytes objects of zero length don't compare equal

2017-12-27 Thread Jonathan Underwood
Change by Jonathan Underwood : -- keywords: +patch pull_requests: +4911 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue32431> ___ _

[issue32431] Two bytes objects of zero length don't compare equal

2017-12-27 Thread Jonathan Underwood
Jonathan Underwood added the comment: Py_SIZE is actually precisely specified and documented[1] as it stands; I don't think a change there is needed. The usage I outlined is in line with that documentation, and many other uses of that macro in the cpython sources. The documentation i

[issue32431] Two bytes objects of zero length don't compare equal

2017-12-27 Thread Jonathan Underwood
Jonathan Underwood added the comment: Actually the commentary at the top of bytesobject.c for PyBytes_FromStringAndSize says: "... If `str' is NULL then PyBytes_FromStringAndSize() will allocate `size+1' bytes (setting the last byte to the null terminating character)... "

[issue33620] requests.Session doesn't properly handle closed keep-alive sessions

2018-05-23 Thread Jonathan Lynch
New submission from Jonathan Lynch : When a server reaps a keep-alive session it sends a FIN packet to the client. Normally, requests handles this fine and rebuilds the session on the next request. However, there is an edge case involving network latency that is not properly handled: If

[issue33620] requests.Session doesn't properly handle closed keep-alive sessions

2018-05-23 Thread Jonathan Lynch
Jonathan Lynch added the comment: Ah, I'm sorry! I'll open the report over there, closing this. -- resolution: -> third party stage: -> resolved status: open -> closed ___ Python tracker <https://bugs

[issue34237] faq/design: PEP 572 adds assignment expressions

2018-07-26 Thread Jonathan Fine
New submission from Jonathan Fine : The title says it all. faq/design: PEP 572 adds assignment expressions https://docs.python.org/3.8/faq/design.html#why-can-t-i-use-an-assignment-in-an-expression [Can't use] this C idiom: while (line = readline(f)) { // do something with line }

[issue25461] Unclear language (the word ineffective) in the documentation for os.walk

2018-07-26 Thread Jonathan Fine
Change by Jonathan Fine : -- nosy: +jfine2358 ___ Python tracker <https://bugs.python.org/issue25461> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34237] faq/design: PEP 572 adds assignment expressions

2018-07-27 Thread Jonathan Fine
Jonathan Fine added the comment: My mistake. But not mine only. According to https://www.python.org/dev/peps/pep-0572/ the PEP is Python-Version: 3.8 I took this to mean that it had been implemented in Python 3.8. Reading the PEP more closely, it also says Status: Accepted. According to

[issue34237] faq/design: PEP 572 adds assignment expressions

2018-07-27 Thread Jonathan Fine
Jonathan Fine added the comment: First, I'm delighted that the current docs are in fact correct regarding assignment expressions. (I should have said this earlier.) I'm happy to wait for the implementation to land. (And if you like, I'm willing to help with the documentation.

[issue34237] faq/design: PEP 572 adds assignment expressions

2018-07-27 Thread Jonathan Fine
Jonathan Fine added the comment: I'm sorry. I apologise. I'm being a bit stupid. Everything is fine. Nothing to do. In case you care, here's the situation. Python 3.8 is in development, and not yet released. Somehow, I'd got it into my mind that it had already been r

[issue34398] Docs search does not index glossary

2018-08-14 Thread Jonathan Fine
New submission from Jonathan Fine : The docs contain a very useful page https://docs.python.org/3.5/glossary.html. However, the search feature does not index the glossary. Thus, the search https://docs.python.org/3.5/search.html?q=iterable does not produce the helpful glossary entry

[issue34398] Docs search does not index glossary

2018-08-14 Thread Jonathan Fine
Jonathan Fine added the comment: Good discovery. The glossary uses the RST glossary directive. https://github.com/python/cpython/blob/master/Doc/glossary.rst The Sphinx docs have a glossary, which is indexed by its search. http://www.sphinx-doc.org/en/master/search.html?q=domain So maybe

[issue34398] Docs search does not index glossary items

2018-08-15 Thread Jonathan Fine
Jonathan Fine added the comment: You're right! Thank you. However, there's still a problem. A user searches for a technical term, and the carefully written glossary entry defining it does not appear. For my search term (iterable), there was a single entry with a link to the Glo

[issue34398] Docs search does not index glossary items

2018-08-15 Thread Jonathan Fine
Jonathan Fine added the comment: Thank you for this, Ammar. Proof of concept solution is good progress. I'm well impressed. The screen shots convince me that it's well worth doing. For me, the one thing that's missing is a link just above the glossary item. Something

[issue34414] Absolute imports conflict with local files

2018-08-16 Thread Jonathan Hadida
New submission from Jonathan Hadida : This submission follows a post on StackOverflow: https://stackoverflow.com/q/51878397/472610 I have reproduced the unexpected behaviour with multiple python versions, either with a Homebrew install, or using Anaconda/Miniconda. Note that comments to the

[issue34414] Absolute imports conflict with local files

2018-08-16 Thread Jonathan Hadida
Jonathan Hadida added the comment: Thank you for your quick reply. How can this be expected behaviour? Could I please kindly ask you to point to an documented explanation, specifically for why the folder is PREpended to sys.path (put before), instead of being APpended (put after). The fact

[issue34414] Absolute imports conflict with local files

2018-08-17 Thread Jonathan Hadida
Jonathan Hadida added the comment: Thanks again for your reply, I really appreciate your time. Every language I know has reserved keywords, and a restricted syntax. Nothing to complain about there. Banning the use of tabs (PEP8) is pretty odd; but restricting file-names is just a whole new

[issue34414] Absolute imports conflict with local files

2018-08-17 Thread Jonathan Hadida
Jonathan Hadida added the comment: With regards to "This has nothing to do with absolute imports at all.", I would like to point out that the "import math" statement that I am complaining about IS WITHIN THE NUMPY MODULE. So it seems very related to this bug.

[issue34431] Docs does not eval allows code object as argument

2018-08-18 Thread Jonathan Fine
New submission from Jonathan Fine : See https://docs.python.org/3.6/library/functions.html#eval This says the following won't happen. But it does. Python 3.6.2 (default, Jul 29 2017, 00:00:00) [GCC 4.8.4] on linux Type "help", "copyright", "credits" or &quo

[issue34431] Docs does not eval allows code object as argument

2018-08-18 Thread Jonathan Fine
Jonathan Fine added the comment: Summary: There's my problem, and others. I'm willing to provide a patch, if supported. There's a gotcha here. I fell into it. The docs for eval state === eval(expression, globals=None, locals=None) The arguments are a string and optional glo

[issue34431] Docs does not eval allows code object as argument

2018-08-18 Thread Jonathan Fine
Jonathan Fine added the comment: OK. I'll do as you say. I've just signed the CLA. -- ___ Python tracker <https://bugs.python.org/issue34431> ___ ___

[issue34451] docs: tutorial/introduction doesn't mention toggle of prompts

2018-08-21 Thread Jonathan Fine
New submission from Jonathan Fine : Interactive code examples need the prompt to be stripped, before copy-and-paste. This is explained in https://docs.python.org/3/tutorial/introduction.html But this page does not tell us about the [>>>] prompt-toggle at top of each interactive cod

[issue34452] docs: help text for [>>>] toggle always in English

2018-08-21 Thread Jonathan Fine
New submission from Jonathan Fine : As subject. Background information in #34451. See https://docs.python.org/fr/3/tutorial/introduction.html The hover help text for the [>>>] is in English, not French. Korean and Japanese documentation has the same problem. -- assignee: do

[issue34452] docs: help text for [>>>] toggle always in English

2018-08-21 Thread Jonathan Fine
Jonathan Fine added the comment: Thank you. I've raised "The help text for [>>>] toggle always in English" https://github.com/python/python-docs-theme/issues/23 -- ___ Python tracker <https:/

[issue34464] docs: keywords are special - eg constants.html

2018-08-22 Thread Jonathan Fine
New submission from Jonathan Fine : The identifiers True, False, None and __debug__ are keywords in the language. For example >>> __debug__ = __debug__ SyntaxError: assignment to keyword 1. The page constants.html incorrectly says then are in the built-in namespace. Some of them w

[issue34464] docs: keywords are special - eg constants.html

2018-08-22 Thread Jonathan Fine
Jonathan Fine added the comment: I'm happy to work on improving the text here. I'm new to contributing to Python. I'm being mentored to work on #34431. Once I'm done with that, I'll be better placed to contributed to this issue. -- _

[issue6686] xml.sax.xmlreader.XMLReader.getProperty (xml.sax.handler.property_xml_string) returns bytes

2018-10-05 Thread Jonathan Gossage
Change by Jonathan Gossage : -- pull_requests: +9101 stage: test needed -> patch review ___ Python tracker <https://bugs.python.org/issue6686> ___ ___ Python-

[issue6686] xml.sax.xmlreader.XMLReader.getProperty (xml.sax.handler.property_xml_string) returns bytes

2018-10-14 Thread Jonathan Gossage
Jonathan Gossage added the comment: The other thing to consider which also supports option 2 is that xml.parsers.expat provides an interface to the Expat parser which is easier to use and more complete than the Sax parser implementation and is the implementation likely to be used by anyone

[issue9453] pulldom.SAX2DOM Doesn't support processing instructions before the root element

2018-10-14 Thread Jonathan Gossage
Jonathan Gossage added the comment: This test case demonstrates that the issue still exists in 3.8. The fix is relatively simple but I am unsure whether it is worthwhile as the original comments on the quality and usability of SAX2DOM are spot on. My recommendation would be to mark it as

[issue9453] pulldom.SAX2DOM Doesn't support processing instructions before the root element

2018-10-16 Thread Jonathan Gossage
Change by Jonathan Gossage : -- keywords: +patch pull_requests: +9272 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue9453> ___ ___ Py

[issue35018] Sax parser provides no user access to lexical handlers

2018-10-18 Thread Jonathan Gossage
New submission from Jonathan Gossage : While working on issues bpo-6686 and bpo-9371 I realized that the solution to both involved the use of Sax lexical handlers. Unfortunately, the Python SAX parser does not expose these handlers to the end user, however, support is available in

[issue35018] Sax parser provides no user access to lexical handlers

2018-10-18 Thread Jonathan Gossage
Change by Jonathan Gossage : -- components: +XML ___ Python tracker <https://bugs.python.org/issue35018> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue6686] xml.sax.xmlreader.XMLReader.getProperty (xml.sax.handler.property_xml_string) returns bytes

2018-11-04 Thread Jonathan Gossage
Change by Jonathan Gossage : -- pull_requests: +9632 ___ Python tracker <https://bugs.python.org/issue6686> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35018] Sax parser provides no user access to lexical handlers

2018-11-04 Thread Jonathan Gossage
Change by Jonathan Gossage : -- keywords: +patch pull_requests: +9631 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue35018> ___ _

[issue9731] Add ABCMeta.has_methods and tests that use it

2018-11-04 Thread Jonathan Gossage
Change by Jonathan Gossage : -- pull_requests: +9633 ___ Python tracker <https://bugs.python.org/issue9731> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue9371] pulldom doesn't provide END_DOCUMENT or COMMENT nodes.

2018-11-05 Thread Jonathan Gossage
Change by Jonathan Gossage : -- pull_requests: +9635 ___ Python tracker <https://bugs.python.org/issue9371> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue18389] os.path.relpath gives incorrect results if start parameters is not a directory

2013-07-06 Thread Jonathan Eldridge
New submission from Jonathan Eldridge: With the following directory structure: computer$ ls foo/ computer$ ls foo/ bar/ foo_file.txt computer$ ls foo/bar/ bar_file.txt Running: os.path.relpath('foo/bar/bar_file.txt', 'foo/foo_file.txt') R

[issue18389] os.path.relpath gives incorrect results if start parameters is not a directory

2013-07-06 Thread Jonathan Eldridge
Changes by Jonathan Eldridge : -- type: -> behavior ___ Python tracker <http://bugs.python.org/issue18389> ___ ___ Python-bugs-list mailing list Unsubscri

[issue18389] os.path.relpath gives incorrect results if start parameters is not a directory

2013-07-06 Thread Jonathan Eldridge
Jonathan Eldridge added the comment: Seems like you could also narrow the case where the incorrect behavior occurs for files without an extension by doing a os.path.isfile check as well--that will only return True for cases where the file exists, but then relpath could work correctly for all

[issue18389] os.path.relpath gives incorrect results if start parameters is not a directory

2013-07-09 Thread Jonathan Eldridge
Jonathan Eldridge added the comment: At the very least, the documentation should be updated to explain this. -- ___ Python tracker <http://bugs.python.org/issue18

[issue18933] Add link to source code in logging documentation

2013-09-05 Thread Jonathan Frere
New submission from Jonathan Frere: The logging module documentation is probably best accompanied by the source that it is meant to be documenting. Could a link to either the package directory (http://hg.python.org/cpython/file/2.7/Lib/logging/) or the __init__.py file in that directory

[issue18933] Add link to source code in logging documentation

2013-09-05 Thread Jonathan Frere
Jonathan Frere added the comment: Well, if all the modules could link back to source code, that would be ideal, it's just the logging happens to be the one that I keep coming back to. Encouraging users to read the source will hopefully help people understand the modules they

[issue14910] argparse: disable abbreviation

2012-05-26 Thread Jonathan Paugh
Jonathan Paugh added the comment: I am dubious as to the use of this: I think resolving partial args is one of the best thing since invented since sliced bread. However, it's a good project to get my feet wet, so I'll take it on. I should have a patch later today--I'm workin

[issue14910] argparse: disable abbreviation

2012-05-26 Thread Jonathan Paugh
Jonathan Paugh added the comment: I created a patch that exibhts the requested behavior. I added tests, and updated the documentation. I ran the test-suite against a build of Python 3.3.0a3+, and all tests check out. This changes the public API of argparse.ArgumentParser and of its

[issue14905] zipimport.c needs to support namespace packages when no 'directory' entry exists

2012-08-02 Thread Jonathan Paugh
Changes by Jonathan Paugh : -- nosy: +jpaugh ___ Python tracker <http://bugs.python.org/issue14905> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue18518] return-ing within code timed with timeit.timeit causes wrong return value of timeit.timeit

2014-04-14 Thread jonathan ferretti
jonathan ferretti added the comment: Added note to timeit function briefly explaining how to avoid it the issue and the cause -- keywords: +patch nosy: +jonathan.ferretti type: enhancement -> behavior Added file: http://bugs.python.org/file34823/timeit.pa

[issue16537] setup.py throws a ValueError when self.extensions is empty

2012-11-22 Thread Jonathan Hosmer
New submission from Jonathan Hosmer: When disabled_module_list contains all the module names that are not built by Modules/Setup.dist, self.extensions in setup.py will be an empty list and when build_extensions tries to determine the max length of all extension names it raises a ValueError

[issue16537] setup.py throws a ValueError when self.extensions is empty

2012-11-22 Thread Jonathan Hosmer
Changes by Jonathan Hosmer : -- keywords: +patch Added file: http://bugs.python.org/file28076/Python-2.6.8-setup.py.patch ___ Python tracker <http://bugs.python.org/issue16

[issue16537] setup.py throws a ValueError when self.extensions is empty

2012-11-22 Thread Jonathan Hosmer
Jonathan Hosmer added the comment: setup.py patch for 2.7.3 -- Added file: http://bugs.python.org/file28077/Python-2.7.3-setup.py.patch ___ Python tracker <http://bugs.python.org/issue16

[issue16537] setup.py throws a ValueError when self.extensions is empty

2012-11-22 Thread Jonathan Hosmer
Jonathan Hosmer added the comment: setup.py patch for 3.0.1 -- Added file: http://bugs.python.org/file28078/Python-3.0.1-setup.py.patch ___ Python tracker <http://bugs.python.org/issue16

[issue16537] setup.py throws a ValueError when self.extensions is empty

2012-11-22 Thread Jonathan Hosmer
Jonathan Hosmer added the comment: setup.py patch for 3.1.5 -- Added file: http://bugs.python.org/file28079/Python-3.1.5-setup.py.patch ___ Python tracker <http://bugs.python.org/issue16

[issue16537] setup.py throws a ValueError when self.extensions is empty

2012-11-22 Thread Jonathan Hosmer
Jonathan Hosmer added the comment: setup.py patch for 3.3.0 -- Added file: http://bugs.python.org/file28081/Python-3.3.0-setup.py.patch ___ Python tracker <http://bugs.python.org/issue16

[issue16537] setup.py throws a ValueError when self.extensions is empty

2012-11-22 Thread Jonathan Hosmer
Jonathan Hosmer added the comment: setup.py patch for 3.2.3 -- Added file: http://bugs.python.org/file28080/Python-3.2.3-setup.py.patch ___ Python tracker <http://bugs.python.org/issue16

[issue16573] 2to3 should treat enumerate like sorted for zip, map, filter, dict, xrange

2012-11-28 Thread Jonathan Kotta
New submission from Jonathan Kotta: enumerate() is a "consuming_call", as defined in fixer_util.py, because it takes an iterable (not necessarily a collection). Therefore whenever we have something like enumerate(zip(...)), we don't need to replace it with enumerate(list(zip

[issue1195571] simple callback system for Py_FatalError

2012-12-22 Thread Jonathan McDougall
Jonathan McDougall added the comment: The latest patch does not allow changing the default behaviour of aborting the process, which is for me a problem. I am both embedding and extending python using Boost.Python, but scripting is optional. In case python fails to initialize, I want to disable

[issue1195571] simple callback system for Py_FatalError

2012-12-22 Thread Jonathan McDougall
Jonathan McDougall added the comment: While trying to come up with a patch, I'm starting to realize the number of modifications needed to make this work. Py_FatalError() is called all over the place assuming that it never returns. The scope of this feature is enormous. I'm wondering

[issue17080] A better error message for float()

2013-01-30 Thread Jonathan Livni
New submission from Jonathan Livni: These lines of Python (2.7): y = float(x) gives the error: TypeError: float() argument must be a string or a number. In various cases such as: x = [0] x = None x = SomeClass() In addition to the information given in the error message

[issue20328] mailbox: add method to delete mailbox

2014-07-07 Thread Jonathan Dowland
Jonathan Dowland added the comment: Hi, sorry for the long silence on this issue. I've had a few things going on. Anyway, I didn't want to forget all about this; I've been working on it in two phases. Phase 1 adds delete methods; Phase 2 handles non-existent mailboxes. Please f

[issue20328] mailbox: add method to delete mailbox

2014-07-07 Thread Jonathan Dowland
Jonathan Dowland added the comment: another test -- Added file: http://bugs.python.org/file35893/0003-test-for-deletion-of-sub-folders.patch ___ Python tracker <http://bugs.python.org/issue20

[issue20328] mailbox: add method to delete mailbox

2014-07-07 Thread Jonathan Dowland
Jonathan Dowland added the comment: patch adding tests -- Added file: http://bugs.python.org/file35892/0002-add-tests-for-deleting-Maildir-and-singleFileMailbox.patch ___ Python tracker <http://bugs.python.org/issue20

[issue22007] sys.stdout.write on OS X is not EINTR safe

2014-07-18 Thread Jonathan Stewmon
New submission from Jonathan Stewmon: Writing to sys.stdout on OS X can fail with IOError: [Errno 4] Interrupted system call. I have observed this while trying to write to sys.stdout when SIGCHLD is received. The script below consistently reproduces the problem with python 2.7.2 on OS X

[issue22007] sys.stdout.write on OS X is not EINTR safe

2014-07-18 Thread Jonathan Stewmon
Jonathan Stewmon added the comment: Sorry, I had a typo in the original report - I am actually using Python 2.7.7 installed with homebrew. The script crashes for me on the first iteration every time using iTerm as my terminal. I just tried it in Terminal, and it doesn't crash. Maybe

[issue20328] mailbox: add method to delete mailbox

2014-08-19 Thread Jonathan Dowland
Jonathan Dowland added the comment: Hi David, whilst writing my patch I've tried to keep an open mind as to users of the methods, but I do have my own purpose in the back of my mind, and that's an archive mail tool which I would like to delete mail folders if, after performing

[issue20328] mailbox:

2014-01-21 Thread Jonathan Dowland
Changes by Jonathan Dowland : -- type: -> enhancement ___ Python tracker <http://bugs.python.org/issue20328> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue20328] mailbox:

2014-01-21 Thread Jonathan Dowland
New submission from Jonathan Dowland: It would be great if the 'mailbox' library supported a 'remove' or 'delete' operation for the mailbox itself as part of its abstract interface. It does support removing messages, and the sub-classes for Maildir, MH etc. suppor

[issue20328] mailbox:

2014-01-31 Thread Jonathan Dowland
Jonathan Dowland added the comment: Hi David, thanks for replying! On Tue, Jan 21, 2014 at 03:08:04PM +, R. David Murray wrote: > Conceptually the problem with this is that if you use the object to > delete the folder, you now have an object with no folder...that is, an > inval

[issue20328] mailbox: add method to delete mailbox

2014-02-23 Thread Jonathan Dowland
Jonathan Dowland added the comment: Hi, On Fri, Jan 31, 2014 at 03:03:09PM +, R. David Murray wrote: > I think your arguments are good ones. So, if you want to propose a > patch that defines some semantics for delete (and possibly address the > maildir folder delete similarly

[issue20810] literal re fails to match

2014-02-28 Thread Jonathan Epstein
New submission from Jonathan Epstein: All 3 of these regex's should match, but in practice only m2 does. Found deep in the bowels of debugging a larger problem. import re mainProjectsPath = '/groups/larvalolympiad/larvalolympiad/Projects/' m1 = re.match('larvalolympi

[issue20810] literal re fails to match

2014-02-28 Thread Jonathan Epstein
Jonathan Epstein added the comment: Sorry, this was dumb. Thanks for your patience. On Fri, Feb 28, 2014 at 2:23 PM, Eric V. Smith wrote: > > Eric V. Smith added the comment: > > re.match requires a match at the beginning of the string. From the docs: > "If zero or mo

[issue6797] When Beginning Expression with Lookahead Assertion I get no Matches

2009-08-28 Thread Jonathan Windle
New submission from Jonathan Windle : Example Code: import re re.findall(r"(?![a-z0-9])0(?![a-z0-9])", "a0a 0 0 b0b") The above code returns an empty list. I expect to get ['0', '0'] returned. If I remove "(?![a-z0-9])" from the beginning o

[issue7243] mac binary download link for 2.6.4 broken

2009-10-30 Thread Jonathan Beard
New submission from Jonathan Beard : the mac binary download link for python 2.6.4 is broken: http://python.org/ftp/python/2.6.4/python-2.6.4-macosx.dmg -- components: Installation messages: 94708 nosy: beard severity: normal status: open title: mac binary download link for 2.6.4 broken

[issue7243] mac binary download link for 2.6.4 broken

2009-10-30 Thread Jonathan Beard
Jonathan Beard added the comment: Link still broken? see screenshot http://www.python.org/ftp/python/2.6.4/python-2.6.4-macosx.dmg -- status: closed -> open Added file: http://bugs.python.org/file15233/python mac binary url 404.png ___ Pyt

[issue7243] mac binary download link for 2.6.4 broken

2009-10-30 Thread Jonathan Beard
Jonathan Beard added the comment: Included screenshot of page which has the bad url: http://www.python.org/download/ -- Added file: http://bugs.python.org/file15234/download page.png ___ Python tracker <http://bugs.python.org/issue7

[issue7243] mac binary download link for 2.6.4 broken

2009-10-30 Thread Jonathan Beard
Jonathan Beard added the comment: might have been upstream cache. works for me now. thanks! -- ___ Python tracker <http://bugs.python.org/issue7243> ___ ___ Pytho

[issue5679] cleanUp stack for unittest

2009-04-05 Thread Jonathan Lange
Jonathan Lange added the comment: On Mon, Apr 6, 2009 at 10:06 AM, Robert Collins wrote: > On Sun, 2009-04-05 at 23:57 +, Michael Foord wrote: >> Michael Foord added the comment: >> >> My apologies - the jml code on launchpad runs clean ups before

[issue5679] cleanUp stack for unittest

2009-04-05 Thread Jonathan Lange
Jonathan Lange added the comment: On Mon, Apr 6, 2009 at 2:16 PM, Kumar McMillan wrote: > > Kumar McMillan added the comment: > > I like this patch.  However, a nice-to-have would be that _doCleanups() > prints a traceback from function(*args, **kwargs) (if there is one) the

[issue5679] cleanUp stack for unittest

2009-04-05 Thread Jonathan Lange
Jonathan Lange added the comment: FWIW, I kind of like the tests here: http://bazaar.launchpad.net/~jml/testtools/trunk/annotate/head%3A/testtools/tests/test_testtools.py#L221 -- ___ Python tracker <http://bugs.python.org/issue5

[issue5882] __repr__ is ignored when formatting exceptions

2009-04-29 Thread Jonathan Ellis
New submission from Jonathan Ellis : The docs say that "If a class defines __repr__() but not __str__(), then __repr__() is also used when an “informal” string representation of instances of that class is required." but, repr is ignored: >>> class E(Exception): ...

[issue5882] __repr__ is ignored when formatting exceptions

2009-04-29 Thread Jonathan Ellis
Changes by Jonathan Ellis : -- versions: +Python 3.0 ___ Python tracker <http://bugs.python.org/issue5882> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue5927] Typo in library on xmlrpc

2009-05-04 Thread Jonathan Hayward
New submission from Jonathan Hayward : On http://docs.python.org/library/xmlrpclib.html , 21.23.1, at the end of ServerProxy.system.methodSignature(name): If no signature is defined for the method, a non-array value is returned. In Python this means that the type of the returned value will be

<    1   2   3   4   >