[issue46560] ParamSpec: Typo in doc string

2022-01-27 Thread Evan
New submission from Evan : Apologies if this is pedantic; in the typing.py file the ParamSpec's doc string says: "They are only valid when used in ``Concatenate``, or s the first argument to ``Callable``" I believe it should be: "They are only valid when used i

[issue45807] Strange SyntaxError message / suggestions for "@x = 123"

2021-11-15 Thread Evan
Change by Evan : -- nosy: +schmave ___ Python tracker <https://bugs.python.org/issue45807> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue45761] recursive ProcessPoolExecutor invoke unable to return result

2021-11-09 Thread Evan Greenup
New submission from Evan Greenup : Read the hello.py in attachment. This simple shallow recursion will never return result. -- components: Library (Lib) files: hello.py messages: 406003 nosy: evan0greenup priority: normal severity: normal status: open title: recursive

[issue45761] recursive ProcessPoolExecutor invoke unable to return result

2021-11-09 Thread Evan Greenup
Change by Evan Greenup : Added file: https://bugs.python.org/file50432/hello.py ___ Python tracker <https://bugs.python.org/issue45761> ___ ___ Python-bugs-list mailin

[issue40864] spec_set/autospec/spec seems to not be reading attributes defined in class body

2020-10-05 Thread Evan Fagerberg
Change by Evan Fagerberg : -- keywords: +patch pull_requests: +21567 stage: -> patch review pull_request: https://github.com/python/cpython/pull/22572 ___ Python tracker <https://bugs.python.org/issu

[issue40864] spec_set/autospec/spec seems to not be reading attributes defined in class body

2020-10-05 Thread Evan Fagerberg
Evan Fagerberg added the comment: Reflecting on it more, there should be a sensible way to retrieve the set attributes of the init method of any class without explicitly instantiating it, via the inspect module. -- ___ Python tracker <ht

[issue40864] spec_set/autospec/spec seems to not be reading attributes defined in class body

2020-06-06 Thread Evan Fagerberg
Evan Fagerberg added the comment: Rereading the documentation, I see that a class attribute set to null will return a MagicMock for that attribute. That might be a reasonable workaround. Perhaps the more concrete solution would be that dir lists uninitialized class attributes and if a type

[issue40864] spec_set/autospec/spec seems to not be reading attributes defined in class body

2020-06-04 Thread Evan Fagerberg
Evan Fagerberg added the comment: Sorry one small note, the error in the example happens on ```python logger.propagate = False ``` and not ```python assert logger.propagate is False ``` -- ___ Python tracker <https://bugs.python.org/issue40

[issue40864] spec_set/autospec/spec seems to not be reading attributes defined in class body

2020-06-04 Thread Evan Fagerberg
New submission from Evan Fagerberg : Hello, I really like that this library allows for really strict mocking however one thing I have noticed is that it seems like using spec on a mock does not properly read the class body for attributes like some of the documentation claims. For example

[issue39833] Bug in html parsing module triggered by malformed input

2020-03-02 Thread Evan
<pre> New submission from Evan <ep58...@student.american.edu>: Relevant base python library-- C:\Users\User\AppData\Local\Programs\Python\Python38\lib\_markupbase.py The issue- After parsing over 900 SEC filings using beautifulsoup4, I get this user warning. UserWarning: un

[issue39092] Csv sniffer doesn't attempt to determine and set escape character.

2019-12-18 Thread Evan
New submission from Evan : I observed a false positive for the csv sniffer has_header method. (It thought there was a header when there was not.) This is due to the fact that in has_header, it determines the csv dialect by sniffing it, and failed to determine that the file I was using had

[issue37095] [Feature Request]: Add zstd support in tarfile

2019-05-29 Thread Evan Greenup
New submission from Evan Greenup : Zstandard is getting more and more popular. It could be awesome if tarfile support this compression format for .tar.zst file. -- components: Library (Lib) messages: 343945 nosy: evan0greenup priority: normal severity: normal status: open title

[issue35355] Some Errors involving formatted strings aren't reported in the right place.

2018-11-29 Thread Evan Newman
Change by Evan Newman : -- title: Some Errors involving formatted strings aren't reported in the right place. -> Some Errors involving formatted strings aren't reported in the right place. ___ Python tracker <https://bugs.python.org/issu

[issue35355] Some Errors involving formatted strings aren't reported in the right place.

2018-11-29 Thread Evan Newman
New submission from Evan Newman : Formatted strings seem to have some quirks. if you try putting in this, for example; print(f'{0 0}') ; you get a syntax error, which is probably intended, but where the error is reported is not always accurate. for example; #just a comment, it doesn't

[issue34706] Signature.from_callable sometimes drops subclassing

2018-09-16 Thread Buck Evan
Change by Buck Evan : -- type: -> behavior ___ Python tracker <https://bugs.python.org/issue34706> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue34706] Signature.from_callable sometimes drops subclassing

2018-09-16 Thread Buck Evan
New submission from Buck Evan : Specifically in the case of a class that does not override its constructor signature inherited from object. Github PR incoming shortly. -- components: Library (Lib) messages: 325501 nosy: bukzor priority: normal severity: normal status: open title

[issue34379] Move note about repeated calls to json.dump using the same fp to the json.dump section

2018-08-10 Thread Evan Allrich
Change by Evan Allrich : -- keywords: +patch pull_requests: +8215 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue34379> ___ ___ Py

[issue34379] Move note about repeated calls to json.dump using the same fp to the json.dump section

2018-08-10 Thread Evan Allrich
New submission from Evan Allrich : At present the note [0] appears under the documentation for `json.dumps` (which does not use the `fp` argument). It seems the note would be better placed with the documentation for the affected function. [0] > Note > > Unlike pickle and mars

[issue9334] argparse does not accept options taking arguments beginning with dash (regression from optparse)

2017-11-28 Thread Evan Driscoll
Evan Driscoll <eva...@gmail.com> added the comment: One last comment for the time being. I actually think *both* changes are valuable. Fixing the bug, well, fixes the bug if you can set the appropriate flag. The improved error message still helps for existing code and new code that *d

[issue9334] argparse does not accept options taking arguments beginning with dash (regression from optparse)

2017-11-28 Thread Evan Driscoll
Evan Driscoll <eva...@gmail.com> added the comment: > I also think that nargs=## could maybe be special-cased to just ignore > the A/O designation completely and only check there are enough, but I > haven't tried this out. Does this seem like a viable approach? Would a &g

[issue9334] argparse does not accept options taking arguments beginning with dash (regression from optparse)

2017-11-28 Thread Evan Driscoll
Evan Driscoll <eva...@gmail.com> added the comment: I ran into this issue today. (Or rather a couple weeks ago, and I just diagnosed it today.) Reading through the thread and from the bug's age it looks like a fix is probably not to promising, but Cherniavsky Beni's 2016-04-11 22:03 c

[issue9334] argparse does not accept options taking arguments beginning with dash (regression from optparse)

2017-11-28 Thread Evan Driscoll
Change by Evan Driscoll <eva...@gmail.com>: -- nosy: +evaned ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue9334> ___ __

[issue31446] _winapi.CreateProcess (used by subprocess) is not thread-safe

2017-09-13 Thread Evan Andrews
New submission from Evan Andrews: The method used for spawning subprocesses on Windows is not thread-safe under certain circumstances. The following example demonstrates how this manifests: >>> import threading >>> import subprocess >

[issue28595] shlex.shlex should not augment wordchars

2017-06-10 Thread Evan Andrews
Evan Andrews added the comment: Thanks, Vinay. I understand you're busy, and I'm in no particular rush to have this looked at, so feel free to come back to it when you have more time. I've submitted the changes as a PR. I also have an additional concern - even with this change

[issue28595] shlex.shlex should not augment wordchars

2017-06-10 Thread Evan Andrews
Changes by Evan Andrews <evanundersc...@gmail.com>: -- pull_requests: +2134 ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue28595> ___

[issue28595] shlex.shlex should not augment wordchars

2017-05-13 Thread Evan Andrews
Evan Andrews added the comment: Do I need to create a pull request for this? -- ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/i

[issue28595] shlex.shlex should not augment wordchars

2017-01-20 Thread Evan Andrews
Evan Andrews added the comment: Unfortunately shlex.shlex's defaults are probably going to remain that way for a long time in order to avoid breaking backwards compatibility. Presumably shlex.split was added so you didn't have to remember to set posix and whitespace_split yourself

[issue28595] shlex.shlex should not augment wordchars

2017-01-19 Thread Evan Andrews
Evan Andrews added the comment: Attaching an updated patch now that the two linked issues are resolved. -- Added file: http://bugs.python.org/file46335/shlex2.diff ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/i

[issue29262] Provide a way to check for *real* typing.Union instances

2017-01-14 Thread Evan
Evan added the comment: I'm also interested in this. I've been using 'thing.__origin__ is typing.Union', but this doesn't work in some of the older versions of typing. -- nosy: +evan_ ___ Python tracker <rep...@bugs.python.org>

[issue22343] Install bash activate script on Windows when using venv

2017-01-13 Thread Evan
Evan added the comment: Works for me on the master branch. Thanks, Vinay. -- ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/i

[issue22343] Install bash activate script on Windows when using venv

2017-01-12 Thread Evan
Evan added the comment: Works for me in Git Bash. -- ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue22343> ___ ___ Python-bugs-list

[issue29213] python -m venv activate.bat has weird mix of line endings

2017-01-10 Thread Evan
Evan added the comment: The scripts are being read in with mode 'rb', decoded, modified, then written back out with mode 'w'. This means the EOL conversion doesn't happen on the way in, but does happen on the way out, and so '\r\n' becomes '\r\r\n'. One fix would be to always use binary mode

[issue29132] shlex.shlex with punctuation_chars and posix doesn't handle punctuation next to quotes

2017-01-06 Thread Evan
Evan added the comment: I've just submitted the form. I'm attaching a second patch which also addresses another similar bug demonstrated in the test case. The fix is to check for the 'c' state before checking for quotes or escape characters. -- Added file: http://bugs.python.org

[issue29163] shlex error in posix mode and empty quotes

2017-01-05 Thread Evan
Evan added the comment: My mistake, it was addressed directly in issue21999. This is already fixed in 2.7.13 and will be fixed in 3.5.3. -- ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/i

[issue29163] shlex error in posix mode and empty quotes

2017-01-05 Thread Evan
Evan added the comment: This is also broken in 3.5.2, but not in 3.6.0: >>> list(shlex.shlex('echo b="",echo bar', posix=True)) ['echo', 'b', '=', '', ',', 'echo', 'bar'] I'm guessing it was fixed incidentally by the changes in issue1521950. -- ve

[issue29163] shlex error in posix mode and empty quotes

2017-01-05 Thread Evan
Changes by Evan <evanundersc...@gmail.com>: -- nosy: +evan_ ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue29163> ___ __

[issue29133] Minor inaccuracy in shlex.shlex punctuation_chars example

2017-01-03 Thread Evan
Evan added the comment: Second patch looks good, thanks. Do you also want to doctest that? -- ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/i

[issue29133] Minor inaccuracy in shlex.shlex punctuation_chars example

2017-01-02 Thread Evan
Evan added the comment: Sorry for not being more clear in the original report - the error is in the code, not in the output. The old behavior is punct=False, the new is punct=True. -- ___ Python tracker <rep...@bugs.python.org>

[issue29132] shlex.shlex with punctuation_chars and posix doesn't handle punctuation next to quotes

2017-01-02 Thread Evan
Evan added the comment: I've attached a simplistic patch which fixes the problem. I suspect a better fix might be to shuffle the elif branches around so the extra condition isn't necessary. Vinay, what are your thoughts? -- keywords: +patch Added file: http://bugs.python.org/file46112

[issue28595] shlex.shlex should not augment wordchars

2017-01-02 Thread Evan
Evan added the comment: I've attached a more complete patch. This takes the conservative approach of retaining all functionality of 3.6 and treating this as a new feature for 3.7. I don't think this is suitable for 3.6.1 given this new behavior contradicts what is currently written

[issue29133] Minor inaccuracy in shlex.shlex punctuation_chars example

2017-01-02 Thread Evan
New submission from Evan: https://docs.python.org/3/library/shlex.html#improved-compatibility-with-shells The code sample here does not match the output - the first line is labelled 'New' and the second line 'Old'. -- assignee: docs@python components: Documentation messages: 284481

[issue29132] shlex.shlex with punctuation_chars and posix doesn't handle punctuation next to quotes

2017-01-02 Thread Evan
New submission from Evan: When both punctuation_chars and posix are used, any punctuation directly next to quoted characters is interpreted as a single token. >>> from shlex import shlex >>> list(shlex('>"a"', posix=True)) ['>', 'a'] >>>

[issue29128] No way to instsall win32com on python 3.6

2017-01-02 Thread Evan
Evan added the comment: This package doesn't yet have a wheel for Python 3.6, so it falls back on the source distribution, and the setup.py file doesn't run under Python 3. You can either wait for the maintainer to upload the new wheel to PyPI, or take one of the recently built installers

[issue29093] Windows launcher breaks history in Git Bash

2016-12-31 Thread Evan
Evan added the comment: No problem, thanks for your time. -- ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue29093> ___ ___ Pyth

[issue29093] Windows launcher breaks history in Git Bash

2016-12-31 Thread Evan
Evan added the comment: This appears to be a bug with Git Bash, not Python or the launcher. Closing. -- resolution: -> third party status: open -> closed ___ Python tracker <rep...@bugs.python.org> <http://bugs.python

[issue29093] Windows launcher breaks history in Git Bash

2016-12-28 Thread Evan
Evan added the comment: I tried compiling the version of the launcher from https://github.com/python/cpython/tree/3.3, and the bug is still present there. Previously when I was testing older versions with the launcher I had to uninstall pyreadline from several of them to confirm the bug

[issue29093] Windows launcher breaks history in Git Bash

2016-12-28 Thread Evan
Evan added the comment: No, it doesn't provide a version of readline that works with Windows binaries. Trying to import readline fails no matter how I start Python. -- ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/i

[issue29093] Windows launcher breaks history in Git Bash

2016-12-28 Thread Evan
Evan added the comment: Yes, the history within the current Python session. It's worth noting that the history usually behaves like in cmd.exe, not bash. (I don't have a py.exe without the bug at the moment to confirm that is the same.) Testing now, it seems all the history shortcuts (F1-F9

[issue29093] Windows launcher breaks history in Git Bash

2016-12-28 Thread Evan
New submission from Evan: When I launch *any* version of Python using py.exe from Git Bash, the up and down arrows clear the line buffer instead of navigating history. The following things all work as intended: * py.exe in cmd.exe * py.exe in Git Bash using winpty * Python 2.7, 3.5, 3.6 when

[issue22343] Install bash activate script on Windows when using venv

2016-12-17 Thread Evan
Evan added the comment: +1, I'm also using Windows with Git Bash and venv is unusable for me without Brandon's workaround. -- nosy: +evan_ ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/i

[issue14156] argparse.FileType for '-' doesn't work for a mode of 'rb'

2016-12-16 Thread Evan
Evan added the comment: This issue is relevant to Python 2 on Windows since you need to disable the EOL conversion if you're trying to receive binary data on stdin. See: http://stackoverflow.com/questions/2850893/reading-binary-data-from-stdin -- nosy: +evan_

[issue28960] Small typo in Thread.join docs

2016-12-14 Thread Evan
Evan added the comment: I think the patch should remove the comma, not the double dash. This is a parenthetical remark and should end the same way it starts. See https://www.grammarly.com/handbook/punctuation/dash/2/dash-parenthetical-information/ -- nosy: +evan_

[issue28595] shlex.shlex should not augment wordchars

2016-11-23 Thread Evan
Evan added the comment: I've created issue28784 to capture the documentation fixes. When I have more spare time, I'll work on a more complete patch. -- ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/i

[issue28784] shlex.shlex punctuation_chars documentation should use posix=True

2016-11-23 Thread Evan
New submission from Evan: (This discussion started on issue28595.) The new punctuation_chars keyword argument is intended to provide "compatibility with the parsing performed by common Unix shells like bash, dash, and sh", however the documentation and examples do not mention that

[issue28595] shlex.shlex should not augment wordchars

2016-11-13 Thread Evan
Evan added the comment: I have some additional concerns with the changes introduced in http://bugs.python.org/issue1521950: 1. The fact that posix defaults to False in shlex.shlex (but not in shlex.split) is a huge beginner trap. If users are expecting to use this for "compatib

[issue28595] shlex.shlex should not augment wordchars

2016-11-04 Thread Evan
Changes by Evan <evanundersc...@gmail.com>: -- title: shlex.split should not augment wordchars -> shlex.shlex should not augment wordchars ___ Python tracker <rep...@bugs.python.org> <http://bugs.pyt

[issue28595] shlex.split should not augment wordchars

2016-11-03 Thread Evan
New submission from Evan: The changes to shlex due to land in 3.6 use a predefined set of characters to "augment" wordchars, however this set is incomplete. For example, 'foo,bar' should be parsed as a single token, but it is split on the comma: $ echo foo,bar foo,bar >&g

[issue13829] exception error in _scproxy.so when called after fork

2016-08-06 Thread Evan Jones
Evan Jones added the comment: This is effectively the same as issue 27126. The discussion there convinced me that this may not be working around, since it isn't the only place this can happen! This same crash, caused by libdispatch not being fork compatible, also happens with sqlite and tk

[issue27227] argparse fails to parse [] when using choices and nargs='*'

2016-06-05 Thread Evan
New submission from Evan: When using nargs='*' with choices, it is impossible to specify 0 args: from argparse import ArgumentParser parser = ArgumentParser() parser.add_argument('foo', choices=['foo'], nargs='*') args = parser.parse_args([]) # <-- fails, error message below assert args.

[issue27126] Apple-supplied libsqlite3 on OS X is not fork safe; can cause crashes

2016-05-27 Thread Evan Jones
Evan Jones added the comment: I have a crazy idea, but I'm not 100% sure how to implement it: If Python was able to detect and report this error in a friendly way, it would allow people to easily understand what is happening and to work around it. How can we do it? First idea

[issue27126] Apple-supplied libsqlite3 on OS X is not fork safe; can cause crashes

2016-05-26 Thread Evan Jones
Evan Jones added the comment: To be clear: My reproduction scripts crash both Python 2.7.10 and Python 3.5.1 when you: 1. Download the source bundle from python.org. 2. Run ./configure; make 3. Use the built binary (because ./configure picks up the system version of libsqlite.dylib) I did

[issue24573] Using multiprocessing with tkinter frames in Python 3.4.3 crashes in OS X

2016-05-25 Thread Evan Jones
Evan Jones added the comment: This is another instance of the following bug: http://bugs.python.org/issue27126 libdispatch (grand central dispatch) is not fork safe. The forkserver approach is a good workaround, thanks! -- nosy: +evan.jo...@bluecore.com

[issue27126] Mac system sqlite3 not fork safe: Bundle a version?

2016-05-25 Thread Evan Jones
Changes by Evan Jones <evan.jo...@bluecore.com>: Added file: http://bugs.python.org/file43004/osx_python3_crash.py ___ Python tracker <rep...@bugs.python.org> <http://bugs.python

[issue27126] Mac system sqlite3 not fork safe: Bundle a version?

2016-05-25 Thread Evan Jones
New submission from Evan Jones: The system version of libsqlite3 that is included in Mac OS X is not fork safe. This means that if a process forks, and the child calls into it, it will crash with the stack trace below. I've reproduced this with both Python 2.7.10 and Python 3.5.1 on Mac OS X

[issue20353] Hanging bug with multiprocessing + sqlite3 + tkinter (OS X 10.9 only)

2016-05-25 Thread Evan Jones
Evan Jones added the comment: I believe the root cause of this bug is the following issue: http://bugs.python.org/issue27126 ; a workaround is to run the following code before forking any subprocesses: sqlite3.connect(':memory:').close() -- nosy: +evan.jo...@bluecore.com

[issue25429] Can segfault Python with itertools.chain.from_iterable

2015-10-16 Thread Evan Hubinger
New submission from Evan Hubinger: The code import itertools it = itertools.chain.from_iterable((f() for f in [lambda: it])) list(it) definitely segfaults on Python 2.6, 2.7, 3.3, and 3.4, and probably segfaults on other versions as well. The code is clearly incorrect in that the lambda

[issue22680] Blacklist FunctionTestCase from test discovery

2015-07-27 Thread Evan Hubinger
Evan Hubinger added the comment: I wrote a patch to blacklist FunctionTestCase in TestLoader, and a test to make sure FunctionTestCase doesn't show up in the TestSuite after loading a module that includes it. The test runs successfully. This is my first patch, so feedback would be appreciated

[issue24085] large memory overhead when pyc is recompiled

2015-05-04 Thread Buck Evan
Buck Evan added the comment: @serhiy.storchaka This is a very stable piece of a legacy code base, so we're not keen to refactor it so dramatically, although we could. We've worked around this issue by compiling pyc files ahead of time and taking extra care that they're preserved through

[issue24085] large memory overhead when pyc is recompiled

2015-05-01 Thread Buck Evan
Buck Evan added the comment: New data: The memory consumption seems to be in the compiler rather than the marshaller: ``` $ PYTHONDONTWRITEBYTECODE=1 python -c 'import repro' 16032 $ PYTHONDONTWRITEBYTECODE=1 python -c 'import repro' 16032 $ PYTHONDONTWRITEBYTECODE=1 python -c 'import repro

[issue24085] large memory overhead when pyc is recompiled

2015-04-30 Thread Buck Evan
New submission from Buck Evan: In the attached example I show that there's a significant memory overhead present whenever a pre-compiled pyc is not present. This only occurs with more than 5225 objects (dictionaries in this case) allocated. At 13756 objects, the mysterious pyc overhead is 50

[issue24085] large memory overhead when pyc is recompiled

2015-04-30 Thread Buck Evan
Buck Evan added the comment: Also, we've reproduced this in both linux and osx. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24085

[issue1043134] Add preferred extensions for MIME types

2012-10-10 Thread Evan Jones
Changes by Evan Jones e...@evanjones.ca: -- nosy: +evanj ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1043134 ___ ___ Python-bugs-list mailing

[issue4696] email module does not unfold headers

2012-10-10 Thread Evan Jones
Changes by Evan Jones e...@evanjones.ca: -- nosy: +evanj ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4696 ___ ___ Python-bugs-list mailing list

[issue11513] chained exception/incorrect exception from tarfile.open on a non-existent file

2011-03-18 Thread Evan Dandrea
Evan Dandrea e...@ubuntu.com added the comment: David, Thanks for the pointers. I've updated the patch hopefully adequately addressing your concerns. -- components: +Interpreter Core -Library (Lib) type: behavior - Added file: http://bugs.python.org/file21277/tarfile-fix-multiple

[issue11513] chained exception/incorrect exception from tarfile.open on a non-existent file

2011-03-18 Thread Evan Dandrea
Changes by Evan Dandrea e...@ubuntu.com: Removed file: http://bugs.python.org/file21223/tarfile-fix-multiple-exception-on-enoent.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11513

[issue11503] Expand test coverage in posixpath

2011-03-15 Thread Evan Dandrea
Evan Dandrea e...@ubuntu.com added the comment: Updated the patch to address Michael's concerns. -- Added file: http://bugs.python.org/file21221/test_posixpath_with_same_device.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org

[issue11503] Expand test coverage in posixpath

2011-03-15 Thread Evan Dandrea
Evan Dandrea e...@ubuntu.com added the comment: I've looked at the sameopenfile code, and can see no reason why it would not work on Windows. I've asked Brian to verify this. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org

[issue11503] Expand test coverage in posixpath

2011-03-15 Thread Evan Dandrea
Evan Dandrea e...@ubuntu.com added the comment: I haven't used addCleanup here, but have noted it for the future. In this case, using it would require adding another function to handle the reassignment, which I think is a bit more messy than the extra bit of indentation

[issue11513] Infinite recursion around raising an exception in tarfile

2011-03-15 Thread Evan Dandrea
Evan Dandrea e...@ubuntu.com added the comment: *facepalm* Indeed, thanks for pointing that out and nice catch on the race condition. Attached is a patch to fix the issue as you've suggested, and adds a test case for it. -- keywords: +patch Added file: http://bugs.python.org

[issue11513] Infinite recursion around raising an exception in tarfile

2011-03-15 Thread Evan Dandrea
Changes by Evan Dandrea e...@ubuntu.com: Added file: http://bugs.python.org/file21223/tarfile-fix-multiple-exception-on-enoent.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11513

[issue11513] Infinite recursion around raising an exception in tarfile

2011-03-15 Thread Evan Dandrea
Changes by Evan Dandrea e...@ubuntu.com: Removed file: http://bugs.python.org/file21222/tarfile-fix-multiple-exception-on-enoent.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11513

[issue11548] Passing format= to unpack_archive fails

2011-03-15 Thread Evan Dandrea
Changes by Evan Dandrea e...@ubuntu.com: Added file: http://bugs.python.org/file21228/fix_unpack_with_format.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11548

[issue11548] Passing format= to unpack_archive fails

2011-03-15 Thread Evan Dandrea
Changes by Evan Dandrea e...@ubuntu.com: Removed file: http://bugs.python.org/file21196/fix_unpack_with_format.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11548

[issue11560] Expand test coverage in shutil

2011-03-15 Thread Evan Dandrea
New submission from Evan Dandrea e...@ubuntu.com: The attached patch increases the coverage in shutil. It makes the following changes: - Tests the code paths for file and directory copies across filesystems by mocking out rename. - Adds a test for shutil.copy. - Adds a test

[issue11503] Expand test coverage in posixpath

2011-03-14 Thread Evan Dandrea
New submission from Evan Dandrea e...@ubuntu.com: I've expanded the coverage of the posixpath test. The following scenarios have been added: - lexists with a non-existent file. - ismount with binary data. - ismount with a directory that is not a mountpoint. - ismount with a non-existent

[issue11503] Expand test coverage in posixpath

2011-03-14 Thread Evan Dandrea
Changes by Evan Dandrea e...@ubuntu.com: -- nosy: +michael.foord ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11503 ___ ___ Python-bugs-list

[issue11503] Expand test coverage in posixpath

2011-03-14 Thread Evan Dandrea
Evan Dandrea e...@ubuntu.com added the comment: Fixed a typo in the previous patch. -- Added file: http://bugs.python.org/file21124/test_posixpath.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11503

[issue11503] Expand test coverage in posixpath

2011-03-14 Thread Evan Dandrea
Evan Dandrea e...@ubuntu.com added the comment: Added an updated patch that includes testing whether ismount would succeed by faking path being on a different device from its parent. -- Added file: http://bugs.python.org/file21125/test_posixpath_with_same_device.patch

[issue11503] Expand test coverage in posixpath

2011-03-14 Thread Evan Dandrea
Evan Dandrea e...@ubuntu.com added the comment: It's probably best to give the fake stats inode numbers, so if the code does fail to check the st_dev fields, it will fail the test. I've updated the patch with this. -- Added file: http://bugs.python.org/file21128

[issue11513] Infinite recursion around raising an exception in tarfile

2011-03-14 Thread Evan Dandrea
New submission from Evan Dandrea e...@ubuntu.com: Using Python tip from Sunday, I noticed that tarfile does not elegantly handle ENOENT by raising a single exception: tarfile.TarFile.gzopen('fdsfd', 'r') Traceback (most recent call last): File /home/evan/hg/cpython/Lib/tarfile.py, line 1808

[issue11548] Passing format= to unpack_archive fails

2011-03-14 Thread Evan Dandrea
New submission from Evan Dandrea e...@ubuntu.com: Passing the format keyword parameter to shutil.unpack_archive triggers an exception: Traceback (most recent call last): File Lib/test/test_shutil.py, line 650, in test_unpack_archive unpack_archive(filename, tmpdir2, format=format) File

[issue6825] Minor documentation bug with os.path.split

2010-10-07 Thread Evan Driscoll
Evan Driscoll eva...@gmail.com added the comment: Hah, I totally forgot about this thing. I'd suggest a change to the proposed patch. The patched version says: In nearly all cases, ``join(head, tail)`` returns a location equivalent to *path* (the only exception being when there were

[issue7735] python creates IPv6 DNS requests even when built with --disable-ipv6

2010-01-18 Thread Evan Teran
New submission from Evan Teran evan.te...@gmail.com: I have encountered an issue where python will do a request even when built without IPv6. This becomes an issue because on some configurations this seems to cause a 5 second delay on DNS lookups (that is a separate issue of course

[issue3445] Ignore missing attributes in functools.update_wrapper

2010-01-15 Thread Evan Klitzke
Evan Klitzke e...@eklitzke.org added the comment: New patch included, with a test case. I had wanted to check the classmethod __module__ thing directly, but that proved to be elusive, since the classmethod gets the __module__ attribute if the module is '__main__', and you can't delete

[issue3445] Ignore missing attributes in functools.update_wrapper

2010-01-13 Thread Evan Klitzke
Evan Klitzke e...@eklitzke.org added the comment: I'm also interested in seeing this fixed. In the current behavior, the following code doesn't work: start code from functools import wraps def magic(func): @wraps(func) def even_more_magic(*args): return func

[issue6825] Minor documentation bug with os.path.split

2009-09-02 Thread Evan Driscoll
New submission from Evan Driscoll eva...@gmail.com: The documentation for os.path.split says, in part: In nearly all cases, join(head, tail) equals path (the only exception being when there were multiple slashes separating head from tail). But this is not quite true: that's

[issue6785] IncompleteRead / BadStatus when parsing http://peakoil.mobi

2009-08-26 Thread Evan
New submission from Evan evanphe...@gmail.com: (I'm brand new to Python.org, apologies in advance if this has been recorded elsewhere or is not a bug) I've a simple script which fetching a url using httplib/urllib2 and then simply searches the HTML for a string. Works on every URL I've tried

[issue6234] cgi.FieldStorage is broken when given POST data

2009-06-07 Thread Evan Fosmark
New submission from Evan Fosmark m...@evanfosmark.com: Right now, it seems impossible to use cgi.FieldStorage in 3.0 if you're giving it environ['wsgi.input'] like so: post_data = cgi.FieldStorage( fp=environ[wsgi.input], environ=environ, keep_blank_values=True

[issue6154] Python 3.1 rc1 will not build on OS X 10.5.7

2009-06-03 Thread Evan Behar
Evan Behar beh...@gmail.com added the comment: Nevermind, my bad. With Brett's patch, the build does not work with --enable-framework It appears that configure.in makes no assignment to FRAMEWORKLINK or AC_SUBST call with it, and so it is deposited in the final Makefile verbatim

[issue6154] Python 3.1 rc1 will not build on OS X 10.5.7 with macports libintl

2009-06-03 Thread Evan Behar
Evan Behar beh...@gmail.com added the comment: Curiously, if I define --with-pydebug I get ld: Undefined symbols: ___eprintf If I don't define --with-pydebug but I do use --enable-universalsdk I get a whole different problem: gcc -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk

  1   2   >