[issue38568] [3.7.5 x86_64 Linux] f-string parsing results in EOL

2019-10-23 Thread Ying Wang


Ying Wang  added the comment:

Oh cool, I didn't know triple quotes can be used as part of f-strings! Thanks 
for the explanation!

--

___
Python tracker 
<https://bugs.python.org/issue38568>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38568] [3.7.5 x86_64 Linux] f-string parsing results in EOL

2019-10-23 Thread Ying Wang


New submission from Ying Wang :

Hey,

I encountered an interesting bug when trying to do string parsing using 
f-strings. I am currently under the impression that within the curly braces is 
any expression that can be successfully evaluated in a REPL. Here's the error:

```bash
yingw787@yingw787-Oryx-Pro:~/src/gpudb-dev-v6.2.0/kio/kio/tests/regression/_data/csv$
 python
Python 3.7.5 (default, Oct 15 2019, 21:38:37) 
[GCC 5.4.0 20160609] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> blah = '"hi"'
>>> blah
'"hi"'
>>> f'{blah.strip('"')}'
  File "", line 1
f'{blah.strip('"')}'
   ^
SyntaxError: EOL while scanning string literal
>>> '{0}'.format(blah.strip('"'))
'hi'
>>> 
```

I can use '.format()' for now, but it might be nice to align f-string expr 
behavior w/ .format(). Please let me know if you need more reproduction steps, 
or if you need a helping hand :)

Thanks
Ying

--
components: Interpreter Core
messages: 355254
nosy: yingw787
priority: normal
severity: normal
status: open
title: [3.7.5 x86_64 Linux] f-string parsing results in EOL
type: behavior
versions: Python 3.7

___
Python tracker 
<https://bugs.python.org/issue38568>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue36850] shutil.copy2 fails with even with source network filesystem not supporting extended attributes

2019-05-16 Thread Ying Wang


Change by Ying Wang :


--
pull_requests: +13280

___
Python tracker 
<https://bugs.python.org/issue36850>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue24564] shutil.copytree fails when copying NFS to NFS

2019-05-16 Thread Ying Wang


Change by Ying Wang :


--
keywords: +patch
pull_requests: +13279

___
Python tracker 
<https://bugs.python.org/issue24564>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue36620] Documentation missing parameter for Itertools.zip_longest

2019-05-08 Thread Ying Wang


Ying Wang  added the comment:

@rhettinger should this issue be closed if no action is to be taken? If so, 
should I manually close the pull request referencing this issue, or will that 
be automatically handled by the Python bug tracker?

--

___
Python tracker 
<https://bugs.python.org/issue36620>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue36620] Documentation missing parameter for Itertools.zip_longest

2019-05-08 Thread Ying Wang


Ying Wang  added the comment:

I would like to take a stab at this as a first-time CPython contributor.

--
nosy: +Ying Wang

___
Python tracker 
<https://bugs.python.org/issue36620>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com