Re: New Python student needs help with execution

2015-06-11 Thread Laura Creighton
In a message of Wed, 10 Jun 2015 21:50:54 -0700, c me writes: I installed 2.7.9 on a Win8.1 machine. The Coursera instructor did a simple install then executed Python from a file in which he'd put a simple hello world script. My similar documents folder cannot see the python executable. How

PYTHON QUESTION

2015-06-11 Thread adebayo . abraham
Help with this problem! Temperature converter Description Write two functions that will convert temperatures back and forth from the Celsius and Fahrenheit temperature scales. The formulas for making the conversion are as follows: Tc=(5/9)*(Tf-32) Tf=(9/5)*Tc+32 where Tc is the Celsius

[issue24429] msvcrt error when embedded

2015-06-11 Thread erik flister
New submission from erik flister: normally, CDLL(find_library('c')) is fine. but when running embedded in a context that uses a different runtime version, this will cause an error (example:

Re: I don't like the OO part of python. In particular the self keyword everywhere.

2015-06-11 Thread Chris Angelico
On Thu, Jun 11, 2015 at 9:27 PM, Skybuck Flying skybuck2...@hotmail.com wrote: If I wanted to access a global variable I would use the existing global thing global SomeField... maybe if I wanted to use a local variable for routine: local SomeField... seems nicer... then having to use

Re: enhancement request: make py3 read/write py2 pickle format

2015-06-11 Thread Serhiy Storchaka
On 11.06.15 02:58, Chris Angelico wrote: On Thu, Jun 11, 2015 at 8:10 AM, Devin Jeanpierre jeanpierr...@gmail.com wrote: The problem is that there are two different ways repr might write out a dict equal to {'a': 1, 'b': 2}. This can make tests brittle -- e.g. it's why doctest fails badly at

Re: Parser needed.

2015-06-11 Thread Skybuck Flying
Well it did help a little bit. Somebody asked if there was already a parser for it. I answered yes in C#. So I took a closer look at it... and learned something from it. Maybe I would have done that anyway... or maybe not... Now we will never know... but I am happy that the parser is now ok,

Re: A basic dictionary question

2015-06-11 Thread Peter Otten
David Aldrich wrote: Hi I am fairly new to Python. I am writing some code that uses a dictionary to store definitions of hardware registers. Here is a small part of it: import sys register = { 'address' : 0x3001c, 'fields' : { 'FieldA' : { 'range' :

Re: A basic dictionary question

2015-06-11 Thread MRAB
On 2015-06-11 11:10, David Aldrich wrote: Hi I am fairly new to Python. I am writing some code that uses a dictionary to store definitions of hardware registers. Here is a small part of it: import sys register = { 'address' : 0x3001c, 'fields' : { 'FieldA' : {

[issue12833] raw_input misbehaves when readline is imported

2015-06-11 Thread Martin Panter
Martin Panter added the comment: Actually, there should either be a space before the double-colons, or the full stops should be removed. So either of these options: . . . when a backspace is typed. :: . . . when a backspace is typed:: -- ___ Python

Re: PYTHON QUESTION

2015-06-11 Thread David Palao
2015-06-11 12:44 GMT+02:00 adebayo.abra...@gmail.com: Help with this problem! Temperature converter Description Write two functions that will convert temperatures back and forth from the Celsius and Fahrenheit temperature scales. The formulas for making the conversion are as follows:

Re: I don't like the OO part of python. In particular the self keyword everywhere.

2015-06-11 Thread Skybuck Flying
Another typo corrected... see (*) Skybuck Flying wrote in message news:2c87e$55796f2c$5419aafe$47...@news.ziggo.nl... Little typo corrected... it's a common typo I seem to make. with had to be without see ***. Skybuck Flying wrote in message news:... Hello, I don't like the object

Re: I don't like the OO part of python. In particular the self keyword everywhere.

2015-06-11 Thread Skybuck Flying
Little typo corrected... it's a common typo I seem to make. with had to be without see ***. Skybuck Flying wrote in message news:... Hello, I don't like the object orientated part of Python. The idea/prospect of having to write self everywhere... seems very horrorific and a huge time

Re: I don't like the OO part of python. In particular the self keyword everywhere.

2015-06-11 Thread Chris Angelico
On Thu, Jun 11, 2015 at 9:27 PM, Skybuck Flying skybuck2...@hotmail.com wrote: If I wanted to access a global variable I would use the existing global thing global SomeField... maybe if I wanted to use a local variable for routine: local SomeField... seems nicer... then having to use

A basic dictionary question

2015-06-11 Thread David Aldrich
Hi I am fairly new to Python. I am writing some code that uses a dictionary to store definitions of hardware registers. Here is a small part of it: import sys register = { 'address' : 0x3001c, 'fields' : { 'FieldA' : { 'range' : (31,20), },

I don't like the OO part of python. In particular the self keyword everywhere.

2015-06-11 Thread Skybuck Flying
Hello, I don't like the object orientated part of Python. The idea/prospect of having to write self everywhere... seems very horrorific and a huge time waster. (Perhaps the module thing of python might help in future not sure about that). What are your thoughts on the self

Re: enhancement request: make py3 read/write py2 pickle format

2015-06-11 Thread Steven D'Aprano
On Thursday 11 June 2015 15:39, Devin Jeanpierre wrote: But I'm not talking about re-inventing what already exists. If I want JSON, I'll use JSON, not spend weeks or months re-writing it from scratch. I can't do this: class MyClass: pass a = MyClass() serialised = repr(a) b =

[issue672115] Assignment to __bases__ of direct object subclasses

2015-06-11 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- type: behavior - enhancement versions: +Python 3.6 -Python 3.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue672115 ___

Re: I don't like the OO part of python. In particular the self keyword everywhere.

2015-06-11 Thread Skybuck Flying
Then again... I also believe the highest goal for a programming language is natural spoken language. If self.somefield equals 10 then... Does have some understandable ring to it. However... time constraints also have to be kept in mind. In another words if the code looks like begin of

[issue15745] Numerous utime ns tests fail on FreeBSD w/ ZFS (update: and NetBSD w/ FFS, Solaris w/ UFS)

2015-06-11 Thread koobs
koobs added the comment: Additionally on koobs-freebsd9, in my home directory (which is on ZFS) The buildbot home directories are on UFS -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15745

[issue15745] Numerous utime ns tests fail on FreeBSD w/ ZFS (update: and NetBSD w/ FFS, Solaris w/ UFS)

2015-06-11 Thread koobs
koobs added the comment: Larry: The same two hosts that the FreeBSD Python buildslaves run on :) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15745 ___

[issue24431] StreamWriter.drain is not callable concurrently

2015-06-11 Thread Martin Teichmann
New submission from Martin Teichmann: Currently there is an assert statement asserting that no two tasks (asyncio tasks, that is) can use StreamWriter.drain at the same time. This is a weird limitiation, if there are two tasks writing to the same network socket, there is no reason why not both

Re: New Python student needs help with execution

2015-06-11 Thread Chris Warrick
On Thu, Jun 11, 2015 at 10:52 AM, Laura Creighton l...@openend.se wrote: In a message of Wed, 10 Jun 2015 21:50:54 -0700, c me writes: I installed 2.7.9 on a Win8.1 machine. The Coursera instructor did a simple install then executed Python from a file in which he'd put a simple hello world

Re: I don't like the OO part of python. In particular the self keyword everywhere.

2015-06-11 Thread Michael Torrie
On 06/11/2015 05:19 AM, Skybuck Flying wrote: I haven't written much OO code yet in Python... and don't plan on doing it too... Except that you already have written OO code in Python with your parser. Or at least code that interacts heavily with OO. Anytime you call a method on a string like

[issue15745] Numerous utime ns tests fail on FreeBSD w/ ZFS (update: and NetBSD w/ FFS, Solaris w/ UFS)

2015-06-11 Thread R. David Murray
R. David Murray added the comment: Note that the shorter patch means that the test is not actually testing what the comments say it is testing, so either the comments should admit we are checking that the result is something close to what we set, or the longer fix should be used so as to

[issue24432] Upgrade windows builds to use OpenSSL 1.0.2b

2015-06-11 Thread Alex Gaynor
New submission from Alex Gaynor: https://www.openssl.org/news/secadv_20150611.txt -- components: Library (Lib) keywords: security_issue messages: 245173 nosy: alex, christian.heimes, dstufft, giampaolo.rodola, janssen, paul.moore, pitrou, steve.dower, tim.golden, zach.ware priority:

[issue24429] msvcrt error when embedded

2015-06-11 Thread Steve Dower
Steve Dower added the comment: msvcrt isn't the right version, it just happens to load. It's actually an old, basically unsupported version. The problem would seem to be that Python 2.7 does not activate its activation context before loading msvcrt90 via ctypes. Eryksun (nosied - hope you're

[issue24433] There is no asyncio.ensure_future in Python 3.4.3

2015-06-11 Thread Олег Иванов
New submission from Олег Иванов: Docs claims there there is asyncio.ensure_future https://docs.python.org/3/library/asyncio-task.html?highlight=ensure_future#asyncio.ensure_future but example from docs does'nt work: import asyncio loop = asyncio.get_event_loop() tasks = [

[issue24433] There is no asyncio.ensure_future in Python 3.4.3

2015-06-11 Thread Zachary Ware
Zachary Ware added the comment: The docs also say New in version 3.4.4 :) -- nosy: +zach.ware resolution: - not a bug stage: - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24433

[issue24432] Upgrade windows builds to use OpenSSL 1.0.2b

2015-06-11 Thread Ned Deily
Ned Deily added the comment: Marking as release blocker for 3.5.0 -- nosy: +benjamin.peterson, larry, ned.deily priority: normal - release blocker stage: - needs patch versions: +Python 2.7, Python 3.4, Python 3.5, Python 3.6 ___ Python tracker

[issue24400] Awaitable ABC incompatible with functools.singledispatch

2015-06-11 Thread Guido van Rossum
Guido van Rossum added the comment: FYI I am on vacation and don't have the bandwidth to look into this, so I hope you will all work together to find a solution without my help. -- ___ Python tracker rep...@bugs.python.org

[issue24434] ItemsView.__contains__ does not mimic dict_items

2015-06-11 Thread Caleb Levy
Changes by Caleb Levy caleb.l...@berkeley.edu: -- components: Library (Lib) nosy: clevy, rhettinger, stutzbach priority: normal severity: normal status: open title: ItemsView.__contains__ does not mimic dict_items type: behavior versions: Python 2.7, Python 3.2, Python 3.3, Python 3.4,

[issue24435] Grammar/Grammar points to outdated guide

2015-06-11 Thread Chris Angelico
New submission from Chris Angelico: Grammar/Grammar points to PEP 306, which points instead to the dev guide. The exact link is not provided, but it'd be useful to skip the PEP altogether and just link to https://docs.python.org/devguide/grammar.html in the file. -- messages: 245180

[issue22483] Copyright infringement on PyPI

2015-06-11 Thread Andrew
Andrew added the comment: So, I think I need to explain the situation. At first, changes in package was made by me, but package was intended for use in internal pypi (in scope of company). I don't know how it appeared here. Why did I do that? Original package was not installable via pip at

[issue24434] ItemsView.__contains__ does not mimic dict_items

2015-06-11 Thread Caleb Levy
New submission from Caleb Levy: The current implementation ItemsView.__contains__ reads class ItemsView(MappingView, Set): ... def __contains__(self, item): key, value = item try: v = self._mapping[key] except KeyError: return False

[issue23830] Add AF_IUCV support to sockets

2015-06-11 Thread Neale Ferguson
Neale Ferguson added the comment: Updated patch against head (96580:3156dd82df2d). Built on s390x and x86_64. Test suite ran on both - tests successfully ignored on x86_64 and passed on s390x. -- versions: +Python 3.6 -Python 3.5 Added file:

Re: I don't like the OO part of python. In particular the self keyword everywhere.

2015-06-11 Thread MRAB
On 2015-06-11 12:27, Skybuck Flying wrote: Then again... I also believe the highest goal for a programming language is natural spoken language. Natural language is full of ambiguities. If self.somefield equals 10 then... Does have some understandable ring to it. However... time

[issue15745] Numerous utime ns tests fail on FreeBSD w/ ZFS (update: and NetBSD w/ FFS, Solaris w/ UFS)

2015-06-11 Thread koobs
koobs added the comment: I have tested both patches (test_os by trent) and almostequaltime by harrison on the default branch, and *both* result in test_os passing. They also resolve the test_utime failure reported in bug 24175 and very likely 16287 (born from this issue) -- versions:

Writting Dialog to enter preset items from a combo list

2015-06-11 Thread mewthree19
ok that subject is complex I known I am fairly new to python programming and I am using python 3.4.3 and the gui editor/creator boa Constructor and and another one what I can't think of as I type this will add later on as am typing this of public system and not the computer I do most of my

Re: I just need this question explained.

2015-06-11 Thread MRAB
On 2015-06-11 13:03, Adebayo Abraham wrote: I am not requesting for a solution. I just need the question explained. I am a beginner python developer and i do not know where to start from to solve this problem. So anybody, somebody: please explain this question. Am i to create a testcase or

Re: Parser needed.

2015-06-11 Thread Larry Martell
On Thu, Jun 11, 2015 at 8:35 AM, Joel Goldstick joel.goldst...@gmail.com wrote: but you aren't asking questions. You are having a conversation with yourself on a public q/a list. Its unpleasant Well, he did mention masterbation in another post. --

[issue15745] Numerous utime ns tests fail on FreeBSD w/ ZFS (update: and NetBSD w/ FFS, Solaris w/ UFS)

2015-06-11 Thread koobs
koobs added the comment: Hmm, that was supposed to be: issue 24175 and very likely issue 16287 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15745 ___

[issue24430] ZipFile.read() cannot decrypt multiple members from Windows 7zFM

2015-06-11 Thread era
era added the comment: The call to .setpassword() doesn't seem to make any difference. I was hoping it would offer a workaround, but it didn't. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24430

I just need this question explained.

2015-06-11 Thread Adebayo Abraham
I am not requesting for a solution. I just need the question explained. I am a beginner python developer and i do not know where to start from to solve this problem. So anybody, somebody: please explain this question. Am i to create a testcase or create the code to display a value? Challenge:

Re: Parser needed.

2015-06-11 Thread Joel Goldstick
On Thu, Jun 11, 2015 at 7:15 AM, Skybuck Flying skybuck2...@hotmail.com wrote: Well it did help a little bit. Somebody asked if there was already a parser for it. I answered yes in C#. So I took a closer look at it... and learned something from it. Maybe I would have done that anyway...

[issue24430] ZipFile.read() cannot decrypt multiple members from Windows 7zfm

2015-06-11 Thread era
New submission from era: The attached archive from the Windows version of the 7z file manager (7zFM version 9.20) cannot be decrypted into memory. The first file succeeds, but the second one fails. The following small program is able to unzip other encrypted zip archives (tried one created

Re: I just need this question explained.

2015-06-11 Thread David Palao
2015-06-11 14:03 GMT+02:00 Adebayo Abraham adebayo.abra...@gmail.com: I am not requesting for a solution. I just need the question explained. I am a beginner python developer and i do not know where to start from to solve this problem. So anybody, somebody: please explain this question. Am i

[issue24430] ZipFile.read() cannot decrypt multiple members from Windows 7zFM

2015-06-11 Thread era
Changes by era era+pyt...@iki.fi: -- components: +Library (Lib) title: ZipFile.read() cannot decrypt multiple members from Windows 7zfm - ZipFile.read() cannot decrypt multiple members from Windows 7zFM type: - behavior ___ Python tracker

[issue24330] Idle doc: explain Configure Idle not in Options on OSX, etc.

2015-06-11 Thread André Freitas
André Freitas added the comment: I have added the explanation in the Docs and IDLE help file. Found also that IDLE help.txt is out of sync with the Docs and needs to be fixed. I will open a new Issue. -- keywords: +patch nosy: +André Freitas Added file:

[issue24429] msvcrt error when embedded

2015-06-11 Thread Steve Dower
Steve Dower added the comment: Python needs to be recompiled to use a different CRT, and that will break all existing extension modules (.pyd's). That said, in some situations it is the right answer, typically because existing extension modules would be broken anyway, but I don't think that

[issue24429] msvcrt error when embedded

2015-06-11 Thread erik flister
erik flister added the comment: it would be better for MATLAB to embed the manifest in their host executable if they're going to load the DLL directly. can you help me understand? as far as i could tell, we need python to use the msvcr*.dll that comes with matlab, not v/v. it's hard (as a

[issue24436] _PyTraceback_Add has no const qualifier for its char * arguments

2015-06-11 Thread Michael Ensslin
New submission from Michael Ensslin: The prototype for the public API function _PyTraceback_Add is declared _PyTraceback_Add(char *, char *, int); Internally, its char * arguments are passed verbatim to PyCode_NewEmpty, which takes const char * arguments. The missing 'const' qualifier for

[issue24436] _PyTraceback_Add has no const qualifier for its char * arguments

2015-06-11 Thread Michael Ensslin
Changes by Michael Ensslin michael.enss...@googlemail.com: -- type: - enhancement ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24436 ___ ___

Re: How to pretty mathematical formulas in Python? Similar to Mathematica formats.

2015-06-11 Thread TheSeeker
On Thursday, June 11, 2015 at 1:33:12 PM UTC-5, Sebastian M Cheung wrote: How to pretty mathematical formulas in Python? Similar to Mathematica formats. Are there good packages to prettify mathematica formulas in Python? Sympy (http://www.sympy.org/en/index.html) has some capabilities to

[issue24437] Add information about the buildbot console view and irc notices to devguide

2015-06-11 Thread R. David Murray
New submission from R. David Murray: Here is a proposed addition to the devguide talking about the buildbot console interface (which I find far more useful than the waterfall view), and mentioning the notifications posted to #python-dev (which is a good way to find out if you broke the

[issue24429] msvcrt error when embedded

2015-06-11 Thread erik flister
erik flister added the comment: thanks - i still don't understand tho. if python would have to be recompiled to use a different crt, why wouldn't matlab? if a manifest could fix matlab, why couldn't one fix python? i ran into all this trying to get shapely to load in matlab, and using

XCode and Python

2015-06-11 Thread Sebastian M Cheung via Python-list
For some reason I cannot build now in XCode: $ xcodebuild -find python /Users/sebc/anaconda/bin/python $python Python 2.7.10 |Anaconda 2.2.0 (x86_64)| (default, May 28 2015, 17:04:42) [GCC 4.2.1 (Apple Inc. build 5577)] on darwin Type help, copyright, credits or license for more information.

[issue24429] msvcrt error when embedded

2015-06-11 Thread Steve Dower
Steve Dower added the comment: python.exe already has the manifest it needs, but it can't be embedded into python27.dll - it has to go into the exe file. That's why Python can't make it so that msvcr90.dll is loaded. Depending on what you're using it for, the C Runtime may keep some state in

[issue15745] Numerous utime ns tests fail on FreeBSD w/ ZFS (update: and NetBSD w/ FFS, Solaris w/ UFS)

2015-06-11 Thread STINNER Victor
STINNER Victor added the comment: The resolution of os.utime()+os.stat() depends on two things: - resolution of the timestamp on the filesystem used to run test_os (where TESTFN is written) - resolution of the C internal function used by os.utime() os.utime() can have a resolution of 1 ns

[issue24429] msvcrt error when embedded

2015-06-11 Thread Steve Dower
Steve Dower added the comment: Ah, it can go into the DLL, and it's already there. The problem may be that there is conflicting information about which resource ID - https://msdn.microsoft.com/en-us/library/aa374224(v=vs.90).aspx says it should be 1 while your link says 2. python27.dll has

Re: XCode and Python

2015-06-11 Thread Sebastian M Cheung via Python-list
On Thursday, June 11, 2015 at 11:07:59 PM UTC+1, Sebastian M Cheung wrote: For some reason I cannot build now in XCode: $ xcodebuild -find python /Users/sebc/anaconda/bin/python $python Python 2.7.10 |Anaconda 2.2.0 (x86_64)| (default, May 28 2015, 17:04:42) [GCC 4.2.1 (Apple Inc. build

[issue24429] msvcrt error when embedded

2015-06-11 Thread erik flister
erik flister added the comment: if it can't go into your .dll, what are libraries like shapely supposed to do? tell their users to do all this manifest stuff if they're running embedded? -- ___ Python tracker rep...@bugs.python.org

[issue24429] msvcrt error when embedded

2015-06-11 Thread erik flister
erik flister added the comment: relevant: http://stackoverflow.com/questions/30771380/how-use-ctypes-with-msvc-dll-from-within-matlab-on-windows/#comment49619037_30771380 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24429

[issue24436] _PyTraceback_Add has no const qualifier for its char * arguments

2015-06-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: LGTM. -- nosy: +Mark.Shannon, pitrou, serhiy.storchaka stage: - commit review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24436 ___

Re: How to pretty mathematical formulas in Python? Similar to Mathematica formats.

2015-06-11 Thread Sebastian M Cheung via Python-list
On Thursday, June 11, 2015 at 7:33:12 PM UTC+1, Sebastian M Cheung wrote: How to pretty mathematical formulas in Python? Similar to Mathematica formats. Are there good packages to prettify mathematica formulas in Python? Thanks Pythonistas --

[issue24429] msvcrt error when embedded

2015-06-11 Thread erik flister
erik flister added the comment: am i reading this wrong, that you can put the manifest into the .dll? https://msdn.microsoft.com/en-us/library/ms235560(v=vs.90).aspx -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24429

Re: XCode and Python

2015-06-11 Thread C.D. Reimer
On 6/11/2015 3:09 PM, Sebastian M Cheung via Python-list wrote: Or I need to configure something in Xcode? Perhaps this link might help determine if the problem is with Xcode and/or Python. http://stackoverflow.com/questions/5276967/python-in-xcode-6 Chris R. --

[issue24426] re.split performance degraded significantly by capturing group

2015-06-11 Thread Patrick Maupin
Patrick Maupin added the comment: Thank you for the quick response, Serhiy. I had started investigating and come to the conclusion that it was a problem with the compiler rather than the C engine. Interestingly, my next step was going to be to use names for the compiler constants, and then

[issue15745] Numerous utime ns tests fail on FreeBSD w/ ZFS (update: and NetBSD w/ FFS, Solaris w/ UFS)

2015-06-11 Thread STINNER Victor
STINNER Victor added the comment: test_utime_ns.patch: rewrite _test_utime_ns(). It now uses constant timestamps for atime and mtime with a resolution of 1 us. The test will fail if the internal function of os.utime() has a resolution of 1 sec (utime() with time_t) of if the resolution of

[issue24434] ItemsView.__contains__ does not mimic dict_items

2015-06-11 Thread Martin Panter
Martin Panter added the comment: Added a couple suggestions for the test case on Reitveld. -- nosy: +vadmium stage: - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24434 ___

[issue15745] Numerous utime ns tests fail on FreeBSD w/ ZFS (update: and NetBSD w/ FFS, Solaris w/ UFS)

2015-06-11 Thread STINNER Victor
STINNER Victor added the comment: almostequaltime.diff is wrong: it allows a different of 10 seconds, whereas the issue is a difference of less than 1000 nanoseconds. test_os.patch looks more correct, but I didn't review the patch. -- ___ Python

[issue24400] Awaitable ABC incompatible with functools.singledispatch

2015-06-11 Thread Nick Coghlan
Nick Coghlan added the comment: Low level review sent. Regarding the new opcode, it appears the main thing it provides is early detection of yielding from a coroutine in a normal generator, which is never going to work properly (a for loop or other iterative construct can't drive a coroutine

[issue24434] ItemsView.__contains__ does not mimic dict_items

2015-06-11 Thread Caleb Levy
Caleb Levy added the comment: @serhiy.storchaka: I don't think that will work. First of all, x, y = item will raise a ValueError if fed an iterable whose length is not exactly 2, so you would have to check for that. Moreover, if item is something like a dict, for example, then: {a:

[issue24434] ItemsView.__contains__ does not mimic dict_items

2015-06-11 Thread Caleb Levy
Caleb Levy added the comment: Sorry; that should be DictLikeMapping(a=b).items(), where DictLikeMapping is defined in the patch unit tests. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24434

[issue23996] _PyGen_FetchStopIterationValue() crashes on unnormalised exceptions

2015-06-11 Thread Stefan Behnel
Changes by Stefan Behnel sco...@users.sourceforge.net: Added file: http://bugs.python.org/file39692/fix_stopiteration_value.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23996 ___

[issue23996] _PyGen_FetchStopIterationValue() crashes on unnormalised exceptions

2015-06-11 Thread Stefan Behnel
Stefan Behnel added the comment: Here are two patches that fix this case, one with special casing, one without. Please choose and apply one. -- Added file: http://bugs.python.org/file39691/fix_stopiteration_value_slow.patch ___ Python tracker

[issue23760] Tkinter in Python 3.4 on Windows don't post internal clipboard data to the Windows clipboard on exit

2015-06-11 Thread Martin Panter
Changes by Martin Panter vadmium...@gmail.com: -- components: +Windows nosy: +paul.moore, steve.dower, tim.golden, zach.ware -vadmium ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23760 ___

[issue23760] Tkinter in Python 3.4 on Windows don't post internal clipboard data to the Windows clipboard on exit

2015-06-11 Thread Zachary Ware
Zachary Ware added the comment: I don't believe there's anything Python can do about this, unless it can be confirmed that this is a bug that's been fixed in a more recent version of Tcl/Tk 8.6, in which case we can update our dependency. The easy test for whether updating Tcl/Tk in 3.4

[issue24434] ItemsView.__contains__ does not mimic dict_items

2015-06-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Additional check hits performance. First issue can be resolved by changing code to try: key, value = item except TypeError: return False Second issue can be resolved by comparing not v with value, but (key, v) with item. However I'm

[issue24437] Add information about the buildbot console view and irc notices to devguide

2015-06-11 Thread Zachary Ware
Zachary Ware added the comment: Due to lack of Rietveld, comments in-line (? lines) below: @@ -42,6 +42,24 @@ bbreport.py -q 3.x +* The buildbot console interface at http://buildbot.python.org/all/console + (this link will take a while to load), which provides a summary view of

[issue24175] Consistent test_utime() failures on FreeBSD

2015-06-11 Thread Zachary Ware
Changes by Zachary Ware zachary.w...@gmail.com: -- nosy: +zach.ware ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24175 ___ ___ Python-bugs-list

[issue24303] OSError 17 due to _multiprocessing/semaphore.c assuming a one-to-one Pid - process mapping.

2015-06-11 Thread Charles-François Natali
Charles-François Natali added the comment: Here's a patch against 2.7 using _PyOS_URandom(): it should apply as-is to 3.3. -- keywords: +patch nosy: +neologix versions: +Python 3.3 Added file: http://bugs.python.org/file39679/mp_sem_race.diff ___

Re: New Python student needs help with execution

2015-06-11 Thread Mark Lawrence
On 11/06/2015 05:50, c me wrote: I installed 2.7.9 on a Win8.1 machine. The Coursera instructor did a simple install then executed Python from a file in which he'd put a simple hello world script. My similar documents folder cannot see the python executable. How do I make this work? I'm

[issue24307] pip error on windows whose current user name contains non-ascii characters

2015-06-11 Thread Suzumizaki
Changes by Suzumizaki suzumiz...@free.japandesign.ne.jp: -- nosy: +Suzumizaki ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24307 ___ ___

[issue23391] Documentation of EnvironmentError (OSError) arguments disappeared

2015-06-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It should be documented (if still not) that OSError() constructor can return an instance of OSError subclass, depending on errno value. OSError(errno.ENOENT, 'no such file') FileNotFoundError(2, 'no such file') --

[issue23391] Documentation of EnvironmentError (OSError) arguments disappeared

2015-06-11 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23391 ___ ___

[issue24420] Documentation regressions from adding subprocess.run()

2015-06-11 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- nosy: +serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24420 ___ ___

[issue24434] ItemsView.__contains__ does not mimic dict_items

2015-06-11 Thread Raymond Hettinger
Changes by Raymond Hettinger raymond.hettin...@gmail.com: -- assignee: - rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24434 ___ ___

[issue11245] Implementation of IMAP IDLE in imaplib?

2015-06-11 Thread R. David Murray
R. David Murray added the comment: Are you volunteering to be maintainer, and/or is Piers? If he's changed his mind about the threading, that's good enough for me (and by now he has a lot more experience with the library in actual use). The biggest barrier to inclusion, IMO, is tests and

[issue19176] DeprecationWarning for doctype() method when subclassing _elementtree.XMLParser

2015-06-11 Thread Martin Panter
Martin Panter added the comment: Ideally I guess the Python native behaviour is better: only call target.doctype() if available. It might allow you to easily implement doctype() in both the old and new versions of the API, without worrying about the API being called twice, and without

[issue19176] DeprecationWarning for doctype() method when subclassing _elementtree.XMLParser

2015-06-11 Thread Martin Panter
Changes by Martin Panter vadmium...@gmail.com: -- components: +Extension Modules ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19176 ___ ___

[issue19176] DeprecationWarning for doctype() method when subclassing _elementtree.XMLParser

2015-06-11 Thread Martin Panter
Changes by Martin Panter vadmium...@gmail.com: -- components: +XML -Extension Modules ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19176 ___ ___

[issue15745] Numerous utime ns tests fail on FreeBSD w/ ZFS (update: and NetBSD w/ FFS, Solaris w/ UFS)

2015-06-11 Thread STINNER Victor
STINNER Victor added the comment: test_utime.patch: a much larger patch which rewrites all unit tests on os.utime(). Changes: * Use a fixed timestamp instead of copying timestamps from an existing file. If the timestamp of the original file can have a resolution of 1 nanosecond, os.utime()

[issue23391] Documentation of EnvironmentError (OSError) arguments disappeared

2015-06-11 Thread Martin Panter
Martin Panter added the comment: New patch, clarifying that the constructor can raise a subclass. If you still think I need to add something about extra arguments, or how the “args” attribute is set, let me know. -- Added file: http://bugs.python.org/file39690/os-error-args.v3.patch

Re: Did the 3.4.4 docs get published early?

2015-06-11 Thread Nicholas Chammas
Sorry, somehow the formatting in my previous email didn't come through correctly. This part was supposed to be in a quote block: Also, just replacing the version number in the URL works for the python 3 series (use 3.X even for python 3.0), even farther back than the drop down menu allows.

[issue15745] Numerous utime ns tests fail on FreeBSD w/ ZFS (update: and NetBSD w/ FFS, Solaris w/ UFS)

2015-06-11 Thread koobs
koobs added the comment: Can a test be made to show a message (similar to a skipIf reason=) mentioning that a reduced precision is being used for certain tests? It would be nice not to have to remember this issue as platform support changes (reads: improves) over time. Not withstanding, it's

Re: I don't like the OO part of python. In particular the self keyword everywhere.

2015-06-11 Thread Thomas Mlynarczyk
On 11/06/15 14:16, MRAB wrote: harder then they anticipated. ---^ seems nicer... then having to use self everywhere... then? Should be than... (That seems to be happening more and more these days...) Indeed :-) -- Ce n'est pas parce qu'ils sont nombreux à avoir tort qu'ils ont

Re: Parser needed.

2015-06-11 Thread Rustom Mody
On Thursday, June 11, 2015 at 6:08:22 PM UTC+5:30, larry@gmail.com wrote: On Thu, Jun 11, 2015 at 8:35 AM, Joel Goldstick wrote: but you aren't asking questions. You are having a conversation with yourself on a public q/a list. Its unpleasant Well, he did mention masterbation in

Error in or

2015-06-11 Thread subhabrata . banerji
Dear Group, In the following script, inp1=raw_input(PRINT YOUR INPUT:) if (AND in inp1) or (OR in inp1) or (NOT in inp1) or ( in inp1) or ( in inp1) or (MAYBE in inp1) or (( in inp1) or (* in inp1): if write this it is working fine, but if I write if (AND in inp1) or (OR in

Re: New Python student needs help with execution

2015-06-11 Thread Laura Creighton
In a message of Thu, 11 Jun 2015 16:03:33 +0200, Chris Warrick writes: On Thu, Jun 11, 2015 at 10:52 AM, Laura Creighton l...@openend.se wrote: In a message of Wed, 10 Jun 2015 21:50:54 -0700, c me writes: I installed 2.7.9 on a Win8.1 machine. The Coursera instructor did a simple install then

Re: Error in or

2015-06-11 Thread Ian Kelly
On Thu, Jun 11, 2015 at 9:40 AM, subhabrata.bane...@gmail.com wrote: if write this it is working fine, but if I write if (AND in inp1) or (OR in inp1) or (NOT in inp1) or ( in inp1) or ( in inp1) or (MAYBE in inp1) or (( in inp1) or (* in inp1) or (''' ''' in inp1): the portion

  1   2   >