[issue17661] documentation of '%r' links to the wrong repr

2013-04-10 Thread Kyle Roberts
Kyle Roberts added the comment: Ah that's the type of thing I was looking for, thanks Éric. I saw the underscored reference in functions.rst last night but figured it was just a local file link. I'll have a patch available later today. Th

[issue17661] documentation of '%r' links to the wrong repr

2013-04-10 Thread Kyle Roberts
Kyle Roberts added the comment: So the :ref: keyword helps and creates a link, but it has the unfortunate side effect of adding different markup and style. I've attached two images to illustrate the differences. I couldn't find a way in the Sphinx or reST documentation to force i

[issue17661] documentation of '%r' links to the wrong repr

2013-04-10 Thread Kyle Roberts
Changes by Kyle Roberts : Added file: http://bugs.python.org/file29772/diff_style_markup.PNG ___ Python tracker <http://bugs.python.org/issue17661> ___ ___ Python-bug

[issue17673] add `copy_from` argument to temporaryfile

2013-04-12 Thread Kyle Roberts
Kyle Roberts added the comment: I'm working on a patch for this. -- nosy: +kyle.roberts ___ Python tracker <http://bugs.python.org/issue17673> ___ ___ Pytho

[issue17659] no way to determine First weekday (based on locale)

2013-04-13 Thread Kyle McMartin
Kyle McMartin added the comment: Hacky patch at adding support for querying these values from nl_langinfo, and a new exported function from the locale module to return a guess at the first day of the week appropriate for Calendar.firstdayofweek After writing this, I think it might be better

[issue17725] English mistake in Extending and Embedding Python doc page.

2013-04-14 Thread Kyle Simpson
New submission from Kyle Simpson: The second sentence in http://docs.python.org/3/extending/index.html says: Those modules can define new functions but also new object types and their methods. The word "but" doesn't make sense here. I suppose that the author meant to

[issue17725] English mistake in Extending and Embedding Python doc page.

2013-04-14 Thread Kyle Simpson
Kyle Simpson added the comment: I have provided a patch. -- keywords: +patch Added file: http://bugs.python.org/file29847/issue17725.patch ___ Python tracker <http://bugs.python.org/issue17

[issue17735] inspect.findsource throws IndexError

2013-04-15 Thread Kyle Simpson
New submission from Kyle Simpson: Here is one way to reproduce this bug: 1. Create a module file (bug.py in this example) def func(): pass 2. Run Python >>> import bug >>> help(bug) 3. Edit bug.py def func(): pass def newfunc(): pass 4. Use the same Python

[issue17673] add `copy_from` argument to temporaryfile

2013-04-15 Thread Kyle Roberts
Kyle Roberts added the comment: I think `copy_from` should be included for mkstemp as well. It provides similar functionality to TemporaryFile and NamedTemporaryFile, but it doesn't delete the temp file on close as the other two do by default. Tho

[issue17735] inspect.findsource throws IndexError

2013-04-15 Thread Kyle Simpson
Kyle Simpson added the comment: Right, this issue is about the IndexError. The current patch for issue 1218234 doesn't solve this problem. You will still get IndexErrors, but you will get them when functions are removed rather than when functions are added. I think we should simply thr

[issue17673] add `copy_from` argument to temporaryfile

2013-04-16 Thread Kyle Roberts
Kyle Roberts added the comment: Attached is a patch to include the copy_from argument in mkstemp, TemporaryFile, and NamedTemporaryFile. Also attached is a text file for testing the copy operation. Some notes: I intended to use shutil's copyfile(src, dst) method to copy the copy_from

[issue17673] add `copy_from` argument to temporaryfile

2013-04-16 Thread Kyle Roberts
Changes by Kyle Roberts : Added file: http://bugs.python.org/file29896/copy_from_test.txt ___ Python tracker <http://bugs.python.org/issue17673> ___ ___ Python-bugs-list m

[issue17673] add `copy_from` argument to temporaryfile

2013-04-16 Thread Kyle Roberts
Kyle Roberts added the comment: Sorry, disregard my second question about finding a test file. I found an example in test_mailcap.py. I've uploaded a new patch with the cleaner test functions. -- Added file: http://bugs.python.org/file29897/copy_from_v2.

[issue17673] add `copy_from` argument to temporaryfile

2013-04-17 Thread Kyle Roberts
Kyle Roberts added the comment: Thanks for the quick response. The test file is sandwiched in between the two patch files, so it's easy to miss. You made a great point about not cluttering up the repo with any unnecessary files. I'll change the test methods to create a new copy

[issue17673] add `copy_from` argument to temporaryfile

2013-04-17 Thread Kyle Roberts
Kyle Roberts added the comment: Very cool, I didn't think it'd be included in the patch for some reason. Thanks! -- ___ Python tracker <http://bugs.python.o

[issue12825] Missing and incorrect link to a command line option.

2013-04-23 Thread Kyle Simpson
Kyle Simpson added the comment: I can't reproduce this issue for v2.7.2 anymore, and none of the other versions have this problem. Is it possible to regenerate the online docs for v2.7.2 before closing this issue? -- ___ Python tracker

[issue17673] add `copy_from` argument to temporaryfile

2013-04-29 Thread Kyle Roberts
Kyle Roberts added the comment: Thanks for the comments Antoine. I didn't have a good reason for using the file name at the time, although even when using the file name I should have used the "file" variable that was already created. I tried using the file descriptor, but

[issue15984] Wrong documentation for PyUnicode_FromObject()

2013-04-30 Thread Kyle Roberts
Kyle Roberts added the comment: Thanks for the quick responses. Brian: Nice catch, I'll add the ``obj`` shortly. R. David: You're correct, that's exactly what happens, and what coercion means here. The language is almost the same as PyUnicode_FromEncodedObject()'s docume

[issue15984] Wrong documentation for PyUnicode_FromObject() and PyUnicode_FromEncodedObject()

2013-04-30 Thread Kyle Roberts
Kyle Roberts added the comment: I've uploaded a new patch with the obj argument properly marked up. Brian, I think *obj* is what we want based on other examples in that file. It looks like italics is typically used when discussing parameters since each parameter is italicized in the sign

[issue17282] document the defaultTest parameter to unittest.main()

2013-05-01 Thread Kyle Roberts
Changes by Kyle Roberts : -- keywords: +patch Added file: http://bugs.python.org/file30096/default_test_3.4.patch ___ Python tracker <http://bugs.python.org/issue17

[issue17282] document the defaultTest parameter to unittest.main()

2013-05-01 Thread Kyle Roberts
Kyle Roberts added the comment: I've uploaded a patch documenting defaultTest in the latest branch and also in the previous branches. -- nosy: +kyle.roberts Added file: http://bugs.python.org/file30097/default_test_2.7-3.3.patch ___ Python tr

[issue22967] tempfile.py does not work in windows8

2014-11-29 Thread Kyle Lahnakoski
New submission from Kyle Lahnakoski: I installed python 2.7.8 on Windows version 6.2 (build 9200) and get-pip.py does not run. I traced the problem to c:\python27\lib\tempfile.py Here is my session: >> c:\Users\kyle\Downloads>python >> Python 2.7.8 (default, Jun 30 2014, 1

[issue22967] tempfile.py does not work in windows8

2014-11-29 Thread Kyle Lahnakoski
Kyle Lahnakoski added the comment: Doh! Dirty directory! Thank you for your time! My apologies. -- status: pending -> closed ___ Python tracker <http://bugs.python.org/issu

[issue23275] Can assign [] = (), but not () = []

2015-01-20 Thread Kyle Buzsaki
Kyle Buzsaki added the comment: It seems that assigning to [] is the odd one out in this case. Why is this even possible? >>> [] = () >>> [] = {} >>> [] = set() >>> list() = () File "", line 1 SyntaxError: can't assign to function call >

[issue24690] find_executable should expand ~

2015-07-22 Thread Kyle Huey
New submission from Kyle Huey: It would be nice if find_executable("~/path/to/my/local/build/of/a/binary") would work. -- components: Distutils messages: 247176 nosy: Kyle Huey, dstufft, eric.araujo priority: normal severity: normal status: open title: find_executable sho

[issue23930] SimpleCookie doesn't parse comma-only separated cookies correctly

2015-10-22 Thread Kyle Graehl
Kyle Graehl added the comment: r"(\s+|;|$|,)" # Ending either at space, semicolon, or EOS. ( or comma...) I remember running into this same problem like 5 years ago. I added a comma as a valid regexp for ending the pattern, and removed it as a valid _LegalKeyChars I also think

[issue28215] PyModule_AddIntConstant() wraps >=2^32 values when long is 4 bytes

2016-09-20 Thread Kyle Altendorf
New submission from Kyle Altendorf: I am cross compiling Python 3.5.2 for use on a 32-bit ARM processor with Linux. I use socket.CAN_EFF_FLAG and noticed that it is negative on the target despite being positive on my host (64-bit Intel Linux). Host: altendky@tp:~$ uname -a Linux tp 4.4.0

[issue28215] PyModule_AddIntConstant() wraps >=2^31 values when long is 4 bytes

2016-09-20 Thread Kyle Altendorf
Kyle Altendorf added the comment: I do not seem to be getting a compiler warning. arm-fsl-linux-gnueabi-gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes-Werror=declaration-after-statement -I. -IInclude -I./Include -I"/epc/t/262/misc-build-ar

[issue28215] PyModule_AddIntConstant() wraps >=2^31 values when long is 4 bytes

2016-09-20 Thread Kyle Altendorf
Kyle Altendorf added the comment: A little macro funny business gets a function the ability to know if the type passed to its wrapping macro is signed or not. http://ideone.com/NZYs7u // http://stackoverflow.com/questions/7469915 #define IS_UNSIGNED(v) (v >= 0 && ~v >= 0)

[issue26660] tempfile.TemporaryDirectory() cleanup exception on Windows if readonly files created

2016-10-24 Thread Kyle Altendorf
Changes by Kyle Altendorf : -- nosy: +altendky ___ Python tracker <http://bugs.python.org/issue26660> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue25922] canceling a repair install breaks the ability to uninstall repair or re-install

2015-12-21 Thread Kyle S (MrStonedOne)
New submission from Kyle S (MrStonedOne): Title says all. It refuses to install from that point on, complaining that a reboot is needed. -- components: Installation, Windows messages: 256829 nosy: Kyle S (MrStonedOne), paul.moore, steve.dower, tim.golden, zach.ware priority: normal

[issue25922] canceling a repair install breaks the ability to uninstall, repair, or re-install

2015-12-21 Thread Kyle S (MrStonedOne)
Changes by Kyle S (MrStonedOne) : -- title: canceling a repair install breaks the ability to uninstall repair or re-install -> canceling a repair install breaks the ability to uninstall, repair, or re-install ___ Python tracker &l

[issue32852] trace changes sys.argv from list to tuple

2018-02-15 Thread Kyle Altendorf via Python-bugs-list
New submission from Kyle Altendorf : Normally sys.argv is a list but when using the trace module sys.argv gets changed to a tuple. In my case this caused an issue with running an entry point due to the line: sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', ''

<    1   2   3   4   5   6