Re: Interpretation

2016-03-26 Thread Mark Lawrence
On 25/03/2016 16:33, Dennis Ngeno wrote: My programs have never combile, they keep telling me , systax error even after copy pasting Please show us your code and the exact syntax error. What Python version and OS are you using? -- My fellow Pythonistas, ask not what our language can do

Re: How to make Python interpreter a little more strict?

2016-03-26 Thread Nick Sarbicki
On Sat, Mar 26, 2016 at 9:59 AM Aleksander Alekseev wrote: > Hello > > Recently I spend half an hour looking for a bug in code like this: > > eax@fujitsu:~/temp$ cat ./t.py > #!/usr/bin/env python3 > > for x in range(0,5): > if x % 2 == 0: > next >

PLEASE HELP -- TOTALLY NEW TO PYTHON

2016-03-26 Thread Juan Dent
I am trying to run ‘python cppdep.py’ but get the following: analyzing dependencies among all components ... Traceback (most recent call last): File "cppdep.py", line 675, in main() File "cppdep.py", line

Re: Suggestion: make sequence and map interfaces more similar

2016-03-26 Thread Marco Sulla
Peter Otten wrote: >> I noticed that the sequence types does not have these methods that the map >> types has: get(), items(), keys(), values(). >> It could seem useless to have them for sequences, but I think it will ease >> the creation of functions and methods that allow you to input a

I need help

2016-03-26 Thread matthew thiel
So I downloaded python and made an account but when I run it all it does is give me 3 options repair modify and uninstall I have clicked repair and modify and let them run but at the end it just exit out so how do I get it to work??? Sent from

Re: Suggestion: make sequence and map interfaces more similar

2016-03-26 Thread Marco Sulla
> That's a very superficial similarity: a list ['a', 'b', 'x', 'y'] is > something like a mapping {0: 'a', 1: 'b', 2: 'x', 3: 'y'}. Seems logical, > since in both cases we write collection[2] and get 'x' back. > > But think about it a bit more, and you will see that the behaviour is in > fact

How to make Python interpreter a little more strict?

2016-03-26 Thread Aleksander Alekseev
Hello Recently I spend half an hour looking for a bug in code like this: eax@fujitsu:~/temp$ cat ./t.py #!/usr/bin/env python3 for x in range(0,5): if x % 2 == 0: next print(str(x)) eax@fujitsu:~/temp$ ./t.py 0 1 2 3 4 Is it possible to make python complain in this case? Or

Interpretation

2016-03-26 Thread Dennis Ngeno
My programs have never combile, they keep telling me , systax error even after copy pasting -- https://mail.python.org/mailman/listinfo/python-list

[issue11245] Implementation of IMAP IDLE in imaplib?

2016-03-26 Thread Rob la Lau
Changes by Rob la Lau : -- nosy: +ohreally ___ Python tracker ___ ___

[ANN] Python compilers workshop at SciPy this year

2016-03-26 Thread Nathaniel Smith
Hi all, I wanted to announce a workshop I'm organizing at SciPy this year: What: A two-day workshop bringing together folks working on JIT/AOT compilation in Python. When/where: July 11-12, in Austin, Texas. (This is co-located with SciPy 2016, overlapping with the tutorial sessions, just

[issue26643] regrtest: rework libregrtest.save_env submodule

2016-03-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > I replaced get_sys_path()/restore_sys_path() (2 methods) with > ModuleAttr.get()+ModuleAttrList.encode_value() / > ModuleAttr.restore()+ModuleAttrList.restore_attr() (4 methods). I need to examine all other methods scattered around just to conclude that

[issue25987] collections.abc.Reversible

2016-03-26 Thread Ivan Levkivskyi
Changes by Ivan Levkivskyi : -- nosy: +levkivskyi ___ Python tracker ___ ___

Re: Undefined behaviour in C [was Re: The Cost of Dynamism]

2016-03-26 Thread Marko Rauhamaa
Steven D'Aprano : > On Sat, 26 Mar 2016 03:57 am, Marko Rauhamaa wrote: >> Yes, although the same could be true for Python as well. > > Is this a philosophical question? Yes, it *could* be true, in some > alternate universe, but it isn't actually true. > > Python does not

[issue26644] SSLSocket.recv(-1) triggers SystemError

2016-03-26 Thread Martin Panter
Martin Panter added the comment: Proposed patch -- keywords: +patch stage: -> patch review Added file: http://bugs.python.org/file42295/ssl-negative.patch ___ Python tracker

[issue26644] SSLSocket.recv(-1) triggers SystemError

2016-03-26 Thread Martin Panter
New submission from Martin Panter: SystemError indicates an internal error that is not supposed to be triggerable from Python code. We should probably raise ValueError like plain sockets instead. >>> s = create_connection(("python.org", 443)) >>> s.recv(-1) Traceback (most recent call last):

[issue19829] _pyio.BufferedReader and _pyio.TextIOWrapper destructor don't emit ResourceWarning if the file is not closed

2016-03-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > Serhiy: why did you add 2.7 to this bug? For 2.7, I don’t think anything > should be done. There is no ResourceWarning in 2.7. Just for the case. Not calling close() in __del__() is one option, and it looks attractive. But there are possible hidden

[issue20021] "modernize" makeopcodetargets.py

2016-03-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you Victor. -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___

[issue25911] Regression: os.walk now using os.scandir() breaks bytes filenames on windows

2016-03-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Some tests were failed on Windows 8 even in 3.4 (issue23808). -- ___ Python tracker ___

<    1   2