[issue42496] Don't change indentation of RST markup

2020-11-29 Thread Georg Brandl
Georg Brandl added the comment: To be clear, this has nothing to do with the amount of indentation, but that the directive below (the versionadded) has 4 spaces, and the paragraph above had 5 before the change. Therefore the further-indented paragraph is taken as a blockquote

[issue42153] doc: library imaplib a url not available

2020-11-14 Thread Georg Brandl
Georg Brandl added the comment: It doesn't make sense to include the archive link, the documentation it refers to is available in the GitHub repository under docs/. -- nosy: +georg.brandl ___ Python tracker <https://bugs.python.org/issue42

[issue42284] The grammar specification is inconsistent with the implementation of Python parser.

2020-11-07 Thread Georg Brandl
Georg Brandl added the comment: This grammar specification doesn't contain a full specification of code that won't raise SyntaxError. There are several conditions that aren't checked by the generated parser, but at a later stage in the compilation process. While probably possible to express

[issue41825] os.waitid() documentation needs TLC

2020-09-22 Thread Georg Brandl
Change by Georg Brandl : -- keywords: +patch pull_requests: +21394 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/22356 ___ Python tracker <https://bugs.python.org/issu

[issue41825] os.waitid() documentation needs TLC

2020-09-21 Thread Georg Brandl
New submission from Georg Brandl : There are a few points where `os.waitid()` docs need improvement. Current text: Wait for the completion of one or more child processes. idtype can be P_PID, P_PGID or P_ALL. id specifies the pid to wait on. options is constructed from the ORing of one

[issue1678077] improve telnetlib.Telnet so option negotiation becomes easie

2020-09-19 Thread Georg Brandl
Change by Georg Brandl : -- nosy: -georg.brandl ___ Python tracker <https://bugs.python.org/issue1678077> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue19915] int.bit_at(n) - Accessing a single bit in O(1)

2020-09-19 Thread Georg Brandl
Change by Georg Brandl : -- nosy: -georg.brandl ___ Python tracker <https://bugs.python.org/issue19915> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue1249749] Encodings and aliases do not match runtime

2020-09-19 Thread Georg Brandl
Change by Georg Brandl : -- nosy: -georg.brandl ___ Python tracker <https://bugs.python.org/issue1249749> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue1105770] null source chars handled oddly by tokenize

2020-09-19 Thread Georg Brandl
Change by Georg Brandl : -- nosy: -georg.brandl ___ Python tracker <https://bugs.python.org/issue1105770> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue1611944] sndhdr.what() does not recognize wav file

2020-09-19 Thread Georg Brandl
Change by Georg Brandl : -- nosy: -georg.brandl ___ Python tracker <https://bugs.python.org/issue1611944> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue919238] Recursive variable definition causes sysconfig infinite loop

2020-09-19 Thread Georg Brandl
Change by Georg Brandl : -- nosy: -georg.brandl ___ Python tracker <https://bugs.python.org/issue919238> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue11105] Compiling evil ast crashes interpreter

2020-09-19 Thread Georg Brandl
Change by Georg Brandl : -- nosy: -georg.brandl ___ Python tracker <https://bugs.python.org/issue11105> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue26053] regression in pdb output between 2.7 and 3.5

2020-09-19 Thread Georg Brandl
Change by Georg Brandl : -- nosy: -georg.brandl ___ Python tracker <https://bugs.python.org/issue26053> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue22107] tempfile module misinterprets access denied error on Windows

2020-09-19 Thread Georg Brandl
Change by Georg Brandl : -- nosy: -georg.brandl ___ Python tracker <https://bugs.python.org/issue22107> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue25467] Put “deprecated” warnings first

2020-09-19 Thread Georg Brandl
Change by Georg Brandl : -- nosy: -georg.brandl ___ Python tracker <https://bugs.python.org/issue25467> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue22577] local variable changes lost after pdb jump command

2020-09-19 Thread Georg Brandl
Change by Georg Brandl : -- nosy: -georg.brandl ___ Python tracker <https://bugs.python.org/issue22577> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue1823] Possible to set invalid Content-Transfer-Encoding on email.mime.multipart.MIMEMultipart

2020-09-19 Thread Georg Brandl
Change by Georg Brandl : -- nosy: -georg.brandl ___ Python tracker <https://bugs.python.org/issue1823> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue20119] pdb c(ont(inue)) optional one-time-only breakpoint (like perl debugger)

2020-09-19 Thread Georg Brandl
Change by Georg Brandl : -- nosy: -georg.brandl ___ Python tracker <https://bugs.python.org/issue20119> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue18280] Documentation is too personalized

2020-09-19 Thread Georg Brandl
Change by Georg Brandl : -- nosy: -georg.brandl ___ Python tracker <https://bugs.python.org/issue18280> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue26794] curframe can be None in pdb.py

2020-09-19 Thread Georg Brandl
Change by Georg Brandl : -- nosy: -georg.brandl ___ Python tracker <https://bugs.python.org/issue26794> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue24160] Pdb sometimes raises exception when trying to remove a breakpoint defined in a different debugger session

2020-09-19 Thread Georg Brandl
Change by Georg Brandl : -- nosy: -georg.brandl ___ Python tracker <https://bugs.python.org/issue24160> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue23163] pdb docs need to contain a statement on threads/multithreaded debugging

2020-09-19 Thread Georg Brandl
Change by Georg Brandl : -- nosy: -georg.brandl ___ Python tracker <https://bugs.python.org/issue23163> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue19081] zipimport behaves badly when the zip file changes while the process is running

2020-09-19 Thread Georg Brandl
Change by Georg Brandl : -- nosy: -georg.brandl ___ Python tracker <https://bugs.python.org/issue19081> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue26214] textwrap should minimize number of breaks in extra long words

2020-09-19 Thread Georg Brandl
Change by Georg Brandl : -- nosy: -georg.brandl ___ Python tracker <https://bugs.python.org/issue26214> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue28850] Regression in Python 3: Subclassing PrettyPrinter.format doesn't work anymore

2020-09-09 Thread Georg Brandl
Change by Georg Brandl : -- nosy: -georg.brandl ___ Python tracker <https://bugs.python.org/issue28850> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40994] Very confusing documenation for abc.Collections

2020-08-13 Thread Georg Brandl
Georg Brandl added the comment: FWIW, I think Sydney's right. Shared entries should only be used for closely related, or interdependent, APIs, which those here are not. -- nosy: +georg.brandl ___ Python tracker <https://bugs.python.org/issue40

[issue40204] Docs build error with Sphinx 3.0 due to invalid C declaration

2020-06-24 Thread Georg Brandl
Georg Brandl added the comment: Don't hesitate to send requests back to the Sphinx tracker if any changes appear to be too restrictive to you. It is a documentation tool, not a compiler. -- nosy: +georg.brandl ___ Python tracker <ht

[issue40058] Running test_datetime twice fails with: module 'datetime' has no attribute '_divide_and_round'

2020-03-25 Thread Georg Brandl
Georg Brandl added the comment: Sorry, it seems that was far too long ago for me to remember anything :) -- ___ Python tracker <https://bugs.python.org/issue40

[issue29869] Underscores in numeric literals not supported in lib2to3.

2017-03-22 Thread Georg Brandl
Georg Brandl added the comment: > In particular, we must have at least one digit following `0[xXbBoO]` and must > be before any underscores. This is not true (but your test file does the right thing). -- ___ Python tracker <rep...@bugs.p

[issue29557] binhex documentation claims unknown bug

2017-02-15 Thread Georg Brandl
Georg Brandl added the comment: I don't remember anything specific about this, sorry. -- ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/i

[issue26331] PEP 515: Tokenizer: allow underscores for grouping in numeric literals

2016-09-11 Thread Georg Brandl
Georg Brandl added the comment: Thanks Brett! -- ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue26331> ___ ___ Python-bugs-list

[issue26331] PEP 515: Tokenizer: allow underscores for grouping in numeric literals

2016-09-08 Thread Georg Brandl
Georg Brandl added the comment: Please go ahead. Thanks for taking care of this! -- ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/i

[issue26331] Tokenizer: allow underscores for grouping in numeric literals

2016-08-15 Thread Georg Brandl
Georg Brandl added the comment: @Serhiy/anyone: can I get another review, so that we can commit this in time for beta? Thanks! -- ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/i

[issue12345] Add math.tau

2016-08-13 Thread Georg Brandl
Georg Brandl added the comment: Please folks. Stop taking this so seriously and remember that this is the language where you can type in >>> import antigravity and it actually works. (Sort of.) -- ___ Python tracker <rep...@bugs.pytho

[issue27228] just for clearing: os.path.normpath("file://a") returns "file:/a"

2016-06-05 Thread Georg Brandl
Georg Brandl added the comment: `os.path` does not handle URIs of any type, so this behavior is correct as Steven says. -- nosy: +georg.brandl resolution: -> not a bug status: open -> closed ___ Python tracker <rep...@bugs.python.o

[issue26331] Tokenizer: allow underscores for grouping in numeric literals

2016-05-22 Thread Georg Brandl
Georg Brandl added the comment: Thanks for the detailed review, Serhiy! Next try incoming. -- Added file: http://bugs.python.org/file42939/numeric_underscores_final_v8.diff ___ Python tracker <rep...@bugs.python.org> <http://bugs.p

[issue27060] Documentation of assertItemsEqual in unittest is VERY misleading in 2.7

2016-05-19 Thread Georg Brandl
Changes by Georg Brandl <ge...@python.org>: -- nosy: +michael.foord ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue27060> ___ _

[issue26331] Tokenizer: allow underscores for grouping in numeric literals

2016-05-17 Thread Georg Brandl
Georg Brandl added the comment: Thanks Eric! Serhiy, do you want to do a review? The v6/v7 patches are based on your "strict" patch with the constructor changes adapted from v4. New version v7 addresses the review comments from Stefan and Martin. -- Added file: http://bugs.

[issue27036] Mark up of references in different form

2016-05-17 Thread Georg Brandl
Georg Brandl added the comment: Not really, no. You have to add a :ref: target label for the function. If it's only a few instances, that should be manageable. -- ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/i

[issue26331] Tokenizer: allow underscores for grouping in numeric literals

2016-05-15 Thread Georg Brandl
Georg Brandl added the comment: Note: the changes for format()ting ("_" as thousands separator) are still missing. Eric, would you consider doing this part? -- nosy: +eric.smith ___ Python tracker <rep...@bugs.python.org> <htt

[issue26331] Tokenizer: allow underscores for grouping in numeric literals

2016-05-15 Thread Georg Brandl
Changes by Georg Brandl <ge...@python.org>: Removed file: http://bugs.python.org/file41892/numeric_underscores_v2.diff ___ Python tracker <rep...@bugs.python.org> <http://bugs.python

[issue26331] Tokenizer: allow underscores for grouping in numeric literals

2016-05-15 Thread Georg Brandl
Changes by Georg Brandl <ge...@python.org>: Removed file: http://bugs.python.org/file42852/numeric_underscores_final_v5.diff ___ Python tracker <rep...@bugs.python.org> <http://bugs.python

[issue26331] Tokenizer: allow underscores for grouping in numeric literals

2016-05-15 Thread Georg Brandl
Changes by Georg Brandl <ge...@python.org>: Removed file: http://bugs.python.org/file41888/numeric_underscores.diff ___ Python tracker <rep...@bugs.python.org> <http://bugs.python

[issue26331] Tokenizer: allow underscores for grouping in numeric literals

2016-05-15 Thread Georg Brandl
Changes by Georg Brandl <ge...@python.org>: Removed file: http://bugs.python.org/file41894/numeric_underscores_v3_full.diff ___ Python tracker <rep...@bugs.python.org> <http://bugs.python

[issue26331] Tokenizer: allow underscores for grouping in numeric literals

2016-05-15 Thread Georg Brandl
Changes by Georg Brandl <ge...@python.org>: Added file: http://bugs.python.org/file42854/numeric_underscores_final_v6.diff ___ Python tracker <rep...@bugs.python.org> <http://bugs.python

[issue26331] Tokenizer: allow underscores for grouping in numeric literals

2016-05-15 Thread Georg Brandl
Georg Brandl added the comment: New patch; implements the accepted version of the PEP. I added the additional tests, thanks Stefan! -- Added file: http://bugs.python.org/file42852/numeric_underscores_final_v5.diff ___ Python tracker <

[issue17765] weakref.ref ignores a 'callback' keyword argument

2016-05-07 Thread Georg Brandl
Georg Brandl added the comment: Serhiy, feel free to go ahead and commit, I don't have my keys with me ATM. -- ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/i

[issue26736] Use HTTPS protocol in links

2016-05-07 Thread Georg Brandl
Georg Brandl added the comment: Newer Sphinx versions already redefine docutils' RFC and PEP URLs to use https. -- ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/i

[issue26914] Fix formatting of lists in PEP 420

2016-05-03 Thread Georg Brandl
Georg Brandl added the comment: Yep, they should all be gone. I tried to make sure by running the sources through docutils and finding nested nodes. -- ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/i

[issue26921] Incorrect usage of a/an articles in PEPs

2016-05-03 Thread Georg Brandl
Georg Brandl added the comment: Also LGTM. It's easy to spot PEPs written by French people :) -- ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/i

[issue26916] Word duplications in PEPs

2016-05-03 Thread Georg Brandl
Georg Brandl added the comment: LGTM. -- nosy: +georg.brandl ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue26916> ___ ___ Pyth

[issue26914] Fix formatting of lists in PEP 420

2016-05-03 Thread Georg Brandl
Changes by Georg Brandl <ge...@python.org>: -- resolution: -> fixed status: open -> closed ___ Python tracker <rep...@bugs.python.org> <http://bugs.

[issue26914] Fix formatting of lists in PEP 420

2016-05-02 Thread Georg Brandl
Georg Brandl added the comment: Looks pretty rampant to me :) Anyway, +1 for fixing, you can just do it without review if you have the time. -- ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/i

[issue26847] filter docs unclear wording

2016-04-25 Thread Georg Brandl
Georg Brandl added the comment: You didn't test your examples: >>> [] == False False False is not equal to the "empty value" of any other type than other numeric types. (This is mostly because of how booleans were originally introduced to Python.) "is f

[issue26821] array module "minimum size in bytes" table is wrong for int/long

2016-04-21 Thread Georg Brandl
Georg Brandl added the comment: Agreed. -- resolution: -> not a bug status: open -> closed ___ Python tracker <rep...@bugs.python.org> <http://bugs.python

[issue26821] array module "minimum size in bytes" table is wrong for int/long

2016-04-21 Thread Georg Brandl
Georg Brandl added the comment: Indeed, I don't think the `array` module is much used anymore. If you're looking to serialize or deserialize fixed-size formats, you'll probably want the `struct` module. It has both native and fixed-size modes. For anything else involving arrays (mostly

[issue26755] Update version{added,changed} docs in devguide

2016-04-14 Thread Georg Brandl
Georg Brandl added the comment: Now that "added" doesn't mention the second argument, the "This one *must* have the second argument (explanation of the change)." should be changed. Otherwise +1. -- ___ Python tracker <rep...

[issue26736] Use HTTPS protocol in links

2016-04-11 Thread Georg Brandl
Georg Brandl added the comment: +1 -- ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue26736> ___ ___ Python-bugs-list mailing list

[issue26576] Tweak wording of decorator docos

2016-03-19 Thread Georg Brandl
Georg Brandl added the comment: (Also, toggled your "is committer" bit so you get the Python logo next to your name.) -- ___ Python tracker <rep...@bugs.python.org> <http://bugs.py

[issue26331] Tokenizer: allow underscores for grouping in numeric literals

2016-03-19 Thread Georg Brandl
Georg Brandl added the comment: The last patch isn't up to date with the PEP; Serhiy's patch is the closest one. -- ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/i

[issue26576] Tweak wording of decorator docos

2016-03-18 Thread Georg Brandl
Georg Brandl added the comment: The patch is definitely an improvement. What about a remark like ", except that `deco` is evaluated before the function `f` is created"? That should cover the remaining difference. -- nosy: +georg.brandl

[issue26576] Tweak wording of decorator docos

2016-03-18 Thread Georg Brandl
Georg Brandl added the comment: That is definitely supported. Whether it's actually useful to document, I'm not sure. "except that the original function is not temporarily bound to the name `f`" could work. -- ___ Python tr

[issue26535] Minor typo in the docs for struct.unpack

2016-03-10 Thread Georg Brandl
Georg Brandl added the comment: That sounds good to me. Maybe without so many parentheses :) -- nosy: +georg.brandl ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/i

[issue26525] Documentation of ord(c) easy to misread

2016-03-10 Thread Georg Brandl
Georg Brandl added the comment: Sure! -- ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue26525> ___ ___ Python-bugs-list mailing list

[issue26512] Vocabulary: Using "integral" in library/stdtypes.html

2016-03-09 Thread Georg Brandl
Georg Brandl added the comment: There's two different uses here: The one use in "truncated to Integral" means that you get an integer type out. It is not specified to be `int` because `__trunc__` may return other types. It could be made into a link like the other use of Integral.

[issue23921] Standardize documentation whitespace, formatting

2016-03-01 Thread Georg Brandl
Georg Brandl added the comment: I had no idea we had so many cases of wonky indentation :) This looks good to me, apart from a few comments I left on rietveld. -- ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/i

[issue26462] Patch to enhance literal block language declaration

2016-03-01 Thread Georg Brandl
Georg Brandl added the comment: Looks good now! I left a few comments on Rietveld. -- ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/i

[issue26462] Patch to enhance literal block language declaration

2016-02-29 Thread Georg Brandl
Georg Brandl added the comment: Thanks for the patch! Most "bash" blocks should be "console" (since the prompt is shown). "pycon" should not be needed, since it is detected automatically. -- ___ Python tracker

[issue26449] Tutorial on Python Scopes and Namespaces uses confusing 'read-only' terminology

2016-02-28 Thread Georg Brandl
Georg Brandl added the comment: I think rephrasing with "... can only be read" would keep the intended meaning, but avoid the problematic "the namespaces are readonly" meaning. -- nosy: +georg.brandl ___ Python tracker <rep...

[issue25910] Fixing links in documentation

2016-02-26 Thread Georg Brandl
Georg Brandl added the comment: Reopening, for fixing the rest of the broken ones. -- nosy: +georg.brandl resolution: fixed -> status: closed -> open ___ Python tracker <rep...@bugs.python.org> <http://bugs.python

[issue25910] Fixing links in documentation

2016-02-26 Thread Georg Brandl
Changes by Georg Brandl <ge...@python.org>: -- status: languishing -> open ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue25910> ___ _

[issue26442] Doc refers to xmlrpc.client but means xmlrpc.server

2016-02-26 Thread Georg Brandl
Georg Brandl added the comment: Thanks! -- nosy: +georg.brandl ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue26442> ___ ___ Pyth

[issue26444] Fix 2 typos on ElementTree docs

2016-02-26 Thread Georg Brandl
Georg Brandl added the comment: Reflow is kinda bad for patch review :) -- nosy: +georg.brandl ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/i

[issue26435] Fix versionadded/versionchanged documentation directives

2016-02-25 Thread Georg Brandl
Georg Brandl added the comment: Ok, that was a bug in rstlint. Fixed now - and now I can find quite a few instances, will fix them (most of them are in this patch). -- ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/i

[issue26435] Fix versionadded/versionchanged documentation directives

2016-02-25 Thread Georg Brandl
Georg Brandl added the comment: These are interpreted as comments by docutils. "make suspicious" only checks for markup erroneously remaining in the output. "make check", which runs tools/rstlint.py, should pick them up though. --

[issue26423] __len__() returns 32 bit int on windows leading to overflows

2016-02-24 Thread Georg Brandl
Georg Brandl added the comment: You need to call `x.__len__()` explicitly. -- ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/i

[issue26408] pep-8 requires a few corrections

2016-02-22 Thread Georg Brandl
Georg Brandl added the comment: -Consistency within one module or function is most important. +Consistency within one module or function is the most important. You left out "thing" from the patch; is that intended? -- ___ Python tr

[issue26408] pep-8 requires a few corrections

2016-02-22 Thread Georg Brandl
Georg Brandl added the comment: I can't really comment on the grammar changes, but the rest looks good to me. This is not very smooth, in both versions: -Consistency within one module or function is most important. +Consistency within one module or function is the most important thing

[issue26366] Use “.. versionadded” over “.. versionchanged” where appropriate

2016-02-19 Thread Georg Brandl
Georg Brandl added the comment: > Well then, if this is the sort of place where the status quo is sacred, > then there is nothing more to discuss. That wasn't my intention when quoting the old documenting guide, it was just to show what the intent was (and still is), and that I didn'

[issue26385] the call of tempfile.NamedTemporaryFile fails and leaves a file on the disk

2016-02-19 Thread Georg Brandl
Changes by Georg Brandl <ge...@python.org>: -- nosy: -georg.brandl ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue26385> ___ _

[issue26378] Typo in regex documentation

2016-02-18 Thread Georg Brandl
Georg Brandl added the comment: Thanks for the report! -- nosy: +georg.brandl ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/i

[issue26366] Use “.. versionadded” over “.. versionchanged” where appropriate

2016-02-15 Thread Georg Brandl
Georg Brandl added the comment: The devguide should be updated, yes. And probably someone should look at the remaining versionadded's... -- ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/i

[issue26366] Use “.. versionadded” over “.. versionchanged” where appropriate

2016-02-15 Thread Georg Brandl
Georg Brandl added the comment: Hi Tony, thanks for the patch, and for the will to contribute. I'm not sure this patch should be merged though; the original intention was to use "versionadded" where the API item is completely new. So "The parameter x was added" in

[issue26331] Tokenizer: allow underscores for grouping in numeric literals

2016-02-13 Thread Georg Brandl
Georg Brandl added the comment: It's mostly for consistency. For example, ``int(x, 0)`` is defined by the docs as "interpret x as in a literal". Other bases have special cases as well, e.g. "0x" is accepted by base 16. In the current version of the conversions, t

[issue26331] Tokenizer: allow underscores for grouping in numeric literals

2016-02-13 Thread Georg Brandl
Georg Brandl added the comment: Thanks, I hadn't looked at cdecimal yet - I was planning to ask you to do the necessary changes there :) But there are a few versions of this (e.g. converting unicode digits to ASCII) scattered throughout the codebase, it would make sense to consolidate

[issue25726] sys.setprofile / sys.getprofile asymetry

2016-02-13 Thread Georg Brandl
Georg Brandl added the comment: Ok, this is because internally, sys.setprofile (or to be exact, PyEval_SetProfile) sets two things: a C function, and a "profileobj", which is the argument to setprofile(). sys.setprofile sets the C function to the "profile_trampoline", whi

[issue26355] Emit major version based canonical URLs for docs

2016-02-13 Thread Georg Brandl
Georg Brandl added the comment: So we'd have to add a tag? Should be easy. -- ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/i

[issue26331] Tokenizer: allow underscores for grouping in numeric literals

2016-02-13 Thread Georg Brandl
Georg Brandl added the comment: Hm. On the one hand there is a spec, so it can be argued that underscores don't belong to Decimal. On the other hand, if we get Decimal literals at one point, there will be a strong argument for allowing underscores in them as in all other number literals

[issue26331] Tokenizer: allow underscores for grouping in numeric literals

2016-02-13 Thread Georg Brandl
Georg Brandl added the comment: Raymond, you've also worked on Decimal - do you have an opinion on allowing underscores in Decimal(string) conversions? -- nosy: +rhettinger ___ Python tracker <rep...@bugs.python.org> <http://bugs.p

[issue26331] Tokenizer: allow underscores for grouping in numeric literals

2016-02-11 Thread Georg Brandl
Georg Brandl added the comment: New patch matching revision of PEP. -- Added file: http://bugs.python.org/file41892/numeric_underscores_v2.diff ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/i

[issue26331] Tokenizer: allow underscores for grouping in numeric literals

2016-02-11 Thread Georg Brandl
Georg Brandl added the comment: New patch with minimal doc updates. -- Added file: http://bugs.python.org/file41896/numeric_underscores_v4_full.diff ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/i

[issue26331] Tokenizer: allow underscores for grouping in numeric literals

2016-02-11 Thread Georg Brandl
Georg Brandl added the comment: This patch includes int(), float(), complex() operations, as well as _pydecimal. -- Added file: http://bugs.python.org/file41894/numeric_underscores_v3_full.diff ___ Python tracker <rep...@bugs.python.org>

[issue25709] Problem with string concatenation and utf-8 cache.

2016-02-11 Thread Georg Brandl
Georg Brandl added the comment: Backpicked to 3.3. Sorry for the wait. -- resolution: -> fixed status: open -> closed ___ Python tracker <rep...@bugs.python.org> <http://bugs.python

[issue20741] Documentation archives should be available also in tar.xz format

2016-02-11 Thread Georg Brandl
Changes by Georg Brandl <ge...@python.org>: -- assignee: georg.brandl -> ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue20741> ___ _

[issue4173] PDF documentation: long verbatim lines are cut off at right hand side

2016-02-11 Thread Georg Brandl
Changes by Georg Brandl <ge...@python.org>: -- assignee: georg.brandl -> ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue4173> ___ _

[issue4145] tabulary entries in PDF documentation

2016-02-11 Thread Georg Brandl
Changes by Georg Brandl <ge...@python.org>: -- assignee: georg.brandl -> ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue4145> ___ _

[issue24668] Deprecate 00000 as a synonym for 0

2016-02-11 Thread Georg Brandl
Georg Brandl added the comment: Closing now. -- status: pending -> closed ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue24668> ___ ___

[issue15693] expose glossary link on hover

2016-02-11 Thread Georg Brandl
Changes by Georg Brandl <ge...@python.org>: -- assignee: georg.brandl -> ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue15693> ___ _

[issue25709] Problem with string concatenation and utf-8 cache.

2016-02-11 Thread Georg Brandl
Georg Brandl added the comment: Actually I prefer Greg to Gerg, so it's only half bad. :D -- ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/i

[issue26331] Tokenizer: allow underscores for grouping in numeric literals

2016-02-10 Thread Georg Brandl
Georg Brandl added the comment: It sure is more strict, but I don't think it's simpler (and it's definitely not simpler to implement). (Also 1_j is pretty nice, I wouldn't want to lose that.) We can also check what other languages do. * Rust: very much like this, but trailing underscores

  1   2   3   4   5   6   7   8   9   10   >