Re: should self be changed?

2015-05-27 Thread Chris Angelico
On Wed, May 27, 2015 at 5:39 PM, Marko Rauhamaa ma...@pacujo.net wrote: Chris Angelico ros...@gmail.com: Using some other name in place of self should definitely remain *possible*, but not commonly done. You are effectively making the argument that Python has made a mistake by not giving

[issue23790] When xdrlib.Packer().pack_string() fails, the Packer is corrupted

2015-05-27 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- resolution: - rejected stage: - resolved status: pending - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23790 ___

[issue23970] Update distutils.msvccompiler for VC14

2015-05-27 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: I was away the last few days, so just found the changes now. IMO, it's a good idea to use a new module for the new compiler, but don't think it's a good idea to make the whole module private, since this implicitly disallows sub-classing the compiler class

[issue23914] pickle fails with SystemError

2015-05-27 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- priority: normal - low ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23914 ___ ___

[issue17941] namedtuple should support fully qualified name for more portable pickling

2015-05-27 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: That will not work correctly if the module name has a dot in it. Pickling qualified names with arbitrary number of dots is supported in 3.4 with protocol 4 and in 3.5 with all protocols (backward compatibly). -- nosy: +serhiy.storchaka

Re: should self be changed?

2015-05-27 Thread Ben Finney
Steven D'Aprano steve+comp.lang.pyt...@pearwood.info writes: On Wednesday 27 May 2015 14:39, Ben Finney wrote: That kind of homophobic slur is inappropriate from anyone in this community. Kindly cut it out altogether. I look forward to the day when people would read the earlier insult

Re: Fwd: Lossless bulletproof conversion to unicode (backslashing)

2015-05-27 Thread anatoly techtonik
On Wed, May 27, 2015 at 2:35 PM, Laura Creighton l...@openend.se wrote: I am missing something. Why do you need unicode at all? Why can you not just keep your binary data as binary data? Good question. From the SCons code I see that we need unicode, because we switched to io.StringIO which is

Re: SyntaxError on progress module

2015-05-27 Thread Chris Angelico
On Wed, May 27, 2015 at 5:30 PM, alb al.bas...@gmail.com wrote: But here I have another question, as a python novice is there really any reason for me to use any particular version of Python? Should I start directly with the newest? What about 2.7? Start with the newest that's conveniently

[issue22955] Pickling of methodcaller, attrgetter, and itemgetter

2015-05-27 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- resolution: - fixed stage: patch review - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22955 ___

[issue24259] tar.extractall() does not recognize unexpected EOF

2015-05-27 Thread Thomas Guettler
Thomas Guettler added the comment: Who has enough knowledge of the tarfile module to create a good patch? -- nosy: +guettli ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24259 ___

[issue24295] Backport of #17086 causes regression in setup.py

2015-05-27 Thread Moritz Sichert
New submission from Moritz Sichert: In 7955d769fdf5 a bug of #14330 got fixed and it got backported for 2.7. But these changes were reverted by another backport in 8ee6d96a1019 (which was a backport for #17086). The issue here is that right know setup.py looks for ssl and other libs' headers

Re: Fwd: Lossless bulletproof conversion to unicode (backslashing)

2015-05-27 Thread Laura Creighton
I am missing something. Why do you need unicode at all? Why can you not just keep your binary data as binary data? I feel like I must be missing something obvious here ... Laura -- https://mail.python.org/mailman/listinfo/python-list

Re: SyntaxError on progress module

2015-05-27 Thread Cecil Westerhof
Op Wednesday 27 May 2015 09:30 CEST schreef alb: But here I have another question, as a python novice is there really any reason for me to use any particular version of Python? Should I start directly with the newest? What about 2.7? In principal you should use the ‘latest’ 3. The only

[issue23513] Add support for classes/object model in multiprocessing/pickle

2015-05-27 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Could you please provide full example that you want to work and test it in Python 3.5? I suppose your issue is fixed in 3.5. -- nosy: +serhiy.storchaka ___ Python tracker rep...@bugs.python.org

Fwd: Lossless bulletproof conversion to unicode (backslashing)

2015-05-27 Thread anatoly techtonik
Hi. This was labelled offtopic in python-ideas, so I edited and forwarded it here. Please CC as I am not subscribed. In short. I need is a bulletproof way to convert from anything to unicode. This requires some kind of escaping to go forward and back. Some helper function like u2b() (unicode to

[issue18032] Optimization for set/frozenset.issubset()

2015-05-27 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: In C implementation no need to create set object seen. More efficient way is to use bit array. Here is a patch that uses this approach. ./python -m timeit -s s1 = set(range(1000)) s1.issubset(range(1000)) Unpatched : 1 loops, best of 3: 115 usec per

[issue23574] datetime: support leap seconds

2015-05-27 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Here's what mxDateTime uses: import mx.DateTime t1 = mx.DateTime.DateTime(2012,6,30,23,59,60) t2 = mx.DateTime.DateTime(2012,7,1,0,0,0) t1 mx.DateTime.DateTime object for '2012-06-30 23:59:60.00' at 7fbb36008d68 t2 mx.DateTime.DateTime object for

Re: Fwd: Lossless bulletproof conversion to unicode (backslashing)

2015-05-27 Thread Chris Angelico
On Wed, May 27, 2015 at 9:52 PM, anatoly techtonik techto...@gmail.com wrote: And the short answer is that we need unicode because we are printing this information to the stdout, and stdout is opened in text mode at least on Windows, and without explicit conversion, Python will try to decode

[issue18032] Optimization for set/frozenset.issubset()

2015-05-27 Thread Bruno Cauet
Bruno Cauet added the comment: Serhiy, that sounds good but I think that you have forgotten to attach the mentioned patch. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18032 ___

Re: should self be changed?

2015-05-27 Thread Todd
On Wed, May 27, 2015 at 2:40 PM, zipher dreamingforw...@gmail.com wrote: On Wednesday, May 27, 2015 at 6:30:16 AM UTC-5, Ben Finney wrote: Steven D'Aprano steve+comp.lang.pyt...@pearwood.info writes: On Wednesday 27 May 2015 14:39, Ben Finney wrote: That kind of homophobic slur is

Re: SyntaxError on progress module

2015-05-27 Thread Mark Lawrence
On 27/05/2015 09:42, Cecil Westerhof wrote: Op Wednesday 27 May 2015 09:30 CEST schreef alb: But here I have another question, as a python novice is there really any reason for me to use any particular version of Python? Should I start directly with the newest? What about 2.7? In principal

[issue24294] DeprecationWarnings should be visible by default in the interactive REPL

2015-05-27 Thread Martin Panter
Martin Panter added the comment: I have learnt to run the interactive interpeter (and also most of my own scripts) with the -b -Wall options. But having these switched on automatically may not be a bad thing. -- nosy: +vadmium ___ Python tracker

[issue24296] Queue documentation note needed

2015-05-27 Thread Sandy Chapman
New submission from Sandy Chapman: The example at the bottom of the following page should have a warning added: https://docs.python.org/2/library/queue.html The warning should be such that the user is informed that the threads in the example are not cleaned up and will continue to run. Any

[issue23275] Can assign [] = (), but not () = []

2015-05-27 Thread Rahul Gupta
Rahul Gupta added the comment: isn't it logical? [] is a mutable data structure while () is a immutable data structure (b, a) = [1, 2] is fine because a and b are mutable -- nosy: +Rahul Gupta ___ Python tracker rep...@bugs.python.org

[issue24297] Lib/symbol.py is out of sync with Grammar/Grammar

2015-05-27 Thread R. David Murray
R. David Murray added the comment: It is automatically generated in that it isn't hand-written. On the other hand, it isn't automatically generated in the sense of being part of the make process, ./python symbol.py is supposed to be run by hand when it is appropriate. A bit ago someone

Re: Fwd: Lossless bulletproof conversion to unicode (backslashing)

2015-05-27 Thread anatoly techtonik
On Wed, May 27, 2015 at 2:47 PM, anatoly techtonik techto...@gmail.com wrote: On Wed, May 27, 2015 at 2:35 PM, Laura Creighton l...@openend.se wrote: I am missing something. Why do you need unicode at all? Why can you not just keep your binary data as binary data? Good question. From the

Re: should self be changed?

2015-05-27 Thread zipher
On Wednesday, May 27, 2015 at 6:30:16 AM UTC-5, Ben Finney wrote: Steven D'Aprano steve+comp.lang.pyt...@pearwood.info writes: On Wednesday 27 May 2015 14:39, Ben Finney wrote: That kind of homophobic slur is inappropriate from anyone in this community. Kindly cut it out altogether.

Re: a more precise distance algorithm

2015-05-27 Thread Robin Becker
A minor point is that if you just need to compare distances you don't need to compute the hypotenuse, its square will do so no subtractions etc etc. -- Robin Becker -- https://mail.python.org/mailman/listinfo/python-list

[issue24294] DeprecationWarnings should be visible by default in the interactive REPL

2015-05-27 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24294 ___ ___

[issue24294] DeprecationWarnings should be visible by default in the interactive REPL

2015-05-27 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: See discussion on Python-Ideas [1]. [1] http://comments.gmane.org/gmane.comp.python.ideas/32191 -- components: +Interpreter Core nosy: +serhiy.storchaka versions: +Python 3.6 ___ Python tracker

[issue24296] Queue documentation note needed

2015-05-27 Thread R. David Murray
R. David Murray added the comment: If you know anything about threads you can see that the threads are not explicitly shut down. As a standalone example it is correct, in that they get shut down at interpreter shutdown. I'm not sure it is appropriate to include what is essentially a thread

Accessing DataSocket Server with Python

2015-05-27 Thread Garrone, Corrado
Dear Python Team, currently I am working on a research project for my bachelor degree. A LabVIEW application is used for current and power measurements, whereas the measured data are sent to DataSocket Server, a technology by National Instruments used for data exchange between computers and

[issue23275] Can assign [] = (), but not () = []

2015-05-27 Thread Martin Panter
Martin Panter added the comment: I prefer to unpack into square brackets in general because it is a mnemonic for the star argument being a list: (a, *b) = range(3) a 0 b # A list, even though it was unpacked using tuple-like syntax [1, 2] --

[issue24297] Lib/symbol.py is out of sync with Grammar/Grammar

2015-05-27 Thread Marius Gedminas
New submission from Marius Gedminas: While investigating https://bitbucket.org/pypa/setuptools/issue/388/install-from-sdist-fails-on-python-350b1 I noticed that Grammar/Grammar changed in 3.5, but Lib/symbol.py wasn't updated. I'm not familiar with the CPython parser, but I suspect that

Re: Fwd: Lossless bulletproof conversion to unicode (backslashing)

2015-05-27 Thread Steven D'Aprano
On Wed, 27 May 2015 09:15 pm, anatoly techtonik wrote: Hi. This was labelled offtopic in python-ideas, so I edited and forwarded it here. Please CC as I am not subscribed. In short. I need is a bulletproof way to convert from anything to unicode. This requires some kind of escaping to

Re: Fwd: Lossless bulletproof conversion to unicode (backslashing) (fwd)

2015-05-27 Thread Laura Creighton
Chris Angelico apparantly has a problem with cc'd people who aren't on the list. python-list is very quiet these days, so if you subscribe it won't be drinking from the firehose. And you can always turn off delivery when you are done. Or you can just go read the archives:

[issue23275] Can assign [] = (), but not () = []

2015-05-27 Thread Devin Jeanpierre
Devin Jeanpierre added the comment: [a, b] = (1, 2) is also fine. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23275 ___ ___ Python-bugs-list

Re: Fwd: Lossless bulletproof conversion to unicode (backslashing)

2015-05-27 Thread random832
On Wed, May 27, 2015, at 07:15, anatoly techtonik wrote: The solution is to have filter preprocess the binary string to escape all non-unicode symbols so that the following lossless transformation becomes possible: binary - escaped utf-8 string - unicode - binary I want to know if

[issue23970] Update distutils.msvccompiler for VC14

2015-05-27 Thread Steve Dower
Steve Dower added the comment: I understood it only disallowed complaining about breaking changes without a deprecation cycle :) I'm sorry I didn't realize you were away. If you have examples of how subclassing this class (and not just CCompiler) is useful and does something that can't be

[issue23275] Can assign [] = (), but not () = []

2015-05-27 Thread Ionel Cristian Mărieș
Changes by Ionel Cristian Mărieș cont...@ionelmc.ro: -- nosy: +ionelmc ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23275 ___ ___

Re: Fwd: Lossless bulletproof conversion to unicode (backslashing)

2015-05-27 Thread random832
On Wed, May 27, 2015, at 07:47, anatoly techtonik wrote: because Python 3 doesn't have non-unicode StringIO That's actually not true - the non-unicode equivalent is BytesIO. However, it's probably not actually what you want, if the point is to display the filenames to the user. --

[issue18032] Optimization for set/frozenset.issubset()

2015-05-27 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Oh, sorry. Here is it. -- Added file: http://bugs.python.org/file39516/set_issubset_bitarray.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18032 ___

[issue23970] Update distutils.msvccompiler for VC14

2015-05-27 Thread Mark Lawrence
Mark Lawrence added the comment: If the name is changed I'd like to see something that doesn't reflect the msvc version, as my understanding is that from now on the old compatibility issues are gone. -- ___ Python tracker rep...@bugs.python.org

[issue24295] Backport of #17086 causes regression in setup.py

2015-05-27 Thread Matthias Klose
Matthias Klose added the comment: I'll look at this in June. I don't think that reverting is the right choice here. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24295 ___

[issue23359] Speed-up set_lookkey()

2015-05-27 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Why you have added entry-hash == 0? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23359 ___ ___

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

2015-05-27 Thread Paul Hobbs
New submission from Paul Hobbs: Using pid namespacing it is possible to have multiple processes with the same pid. semlock_new creates a semaphore file with the template /dev/shm/mp{pid}-{counter}. This can conflict if the same semaphore file already exists due to another Python process

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

2015-05-27 Thread Ned Deily
Changes by Ned Deily n...@acm.org: -- nosy: +devin, sbt stage: - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24303 ___ ___

[issue24299] 2.7.10 test__locale.py change breaks on Solaris

2015-05-27 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This is not the Right Answer because on Linux the thousands-separator for the fr_FR locale is a space. Perhaps better solution would be to specify the UTF-8 encoding for fr_FR locale. -- assignee: - serhiy.storchaka nosy: +lemburg, loewis,

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

2015-05-27 Thread Ned Deily
Changes by Ned Deily n...@acm.org: -- nosy: +davin -devin ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24303 ___ ___ Python-bugs-list mailing

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

2015-05-27 Thread Mike Frysinger
Changes by Mike Frysinger vap...@users.sourceforge.net: -- nosy: +vapier ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24303 ___ ___

[issue24288] Include/opcode.h is modified during building

2015-05-27 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- assignee: - serhiy.storchaka resolution: - fixed stage: patch review - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24288

[issue24301] gzip module failing to decompress valid compressed file

2015-05-27 Thread Ned Deily
Ned Deily added the comment: Can you add a public copy of a file that fails this way? There are several open issues with gzip, like Issue1159051, that might cover this but it's hard to know for sure without a test case. -- nosy: +ned.deily type: crash -

[issue24294] DeprecationWarnings should be visible by default in the interactive REPL

2015-05-27 Thread Thomas Kluyver
Changes by Thomas Kluyver tak...@gmail.com: -- nosy: +takluyver ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24294 ___ ___ Python-bugs-list

[issue24295] Backport of #17086 causes regression in setup.py

2015-05-27 Thread Ned Deily
Changes by Ned Deily n...@acm.org: -- nosy: +doko priority: normal - high ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24295 ___ ___

Re: a more precise distance algorithm

2015-05-27 Thread Brian Blais
On Mon, May 25, 2015 at 11:11 PM, Steven D'Aprano st...@pearwood.info wrote: Let's compare three methods. def naive(a, b): return math.sqrt(a**2 + b**2) def alternate(a, b): a, b = min(a, b), max(a, b) if a == 0: return b if b == 0: return a return a * math.sqrt(1

Python 3.5 crashes on wrong %PYTHONHOME

2015-05-27 Thread Gisle Vanem
I just installed the 32-bit Python 3.5b4 via the Web-installer. First, I was a bit annoyed by the fact it installed under 'f:\ProgramFiler-x86\Python35' instead of 'f:\ProgramFiler\Python35' as I customided for. But I guess this is a WOW64 thing. I'm on Win-8.1 (64-bit). But then I noticed

Re: different types of inheritence...

2015-05-27 Thread zipher
On Tuesday, May 26, 2015 at 3:53:25 PM UTC-5, Michael Torrie wrote: On 05/26/2015 08:57 AM, zipher wrote: Comprende? I'm not trying to be cryptic here. This is a bit of OOP theory to be discussed. No, sorry. Maybe an actual example (with use case) would spur discussion. In the first

Embedded Python. Debug Version and _ctypes

2015-05-27 Thread Uladzimir Kryvian
Hi! I'm trying to use embedding of Python in my program. Simple C-program, compiled in Debug, that uses py-script that just imports ctypes gives me an error about no module named _ctypes. How to compile python lib in Visual Studio statically with ctypes support? Or how to use shared ctypes lib

Re: Python 3.5 crashes on wrong %PYTHONHOME

2015-05-27 Thread Zachary Ware
On Wed, May 27, 2015 at 1:13 PM, Gisle Vanem gva...@yahoo.no wrote: I just installed the 32-bit Python 3.5b4 via the Web-installer. First, I was a bit annoyed by the fact it installed under 'f:\ProgramFiler-x86\Python35' instead of 'f:\ProgramFiler\Python35' as I customided for. But I

[issue24244] Python exception on strftime with %f on Python 3 and Python 2 on windows

2015-05-27 Thread Yury Selivanov
Yury Selivanov added the comment: But why was it building just fine before this commit? I haven't updated my system packages in a while. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24244

[issue24244] Python exception on strftime with %f on Python 3 and Python 2 on windows

2015-05-27 Thread Steve Dower
Steve Dower added the comment: Those macros are only included if Py_BUILD_CORE is defined, regardless of platform (see Include/pyport.h). Is it possible that's being undefined somehow? -- ___ Python tracker rep...@bugs.python.org

[issue24244] Python exception on strftime with %f on Python 3 and Python 2 on windows

2015-05-27 Thread Steve Dower
Steve Dower added the comment: Looking at a `grep PY_CORE_CFLAGS`, that sounds reasonable to me. I assumed that all core files were already being compiled with Py_BUILD_CORE (they certainly are for Windows), so this seems to be an oversight for timemodule.c. --

[issue24244] Python exception on strftime with %f on Python 3 and Python 2 on windows

2015-05-27 Thread Ned Deily
Ned Deily added the comment: I think you have a Python installed in /usr/local that is interfering. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24244 ___

[issue24301] gzip module failing to decompress valid compressed file

2015-05-27 Thread Eric Gorr
New submission from Eric Gorr: I have a file whose first four bytes are 1F 8B 08 00 and if I use gunzip from the command line, it outputs: gzip: zImage_extracted.gz: decompression OK, trailing garbage ignored and correctly decompresses the file. However, if I use the gzip module to read and

[issue24244] Python exception on strftime with %f on Python 3 and Python 2 on windows

2015-05-27 Thread Yury Selivanov
Yury Selivanov added the comment: Wild guess: perhaps you did a ./configure or the Makefile did an implicit call to configure recently and/or you did a make install (to /usr/local) before? I don't have 'python' in /usr/local and /usr/local/bin --

[issue24244] Python exception on strftime with %f on Python 3 and Python 2 on windows

2015-05-27 Thread Ned Deily
Ned Deily added the comment: But do you have any Python header files in /usr/local/include? The gcc command you pasted shows -I/usr/local/include? Mine don't show that. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24244

[issue24244] Python exception on strftime with %f on Python 3 and Python 2 on windows

2015-05-27 Thread Yury Selivanov
Yury Selivanov added the comment: yury@ysmac ~/dev/py/cpython (HG: default?) $ ls /usr/local/include/ librtmp osxfuse pycairo -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24244 ___

[issue24244] Python exception on strftime with %f on Python 3 and Python 2 on windows

2015-05-27 Thread Yury Selivanov
Yury Selivanov added the comment: FWIW, I think that in order to use _Py_BEGIN_SUPPRESS_IPH timemodule.c should be compiled with PY_CORE_CFLAGS, and that should be reflected in the Makefile. -- ___ Python tracker rep...@bugs.python.org

[issue24244] Python exception on strftime with %f on Python 3 and Python 2 on windows

2015-05-27 Thread Ned Deily
Ned Deily added the comment: Yury, I'm not seeing that compile error with current head of default on OS X. Try a clean build, perhaps? -- nosy: +ned.deily ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24244

Re: SyntaxError on progress module

2015-05-27 Thread Cecil Westerhof
Op Wednesday 27 May 2015 16:51 CEST schreef Mark Lawrence: On 27/05/2015 15:11, Cecil Westerhof wrote: Op Wednesday 27 May 2015 15:44 CEST schreef Mark Lawrence: On 27/05/2015 09:42, Cecil Westerhof wrote: Op Wednesday 27 May 2015 09:30 CEST schreef alb: But here I have another question,

[issue24300] Code Refactoring in function nis_mapname()

2015-05-27 Thread pankaj.s01
New submission from pankaj.s01: Hi, Here , A code refactoring patch have been submitted for Function: nis_mapname() and File: Python-3.4.3/Modules/nismodule.c Please Review it, Thanks, Pankaj -- components: Extension Modules files: Python-3.4.3-nismodule.patch keywords: patch

[issue24298] inspect.signature includes bound argument for wrappers around bound methods

2015-05-27 Thread Petr Viktorin
Petr Viktorin added the comment: Reported by David Gibson here: https://bugzilla.redhat.com/show_bug.cgi?id=1201990 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24298 ___

[issue24298] inspect.signature includes bound argument for wrappers around bound methods

2015-05-27 Thread Petr Viktorin
New submission from Petr Viktorin: When obtaining the signature of a bound method, inspect.signature, by default, omits the self argument to the method, since it is already specified in the bound method. However, if you create a wrapper around a bound method with functools.update_wrapper()

[issue24299] 2.7.10 test__locale.py change breaks on Solaris

2015-05-27 Thread John Beck
New submission from John Beck: The upgrade from 2.7.9 to 2.7.10 resulted in test__locale failing. This test had previously succeeded. The difference is that the thousands-separator for the fr_FR locale in known_numerics was changed from '' (i.e., unknown) to ' ' (i.e. space). But on Solaris,

[issue24244] Python exception on strftime with %f on Python 3 and Python 2 on windows

2015-05-27 Thread Yury Selivanov
Yury Selivanov added the comment: This exact sequence of commands $ make clean $ ./configure $ make -j8 does not build. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24244 ___

[issue24244] Python exception on strftime with %f on Python 3 and Python 2 on windows

2015-05-27 Thread Yury Selivanov
Yury Selivanov added the comment: $ hg status shows nothing, branch is default (but 3.5 doesn't get built either) etc. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24244 ___

[issue24244] Python exception on strftime with %f on Python 3 and Python 2 on windows

2015-05-27 Thread Ned Deily
Ned Deily added the comment: Wild guess: perhaps you did a ./configure or the Makefile did an implicit call to configure recently and/or you did a make install (to /usr/local) before? -- ___ Python tracker rep...@bugs.python.org

[issue24297] Lib/symbol.py is out of sync with Grammar/Grammar

2015-05-27 Thread Roundup Robot
Roundup Robot added the comment: New changeset 843fe7e831a8 by Yury Selivanov in branch '3.5': Issue 24297: Update symbol.py. See also issue 24017. https://hg.python.org/cpython/rev/843fe7e831a8 New changeset 87509d71653b by Yury Selivanov in branch 'default': Issue 24297: Update symbol.py. See

[issue24017] Implemenation of the PEP 492 - Coroutines with async and await syntax

2015-05-27 Thread Roundup Robot
Roundup Robot added the comment: New changeset 843fe7e831a8 by Yury Selivanov in branch '3.5': Issue 24297: Update symbol.py. See also issue 24017. https://hg.python.org/cpython/rev/843fe7e831a8 New changeset 87509d71653b by Yury Selivanov in branch 'default': Issue 24297: Update symbol.py. See

[issue24297] Lib/symbol.py is out of sync with Grammar/Grammar

2015-05-27 Thread Yury Selivanov
Yury Selivanov added the comment: Attached is a new unittest to make sure that symbol.py is always updated. Essentially it's the same test that we have for keywords.py. Please review. -- assignee: - yselivanov keywords: +patch nosy: +yselivanov stage: - patch review versions:

[issue24288] Include/opcode.h is modified during building

2015-05-27 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I think the intension was to produce aligned data, but the alignment of the second column was wrong. Here is a patch that corrects formatting. -- stage: needs patch - patch review Added file:

Re: SyntaxError on progress module

2015-05-27 Thread Cecil Westerhof
Op Wednesday 27 May 2015 15:44 CEST schreef Mark Lawrence: On 27/05/2015 09:42, Cecil Westerhof wrote: Op Wednesday 27 May 2015 09:30 CEST schreef alb: But here I have another question, as a python novice is there really any reason for me to use any particular version of Python? Should I

[issue24297] Lib/symbol.py is out of sync with Grammar/Grammar

2015-05-27 Thread Brett Cannon
Changes by Brett Cannon br...@python.org: -- priority: normal - release blocker ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24297 ___ ___

[issue24296] Queue documentation note needed

2015-05-27 Thread Raymond Hettinger
Changes by Raymond Hettinger raymond.hettin...@gmail.com: -- assignee: docs@python - rhettinger nosy: +rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24296 ___

Re: should self be changed?

2015-05-27 Thread Grant Edwards
On 2015-05-27, Todd toddr...@gmail.com wrote: On Wed, May 27, 2015 at 2:40 PM, zipher dreamingforw...@gmail.com wrote: [some stupid crap] If your goal is to get people to stop calling you a troll, you are going about it the wrong way. If it isn't, why are you even here? Please remember the

Re: SyntaxError on progress module

2015-05-27 Thread Mark Lawrence
On 27/05/2015 15:11, Cecil Westerhof wrote: Op Wednesday 27 May 2015 15:44 CEST schreef Mark Lawrence: On 27/05/2015 09:42, Cecil Westerhof wrote: Op Wednesday 27 May 2015 09:30 CEST schreef alb: But here I have another question, as a python novice is there really any reason for me to use

[issue24296] Queue documentation note needed

2015-05-27 Thread Raymond Hettinger
Raymond Hettinger added the comment: It is normal for daemon threads to not be shut down. That is why they exist. The purpose of Queue.join() is to give other threads a way to know when daemons have finished doing their work (i.e. a print manager thread to indicate that it is done

[issue24288] Include/opcode.h is modified during building

2015-05-27 Thread Yury Selivanov
Yury Selivanov added the comment: lgtm -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24288 ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue24244] Python exception on strftime with %f on Python 3 and Python 2 on windows

2015-05-27 Thread Yury Selivanov
Yury Selivanov added the comment: timemodule.c no longer compiles on MacOSX: gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -Werror=declaration-after-statement -I./Include -I. -IInclude -I/usr/local/include

[issue24270] PEP 485 (math.isclose) implementation

2015-05-27 Thread Tal Einat
Tal Einat added the comment: Attached yet another revised version of the math.isclose() patch. This patch fixes a problem with the tests in the previous patch which causes them to fail when the full test suite is run. I've also slightly reworded the doc-string. Hopefully this is ready to go

[issue24244] Python exception on strftime with %f on Python 3 and Python 2 on windows

2015-05-27 Thread Steve Dower
Steve Dower added the comment: That change was in for beta 1, so we would have noticed if we didn't get Mac builds. Something else has changed, probably some headers. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24244

[issue24302] Dead Code of Handler check in function faulthandler_fatal_error()

2015-05-27 Thread pankaj.s01
New submission from pankaj.s01: Hi, There is dead code reported in this issue and I think no need to check for NULL of 'handler' in function faulthandler_fatal_error() and file Python-3.4.3/Modules/faulthandler.c . where 'handler' is pointed to staic array faulthandler_handlers[] which never

[issue24298] inspect.signature includes bound argument for wrappers around bound methods

2015-05-27 Thread Yury Selivanov
Changes by Yury Selivanov yseliva...@gmail.com: -- nosy: +yselivanov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24298 ___ ___ Python-bugs-list

[issue24244] Python exception on strftime with %f on Python 3 and Python 2 on windows

2015-05-27 Thread Yury Selivanov
Yury Selivanov added the comment: Towards the end of the configured top-level Makefile, you should see: Yes, I don't see that line. What should I do to regenerate it? And another question: what did go wrong with my checkout? -- ___ Python

[issue24244] Python exception on strftime with %f on Python 3 and Python 2 on windows

2015-05-27 Thread Majeed Arni
Majeed Arni added the comment: Though %f is a valid format from Python's doc https://docs.python.org/2/library/datetime.html, the fix just ignores it on Windows? can we atleast get milliseconds on Windows and Micro on Linux? %f Microsecond as a decimal number, zero-padded on the left.

[issue23359] Speed-up set_lookkey()

2015-05-27 Thread Raymond Hettinger
Changes by Raymond Hettinger raymond.hettin...@gmail.com: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23359 ___

[issue23359] Speed-up set_lookkey()

2015-05-27 Thread Roundup Robot
Roundup Robot added the comment: New changeset cd1e1715becd by Raymond Hettinger in branch 'default': Issue #23359: Specialize set_lookkey intoa lookup function and an insert function. https://hg.python.org/cpython/rev/cd1e1715becd -- ___ Python

[issue23275] Can assign [] = (), but not () = []

2015-05-27 Thread Raymond Hettinger
Raymond Hettinger added the comment: Berker's patch looks good. It has several virtues: * the error message is reasonable and clear * it makes the language more consistent * it doesn't break any existing code. * it makes the AST a little simpler and faster by removing a special case The

[issue24244] Python exception on strftime with %f on Python 3 and Python 2 on windows

2015-05-27 Thread Ned Deily
Ned Deily added the comment: Yury, another (less) wild guess: do you have an out-of-date Modules/Setup or Setup.local? timemodule is defined in Setup.dist but that will be overridden by a locally modified copy in the Modules directory. Towards the end of the configured top-level Makefile,

[issue24244] Python exception on strftime with %f on Python 3 and Python 2 on windows

2015-05-27 Thread R. David Murray
R. David Murray added the comment: Note that when I run into build problems after an update, I generally run 'make distclean' and then redo the configure/make. This generally cleans up any problems like this (and I don't find that I need to do it very often.) --

  1   2   3   >