[issue45984] Error messages for invalid string prefixes and potential attribute accesses

2021-12-05 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:

Check my multiple comments in PR29916

--

___
Python tracker 

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



[issue45984] Error messages for invalid string prefixes and potential attribute accesses

2021-12-05 Thread theeshallnotknowethme


theeshallnotknowethme  added the comment:

Can I know the reason for rejection?

--

___
Python tracker 

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



[issue45984] Error messages for invalid string prefixes and potential attribute accesses

2021-12-04 Thread theeshallnotknowethme


Change by theeshallnotknowethme :


--
resolution:  -> rejected

___
Python tracker 

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



[issue45984] Error messages for invalid string prefixes and potential attribute accesses

2021-12-04 Thread theeshallnotknowethme


Change by theeshallnotknowethme :


--
resolution: rejected -> 

___
Python tracker 

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



[issue45984] Error messages for invalid string prefixes and potential attribute accesses

2021-12-04 Thread theeshallnotknowethme


theeshallnotknowethme  added the comment:

I actually didn't know bpo-45982 existed.

--

___
Python tracker 

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



[issue45984] Error messages for invalid string prefixes and potential attribute accesses

2021-12-04 Thread Eric V. Smith

Eric V. Smith  added the comment:

Since the two reported problems are unrelated, this should be two bug reports. 
The first one does seem like a duplicate, as Pablo mentions. I haven’t checked 
to see if the second one already has an issue.

--
nosy: +eric.smith

___
Python tracker 

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



[issue45984] Error messages for invalid string prefixes and potential attribute accesses

2021-12-04 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:

Actually, is not technically a duplicate of https://bugs.python.org/issue45982 
but is related.

--
resolution: duplicate -> rejected

___
Python tracker 

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



[issue45984] Error messages for invalid string prefixes and potential attribute accesses

2021-12-04 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:

Duplicate of https://bugs.python.org/issue45982

--
resolution:  -> duplicate
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

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



[issue45984] Error messages for invalid string prefixes and potential attribute accesses

2021-12-04 Thread theeshallnotknowethme


Change by theeshallnotknowethme :


--
keywords: +patch
pull_requests: +28142
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/29916

___
Python tracker 

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



[issue45984] Error messages for invalid string prefixes and potential attribute accesses

2021-12-04 Thread theeshallnotknowethme


New submission from theeshallnotknowethme :

In the current version of CPython, this code:

if datetime.now()strftime(...) != "19:50:00": return

produces this error:

  File "", line 4
if datetime.now()strftime(...) != "19:50:00": return
 
SyntaxError: invalid syntax

This is a potential attribute access, and this bug report proposes it would 
produce this error instead:

  File "", line 4
if datetime.now()strftime(...) != "19:50:00": return
   ^^
SyntaxError: invalid syntax. Perhaps you forgot a dot?

Also, for string prefixes, this is the current error:

>>> kf'dsdsfddsf'
  File "", line 1
kf'dsdsfddsf'
  ^^^
SyntaxError: invalid syntax

This bug report proposes this error instead:

>>> kf'dsdsfddsf'
  File "", line 1
kf'dsdsfddsf'
^^
SyntaxError: invalid string prefix 'kf'

--
components: Parser
messages: 407687
nosy: February291948, lys.nikolaou, pablogsal
priority: normal
severity: normal
status: open
title: Error messages for invalid string prefixes and potential attribute 
accesses
versions: Python 3.11

___
Python tracker 

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