[issue28942] await expressions in f-strings

2016-12-12 Thread Adam Gregory
New submission from Adam Gregory: Hi, I've been playing with f-strings, which seem like a great addition to the language. I noticed in the definition of f_expression that it can include any or_expr. As far as I understand, this includes "await" expressions, so I tried using aw

[issue28942] await expressions in f-strings

2016-12-12 Thread Adam Gregory
Adam Gregory added the comment: Replicated in CPython 3.6.0rc1 -- ___ Python tracker <http://bugs.python.org/issue28942> ___ ___ Python-bugs-list mailin

[issue29050] xml.etree.ElementTree in Python 3.6 is incompatible with defusedxml

2016-12-22 Thread Adam Williamson
New submission from Adam Williamson: The changes made to xml.etree.ElementTree in this commit: https://github.com/python/cpython/commit/12a626fae80a57752ccd91ad25b5a283e18154ec break defusedxml , Christian Heimes' library of modified parsers that's intended to be safe for parsing

[issue29050] xml.etree.ElementTree in Python 3.6 is incompatible with defusedxml

2016-12-22 Thread Adam Williamson
Adam Williamson added the comment: Ammar: yep, that's correct. There's code in defused's ElementTree.py - _ get_py3_cls() - which passes different values to _generate_etree_functions based on the Python 3 version. For Python 3.2+, defused 0.4.1 expects to use the _IterParseIter

[issue29050] xml.etree.ElementTree in Python 3.6 is incompatible with defusedxml

2016-12-22 Thread Adam Williamson
Adam Williamson added the comment: serhiy: so, the funny thing is this: your fix is ultimately a reversion. Though we have to dig way back into the bowels of defusedxml to see this. Specifically, to this commit! https://github.com/tiran/defusedxml/commit

[issue29050] xml.etree.ElementTree in Python 3.6 is incompatible with defusedxml

2016-12-22 Thread Adam Williamson
Adam Williamson added the comment: Aha, so thanks to my colleague Patrick Uiterwijk, we see the problem. Since Python 3.3, Python doesn't actually use that pure-Python iterparse() function if it can instead replace it with a C version: https://github.com/python/cpython/blob/3.3/Lib/xml/

[issue29050] xml.etree.ElementTree in Python 3.6 is incompatible with defusedxml

2016-12-22 Thread Adam Williamson
Adam Williamson added the comment: Digging some more, it looks like *only* Python 3.3 went so far out of its way to hide the pure-Python iterparse() - the code was changed again in 3.4 and it doesn't do that any more. So I think a way forward here is to make the code that

[issue29050] xml.etree.ElementTree in Python 3.6 is incompatible with defusedxml

2016-12-22 Thread Adam Williamson
Adam Williamson added the comment: https://paste.fedoraproject.org/511245/14824393/ is my cut at a fix for this, gonna test it out now. -- ___ Python tracker <http://bugs.python.org/issue29

[issue29050] xml.etree.ElementTree in Python 3.6 is incompatible with defusedxml

2016-12-22 Thread Adam Williamson
Adam Williamson added the comment: https://github.com/tiran/defusedxml/pull/4 should fix this, I hope. -- ___ Python tracker <http://bugs.python.org/issue29

[issue29113] modulefinder no longer finds all required modules for Python itself, due to use of __import__ in sysconfig

2016-12-29 Thread Adam Williamson
New submission from Adam Williamson: I'm not sure if this is really considered a bug or just an unavoidable limitation, but as it involves part of the stdlib operating on Python itself, I figured it was at least worth reporting. In Fedora we have a fairly simple little script called p

[issue29332] Uniform SelectSelector._select behavior

2017-01-20 Thread Wen Adam
New submission from Wen Adam: SelectSelector._select is differently on different platforms. On win32, SelectSelector._select is a unbound/bound method and pass instance as the first argument, but on *nix, SelectSelector._select is a builtin_function_or_method(Although self.select still works

[issue29332] Uniform SelectSelector._select behavior

2017-01-20 Thread Wen Adam
Wen Adam added the comment: Thx for your replying, Peksag. I encountered this problem is really because of Gevent and Selector34. Gevent fixed this issue but only works for python3.4+(https://github.com/gevent/gevent/blob/master/src/gevent/monkey.py#L497) by a tricking way. python 2.x still

[issue29332] Uniform SelectSelector._select behavior

2017-01-20 Thread Wen Adam
Wen Adam added the comment: I know it works on python3.4, but black magic still exists in selectors lib,and 3rd-party module have to prepare two function to make compatibility. -- ___ Python tracker <http://bugs.python.org/issue29

[issue27165] Skip callables when displaying exception fields in cgitb

2016-05-31 Thread Adam Bielański
New submission from Adam Bielański: Issue: cgitb text formatter outputs all members of exception object, using standard dir() to get their names. My patch changes its behaviour to skip fields which are callable, since printing them only clutters the output but is rarely helpful. HTML

[issue27165] Skip callables when displaying exception fields in cgitb

2016-06-02 Thread Adam Bielański
Changes by Adam Bielański : Added file: http://bugs.python.org/file43097/cgitb.patch ___ Python tracker <http://bugs.python.org/issue27165> ___ ___ Python-bugs-list mailin

[issue27165] Skip callables when displaying exception fields in cgitb

2016-06-02 Thread Adam Bielański
Changes by Adam Bielański : Removed file: http://bugs.python.org/file43065/cgitb.diff ___ Python tracker <http://bugs.python.org/issue27165> ___ ___ Python-bugs-list m

[issue27268] Incorrect error message on float('')

2016-06-08 Thread Adam Bartoš
New submission from Adam Bartoš: >>> float('foo') ValueError: could not convert string to float: 'foo' >>> float('') ValueError: could not convert string to float: should be ValueError: could not convert string to float: '' Th

[issue19570] distutils' Command.ensure_dirname fails on Unicode

2016-06-13 Thread Adam Bartoš
Adam Bartoš added the comment: Recently, I was also hit by this when trying to autoset `sys.argv` to a list of Unicode string (see https://github.com/Drekin/win-unicode-console/issues/20#issuecomment-225638271 ). It would be nice to have this fixed. It seems to me (I may be wrong) that every

[issue1927] Change input() to always prompt to stderr

2016-06-14 Thread Adam Bartoš
Adam Bartoš added the comment: Regarding the comment by Martin Panter from 2015-11-22: It would be nice if PyOS_StdioReadline worked that way. Unfortunately, it's still based on C file objects and char* for the prompt string rather than using actual Python objects. The relevant iss

[issue13592] repr(regex) doesn't include actual regex

2016-06-20 Thread Adam Bartoš
Adam Bartoš added the comment: Isn't the trucation of long patterns too rough? Currently, repr(re.compile("a" * 1000)) returns something like "re.compile('a)", i.e. no ending quote and no indication that something was truncated (besides the missing q

[issue26090] More correct string truncating in PyUnicode_FromFormat()

2016-06-21 Thread Adam Bartoš
Changes by Adam Bartoš : -- nosy: +Drekin ___ Python tracker <http://bugs.python.org/issue26090> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue27469] Unicode filename gets crippled on Windows when drag and drop

2016-07-08 Thread Adam Bartoš
New submission from Adam Bartoš: When a Python script is run by drag-and-dropping another file on it in Windows explorer, the other file's path becomes sys.argv[1]. However, when the path contains a Unicode characters (e.g. α), it gets crippled – it is replaced by ordinary question

[issue27469] Unicode filename gets crippled on Windows when drag and drop

2016-07-09 Thread Adam Bartoš
Adam Bartoš added the comment: Thank you very much for the analysis. So Python Windows installers may be changed to set the other drop handler. If the short paths are problem, they may be converted to long ones when initializing `sys.argv

[issue27469] Unicode filename gets crippled on Windows when drag and drop

2016-07-09 Thread Adam Bartoš
Adam Bartoš added the comment: Also, what versions of Windows does this affect? I have 64bit Vista, so maybe this is fixed in say Windows 10. -- ___ Python tracker <http://bugs.python.org/issue27

[issue27469] Unicode filename gets crippled on Windows when drag and drop

2016-07-09 Thread Adam Bartoš
Adam Bartoš added the comment: Without a handler the drop feature is disabled. -- ___ Python tracker <http://bugs.python.org/issue27469> ___ ___ Python-bugs-list m

[issue27582] Mispositioned SyntaxError caret for unknown code points

2016-07-22 Thread Adam Bartoš
Adam Bartoš added the comment: Maybe this is related: http://bugs.python.org/issue26152. -- nosy: +Drekin ___ Python tracker <http://bugs.python.org/issue27

[issue1602] windows console doesn't print or input Unicode

2016-08-13 Thread Adam Bartoš
Adam Bartoš added the comment: Hello Steve, that's great you are working on this! I've ran through your patch and I have the following remarks: • Since wide chars have two bytes, there may be problem when someone wants to read or write odd number of bytes. If the number is > 1,

[issue1602] windows console doesn't print or input Unicode

2016-08-14 Thread Adam Bartoš
Adam Bartoš added the comment: There is also the following consequence of (not) having the standard filenos: input() either considers the streams interactive or not. To consider them interactive, standard filenos and isatty are needed on sys.stdin and sys.stdout. If the streams are considered

[issue17620] Python interactive console doesn't use sys.stdin for input

2016-08-14 Thread Adam Bartoš
Adam Bartoš added the comment: > Unfortunately, it looks like detecting when a readline hook has been added is > going to involve significant changes to the tokenizer, which I really don't > want to do. We don't need to detect the presence of readline hook, it may be so th

[issue10716] Modernize pydoc to use better HTML and separate CSS

2013-03-01 Thread Ron Adam
Ron Adam added the comment: I'm going to go over this issue again with fresh eyes after having been away for some time. Recent experience with another project has helped answer some of the questions I had earlier. Particulary, how not to over specifying class names and id's. T

[issue1727418] xmlrpclib waits indefinately

2013-04-13 Thread Adam Duston
Adam Duston added the comment: We used the xmlrpc++0.7 library to set up a test server, consistent with what Arno reported in the original ticket. We weren’t able to reproduce the problem with 2.7.2 or 3.4. Furthermore, xmlrpclib.Server (or xmlrpc.client.Server in Python 3) connects with HTTP

[issue1727418] xmlrpclib waits indefinately

2013-04-13 Thread Adam Duston
Changes by Adam Duston : -- versions: +Python 2.6 -Python 3.4 ___ Python tracker <http://bugs.python.org/issue1727418> ___ ___ Python-bugs-list mailing list Unsub

[issue17849] Missing size argument in readline() method for httplib's class LineAndFileWrapper

2013-05-02 Thread Adam Brenecki
Changes by Adam Brenecki : -- nosy: +adambrenecki ___ Python tracker <http://bugs.python.org/issue17849> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue23124] Incorrect Integer saving

2014-12-27 Thread Adam Carruthers
New submission from Adam Carruthers: 255 is 255 -> True (255).bit_length() -> 8 256 is 256 -> True (256).bit_length() -> 9 257 is 257 -> False (257).bit_length() -> 9 ^ Will show True if you do it exactly like this because of a quirk. a = 257 b = 2

[issue23124] Incorrect Integer saving

2014-12-27 Thread Adam Carruthers
Changes by Adam Carruthers : -- nosy: -Adam.Carruthers ___ Python tracker <http://bugs.python.org/issue23124> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue23141] Command line long filename not passed correctly

2014-12-31 Thread Adam Mead
New submission from Adam Mead: Under windows the following code does not pass the LFN to the script. Nor does any other method I've tried (getopts & argparse) test.py import sys print ('Number of arguments:', len(sys.argv), 'arguments.') print ('Argument Lis

[issue23141] Command line long filename not passed correctly

2014-12-31 Thread Adam Mead
Adam Mead added the comment: Hi, I think I've found the problem. After reading you message and seeing your output I went to my laptop which didn't have python installed (using portable on it) and clean installed. Using a clean install with 3.4.2 on a Win8 machine it worked fine. I s

[issue23057] [Windows] asyncio: support signal handlers on Windows (feature request)

2015-07-05 Thread Adam Bartoš
Adam Bartoš added the comment: I've also run into this issue (see https://mail.python.org/pipermail/python-list/2015-July/693496.html and the following thread). I'm adding some small examples showing the behavior. import asyncio async def wait(): await asyncio.slee

[issue23057] [Windows] asyncio: support signal handlers on Windows (feature request)

2015-07-07 Thread Adam Bartoš
Adam Bartoš added the comment: David Robertson: The behaviour you pointed out is a consequence of the general issue: signals on Windows aren't fully supported. Basically, they cannot interrupt the event loop when every coroutine is waiting for something. Instead, they are fired when some

[issue24677] "def f(*args, ): pass" does not compile

2015-07-21 Thread Adam Bartoš
New submission from Adam Bartoš: I think that a trailing comma in function definition should be allowed also after *. Current situation with definitions: def f(*args, ): pass # SyntaxError def f(*, ): pass # SyntaxError def f(*, a, ): pass # SyntaxError def f(*, a=2, ): pass # SyntaxError

[issue9232] Allow trailing comma in any function argument list.

2015-07-21 Thread Adam Bartoš
Adam Bartoš added the comment: Reposting from from my newest duplicate of this issue (Issue 24677), which is now closed: I think that a trailing comma in function definition should be allowed also after *. Current situation with definitions: def f(*args, ): pass # SyntaxError def f

[issue24695] Don't print traceback header if traceback is None

2015-07-23 Thread Adam Bartoš
New submission from Adam Bartoš: The documentation of traceback.print_exception says "if traceback is not None, it prints a header Traceback (most recent call last):". That also meant that the header wasn't printed if traceback was None. However, the new Python 3.5 TracebackE

[issue24696] Don't use None as sentinel for traceback

2015-07-23 Thread Adam Bartoš
New submission from Adam Bartoš: There is a subtle bug in Python 3.4 implementation of traceback library: >>> import traceback >>> >>> try: ... 1 / 0 ... except Exception as e: ... exc = e ... >>> traceback.print_exception(exc.__class__, exc, exc._

[issue24695] Don't print traceback header if traceback is None in TracebackException

2015-07-24 Thread Adam Bartoš
Adam Bartoš added the comment: Thank you all for a quick reaction. -- ___ Python tracker <http://bugs.python.org/issue24695> ___ ___ Python-bugs-list mailin

[issue24695] Don't print traceback header if traceback is None in TracebackException

2015-07-26 Thread Adam Bartoš
Adam Bartoš added the comment: Just out of my curiosity – why is not this issue listed in Python 3.5b4 changelog even though the issue is fixed there? -- ___ Python tracker <http://bugs.python.org/issue24

[issue24695] Don't print traceback header if traceback is None in TracebackException

2015-07-26 Thread Adam Bartoš
Adam Bartoš added the comment: I meant this one: https://docs.python.org/3.5/whatsnew/changelog.html#python-3-5-beta-4 . -- ___ Python tracker <http://bugs.python.org/issue24

[issue24695] Don't print traceback header if traceback is None in TracebackException

2015-07-26 Thread Adam Bartoš
Adam Bartoš added the comment: Ok, thanks. -- ___ Python tracker <http://bugs.python.org/issue24695> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue18838] The order of interactive prompt and traceback on Windows

2015-07-27 Thread Adam Bartoš
Adam Bartoš added the comment: Yes, it is a behavior change between Python 2 and Python 3. I just tried with 2.7 and 3.0. -- ___ Python tracker <http://bugs.python.org/issue18

[issue24771] Cannot import _tkinter in Python 3.5 on Windows

2015-08-01 Thread Adam Bartoš
New submission from Adam Bartoš: I found out that I cannot import tkinter in Python 3.5.0b4 on 64-bit Windows Vista. Trying to import _tkinter results in ImportError: DLL load failed. On the other hand I have no problem importing _ctypes whose .pyd file is at the same location as _tkinter.pyd

[issue24771] Cannot import _tkinter in Python 3.5 on Windows

2015-08-01 Thread Adam Bartoš
Adam Bartoš added the comment: It seems that both tcl86t.dll and tk86t.dll can be found, but their dependency VCRUNTIME140.dll cannot. For some reason, Dependency Walker cannot locate also python35.dll and ieshims.dll (but it tries to find all three libraries in Python 3.5\DLLs and at least

[issue19518] Add new PyRun_xxx() functions to not encode the filename

2015-08-04 Thread Adam Bartoš
Adam Bartoš added the comment: I'm not sure this is the right issue. The support for Unicode filenames is not (at least on Windows) ideal. Let α.py be a Python script with invalid syntax. > py α.py File "", line 2 as as compile error ^ SyntaxError: invalid syntax

[issue12854] PyOS_Readline usage in tokenizer ignores sys.stdin/sys.stdout

2015-08-08 Thread Adam Bartoš
Adam Bartoš added the comment: http://bugs.python.org/issue17620 is a duplicate, but with more discussion. -- nosy: +Drekin ___ Python tracker <http://bugs.python.org/issue12

[issue24829] Use interactive input even if stdout is redirected

2015-08-08 Thread Adam Bartoš
New submission from Adam Bartoš: Currently, if one redirects stdout, readline hook is not used (see https://hg.python.org/cpython/file/default/Parser/myreadline.c#l208). I would assume that if I run Python as "py -i > output.txt", I can use GNU readline or other readline hook f

[issue9232] Allow trailing comma in any function argument list.

2015-08-11 Thread Adam Bartoš
Adam Bartoš added the comment: Some remarks: • A trailing comma after a non-empty argument list is allowed in every call form, including class statement and optional call in decorator syntax. In the grammar, this correponds to `arglist`. • In function definition, trailing comma is allowed

[issue9232] Allow trailing comma in any function argument list.

2015-08-11 Thread Adam Bartoš
Adam Bartoš added the comment: Do we want to allow a trailing comma after *args or **kwargs in a function definition? Unlike in a call, **kwargs is always the last thing in the list and nothing can be added after that. Just asking. -- ___ Python

[issue23572] functools.singledispatch fails when "not BaseClass" is True

2015-08-16 Thread Adam Bartoš
Adam Bartoš added the comment: I was also bitten by this via Enum. Is there any chance this will be fixed in Python 3.5? -- nosy: +Drekin ___ Python tracker <http://bugs.python.org/issue23

[issue24909] Windows: subprocess.Popen: race condition for leaking inheritable handles

2015-08-21 Thread Adam Meily
New submission from Adam Meily: ** This issue and attached patch only affect Windows ** Currently, the Popen constructor will duplicate any stdout, stdin, and/or stderr handle passed in and make them inheritable, by calling DuplicateHandle. If two threads call Popen at the same time, the

[issue24909] Windows: subprocess.Popen: race condition for leaking inheritable handles

2015-08-21 Thread Adam Meily
Adam Meily added the comment: Attached is a test Python script that you can run to see the race condition in action. There are two Python scripts: pipe.py and reader.py. - pipe.py: make two subprocess.Popen() calls from two different threads. - reader.py: (its content is in the bottom

[issue24909] Windows: subprocess.Popen: race condition for leaking inheritable handles

2015-08-21 Thread Adam Meily
Adam Meily added the comment: @r.david.murray: Yes I could make a test. @haypo: I did not know about the PROC_THREAD_ATTRIBUTE_HANDLE_LIST structure, thanks for the heads up. You pointed me in the right direction, and I see now that you've been following this, and similar, subproce

[issue24909] Windows: subprocess.Popen: race condition for leaking inheritable handles

2015-08-21 Thread Adam Meily
Adam Meily added the comment: Ok, I can re-implement the patch to meet what you all are looking for. I just want to double check that I'm on the same page: I'll get rid of the lock, because the fix should really be done in the call to CreateProcessW. I imagine that I'll be

[issue24829] Use interactive input even if stdout is redirected

2015-08-25 Thread Adam Bartoš
Adam Bartoš added the comment: I really don't know how stdio in console in Linux works. In my package https://github.com/Drekin/win-unicode-console I set custom sys.std* streams and a custom readline hook to support Unicode in Python run in Windows console. If I run `py` with my fixes en

[issue24829] Use interactive input even if stdout is redirected

2015-08-25 Thread Adam Bartoš
Adam Bartoš added the comment: R. David Murray: I understand that the behavior of programs differ if stdout is redirected. I just claim that at least in Windows, stdin and stdout are completely independent, so redirecting *stdout* shouldn't affect how data are read from *stdin*. I know

[issue24829] Use interactive input even if stdout is redirected

2015-08-25 Thread Adam Bartoš
Adam Bartoš added the comment: Behavior of which readline? GNU readline? Note that it is only one particular implmentation on one particular platform while Python should be as multiplatform as possible / viable. And what behavior it is? More precisely, what incorrect behavior in Linux would

[issue24829] Use interactive input even if stdout is redirected

2015-09-01 Thread Adam Bartoš
Adam Bartoš added the comment: How about reconsidering in the case that the machinery around PyOS_Readline is rewritten as I suggest in #17620 ? -- ___ Python tracker <http://bugs.python.org/issue24

[issue25050] windows installer does not allow 32 and 64 installs side by side

2015-09-10 Thread Adam Groszer
New submission from Adam Groszer: Installed with python-3.4.3.msi first, then wanted a 64bit side-by-side )of course in an other folder) Wanted to install python-3.4.3.amd64.msi, the first thing this one did is removed the 32bit install :-( -- components: Installation, Windows

[issue1602] windows console doesn't print or input Unicode

2015-11-09 Thread Adam Bartoš
Adam Bartoš added the comment: dead1ne: Hello, I'm maintaining a package that tries to solve this issue: https://github.com/Drekin/win-unicode-console . There are actually many related problems. -- ___ Python tracker <http://bugs.py

[issue12869] PyOS_StdioReadline is printing the prompt on stderr

2015-11-22 Thread Adam Bartoš
Adam Bartoš added the comment: > * The interactive interpreter always reads from the original standard input, > whether Readline is used or not. This is not true – the interactive interpreter reads via PyOS_Readline, which may call whatever readline hook is installed. I think the sit

[issue17620] Python interactive console doesn't use sys.stdin for input

2015-11-28 Thread Adam Bartoš
Adam Bartoš added the comment: I've formulated a proposal regarding this issue: https://mail.python.org/pipermail/python-dev/2015-November/142246.html . Does it make sense? -- ___ Python tracker <http://bugs.python.org/is

[issue25834] getpass falls back when sys.stdin is changed

2015-12-10 Thread Adam Bartoš
New submission from Adam Bartoš: There is a check in Lib/getpass.py:win_getpass that causes a fallback version to be used when `sys.stdin` is changed. I change `sys.stdin` in my `win_unicode_console` package, and in this situation there is no reason to use the fallback version (see https

[issue25915] file.write() after file.read() adds text to the end of the file

2015-12-20 Thread Adam Wasik
New submission from Adam Wasik: >>> file = open(r"C:\adam.txt","r+") >>> file.read() 'TEXT TEXT TEXT TEXT TEXT TEXT TEXT\nTEXT TEXT TEXT TEXT TEXT TEXT TEXT\nTEXT TE XT TEXT TEXT TEXT TEXT TEXT\nTEXT TEXT TEXT TEXT TEXT TEXT TEXT\nTEXT TEXT TEXT TEXT TE

[issue25915] file.write() after file.read() adds text to the end of the file

2015-12-20 Thread Adam Wasik
Adam Wasik added the comment: duplicate of the issue #12215 -- status: open -> closed ___ Python tracker <http://bugs.python.org/issue25915> ___ ___ Python-

[issue21998] asyncio: support fork

2015-12-22 Thread Adam Bishop
Adam Bishop added the comment: A note about this issue should really be added to the documentation - on OS X, it fails with the rather non-sensical "OSError: [Errno 9] Bad file descriptor", making this very hard to debug. I don't have any specific requirement for fork suppor

[issue26152] A non-breaking space in a source

2016-01-19 Thread Adam Bartoš
New submission from Adam Bartoš: Consider the following code: >>> 1, 2 File "", line 1 1, 2 ^ SyntaxError: invalid character in identifier The error is due to the fact, that the space before "2" is actually a non-breaking space. The error message and

[issue26152] A non-breaking space in a source

2016-01-20 Thread Adam Bartoš
Adam Bartoš added the comment: That explains the message. But why is the caret at a wrong place? -- ___ Python tracker <http://bugs.python.org/issue26152> ___ ___

[issue26152] A non-breaking space in a source

2016-01-20 Thread Adam Bartoš
Adam Bartoš added the comment: We have one particular invalid token, so why it should point to the next token rather than to the invalid one? -- ___ Python tracker <http://bugs.python.org/issue26

[issue26152] A non-breaking space in a source

2016-01-20 Thread Adam Bartoš
Adam Bartoš added the comment: It could still point to the first or the last byte of the invalid token rather than to the start of the next token. Also, by the Python implementation of the tokenizer in tokenize module we get an ERRORTOKEN containing a non-breaking space followed by a number

[issue28304] Condition.wait() doesn't raise KeyboardInterrupt

2016-09-28 Thread Adam Roberts
New submission from Adam Roberts: This was fixed for Python 3 in https://bugs.python.org/issue8844 but needs to be backported. -- components: Library (Lib) messages: 277639 nosy: Adam Roberts priority: normal severity: normal status: open title: Condition.wait() doesn't

[issue28333] input() with Unicode prompt produces mojibake on Windows

2016-10-01 Thread Adam Bartoš
New submission from Adam Bartoš: In my setting (Python 3.6b1 on Windows), trying to prompt a non-ASCII character via input() results in mojibake. This is related to the recent fix of #1602 and so is Windows-specific. >>> input("α") ╬▒ The result corresponds to prin

[issue28373] input() prints to original stdout even if sys.stdout is wrapped

2016-10-06 Thread Adam Bartoš
Adam Bartoš added the comment: A related issue is that the REPL doesn't use sys.stdin for input, see #17620. Another related issue is #28333. I think that the situation around stdio in Python is complicated an inflexible (by stdio I mean all the interactions between REPL, input(),

[issue18597] On Windows sys.stdin.readline() doesn't handle Ctrl-C properly

2016-10-06 Thread Adam Bartoš
Adam Bartoš added the comment: Maybe this was fixed with the recent fix of #1602. -- ___ Python tracker <http://bugs.python.org/issue18597> ___ ___ Python-bug

[issue28373] input() prints to original stdout even if sys.stdout is wrapped

2016-10-06 Thread Adam Bartoš
Adam Bartoš added the comment: Other related issues are #1927 and #24829. -- ___ Python tracker <http://bugs.python.org/issue28373> ___ ___ Python-bugs-list mailin

[issue18597] On Windows sys.stdin.readline() doesn't handle Ctrl-C properly

2016-10-06 Thread Adam Bartoš
Adam Bartoš added the comment: The main reason I have extended the support of win_unicode_console to Python 2.7 was that the related issues won't be fixed there, so using win_unicode_console may fix this as well. -- ___ Python tracker

[issue28373] input() prints to original stdout even if sys.stdout is wrapped

2016-10-10 Thread Adam Bartoš
Adam Bartoš added the comment: Does GNU readline do anything fancy about printing the prompt? Because you may want to use GNU readline for autocompletition while still enable colored output via wrapped stdout. Both at the same time with one call to input(). It seems that currently either you

[issue28734] argparse: successive parsing wipes out nargs=? values

2016-11-18 Thread Adam Stewart
New submission from Adam Stewart: I'm writing a wrapper that optionally accepts a file and reads more options from that file. The wrapper then needs to pass all of these options and the file to another program (qsub). Here is a minimal example to reproduce the behavior I'm seeing:

[issue28734] argparse: successive parsing wipes out nargs=? values

2016-11-18 Thread Adam Stewart
Adam Stewart added the comment: Works for me, thanks Wolfgang! -- resolution: -> not a bug status: open -> closed ___ Python tracker <http://bugs.python.org/i

[issue1777458] glob doesn't return unicode with unicode parameter

2007-08-26 Thread Grzegorz Adam Hankiewicz
Grzegorz Adam Hankiewicz added the comment: Previous bug report would be now http://bugs.python.org/issue1001604. -- type: -> behavior _ Tracker <[EMAIL PROTECTED]&

[issue1739648] zipfile.testzip() using progressive file reads

2007-08-26 Thread Grzegorz Adam Hankiewicz
Grzegorz Adam Hankiewicz added the comment: Any progress report on this issue, please? _ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/iss

[issue1760357] ZipFile.write fails with bad modification time

2007-08-26 Thread Grzegorz Adam Hankiewicz
Grzegorz Adam Hankiewicz added the comment: Any progress report on this issue, please? _ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/iss

[issue1154351] add get_current_dir_name() to os module

2018-10-28 Thread Marc Adam Anderson
Change by Marc Adam Anderson : -- nosy: -marcadam ___ Python tracker <https://bugs.python.org/issue1154351> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue12556] Disable size checks in mmap.mmap()

2012-07-27 Thread Ricky Ng-Adam
Ricky Ng-Adam added the comment: I find this resolution to rejected somewhat questionable. It has been pointed that the mmap behavior in Python differs from the behavior of the underlying mmap as defined by the system documentation. I think the incorrect assumption here is that mmap is used

[issue15858] tarfile missing entries due to omitted uid/gid fields

2014-07-25 Thread Adam Tauno Williams
Adam Tauno Williams added the comment: test fails for me with provided bad.tar [as described in comment] but test passed after applying patch to tarfile. -- nosy: +whitemice ___ Python tracker <http://bugs.python.org/issue15

[issue12319] [http.client] HTTPConnection.putrequest not support "chunked" Transfer-Encodings to send data

2014-07-25 Thread Adam Tauno Williams
Changes by Adam Tauno Williams : -- nosy: +whitemice ___ Python tracker <http://bugs.python.org/issue12319> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue7107] Missing uninstallation instructions for mac

2009-10-11 Thread Grzegorz Adam Hankiewicz
New submission from Grzegorz Adam Hankiewicz : I've installed the official 2.6.3 dmg file of python and now want to uninstall it to revert to the python version included by default by the OS. I would do so if I knew what I have to remove or change. -- components: Installation mes

[issue5993] python produces zombie in webbrowser.open

2013-03-19 Thread Marc Adam Anderson
Marc Adam Anderson added the comment: Unable to reproduce this bug on Mac OS X 10.8.3 (12D78) using Python 3.4.0a0 and the following browsers: - Google Chrome 25.0.1364.172 - Firefox 13.0.1 - Safari 6.0.3 (8536.28.10) -- nosy: +marcadam ___ Python

[issue8862] curses.wrapper does not restore terminal if curses.getkey() gets KeyboardInterrupt

2013-03-19 Thread Marc Adam Anderson
Marc Adam Anderson added the comment: Tested patch using Python 3.4.0a0 on Mac OS X 10.8.3 (12D78). Patch appears to fix the bug. -- nosy: +marcadam ___ Python tracker <http://bugs.python.org/issue8

[issue1154351] add get_current_dir_name() to os module

2013-03-20 Thread Marc Adam Anderson
Marc Adam Anderson added the comment: This enhancement has been implemented. The code is based on hoffman's code. Tests for this enhancement, as well as tests for os.getcwd() have also been added. The docs have been updated and tested locally. -- keywords: +patch nosy: +marcadam

<    2   3   4   5   6   7