[issue17827] Document codecs.encode and codecs.decode

2013-07-08 Thread Grant
Grant added the comment: codecs module and 'whats new' doc patch for 3.4 -- keywords: +patch nosy: +Grant versions: -Python 2.7, Python 3.3 Added file: http://bugs.python.org/file30860/17827.diff ___ Python tracker <http://bu

[issue16973] Extending the datetime package by adding a workDayMath module

2013-01-15 Thread Grant
New submission from Grant: This module would allow programmers to perform high level workday addition and subtraction - a commonly needed function in the finance and accounting world not yet provided in a standard python module. -- components: Extension Modules files: workDayMath.py

[issue1485] Idle tab command completion

2007-11-22 Thread Grant Delaney
New submission from Grant Delaney: Exception in Tkinter callback Traceback (most recent call last): File "/usr/lib/python2.5/lib-tk/Tkinter.py", line 1403, in __call__ return self.func(*args) File "/usr/lib/python2.5/idlelib/AutoCompleteWindow.py", line 217, in winc

[issue1486] Idle tab command completion

2007-11-22 Thread Grant Delaney
New submission from Grant Delaney: Running idle from a terminal window in desktop. Python 2.5.1 (r251:54863, Nov 22 2007, 13:55:16) [GCC 4.1.2] on linux2 Type "copyright", "credits" or "licens

[issue1486] Idle tab command completion

2007-11-23 Thread Grant Delaney
Grant Delaney added the comment: You can remove this issue. It was a compile problem on my side, missing libs etc. __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/

[issue10018] IDLE not loading in xp pro due to tcl issue

2010-10-02 Thread Grant Andrew
New submission from Grant Andrew : I'm attempting to use Python for the first time and am running into issues before I'm out the door. I started with 3.2 and have worked backward installing older versions in hopes that IDLE would load on my xp pro laptop. After reading several th

[issue3063] memory leak in random number generation

2008-06-08 Thread Grant Tang
New submission from Grant Tang <[EMAIL PROTECTED]>: #the following code consume about 800M memory, which is normal n = 1 data = [0.0 for i in xrange(n)] #however, if I assign random number to data list, it will consume extra 2.5G memory. from random import random for s in xr

[issue3063] memory leak in random number generation

2008-06-08 Thread Grant Tang
Grant Tang <[EMAIL PROTECTED]> added the comment: I agree with Tim's comment. The problem's why these floats keep alive even after random() call returns. Then this becomes a garbage collection issue? ___ Python tracker <[EMAI

[issue3063] memory leak in random number generation

2008-06-08 Thread Grant Tang
Grant Tang <[EMAIL PROTECTED]> added the comment: Here I am confused. 100million floats in a list takes about 800M byte memory. This is acceptable. for i in xrange(1): data[i] = random() so it should be 800M plus a float returned by random(). But the problem is after thi

[issue3063] memory leak in random number generation

2008-06-08 Thread Grant Tang
Grant Tang <[EMAIL PROTECTED]> added the comment: Facundo: I understand now. You mean every unique float number used will be an object in memory. And never been released until Python quit. Is there any way to reclaim these memory? We need 3G memory to create a list of 100million randum n

[issue762963] timemodule.c: Python loses current timezone

2010-04-16 Thread Grant Bowman
Grant Bowman added the comment: Is there anything others like me can do to help get this fixed? -- nosy: +grantbow ___ Python tracker <http://bugs.python.org/issue762

[issue1777] ElementTree/cElementTree findtext inconsistency

2008-01-09 Thread Grant Monroe
New submission from Grant Monroe: cElementTree findtext seems to return None when it should return a string. -- components: Library (Lib) files: etree_test.py messages: 59618 nosy: gmonroe severity: normal status: open title: ElementTree/cElementTree findtext inconsistency type

[issue43584] Doc description of str.title() upper case vs. title case.

2021-03-21 Thread Grant Edwards
New submission from Grant Edwards : The documentation for str.title() states that the first character in each world is converted to upper case. That is not correct for recent versions of Python. The first character in each word is converted to title case. Title and upper may be the same for

[issue45299] SMTP.send_message() does from mangling when it should not

2021-09-26 Thread Grant Edwards
New submission from Grant Edwards : SMTP.send_message() does from mangling even when the message's policy has that disabled. The problem is in the send_messsage() function shown below: 912 def send_message(self, msg, from_addr=None, to_addrs=None,

[issue45299] SMTP.send_message() does from mangling when it should not

2021-11-25 Thread Grant Edwards
Grant Edwards added the comment: Yes, passing the mangle_from value to BytesGenerator seems like the safest fix. It's unfortunate that BytesGenerator defaults to doing "the wrong thing" in the absence of a policy argument, but there might be code that depends on it. I

[issue41118] datetime object does not preserve POSIX timestamp

2020-06-25 Thread Grant Petty
New submission from Grant Petty : For complete context, see https://stackoverflow.com/questions/62582386/how-do-i-get-a-naive-datetime-object-that-correctly-uses-utc-inputs-and-preserve Short version: It does not seem correct that a datetime object produced *from* a POSIX timestamp using

[issue37014] fileinput module should document that openhook and mode are ignored when reading from stdin

2019-05-22 Thread Grant Wu
New submission from Grant Wu : https://github.com/python/cpython/blob/master/Lib/fileinput.py#L326 shows that the openhook and mode are ignored when reading from stdin. Since part of fileinput's functionality is to abstract over whether one is reading from stdin or over a file, I think

[issue37014] [First easy issue] fileinput module should document that openhook and mode are ignored when reading from stdin

2019-05-23 Thread Grant Wu
Change by Grant Wu : -- nosy: +grantwu -Grant Wu2 ___ Python tracker <https://bugs.python.org/issue37014> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37134] [EASY] Use PEP570 syntax in the documentation

2019-06-03 Thread Grant Jenks
Grant Jenks added the comment: FWIW, I would rather not see the docs littered with "/". I've taught Python to hundreds of professional software engineers over the last five years and in all that time nobody has ever asked when the args need to be positional. It's easy t

[issue37134] Use PEP570 syntax in the documentation

2019-06-04 Thread Grant Jenks
Grant Jenks added the comment: Pablo, I never intended disrespect toward you personally. And I am sorry my words came across that way. I would rather the feature be one of Python's more esoteric qualities. I think Carol has described the most reasonable way forward. And in particula

[issue14465] xml.etree.ElementTree: add feature to prettify XML output

2019-08-08 Thread Andrew Grant
Change by Andrew Grant : -- nosy: +Andrew Grant ___ Python tracker <https://bugs.python.org/issue14465> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue25115] SSL_set_verify_depth not exposed by the ssl module

2017-09-10 Thread Grant Bremer
Grant Bremer added the comment: The use case is for an internal PKI implementation where verification should be, needs to be limited to certificates signed by the PKI CA and no higher to, say, a larger realm which would not be appropriate

[issue23666] Add shell session logging option to IDLE

2017-09-18 Thread Grant Jenks
Grant Jenks added the comment: +1 from me. I'd like to see it ask me to save when I close the window if I've already saved once. -- nosy: +grantjenks ___ Python tracker <https://bugs.python.o

[issue35196] IDLE text squeezer is too aggressive and is slow

2018-12-16 Thread Grant Jenks
Change by Grant Jenks : -- nosy: +grantjenks ___ Python tracker <https://bugs.python.org/issue35196> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34055] IDLE: erroneous 'smart' indents in shell

2019-01-02 Thread Grant Jenks
Grant Jenks added the comment: This issue was closed but I still see the problem in 3.7.2. Here's a snippet with line numbers from IDLE: 01 Python 3.7.2 (default, Dec 30 2018, 08:59:00) 02 [Clang 9.1.0 (clang-902.0.39.2)] on darwin 03 Type "help", "copyright", &qu

[issue34055] IDLE inserts extra blank line in prompt after SyntaxError

2018-07-05 Thread Grant Jenks
New submission from Grant Jenks : IDLE inserts an extra blank line after the prompt after encountering a SyntaxError: ``` >>> 1 + 2 3 >>> print('Hello') Hello v-- Missing single quote! >>> d = {1: 'uno', 2: &#

[issue14841] os.get_terminal_size() should check stdin as a fallback

2018-08-21 Thread Grant Jenks
Grant Jenks added the comment: I asked on the ncurses maintainers email list about their logic and was pointed to tty_settings.c which checks: 1. stderr 2. stdout 3. stdin 4. open('/dev/tty', 'r+') I don't know a cross-platform way to check #4 but I think #1-3 ar

[issue34445] asyncio support in doctests

2018-08-30 Thread Grant Jenks
Grant Jenks added the comment: This is not a bug in Python. The SyntaxError matches expected behavior. According to the Python grammar, you can't have "await" outside of a function. You have "await" at the globals scope which is not permitted. You may only &quo

[issue34549] unittest docs could use another header

2018-09-03 Thread Grant Jenks
Change by Grant Jenks : -- nosy: +grantjenks ___ Python tracker <https://bugs.python.org/issue34549> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue7180] "pydoc -k" can generate AttributeError on Mac OS X

2009-10-20 Thread Kevin Grant
New submission from Kevin Grant : Running "pydoc -k ..." with a query string will end with a Python AttributeError while looking for Carbon.File.FSSpecType. I was using /usr/bin/pydoc on Mac OS X Snow Leopard, which is from Python 2.6.1. It appears that any query will produce a sim

[issue7303] pkgutil lacks documentation for useful functions

2010-07-24 Thread Grant Limberg
Grant Limberg added the comment: I've taken the liberty of creating a patch for this issue. I've taken the docstrings fromt he pkgutil module and conveted them to reST. Please let me know if there are any changes necessary. -- keywords: +patch nosy: +Grant.Limberg Added

[issue9294] Dead code in Objects/object.c

2010-07-25 Thread Grant Limberg
Grant Limberg added the comment: It looks like at one point, internal_print was a recursive function, but this is no longer the case. I've updated the function parameters to no longer contain the "nesting" parameter and removed the if block shown in this case. -- k

[issue9294] Dead code in Objects/object.c

2010-07-25 Thread Grant Limberg
Grant Limberg added the comment: On second thought, internal_print() doesn't look like it's needed anymore as it's only called by PyObject_Print() and is no longer recursive. This second patch moves internal_print()'s function body into PyObject_Print and removes the int

[issue9294] Dead code in Objects/object.c

2010-07-25 Thread Grant Limberg
Changes by Grant Limberg : Removed file: http://bugs.python.org/file18198/internal_print_non_recursive.patch ___ Python tracker <http://bugs.python.org/issue9

[issue27385] itertools.groupby has misleading doc string

2016-06-24 Thread Grant Mathews
New submission from Grant Mathews: The itertools.groupby function is generally well-documented, but the fact that it only groups consecutive occurrences of keys is not mentioned in the doc string, which is where that information is most needed. -- assignee: docs@python components

[issue27616] filedialog.askdirectory inconsistent on Windows between returning "C:/" and "C:/users" (no trailing slash)

2016-07-25 Thread Grant Hillebrand
New submission from Grant Hillebrand: When running the following code on Windows 7 (64bit os), and selecting a root drive letter, eg C:, it returns "C:/", with a slash appended. When selecting any other path below root level, eg "C:/users" it returns "C:/users" -

[issue25115] SSL_set_verify_depth not exposed by the ssl module

2015-09-14 Thread Grant Bremer
New submission from Grant Bremer: The SSL_set_verify_depth OpenSSL method is not currently exposed by the ssl module. The context object would seem to be the proper place for it as an instance method. -- components: Library (Lib) messages: 250718 nosy: Grant Bremer priority: normal

[issue25115] SSL_set_verify_depth not exposed by the ssl module

2015-09-14 Thread Grant Bremer
Changes by Grant Bremer : -- hgrepos: +316 keywords: +patch Added file: http://bugs.python.org/file40471/verify_depth.patch ___ Python tracker <http://bugs.python.org/issue25

[issue25115] SSL_set_verify_depth not exposed by the ssl module

2015-09-15 Thread Grant Bremer
Grant Bremer added the comment: I had thought that I had found documentation that the max depth is 100 and anything higher is ignored -- and as I read that back to me, I believe I read an example passage and interpreted it incorrectly. I'll remove that. We primarily use Python 2.7,

[issue25115] SSL_set_verify_depth not exposed by the ssl module

2015-09-16 Thread Grant Bremer
Grant Bremer added the comment: Attached is a patch for the 3.5 branch. The test is minimal -- we are relying on the underlying OpenSSL library and its context to manage the data. I have removed the data validation from the set function -- OpenSSL seems happy to accept negative numbers for

[issue25115] SSL_set_verify_depth not exposed by the ssl module

2015-09-16 Thread Grant Bremer
Changes by Grant Bremer : -- hgrepos: -316 ___ Python tracker <http://bugs.python.org/issue25115> ___ ___ Python-bugs-list mailing list Unsubscribe: