[issue31906] String literals next to each other does not cause error
Change by Sam Lobel <slo...@lexile.com>: -- type: -> behavior ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue31906> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue31906] String literals next to each other does not cause error
New submission from Sam Lobel <slo...@lexile.com>: This seems too obvious to have been missed, but also too strange behaviour to be on purpose. The following works for some reason (note there's no + between the words) >>> variable = "first" "second" >>> print(variable) "firstsecond" In a file, if you're missing a comma between two string literals, it combines them into one string (instead of throwing a syntax error). E.G: >>> a = ["first", ... "second" ... "third"] >>> print(a) ["first" "secondthird"] BUT, the same thing with variables (thankfully) does not work. >>> a = "first" >>> b = "second" >>> c = a b Throws a syntax error. The same sort of thing also breaks for integers. >>> a = 4 7 throws a syntax error. This just seems wrong to me. Is it? Has this been discussed a million times before? -- messages: 305252 nosy: Sam Lobel2 priority: normal severity: normal status: open title: String literals next to each other does not cause error versions: Python 2.7, Python 3.4, Python 3.5, Python 3.6 ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue31906> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue25931] os.fork() command distributed in windows Python27 (in SocketServer module)
New submission from Sam Lobel: I ran into this bug while using multiprocessing in Flask, which deep down uses the SocketServer.py module. There's a call to os.fork() in the windows version , which obviously doesn't work. So SocketServer.py can't be used on windows. Maybe replace it with something from the multiprocessing module? -- components: Windows messages: 256896 nosy: Sam Lobel, paul.moore, steve.dower, tim.golden, zach.ware priority: normal severity: normal status: open title: os.fork() command distributed in windows Python27 (in SocketServer module) type: behavior versions: Python 2.7 ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue25931> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com