Re: Should non-security 2.7 bugs be fixed?

2015-07-20 Thread Steven D'Aprano
On Monday 20 July 2015 13:30, Ian Kelly wrote: On Sun, Jul 19, 2015 at 9:12 PM, Steven D'Aprano st...@pearwood.info wrote: On Mon, 20 Jul 2015 11:35 am, Rick Johnson wrote: I figured that was you *MARK LAWRENCE*. I shall add sock-puppeting to your many egregious offenses! And poorly

Re: Should non-security 2.7 bugs be fixed?

2015-07-20 Thread Michael Torrie
On 07/19/2015 11:33 PM, Michael Torrie wrote: For the most part, it's been good to hear from Cecil (there have been a few snarky posts) as he has learned python and really run with it. I don't understand where your apparent frustration with Cecil is coming from. Come to think of it, I can't

Re: Should non-security 2.7 bugs be fixed?

2015-07-20 Thread dieter
Mark Lawrence breamore...@yahoo.co.uk writes: ... So I most humbly suggest, as I may have hinted at once or twice earlier in this thread, that people either put up or shut up. In another of your contributions to this thread, you spoke of another alternative: do a bit of begging. That is what

[issue19663] Not so correct error message when initializing defaultdict

2015-07-20 Thread Roundup Robot
Roundup Robot added the comment: New changeset efda1eaf86a3 by Raymond Hettinger in branch '3.4': Issue #19663: Improve error message for defaultdict. https://hg.python.org/cpython/rev/efda1eaf86a3 -- nosy: +python-dev ___ Python tracker

[issue4395] Document auto __ne__ generation; provide a use case for non-trivial __ne__

2015-07-20 Thread Martin Panter
Martin Panter added the comment: This updated patch adds the clarification about NotImplemented. -- Added file: http://bugs.python.org/file39958/default-ne-reflected-priority.v4.patch ___ Python tracker rep...@bugs.python.org

Re: Should non-security 2.7 bugs be fixed?

2015-07-20 Thread dieter
Ian Kelly ian.g.ke...@gmail.com writes: On Sun, Jul 19, 2015 at 10:10 AM, Cecil Westerhof ce...@decebal.nl wrote: On Sunday 19 Jul 2015 15:42 CEST, Mark Lawrence wrote: On 19/07/2015 03:13, Terry Reedy wrote: On 7/18/2015 7:50 PM, Devin Jeanpierre wrote: to 2.7, surely bug fixes are also

Re: Should non-security 2.7 bugs be fixed?

2015-07-20 Thread dieter
Mark Lawrence breamore...@yahoo.co.uk writes: On 19/07/2015 18:14, Cecil Westerhof wrote: On Sunday 19 Jul 2015 18:38 CEST, Mark Lawrence wrote: ... You think so? I think that a lot of people who are using 2.7 would like to have the fixes. They know how to use Python, but they would not now

[issue19663] Not so correct error message when initializing defaultdict

2015-07-20 Thread Roundup Robot
Roundup Robot added the comment: New changeset d248702feab0 by Raymond Hettinger in branch '2.7': Issue #19663: Improve error message for defaultdict. https://hg.python.org/cpython/rev/d248702feab0 -- ___ Python tracker rep...@bugs.python.org

Re: New to python

2015-07-20 Thread David Palao
2015-07-20 7:20 GMT+02:00 Arthi Vigneshwari arthi15sm...@gmail.com: Hi, Am interested to learn python!Can you please guide me how to start with python which will help in my selenium automation? Regards, Arthi -- https://mail.python.org/mailman/listinfo/python-list Hi, If you enter

Re: Should non-security 2.7 bugs be fixed?

2015-07-20 Thread dieter
Mark Lawrence breamore...@yahoo.co.uk writes: On 19/07/2015 17:10, Cecil Westerhof wrote: On Sunday 19 Jul 2015 15:42 CEST, Mark Lawrence wrote: ... Babies want clean diapers. So babies have to change diapers themselves? That has to be the worst analogy I've ever read. We are discussing

Re: Should non-security 2.7 bugs be fixed?

2015-07-20 Thread Terry Reedy
On 7/19/2015 9:20 PM, Devin Jeanpierre wrote: Search your logs for https://bugs.python.org/issue17094 http://bugs.python.org/issue5315 I was most frustrated by the first case -- the patch was (informally) rejected By 'the patch', I presume you mean current-frames-cleanup.patch by Stefan

Re: Should non-security 2.7 bugs be fixed?

2015-07-20 Thread dieter
Rick Johnson rantingrickjohn...@gmail.com writes: On Sunday, July 19, 2015 at 1:44:25 PM UTC-5, bream...@gmail.com wrote: No, it's simply that nobody can force volunteers to back port something when they're just not interested in doing the work, for whatever reason. Hence my statement above,

[issue24670] os.chdir breaks result of os.path.abspath(__file__) and os.path.realpath(__file__)

2015-07-20 Thread Daniel al. LordBlick
Changes by Daniel al. LordBlick lordbl...@gmail.com: -- nosy: +serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24670 ___ ___

Re:New to python

2015-07-20 Thread Arthi Vigneshwari
Hi, Am interested to learn python!Can you please guide me how to start with python which will help in my selenium automation? Regards, Arthi -- https://mail.python.org/mailman/listinfo/python-list

[issue4395] Document auto __ne__ generation; provide a use case for non-trivial __ne__

2015-07-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: LGTM. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4395 ___ ___ Python-bugs-list mailing list Unsubscribe:

Re: How we can send mail with attachment in Python?

2015-07-20 Thread dieter
Kevin Peterson qh.res...@gmail.com writes: How we can send mail with attachment in Python? Is it any prerequisite for it? You look at the email package to build the message and the smtplib package to send the message - both are part of Python's runtime library and documented in its

Procedure for downloading and Installing Python 2.7 Modules

2015-07-20 Thread W. D. Allen
Would like to locate and install numpy, scipy and matplotlib with Wing 101 for Python 2.7 Just beginning to use Python 2.7 for engineering work. Any guidance would be appreciated. Thanks, WDA balle...@gmail.com end -- https://mail.python.org/mailman/listinfo/python-list

Re: Should non-security 2.7 bugs be fixed?

2015-07-20 Thread dieter
Rick Johnson rantingrickjohn...@gmail.com writes: On Sunday, July 19, 2015 at 12:54:34 AM UTC-5, dieter wrote: From my point of view: if you want help with fixing bugs, you must ensure that there is a high probability that those contributions really find their way into the main development

[issue19663] Not so correct error message when initializing defaultdict

2015-07-20 Thread Raymond Hettinger
Changes by Raymond Hettinger raymond.hettin...@gmail.com: -- resolution: - fixed stage: - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19663 ___

Re: Should non-security 2.7 bugs be fixed?

2015-07-20 Thread Devin Jeanpierre
I think you're missing the line where I said all the relevant conversation happened in IRC, and that you should refer to logs. On Sun, Jul 19, 2015 at 11:25 PM, Terry Reedy tjre...@udel.edu wrote: On 7/19/2015 9:20 PM, Devin Jeanpierre wrote: Search your logs for

[issue24483] Avoid repeated hash calculation in C implementation of functools.lru_cache()

2015-07-20 Thread Tal Einat
Tal Einat added the comment: Ping? Let's not miss the final 3.5 beta. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24483 ___ ___

Re: New to python

2015-07-20 Thread Arthi Vigneshwari
Hey David, Yeah,I had an overall look at https://www.python.org/about/gettingstarted/! Let me dig deep into the websites you shared me with! Thanks, Arthi On Mon, Jul 20, 2015 at 1:19 PM, David Palao dpalao.pyt...@gmail.com wrote: 2015-07-20 7:20 GMT+02:00 Arthi Vigneshwari

Generating type annotations by tracing execution runs

2015-07-20 Thread Michael Williamson
Hello, I've knocked together a quick proof-of-concept that allows type annotations to be automatically added to Python source code by running it: https://github.com/mwilliamson/farthing As the code, such as a test suite, runs, the types of arguments and return values (for functions in the

[issue24583] set.update(): Crash when source set is changed during merging

2015-07-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Both variants LGTM. But set_self_contained.diff seems better. I suppose this is 3.6 only. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24583 ___

[issue24672] shutil.rmtree failes on non ascii filenames

2015-07-20 Thread Steffen Kampmann
New submission from Steffen Kampmann: I run python 2.7 on Windows 7 and the function rmtree of the shutil package fails to remove files with a non ascii filename: File C:\Users\skampmann\AppData\Local\Continuum\Anaconda\lib\shutil.py, line 247, in rmtreermtree(fullname, ignore_errors,

[issue24672] shutil.rmtree failes on non ascii filenames

2015-07-20 Thread Tim Golden
Tim Golden added the comment: Can you confirm whether it also fails if you pass in a unicode string? eg shutil.rmtree(ufilename.txt) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24672

[issue24670] os.chdir breaks result of os.path.abspath(__file__) and os.path.realpath(__file__)

2015-07-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The issue is not in os.path, but in __file__ been relative path. If you change current work directory, __file__ is no longer valid path to source file. Things are even worse with zipimport. When you will archive the script in the ZIP file and run this ZIP

[issue24672] shutil.rmtree failes on non ascii filenames

2015-07-20 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- components: +Windows nosy: +haypo, paul.moore, steve.dower, tim.golden, zach.ware ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24672 ___

File Upload in Restful Flask

2015-07-20 Thread subhabrata . banerji
Dear Group, I am trying to learn Rest framework through Restful Flask. My initial exercises went fine with https://flask-restful.readthedocs.org/en/0.3.3/quickstart.html Now I want to upload file through Restful Flask. I tried to check the web for reference. I got these urls, (i)

Re: Should non-security 2.7 bugs be fixed?

2015-07-20 Thread Mark Lawrence
On 20/07/2015 03:16, Rustom Mody wrote: On Monday, July 20, 2015 at 7:16:50 AM UTC+5:30, Mark Lawrence wrote: On 20/07/2015 02:20, Devin Jeanpierre wrote: I don't like how this is being redirected to surely you misunderstood or I don't believe you. The fact that some core devs are hostile to

[issue24673] distutils/_msvccompiler does not remove /DLL during link(CCompiler.EXECUTABLE)

2015-07-20 Thread James Salter
New submission from James Salter: Encountered trying to build numpy with python 3.5b3, visual studio 2015. From distutils/_msvccompiler.py:MSVCCompiler.link: if self._need_link(objects, output_filename): ldflags = (self.ldflags_shared_debug if debug

Re: File Upload in Restful Flask

2015-07-20 Thread Simmo
On 20/07/2015 11:13, subhabrata.bane...@gmail.com wrote: Dear Group, I am trying to learn Rest framework through Restful Flask. My initial exercises went fine with https://flask-restful.readthedocs.org/en/0.3.3/quickstart.html Now I want to upload file through Restful Flask. I tried to check

[issue24583] set.update(): Crash when source set is changed during merging

2015-07-20 Thread Raymond Hettinger
Changes by Raymond Hettinger raymond.hettin...@gmail.com: -- resolution: - not a bug stage: patch review - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24583

[issue24670] os.chdir breaks result of os.path.abspath(__file__) and os.path.realpath(__file__)

2015-07-20 Thread Daniel al. LordBlick
Daniel al. LordBlick added the comment: If so, then should be internally __file__ edit by zipimport and/or os.cwd? It's simple string in file.__dict__['__file__']… Is exist some class representing internal file? Then any cwd operation should be wraped by it. -- components: +Interpreter

[issue24605] segmentation fault at asciilib_split_char.lto_priv

2015-07-20 Thread josch
josch added the comment: I do not see any module implemented in C in the imports. Is there a way to find out from where the segmentation fault came? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24605

Does the Class UserGroup (issue 11588) exist for python 2.7 ?

2015-07-20 Thread CARANNANTE, MARTINE
Hi Could you tell me if the Class UserGroup (method add_usage_group to support inclusive groups) exist for python 2.7 ? The patch that I found on internet is only for python 3. Thanks in advance for your answer Best regards Martine Carannante --

Re: File Upload in Restful Flask

2015-07-20 Thread subhabrata . banerji
On Monday, July 20, 2015 at 4:40:09 PM UTC+5:30, Simmo wrote: On 20/07/2015 11:13, wrote: Dear Group, I am trying to learn Rest framework through Restful Flask. My initial exercises went fine with https://flask-restful.readthedocs.org/en/0.3.3/quickstart.html Now I want to upload

[issue24583] set.update(): Crash when source set is changed during merging

2015-07-20 Thread Roundup Robot
Roundup Robot added the comment: New changeset 3f2c12c0abdb by Raymond Hettinger in branch 'default': Issue #24583: Consolidate previous set object updates into a single function https://hg.python.org/cpython/rev/3f2c12c0abdb -- ___ Python tracker

[issue24658] open().write() fails on 2 GB+ data (OS X)

2015-07-20 Thread Ronald Oussoren
Ronald Oussoren added the comment: This is likely a platform bug, it fails with os.write as well. Interestingly enough file.write works fine on Python 2.7 (which uses stdio), that appearently works around this kernel misfeature. A possible partial workaround is recognise this error in the

[issue24646] Python accepts SSL certificate that should be rejected on OSX

2015-07-20 Thread Ronald Oussoren
Ronald Oussoren added the comment: Using our own OpenSSL build should be saver in the long run anyway. Apple provides enough API’s to reproduce the behaviour of Apple’s build in a cleaner way (by making the loading of system CA certs an explicit action). Problem is: that likely requires

[issue24658] open().write() fails on 2 GB+ data (OS X)

2015-07-20 Thread Eric O. LEBIGOT
Eric O. LEBIGOT added the comment: Thank you for looking into this, Ronald. What does your patch do, exactly? does it only limit the returned byte count, or does it really limit the size of the data written by truncating it? In any case, it would be very useful to have a warning from the

[issue24646] Python accepts SSL certificate that should be rejected on OSX

2015-07-20 Thread Ronald Oussoren
Ronald Oussoren added the comment: BTW. I think someone (me?) should write down the problems with using higher levels in the API stack w.r.t. os.fork in a PEP-style document. This can then be used to decide whether or not we want to use such APIs in the stdlib (and if so, what should be

Fast 12 bit to 16 bit sample conversion?

2015-07-20 Thread Peter Heitzer
I am currently writing a python script to extract samples from old Roland 12 bit sample disks and save them as 16 bit wav files. The samples are layouted as follows 0 [S0 bit 11..4] [S0 bit 3..0|S1 bit 3..0] [S1 bit 11..4] 3 [S2 bit 11..4] [S2 bit 3..0|S3 bit 3..0] [S3 bit 11..4] In other

[issue24646] Python accepts SSL certificate that should be rejected on OSX

2015-07-20 Thread Christian Heimes
Christian Heimes added the comment: It's a platform bug but Apple doesn't consider it a bug. Hynek has analyzed and reported it over a year ago: https://hynek.me/articles/apple-openssl-verification-surprises/ -- nosy: +christian.heimes ___ Python

[issue24646] Python accepts SSL certificate that should be rejected on OSX

2015-07-20 Thread Christian Heimes
Christian Heimes added the comment: Ronald: Can you check if SecTrustSettingsCopyCertificates() or SecTrustCopyAnchorCertificates() are affected by the fork() issue? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24646

[issue24658] open().write() fails on 2 GB+ data (OS X)

2015-07-20 Thread Ronald Oussoren
Ronald Oussoren added the comment: The attached patch is a first stab at a workaround. It will unconditionally limit the write size in os.write to INT_MAX on OSX. I haven't tested yet if this actually fixes the problem mentioned on stack overflow. -- keywords: +needs review, patch

[issue24646] Python accepts SSL certificate that should be rejected on OSX

2015-07-20 Thread Ronald Oussoren
Ronald Oussoren added the comment: I'll check, but they probably are because the use data structures from CoreFoundation. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24646 ___

[issue24674] pyclbr not recursively showing classes in packages

2015-07-20 Thread David Worenklein
New submission from David Worenklein: In the following example, pyclbr does not report that foo.module.A is a superclass of C: __module2.py__ import foo.module class C(foo.module.B): pass __foo/module.py__ class A(object): def foo(self): print bar class B(A): pass

Re: Does the Class UserGroup (issue 11588) exist for python 2.7 ?

2015-07-20 Thread Mark Lawrence
On 20/07/2015 12:27, CARANNANTE, MARTINE wrote: Hi Could you tell me if the Class UserGroup (method add_usage_group to support inclusive groups) exist for python 2.7 ? The patch that I found on internet is only for python 3. Thanks in advance for your answer Best regards *Martine Carannante *

Re: File Upload in Restful Flask

2015-07-20 Thread Simmo
On 20/07/2015 12:57, subhabrata.bane...@gmail.com wrote: On Monday, July 20, 2015 at 4:40:09 PM UTC+5:30, Simmo wrote: On 20/07/2015 11:13, wrote: Dear Group, I am trying to learn Rest framework through Restful Flask. My initial exercises went fine with

[issue24674] pyclbr not recursively showing classes in packages

2015-07-20 Thread David Worenklein
David Worenklein added the comment: P.S. Here are the results after the patch: C = ['foo.module.B', 'foo.module.A', 'object'] -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24674 ___

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

2015-07-20 Thread Martin Panter
Martin Panter added the comment: Okay, now at Issue 24675 -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15745 ___ ___

[issue24605] segmentation fault at asciilib_split_char.lto_priv

2015-07-20 Thread STINNER Victor
STINNER Victor added the comment: You have to search for memory corruptions. You can try to run your application with a Python compiled a debug mode. If it doesn't work, you may try Valgrind which require a Python compiled with --with-valgrind and to use the suppression file. See

[issue24658] open().write() fails on 2 GB+ data (OS X)

2015-07-20 Thread Eric O. LEBIGOT
Eric O. LEBIGOT added the comment: I see, thanks. This sounds good to me too: no need for a warning or exception, indeed, since file.write() should work and the behavior of os.write() is documented. -- ___ Python tracker rep...@bugs.python.org

[issue24658] open().write() fails on 2 GB+ data (OS X)

2015-07-20 Thread STINNER Victor
STINNER Victor added the comment: The Windows limit to INT_MAX is one many functions: * os.write() * io.FileIO.write() * hum, maybe other, I don't remember In the default branch, there is now _Py_write(), so only one place should be fixed. See the issue #11395 which fixed the bug on Windows.

[issue24675] Avoid DeprecationWarning in test_os

2015-07-20 Thread Martin Panter
New submission from Martin Panter: This patch is to avoid the warning introduced with the changes in Issue 15745, originally described at https://bugs.python.org/issue15745#msg245455. The code has a “with” statement to hide the warning from os.stat_float_times(), but the warning triggers

Re: File Upload in Restful Flask

2015-07-20 Thread subhabrata . banerji
On Monday, July 20, 2015 at 6:39:29 PM UTC+5:30, Simmo wrote: On 20/07/2015 12:57, wrote: On Monday, July 20, 2015 at 4:40:09 PM UTC+5:30, Simmo wrote: On 20/07/2015 11:13, wrote: Dear Group, I am trying to learn Rest framework through Restful Flask. My initial exercises went fine

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

2015-07-20 Thread Martin Panter
Changes by Martin Panter vadmium...@gmail.com: Removed file: http://bugs.python.org/file39955/stat-times-deprecated.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15745 ___

Re: Fast 12 bit to 16 bit sample conversion?

2015-07-20 Thread MRAB
On 2015-07-20 14:10, Peter Heitzer wrote: I am currently writing a python script to extract samples from old Roland 12 bit sample disks and save them as 16 bit wav files. The samples are layouted as follows 0 [S0 bit 11..4] [S0 bit 3..0|S1 bit 3..0] [S1 bit 11..4] 3 [S2 bit 11..4] [S2 bit

Re: linux os.rename() not an actual rename?

2015-07-20 Thread Jon Ribbens
On 2015-07-20, Jason H jh...@gmx.com wrote: I have a server process that looks (watches via inotify) for files to be moved (renamed) into a particular directory from elsewhere on the same filesystem. We do this because it is an atomic operation, and our server process can see the modify

Re: linux os.rename() not an actual rename?

2015-07-20 Thread Marko Rauhamaa
Jason H jh...@gmx.com: I have a server process that looks (watches via inotify) for files to be moved (renamed) into a particular directory from elsewhere on the same filesystem. We do this because it is an atomic operation, and our server process can see the modify events of the file being

[issue24675] Avoid DeprecationWarning in test_os

2015-07-20 Thread Roundup Robot
Roundup Robot added the comment: New changeset bc67e0030d42 by Victor Stinner in branch '3.4': Issue #24675: Avoid DeprecationWarning in test_os https://hg.python.org/cpython/rev/bc67e0030d42 -- nosy: +python-dev ___ Python tracker

Re: Does the Class UserGroup (issue 11588) exist for python 2.7 ?

2015-07-20 Thread Chris Angelico
On Mon, Jul 20, 2015 at 10:15 PM, Mark Lawrence breamore...@yahoo.co.uk wrote: On 20/07/2015 12:27, CARANNANTE, MARTINE wrote: Hi Could you tell me if the Class UserGroup (method add_usage_group to support inclusive groups) exist for python 2.7 ? The patch that I found on internet is only

[issue12978] Figure out extended attributes on BSDs

2015-07-20 Thread Billy Foster
Billy Foster added the comment: Is there any chance of getting this finalized? I have been using William Orr's patch as a workaround for months now, but it would be nice to not have to manually apply it each version bump... -- nosy: +billyfoster

Re: linux os.rename() not an actual rename?

2015-07-20 Thread Christian Heimes
On 2015-07-20 20:50, Marko Rauhamaa wrote: Jason H jh...@gmx.com: I have a server process that looks (watches via inotify) for files to be moved (renamed) into a particular directory from elsewhere on the same filesystem. We do this because it is an atomic operation, and our server process

Re: how to play

2015-07-20 Thread Ian Kelly
On Mon, Jul 20, 2015 at 10:29 AM, Aron Barsam aronbar...@gmail.com wrote: what is an 0S comand line? What OS are you using? In Windows it's a program called Command Prompt. In Mac OS X it's an application called Terminal. In Linux it's usually called something like Terminal or xterm. However,

linux os.rename() not an actual rename?

2015-07-20 Thread Jason H
I have a server process that looks (watches via inotify) for files to be moved (renamed) into a particular directory from elsewhere on the same filesystem. We do this because it is an atomic operation, and our server process can see the modify events of the file being written before it is

[issue24675] Avoid DeprecationWarning in test_os

2015-07-20 Thread STINNER Victor
STINNER Victor added the comment: Thanks Martin. I applied your patch, but I replaced tearDown() with a cleanup function. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24675

Re: Fast 12 bit to 16 bit sample conversion?

2015-07-20 Thread edmondo . giovannozzi
Il giorno lunedì 20 luglio 2015 15:10:22 UTC+2, Peter Heitzer ha scritto: I am currently writing a python script to extract samples from old Roland 12 bit sample disks and save them as 16 bit wav files. The samples are layouted as follows 0 [S0 bit 11..4] [S0 bit 3..0|S1 bit 3..0] [S1

Re: Generating type annotations by tracing execution runs

2015-07-20 Thread Chris Angelico
On Mon, Jul 20, 2015 at 7:59 PM, Michael Williamson m...@zwobble.org wrote: I've knocked together a quick proof-of-concept that allows type annotations to be automatically added to Python source code by running it: https://github.com/mwilliamson/farthing As the code, such as a test

Re: how to play

2015-07-20 Thread sohcahtoa82
On Sunday, July 19, 2015 at 12:04:26 PM UTC-7, Aron Barsam wrote: i have trouble trying to play python please can you respond soon  ... play python http://i.imgur.com/x2KwTbw.jpg -- https://mail.python.org/mailman/listinfo/python-list

Re: Fast 12 bit to 16 bit sample conversion?

2015-07-20 Thread Peter Heitzer
MRAB pyt...@mrabarnett.plus.com wrote: On 2015-07-20 14:10, Peter Heitzer wrote: I am currently writing a python script to extract samples from old Roland 12 bit sample disks and save them as 16 bit wav files. The samples are layouted as follows 0 [S0 bit 11..4] [S0 bit 3..0|S1 bit 3..0]

Re: Generating type annotations by tracing execution runs

2015-07-20 Thread Paul Rubin
Chris Angelico ros...@gmail.com writes: As the code, such as a test suite, runs, the types of arguments and return values... Sounds to me like a type inference system. Can be pretty handy in some codebases. I haven't tried it out yet but it sounds more like the type extraction part of a JIT

[issue20792] Idle: test PathBrowser more

2015-07-20 Thread Roundup Robot
Roundup Robot added the comment: New changeset 61d7e6fe0003 by Terry Jan Reedy in branch '2.7': Issue #20792: Expand idle_test.test_pathbowser. Tweak file. https://hg.python.org/cpython/rev/61d7e6fe0003 New changeset 0220328f962c by Terry Jan Reedy in branch '3.4': Issue #20792: Expand

[issue20792] Idle: test PathBrowser more

2015-07-20 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- versions: +Python 3.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20792 ___ ___ Python-bugs-list

[issue20792] Idle: test PathBrowser more

2015-07-20 Thread Terry J. Reedy
Terry J. Reedy added the comment: I only did the test_pathbrowser changes now. I added an assert that failed in 2.7 because Idle still defines some old-style classes not subclassing object. The 'main' test had been rewriten as an htest. Am leaving issue open to look at those changes another

[issue4945] json checks True/False by identity, not boolean value

2015-07-20 Thread Mark Mikofski
Mark Mikofski added the comment: This is effecting IronPython as well, because .NET objects return copies not references. If a .NET assembly method is called from IronPython, its return is a copy, not a reference. Therefore the reference of a boolean return is not the same as the internal

Re: linux os.rename() not an actual rename?

2015-07-20 Thread Jason H
From: Christian Heimes christ...@python.org On 2015-07-20 20:50, Marko Rauhamaa wrote: Jason H jh...@gmx.com: I have a server process that looks (watches via inotify) for files to be moved (renamed) into a particular directory from elsewhere on the same filesystem. We do this because

[issue23573] Avoid redundant allocations in str.find and like

2015-07-20 Thread Roundup Robot
Roundup Robot added the comment: New changeset 311a4d28631b by Serhiy Storchaka in branch '3.5': Issue #23573: Restored optimization of bytes.rfind() and bytearray.rfind() https://hg.python.org/cpython/rev/311a4d28631b New changeset c06410c68217 by Serhiy Storchaka in branch 'default': Issue

[issue24665] CJK support for textwrap

2015-07-20 Thread R. David Murray
R. David Murray added the comment: Because to get proper unicode support, we wrote python3, and because handling anything other than single-character-width characters in textwrap is a new feature. -- nosy: +r.david.murray versions: +Python 3.6 -Python 2.7

[issue24658] open().write() fails on 2 GB+ data (OS X)

2015-07-20 Thread Ronald Oussoren
Ronald Oussoren added the comment: The patch I attached earlier is for the default branch. More work is needed for the other active branches. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24658

Re: Procedure for downloading and Installing Python 2.7 Modules

2015-07-20 Thread Steven D'Aprano
On Mon, 20 Jul 2015 08:14 am, W. D. Allen wrote: Would like to locate and install numpy, scipy and matplotlib with Wing 101 for Python 2.7 Wing is an IDE, that is, a fancy editor. As far as I know, you shouldn't have to take any special steps to get numpy etc. working with Wing, you just

[issue24676] Error in pickle using cProfile

2015-07-20 Thread Erick Fonseca
New submission from Erick Fonseca: cPickle raises a PicklingError when trying to pickle an instance of a class defined in a module being profiled with cProfile. Example code: import cPickle class A(object): pass a = A() with open('file.dat', 'wb') as f:

[issue24658] open().write() fails on 2 GB+ data (OS X)

2015-07-20 Thread Mali Akmanalp
Mali Akmanalp added the comment: I don't know how helpful it is at this point, but the issue happens while reading also. Here's some related discussion in the numpy tracker: https://github.com/numpy/numpy/issues/3858 (The claim was that OSX Mavericks fixed this issue, it didn't, and there is

[issue24665] CJK support for textwrap

2015-07-20 Thread R. David Murray
R. David Murray added the comment: The problem is (if I'm understanding this correctly, which I may not be, I'm not a unicode expert) is that how you compute and manipulate CJK characters in python2 differs depending on whether you are dealing with a wide build or a narrow build. And the

Re: Procedure for downloading and Installing Python 2.7 Modules

2015-07-20 Thread Mark Lawrence
On 19/07/2015 23:14, W. D. Allen wrote: Would like to locate and install numpy, scipy and matplotlib with Wing 101 for Python 2.7 Just beginning to use Python 2.7 for engineering work. Any guidance would be appreciated. Thanks, WDA balle...@gmail.com end Just use pip from the command

[issue24665] CJK support for textwrap

2015-07-20 Thread Florent Gallaire
Florent Gallaire added the comment: FUD about Python here is something I wasn't expecting. Python 2 supports Unicode and is still used a lot by a lot of people. CJK people are not subhumans, so don't support CJK is something called, wait... a bug ! And it's a shame that it was not fixed

Re: Fast 12 bit to 16 bit sample conversion?

2015-07-20 Thread Mark Lawrence
On 20/07/2015 14:10, Peter Heitzer wrote: I am currently writing a python script to extract samples from old Roland 12 bit sample disks and save them as 16 bit wav files. The samples are layouted as follows 0 [S0 bit 11..4] [S0 bit 3..0|S1 bit 3..0] [S1 bit 11..4] 3 [S2 bit 11..4] [S2 bit

Can I copy/paste Python code?

2015-07-20 Thread ryguy7272
I'm trying to copy some Python code from a PDF book that I'm reading. I want to test out the code, and I can copy it, but when I paste it into the Shell, everything is all screwed up because of the indentation. Every time I paste in any kind of code, it seems like everything is immediately

[issue24676] Error in pickle using cProfile

2015-07-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The same is with profile, pickle and in 3.x. May be profile should set sys.modules['__main__']? -- components: +Library (Lib) -Extension Modules nosy: +georg.brandl, serhiy.storchaka type: crash - behavior versions: +Python 3.4, Python 3.5, Python

Re: Can't Install Pandas

2015-07-20 Thread ryguy7272
On Sunday, July 19, 2015 at 11:05:46 PM UTC-4, ryguy7272 wrote: Hello experts. I odwnloaded Pandas, and put it here. C:\Python34\Scripts\pandas-0.16.2 Then, I ran this in what most people call the c-prompt, but I call it the 'Python 3.4.3 Shell' C:\Python34\Scripts\pandas-0.16.2 pip

Re: Can't Install Pandas

2015-07-20 Thread Chris Angelico
On Tue, Jul 21, 2015 at 12:51 PM, ryguy7272 ryanshu...@gmail.com wrote: On Sunday, July 19, 2015 at 11:05:46 PM UTC-4, ryguy7272 wrote: Hello experts. I odwnloaded Pandas, and put it here. C:\Python34\Scripts\pandas-0.16.2 Then, I ran this in what most people call the c-prompt, but I call it

Re: Can I copy/paste Python code?

2015-07-20 Thread Chris Angelico
On Tue, Jul 21, 2015 at 12:49 PM, ryguy7272 ryanshu...@gmail.com wrote: I'm trying to copy some Python code from a PDF book that I'm reading. I want to test out the code, and I can copy it, but when I paste it into the Shell, everything is all screwed up because of the indentation. Every

Is there a way to install ALL Python packages?

2015-07-20 Thread ryguy7272
I'd like to install ALL Python packages on my machine. Even if it takes up 4-5GB, or more, I'd like to get everything, and then use it when I need it. Now, I'd like to import packages, like numpy and pandas, but nothing will install. I figure, if I can just install everything, I can simply

Re: Should non-security 2.7 bugs be fixed?

2015-07-20 Thread Rick Johnson
On Sunday, July 19, 2015 at 9:17:11 PM UTC-5, Rustom Mody wrote: List of python committers: - 11081 Guido van Rossum [snip: long list] Thanks for posting this list of names. I had put in a pyFOIA request for this data a few years ago, but to my surprise, was flat

Re: Is there a way to install ALL Python packages?

2015-07-20 Thread Chris Angelico
On Tue, Jul 21, 2015 at 12:57 PM, ryguy7272 ryanshu...@gmail.com wrote: I'd like to install ALL Python packages on my machine. Even if it takes up 4-5GB, or more, I'd like to get everything, and then use it when I need it. Now, I'd like to import packages, like numpy and pandas, but nothing

Re: Should non-security 2.7 bugs be fixed?

2015-07-20 Thread Rustom Mody
On Tuesday, July 21, 2015 at 8:34:30 AM UTC+5:30, Rick Johnson wrote: On Sunday, July 19, 2015 at 9:17:11 PM UTC-5, Rustom Mody wrote: List of python committers: - 11081 Guido van Rossum [snip: long list] Thanks for posting this list of names. I had put in

Re: Is there a way to install ALL Python packages?

2015-07-20 Thread Rustom Mody
On Tuesday, July 21, 2015 at 8:47:29 AM UTC+5:30, Chris Angelico wrote: On Tue, Jul 21, 2015 at 12:57 PM, ryguy7272 wrote: I'd like to install ALL Python packages on my machine. Even if it takes up 4-5GB, or more, I'd like to get everything, and then use it when I need it. Now, I'd

Re: Should non-security 2.7 bugs be fixed?

2015-07-20 Thread Chris Angelico
On Tue, Jul 21, 2015 at 1:15 PM, Rustom Mody rustompm...@gmail.com wrote: [Chris already showed that this list is inaccurate -- probably related to hg not having sighoff distinct from commit like git] It's also the manner of workflow. If you want to accept patches and have them acknowledged to

Re: Devanagari int literals [was Re: Should non-security 2.7 bugs be fixed?]

2015-07-20 Thread Rustom Mody
On Sunday, July 19, 2015 at 10:15:37 AM UTC+5:30, Steven D'Aprano wrote: JFTR: My kids (um... students) have just managed to add devanagari numerals to python. ie we can now do १ + २ 3 That is actually quite awesome, and I would support a new feature that set the numeric

  1   2   >