[issue45749] Silently fails to build hashlib if openssl has disabled algorithms

2021-11-08 Thread Ross Burton
Ross Burton added the comment: Cool, glad to see the additional checks. -- ___ Python tracker <https://bugs.python.org/issue45749> ___ ___ Python-bugs-list m

[issue45749] Silently fails to build hashlib if openssl has disabled algorithms

2021-11-08 Thread Ross Burton
Change by Ross Burton : -- versions: +Python 3.10 ___ Python tracker <https://bugs.python.org/issue45749> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45749] Silently fails to build hashlib if openssl has disabled algorithms

2021-11-08 Thread Ross Burton
New submission from Ross Burton : If my openssl is built with no-scrypt then the Python build of hashlib fails (as EVP_PBE_scrypt isn't present), but the overall compile succeeds. -- components: Build messages: 405954 nosy: rossburton2 priority: normal severity: normal status:

[issue45147] Typo in "What's New In Python 3.10" documentation

2021-09-09 Thread Ross Martin
Ross Martin added the comment: I would like to fix this, if it hasnt been assigned already. -- nosy: +MrRBM97 ___ Python tracker <https://bugs.python.org/issue45

[issue43123] email MIME splitting

2021-04-12 Thread Ross Rhodes
Ross Rhodes added the comment: PR now “stale” since I have not received any feedback, yet. -- ___ Python tracker <https://bugs.python.org/issue43123> ___ ___

[issue42916] Support for DICOM image file format in imghdr module

2021-04-12 Thread Ross Rhodes
Ross Rhodes added the comment: PR already open to support DICOM based on the first 132 characters. Marked “stale” since I haven’t had any feedback on GitHub, yet. -- ___ Python tracker <https://bugs.python.org/issue42

[issue42778] Add follow_symlinks=True parameter to both os.path.samefile() and Path.samefile()

2021-02-08 Thread Ross Rhodes
Ross Rhodes added the comment: Thanks for sharing the alternative approach, Serhiy. Sounds like the proposed changes aren’t necessary if the combined use of samestat and lstat achieve the desired behaviour. Any objections if I close the open PR

[issue42916] Support for DICOM image file format in imghdr module

2021-02-08 Thread Ross Rhodes
Ross Rhodes added the comment: Looking for input from other contributors here. Naturally with a PR already open I’m inclined to keep these changes, but if the majority agree that it is too specific a format then I’m happy to hear alternative suggestions? Ross

[issue43123] email MIME splitting

2021-02-07 Thread Ross Rhodes
Ross Rhodes added the comment: Hi Martin, Looking into this further, it appears we already catch CR-LF characters in header values, but your test case shows that we do not run the same checks on header names. I've opened a PR to rectify this - feel free to leave feedback.

[issue43123] email MIME splitting

2021-02-07 Thread Ross Rhodes
Change by Ross Rhodes : -- keywords: +patch nosy: +trrhodes nosy_count: 3.0 -> 4.0 pull_requests: +23267 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24475 ___ Python tracker <https://bugs.python.org/i

[issue42916] Support for DICOM image file format in imghdr module

2021-01-16 Thread Ross Rhodes
Ross Rhodes added the comment: Hello Charles, Following the format provided, I've opened a PR to implement your proposal. Feedback welcome. -- ___ Python tracker <https://bugs.python.org/is

[issue42916] Support for DICOM image file format in imghdr module

2021-01-16 Thread Ross Rhodes
Change by Ross Rhodes : -- keywords: +patch nosy: +trrhodes nosy_count: 2.0 -> 3.0 pull_requests: +23050 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/24227 ___ Python tracker <https://bugs.p

[issue42756] smtplib.LMTP.connect() raises TypeError if `timeout` is not specified

2021-01-01 Thread Ross Rhodes
Change by Ross Rhodes : -- pull_requests: +22886 pull_request: https://github.com/python/cpython/pull/24050 ___ Python tracker <https://bugs.python.org/issue42

[issue42794] test_nntplib fails on CI

2020-12-31 Thread Ross Rhodes
Ross Rhodes added the comment: Server is returning '215 Newsgroup descriptions in form "group description"', but an empty list of lines, so it's reaching the 'nothing' case in _getdescriptions: https://github.com/python/cpython/blob/master/Lib/nntplib.

[issue41914] test_pdb fails

2020-12-30 Thread Ross Rhodes
Ross Rhodes added the comment: Hi Sumagna, test_pdb appears to be working as expected on my machine. I realise this was posted a few months ago so would you mind trying again and seeing if the issue persists? If so, which OS are you running your tests on? -- nosy: +trrhodes

[issue42787] email.utils.getaddresses improper parsing of unicode realnames

2020-12-30 Thread Ross Rhodes
Ross Rhodes added the comment: Hi Konstantin, Thanks for raising this issue. It appears the field provided in your example does not conform to RFC 2822 followed by this email library. Square brackets are treated as special characters in [section 3.2.1](https://tools.ietf.org/html/rfc2822

[issue42778] Add follow_symlinks=True parameter to both os.path.samefile() and Path.samefile()

2020-12-29 Thread Ross Rhodes
Ross Rhodes added the comment: Hi Tom, Thanks for raising this issue. I've opened a PR to permit us to set `follow_symlinks` in both os.path and pathlib. Feel free to leave feedback. -- ___ Python tracker <https://bugs.python.org/is

[issue42778] Add follow_symlinks=True parameter to both os.path.samefile() and Path.samefile()

2020-12-29 Thread Ross Rhodes
Change by Ross Rhodes : -- keywords: +patch nosy: +trrhodes nosy_count: 1.0 -> 2.0 pull_requests: +22839 stage: -> patch review pull_request: https://github.com/python/cpython/pull/23996 ___ Python tracker <https://bugs.python.org/i

[issue42756] smtplib.LMTP.connect() raises TypeError if `timeout` is not specified

2020-12-27 Thread Ross Rhodes
Ross Rhodes added the comment: Hello Wüstengecko, Thanks for raising this issue. I've opened a PR which I believe will resolve the problem, but it's difficult to verify this against the mock socket setup. Feel free to leav

[issue42756] smtplib.LMTP.connect() raises TypeError if `timeout` is not specified

2020-12-27 Thread Ross Rhodes
Change by Ross Rhodes : -- keywords: +patch nosy: +trrhodes nosy_count: 1.0 -> 2.0 pull_requests: +22814 stage: -> patch review pull_request: https://github.com/python/cpython/pull/23969 ___ Python tracker <https://bugs.python.org/i

[issue41781] Typos in typing.py

2020-12-26 Thread Ross Rhodes
Ross Rhodes added the comment: Hello Patrick, Thanks for opening this issue. I'm creating a PR to resolve the typo in "_allow_reckless_class_cheks", but I'm unable to find "instnance". Presumably the latter

[issue41781] Typos in typing.py

2020-12-26 Thread Ross Rhodes
Change by Ross Rhodes : -- keywords: +patch nosy: +trrhodes nosy_count: 1.0 -> 2.0 pull_requests: +22804 stage: -> patch review pull_request: https://github.com/python/cpython/pull/23957 ___ Python tracker <https://bugs.python.org/i

[issue42352] A string representation of slice objects with colon syntax

2020-11-13 Thread Ross Barnowski
New submission from Ross Barnowski : It would be nice if there were a way to get a string representation of a slice object in extended indexing syntax, e.g. ``` >>> myslice = slice(None, None, 2) >>> print(myslice) '::2' ``` One motivating use-case is in des

[issue42173] Drop Solaris support

2020-11-02 Thread Gordon Ross
Gordon Ross added the comment: I can understand the frustrations around dealing with minority platforms, but please remember that the illumos project (www.illumos.org) is basically the inheritor of problems around "Build on Solaris" for 3rd party software like Python. There are

[issue40028] Math module method to find prime factors for non-negative int n

2020-04-18 Thread Ross Rhodes
Ross Rhodes added the comment: Unable to dedicate time to this issue under the change of circumstances. Happy for someone else to re-open this if they take an interest in picking up this work. -- resolution: -> postponed stage: needs patch -> resolved status: open -&g

[issue40028] Math module method to find prime factors for non-negative int n

2020-03-21 Thread Ross Rhodes
Ross Rhodes added the comment: Hi Steven, I agree, your set of proposed methods seem sensible to me. I'm happy to start with an implementation of at least some of those methods and open for review, taking this one step at a time for easier review and regular feedback. > Another

[issue40028] Math module method to find prime factors for non-negative int n

2020-03-21 Thread Ross Rhodes
Ross Rhodes added the comment: Hi Serhiy, > Provide a pull request. Apologies, by "this idea" I should clarify I meant the "imath" module proposal. On this particular enhancement, yes, I'm happy to work on and l

[issue40028] Math module method to find prime factors for non-negative int n

2020-03-21 Thread Ross Rhodes
Ross Rhodes added the comment: Hi Serhiy, Thanks for sharing your thread. I support this proposal, and would be happy to help where time permits if we can gather sufficient support. I inadvertently posted my support twice on your thread with no obvious means of deleting the duplicate post

[issue40028] Math module method to find prime factors for non-negative int n

2020-03-21 Thread Ross Rhodes
Ross Rhodes added the comment: Hi Tim, Are there any open discussions or threads following the proposed “imath” module? I’m a relatively new entrant to the Python community, so if there’s any ongoing discussion on that front I’d be happy to read further. I think as a first step it would be

[issue40028] Math module method to find prime factors for non-negative int n

2020-03-20 Thread Ross Rhodes
New submission from Ross Rhodes : Hello, Thoughts on a new function in the math module to find prime factors for non-negative integer, n? After a brief search, I haven't found previous enhancement tickets raised for this proposal, and I am not aware of any built-in method within e

[issue39507] http library missing HTTP status code 418 "I'm a teapot"

2020-01-31 Thread Ross Rhodes
Change by Ross Rhodes : -- keywords: +patch pull_requests: +17665 stage: -> patch review pull_request: https://github.com/python/cpython/pull/18291 ___ Python tracker <https://bugs.python.org/issu

[issue39507] http library missing HTTP status code 418 "I'm a teapot"

2020-01-31 Thread Ross Rhodes
New submission from Ross Rhodes : http library missing HTTP status code 418 "I'm a teapot". -- messages: 361106 nosy: trrhodes priority: normal severity: normal status: open title: http library missing HTTP status code 418 "I'm a teapot"

[issue38999] Python launcher on Windows does not detect active venv

2019-12-24 Thread Ross Boylan
Ross Boylan added the comment: As someone who finds the current behavior surprising, and having lost significant time because of it, I have a couple of comments. 1) If the venv created a python3 (or 2, as appropriate) file, would the expected behavior with !#/usr/bin/env python3 be restored

[issue36159] Modify Formatter Class to handle arbitrary objects

2019-03-12 Thread Ross Biro
Ross Biro added the comment: I'm currently writing a language translator between two domain specific computer languages. Because some expressions occur repeatedly, but in slightly different contexts, I make multiple passes. The first pass reduces everything it can and leaves place h

[issue36125] Cannot cross-compile to more featureful but same tune

2019-03-03 Thread Ross Burton
Ross Burton added the comment: That's exactly the glitch. I'm cross-compiling to a more powerful IA process from IA. This *is* a cross-compilation but the triple is the same. Assuming that you can rely on the loader to not open target binaries when they're on the path

[issue36125] Cannot cross-compile to more featureful but same tune

2019-03-02 Thread Ross Burton
Ross Burton added the comment: strace disagrees. By putting strace in PYTHON_FOR_BUILD and then invoking make sharedmods: | openat(AT_FDCWD, "/data/poky-tmp/master/work/corei7-64-poky-linux/python3/3.7.2-r0/build/build/lib.linux-x86_64-3.7/_heapq.cpython-37m-x86_64-linux-gnu.so",

[issue36159] Modify Formatter Class to handle arbitrary objects

2019-03-01 Thread Ross Biro
New submission from Ross Biro : The only point in the string.Formatter class that really depends on string output is line 245: return ''.join(result), auto_arg_index. I'm currently working on a problem that would be much easier if I could get access to the result list in

[issue36125] Cannot cross-compile to more featureful but same tune

2019-02-26 Thread Ross Burton
Ross Burton added the comment: >From what I can tell: configure.ac sets PYTHON_FOR_BUILD like this if cross-compiling: PYTHON_FOR_BUILD='_PYTHON_PROJECT_BASE=$(abs_builddir) _PYTHON_HOST_PLATFORM=$(_PYTHON_HOST_PLATFORM) PYTHONPATH=$(shell test -f pybuilddir.txt && ech

[issue36125] Cannot cross-compile to more featureful but same tune

2019-02-26 Thread Ross Burton
New submission from Ross Burton : My build machine is a Haswell Intel x86-64. I'm cross-compiling to x86-64, with -mtune=Skylake -avx2. During make install PYTHON_FOR_BUILD loads modules from the *build* Lib/ which contain instructions my Haswell can't execute: | _PYTHON_PROJECT_

[issue34585] Don't use AC_RUN_IFELSE to determine float endian

2018-09-06 Thread Ross Burton
Change by Ross Burton : -- pull_requests: +8543 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue34585> ___ ___ Python-bugs-list mai

[issue34585] Don't use AC_RUN_IFELSE to determine float endian

2018-09-05 Thread Ross Burton
New submission from Ross Burton : Currently configure.ac uses AC_RUN_IFELSE to determine the byte order of floats and doubles. This hurts when cross-compiling because a default is set, resulting in Python silently falling back to sub-optimal codepaths. A partial improvement would be to not

[issue26350] Windows: signal doc should state certains signals can't be registered

2017-08-08 Thread Ross Rosen
Ross Rosen added the comment: I'm not sure if this is helpful, but I thought it might be useful for you to hear a non-expert user's perspective. (In summary, I'm agreeing with the OP.) I spent a lot of time getting some signal handling working on OSX. Then finally in my

[issue23144] html.parser.HTMLParser: setting 'convert_charrefs = True' leads to dropped text

2015-01-01 Thread Ross
Ross added the comment: That would make sense. Might also be worth mentioning the difference in behaviour with convert_charrefs = True/False as that was what led me to think this was a bug. -- ___ Python tracker <http://bugs.python.org/issue23

[issue23144] html.parser.HTMLParser: setting 'convert_charrefs = True' leads to dropped text

2015-01-01 Thread Ross
New submission from Ross: If convert_charrefs is set to true the final data section is not return by feed(). It is held until the next tag is encountered. --- from html.parser import HTMLParser class MyHTMLParser(HTMLParser): def __init__(self): HTMLParser.__init__(self

[issue23070] Error in Tutorial comment

2014-12-16 Thread Ross Burnett
New submission from Ross Burnett: In section "3.1.2. Strings" of the Tutorial (version 3.4 plus others?), a comment on a slicing error has an error: "word[42] # the word only has 7 characters" It should say "word[42] # the word has 6 characters" -- as

[issue17552] socket.sendfile()

2013-03-27 Thread Ross Lagerwall
Changes by Ross Lagerwall : -- nosy: +rosslagerwall ___ Python tracker <http://bugs.python.org/issue17552> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue17495] email.quoprimime.body_encode can't handle characters that encodings.quopri_codec can

2013-03-20 Thread Ross Patterson
Changes by Ross Patterson : -- resolution: -> duplicate status: open -> closed ___ Python tracker <http://bugs.python.org/issue17495> ___ ___ Python-bugs-

[issue17495] email.quoprimime.body_encode can't handle characters that encodings.quopri_codec can

2013-03-20 Thread Ross Patterson
Ross Patterson added the comment: I thought I had tested it under 2.7, but I'm not entirely sure. -- versions: -Python 2.6, Python 2.7, Python 3.1, Python 3.2 ___ Python tracker <http://bugs.python.org/is

[issue17495] email.quoprimime.body_encode can't handle characters that encodings.quopri_codec can

2013-03-20 Thread Ross Patterson
Ross Patterson added the comment: What is the reason that email.quoprimime doesn't use codecs.getencoder('quopri_codec') to do the actual character encoding? -- ___ Python tracker <http://bugs.pyt

[issue17495] email.quoprimime.body_encode can't handle characters that encodings.quopri_codec can

2013-03-20 Thread Ross Patterson
New submission from Ross Patterson: When using email.charset.Charset to encode MIME bodie as quoted-printable, some characters that are encodable with the quopri_codec cause a KeyError in email.quoprimime: Python 3.3.0 (default, Oct 7 2012, 14:43:21) [GCC 4.6.3] on linux Type "

[issue17428] replace readdir to readdir_r in function posix_listdir

2013-03-15 Thread Ross Lagerwall
Ross Lagerwall added the comment: That text was from the POSIX 2008 spec: http://pubs.opengroup.org/onlinepubs/9699919799/functions/readdir.html The following text from my copy of the readdir manpage gives an indication of how you *should* allocate struct dirent when using readdir_r: "&qu

[issue17428] replace readdir to readdir_r in function posix_listdir

2013-03-15 Thread Ross Lagerwall
Ross Lagerwall added the comment: Hi, There shouldn't be a problem with the existing implementation since, according to posix: """ The pointer returned by readdir() points to data which may be overwritten by another call to readdir() on the same directory stream. This data

[issue16853] add a Selector to the select module

2013-01-04 Thread Ross Lagerwall
Ross Lagerwall added the comment: > Ross, the select() result for a large number of ready FDs was > completely skewed because of a bug spotted by Antoine (complexity > was much worse than it ought to be). Ah, that makes a little more

[issue16853] add a Selector to the select module

2013-01-04 Thread Ross Lagerwall
Ross Lagerwall added the comment: Interesting benchmark. There is no gain for epoll with a large number of ready fds (as expected) but at least it is no worse than poll. Poll offers a large improvement on select, in this case. $ ./python selector_bench.py -r 2 -m 1000 -t pipe Trying with 2

[issue16853] add a Selector to the select module

2013-01-03 Thread Ross Lagerwall
Changes by Ross Lagerwall : -- nosy: +rosslagerwall ___ Python tracker <http://bugs.python.org/issue16853> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue16850] Atomic open + close-and-exec

2013-01-03 Thread Ross Lagerwall
Changes by Ross Lagerwall : -- nosy: +rosslagerwall ___ Python tracker <http://bugs.python.org/issue16850> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue16698] test_posix.test_getgroups fails on some systems

2012-12-16 Thread Ross Lagerwall
New submission from Ross Lagerwall: test_posix.test_getgroups() fails on some systems: http://buildbot.python.org/all/builders/AMD64%20Mountain%20Lion%20%5BSB%5D%203.2 This could be related to #16661. -- components: Tests messages: 177601 nosy: rosslagerwall priority: normal severity

[issue16661] test_posix.test_getgrouplist fails on some systems - incorrectly comparing getgroups and getgrouplist results

2012-12-16 Thread Ross Lagerwall
Ross Lagerwall added the comment: getgrouplist() is new in 3.3. Those failures are from getgroups() failing. I'll open a separate issue for that. -- status: open -> closed ___ Python tracker <http://bugs.python.org

[issue16661] test_posix.test_getgrouplist fails on some systems - incorrectly comparing getgroups and getgrouplist results

2012-12-15 Thread Ross Lagerwall
Changes by Ross Lagerwall : -- assignee: -> rosslagerwall resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed ___ Python tracker <http://bugs.python

[issue16661] test_posix.test_getgrouplist fails on some systems - incorrectly comparing getgroups and getgrouplist results

2012-12-13 Thread Ross Lagerwall
Ross Lagerwall added the comment: Is that fixed now? I simplified the test to check for a non-empty list being returned. -- ___ Python tracker <http://bugs.python.org/issue16

[issue16661] test_posix.test_getgrouplist fails on some systems - incorrectly comparing getgroups and getgrouplist results

2012-12-10 Thread Ross Lagerwall
Ross Lagerwall added the comment: I wouldn't think so. A call to setgroups can add or remove groups for the calling process. If it removes groups, then getgrouplist() won't return a subset of getgroups(). -- ___ Python trac

[issue16661] test_posix.test_getgrouplist fails on some systems - incorrectly comparing getgroups and getgrouplist results

2012-12-10 Thread Ross Lagerwall
Ross Lagerwall added the comment: It seems like getgrouplist returns the information from the system database whereas getgroups (and consequently id -G) returns the supplementary groups for the calling process. I'm not exactly sure how getgrouplist() can be effectively tested

[issue16639] not your all issuse send

2012-12-07 Thread Ross Lagerwall
Changes by Ross Lagerwall : -- resolution: -> invalid status: open -> closed ___ Python tracker <http://bugs.python.org/issue16639> ___ ___ Python-bugs-

[issue16262] srcdir != builddir builds fail, if hg is not installed

2012-10-29 Thread Ross Lagerwall
Changes by Ross Lagerwall : -- assignee: -> rosslagerwall nosy: +rosslagerwall resolution: -> fixed stage: -> committed/rejected status: open -> closed versions: +Python 3.2, Python 3.4 ___ Python tracker <http://bugs.python

[issue16140] subprocess.Popen the os.close calls in _execute_child can raise an EBADF exception

2012-10-05 Thread Ross Lagerwall
Changes by Ross Lagerwall : -- nosy: +rosslagerwall ___ Python tracker <http://bugs.python.org/issue16140> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue15876] test_curses refleak

2012-09-07 Thread Ross Lagerwall
Changes by Ross Lagerwall : -- resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker <http://bugs.python.or

[issue15876] test_curses refleak

2012-09-06 Thread Ross Lagerwall
Ross Lagerwall added the comment: This didn't get picked up by Antoine's daily refleak test run because test curses only runs when stdout is a TTY. -- ___ Python tracker <http://bugs.python.o

[issue15876] test_curses refleak

2012-09-06 Thread Ross Lagerwall
New submission from Ross Lagerwall: [1/1] test_curses beginning 6 repetitions 123456 . test_curses leaked [1, 1, 1] references, sum=3 1 test failed: test_curses [154814 refs] -- assignee: rosslagerwall messages: 169973 nosy: rosslagerwall priority: low severity: normal status: open

[issue15798] subprocess.Popen() fails if 0, 1 or 2 descriptor is closed

2012-08-29 Thread Ross Lagerwall
Ross Lagerwall added the comment: I sent a review through on rietveld; I'm attaching a patch with the changes so that it compiles and passes the tests. -- Added file: http://bugs.python.org/file27053/issue15798_v2.patch ___ Python tracker

[issue15798] subprocess.Popen() fails if 0, 1 or 2 descriptor is closed

2012-08-29 Thread Ross Lagerwall
Ross Lagerwall added the comment: The attached patch + test seems to fix the issue. It's not very elegant. -- keywords: +patch Added file: http://bugs.python.org/file27042/issue15798.patch ___ Python tracker <http://bugs.python.org/is

[issue15798] subprocess.Popen() fails if 0, 1 or 2 descriptor is closed

2012-08-28 Thread Ross Lagerwall
Ross Lagerwall added the comment: It's caused by the following check in _posixsubprocess.c: if (close_fds && errpipe_write < 3) { /* precondition */ PyErr_SetString(PyExc_ValueError, "errpipe_write must be >= 3"); return NULL; } which was w

[issue15777] test_capi refleak

2012-08-24 Thread Ross Lagerwall
Changes by Ross Lagerwall : -- resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed ___ Python tracker <http://bugs.python.or

[issue15777] test_capi refleak

2012-08-24 Thread Ross Lagerwall
New submission from Ross Lagerwall: results for fa745ed89b7a on branch "default" test_capi leaked [2, 2, 2] references, sum=6 Command line was: ['./python', '-m', 'test.regrtest', '-uall', '

[issue15739] Python crashes with "Bus error: 10"

2012-08-20 Thread Ross Lagerwall
Ross Lagerwall added the comment: Sorry, I didn't mean that it's impossible; I meant that it shouldn't happen and it should be fixed :-) Unfortunately I don't have access to an OS X box to test. -- ___ Python tracker <

[issue15739] Python crashes with "Bus error: 10"

2012-08-20 Thread Ross Lagerwall
Ross Lagerwall added the comment: Well the app has an infinite recursion. This shows on Fedora Linux 17: """ Request Method: GET Request URL:http://127.0.0.1:8000/ Django Version: 1.4 Exception Type: RuntimeError Exception Value: maximum

[issue15548] Mention all new os functions in What's New in Python 3.3

2012-08-03 Thread Ross Lagerwall
Ross Lagerwall added the comment: Attached is a diff between dir(os) in 3.2 and 3.3 -- keywords: +patch nosy: +rosslagerwall Added file: http://bugs.python.org/file26676/oschanges.diff ___ Python tracker <http://bugs.python.org/issue15

[issue10812] Add some posix functions

2012-07-31 Thread Ross Lagerwall
Ross Lagerwall added the comment: I can't actually remember why I disabled waitid for OS X - that was message was rather a long time ago :-( Unfortunately, I don't currently have access to an OS X machine to test it. A google search shows the following comment in the v8 javascr

[issue7996] concurrency problem in regrtest -jX

2012-07-26 Thread Ross Lagerwall
Changes by Ross Lagerwall : -- resolution: -> duplicate status: open -> closed superseder: -> thread-safety issue in regrtest.main() ___ Python tracker <http://bugs.python.o

[issue15447] A file is not properly closed by webbrowser._invoke

2012-07-25 Thread Ross Lagerwall
Ross Lagerwall added the comment: Are there any webbrowser unit tests? (this could probably use the new subprocess.DEVNULL constant in 3.3) -- nosy: +rosslagerwall ___ Python tracker <http://bugs.python.org/issue15

[issue14826] urllib2.urlopen fails to load URL

2012-07-07 Thread Ross Lagerwall
Ross Lagerwall added the comment: It looks like this broke the build bots: http://buildbot.python.org/all/builders/AMD64%20Ubuntu%20LTS%202.7/builds/66/steps/test/logs/stdio -- assignee: -> orsenthil nosy: +rosslagerwall status: closed ->

[issue15277] Fix resource leak in support.py:_is_ipv6_enabled

2012-07-07 Thread Ross Lagerwall
Ross Lagerwall added the comment: Ah, I see you've already opened a new issue for that (issue15284). -- ___ Python tracker <http://bugs.python.org/is

[issue15277] Fix resource leak in support.py:_is_ipv6_enabled

2012-07-07 Thread Ross Lagerwall
Ross Lagerwall added the comment: Thanks. test_socket seems to be broken in all branches when running with net.ipv6.conf.all.disable_ipv6 = 1 but I'll open a new issue for that. -- assignee: -> rosslagerwall nosy: +rosslagerwall resolution: -> fixed stage: -> comm

[issue15200] Faster os.walk

2012-06-27 Thread Ross Lagerwall
Ross Lagerwall added the comment: This looks like the kind of optimization that depends hugely on what kernel you're using. Maybe on FreeBSD/Solaris/whatever, standard os.walk() is faster? If this micro-optimization were to be accepted, someone would have to be keen enough to test

[issue15044] _dbm not building on Fedora 17

2012-06-17 Thread Ross Lagerwall
Ross Lagerwall added the comment: Yeah, after I submitted the patch, I was unsure if that was a good idea or if it should try and use gdbm in native mode if possible. -- ___ Python tracker <http://bugs.python.org/issue15

[issue15044] _dbm not building on Fedora 17

2012-06-12 Thread Ross Lagerwall
Ross Lagerwall added the comment: Attached is a patch which fixes the issue on Fedora 17. If this doesn't break other OSes I'll commit it for 2.7, 3.2 and 3.3. -- keywords: +patch versions: +Python 2.7, Python 3.2 Added file: http://bugs.python.org/file25943/

[issue15044] _dbm not building on Fedora 17

2012-06-12 Thread Ross Lagerwall
Ross Lagerwall added the comment: The gdbm provided with Fedora 17 provides /usr/include/ndbm.h. This makes setup.py think that it should try link with -lndbm when it actually requires -lgdbm_compat. A workaround is to specify --with-dbmliborder=gdbm to force gdbm to be used. I'll tr

[issue14443] Distutils test_bdist_rpm failure

2012-05-28 Thread Ross Lagerwall
Ross Lagerwall added the comment: Unfortunately, it seems like it's still failing on the RHEL 6 buildbot. -- status: pending -> open ___ Python tracker <http://bugs.python.org

[issue14852] json and ElementTree parsers misbehave on streams containing more than a single object

2012-05-25 Thread Frederick Ross
Frederick Ross added the comment: In the case of files, sure, it's fine. The error gives me the offset, and I can go pull it out and buffer it, and it's fine. Plus XML is strict about having only one document per file. For streams, none of this is applicable. I can't seek

[issue14852] json and ElementTree parsers misbehave on streams containing more than a single object

2012-05-25 Thread Frederick Ross
Frederick Ross added the comment: Antoine, It's not iterative parsing, it's a sequence of XML docs or json objects. Eric, the server I'm retrieving from, for real time searches, steadily produces a stream of (each properly formed) XML or json documents containing new search r

[issue14891] An error in bindings of closures

2012-05-23 Thread Frederick Ross
Frederick Ross added the comment: Assignment in Python creates a new binding. Whether the new binding shadows or replaces an old binding should be irrelevant. This behavior is inconsistent with that. Please fix expectations, and then Python interpreter. -- resolution: invalid

[issue14890] typo in difflib

2012-05-23 Thread Ross Lagerwall
Ross Lagerwall added the comment: Yeah, I'm pretty sure it means if and only if. -- nosy: +rosslagerwall ___ Python tracker <http://bugs.python.org/is

[issue14891] An error in bindings of closures

2012-05-23 Thread Frederick Ross
New submission from Frederick Ross : The following code throws an UnboundLocal error: def f(x): def g(): x = x + "a" return x return g() f("b") -- components: None messages: 161432 nosy: Frederick.Ross priority: normal severity: normal st

[issue1191964] asynchronous Subprocess

2012-05-23 Thread Ross Lagerwall
Ross Lagerwall added the comment: > Personally, I would factor out the code for Popen.communicate() in to a > > Communicator class which wraps a Popen object and has a method > >communicate(input, timeout=None) -> (bytes_written, output, error) How would this diff

[issue1191964] asynchronous Subprocess

2012-05-22 Thread Ross Lagerwall
Changes by Ross Lagerwall : -- nosy: +rosslagerwall ___ Python tracker <http://bugs.python.org/issue1191964> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue1191964] asynchronous Subprocess

2012-05-22 Thread Ross Lagerwall
Changes by Ross Lagerwall : -- assignee: astrand -> ___ Python tracker <http://bugs.python.org/issue1191964> ___ ___ Python-bugs-list mailing list Unsubscri

[issue1260171] subprocess: more general (non-buffering) communication

2012-05-22 Thread Ross Lagerwall
Ross Lagerwall added the comment: Closed issue14872 as a duplicate of this. -- assignee: astrand -> nosy: +rosslagerwall ___ Python tracker <http://bugs.python.org/issue1

[issue14872] subprocess is not safe from deadlocks

2012-05-22 Thread Ross Lagerwall
Ross Lagerwall added the comment: See also issue1260171. Closing as a duplicate of that. -- resolution: -> duplicate stage: -> committed/rejected status: open -> closed superseder: -> subprocess: more general (non-buffering) communication type: -&

[issue14872] subprocess is not safe from deadlocks

2012-05-21 Thread Ross Lagerwall
Ross Lagerwall added the comment: Well if you're *certain* that the process is only using one stream, then you can just use read/write on that stream. If not, it probably means you have to use either threads or select/poll. This is a known issue with subprocess; there are a few proposa

[issue14443] Distutils test_bdist_rpm failure

2012-05-20 Thread Ross Lagerwall
Ross Lagerwall added the comment: The attached patch fixed the test for me on Fedora 16. It was necessary for the `define` to be after the -ba switch. I don't know why this wouldn't work on RHEL6 then... -- keywords: +patch Added file: http://bugs.python.org/file25650/distu

[issue12304] expose signalfd(2) in the signal module

2012-05-20 Thread Ross Lagerwall
Ross Lagerwall added the comment: Patch seems good (although it doesn't apply cleanly). Why do you not provide a structure to decode the bytes? I thought relying on ctypes in the stdlib was not advised... -- nosy: +rosslagerwall ___ Python tr

  1   2   3   4   5   >