[issue25263] test_tkinter fails randomly on the buildbots "AMD64 Windows10" (3.4, 3.5, 3.x)

2015-09-29 Thread STINNER Victor
New submission from STINNER Victor: http://buildbot.python.org/all/builders/AMD64%20Windows10%203.x/builds/203/steps/test/logs/stdio == ERROR: setUpClass (tkinter.test.test_tkinter.test_font.FontTest)

[issue25263] test_tkinter fails randomly on the buildbots "AMD64 Windows10" (3.4, 3.5, 3.x)

2015-09-29 Thread STINNER Victor
Changes by STINNER Victor : -- components: +Tests, Tkinter, Windows nosy: +paul.moore, serhiy.storchaka, steve.dower, tim.golden, zach.ware ___ Python tracker

Re: Dummy Decoder Example (was Re: Parallel decoding lesson for you.)

2015-09-29 Thread Skybuck Flying
Hello, (It is now 29 september 2015) As promised here is Skybuck's Parallel Universal Code demonstration program. This posting contains a Delphi and C/C++ version for you to learn from. (I was kinda thinking of adding some kind of case statement/array and out of order execution/randomization

[issue25262] Issues with BINUNICODE8 and BINBYTES8 opcodes in pickle

2015-09-29 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: There are issues with BINUNICODE8 and BINBYTES8 opcodes in pickle. 1. Unpickling BINBYTES8 is not implemented in Python implementation. 2. Highest 32 bits of 64-bit size are silently ignored in C implementation on 32-bit platforms. 3. There are no tests

Create a .lua fle from Python

2015-09-29 Thread Ariel Argañaraz
Hi, This is my first post, I would like to know if a library that can help me with this. I want to parse a XML fle with Python and save the data into a Lua table called for example "newTable", then I want to create a "table.lua" fle with the "newTable" write on it. for example: the XML fle:

Re: multiprocessing speedup

2015-09-29 Thread Peter Otten
Rita wrote: > I am using the multiprocessing with apply_async to do some work. Each task > takes a few seconds but I have several thousand tasks. I was wondering if > there is a more efficient method and especially when I plan to operate on > a > large memory arrays (numpy) > > Here is what I

[issue25264] test_marshal always crashs on "AMD64 Windows10 2.7" buildbot

2015-09-29 Thread STINNER Victor
New submission from STINNER Victor: test_marshal crash on Windows AMD64 since the first build of the "AMD64 Windows10 2.7" buildbot: http://buildbot.python.org/all/builders/AMD64%20Windows10%202.7/builds/1/steps/test/logs/stdio It crashs since this build of the "AMD64 Windows8 2.7" buildbot:

Re: Check if a given value is out of certain range

2015-09-29 Thread Chris Angelico
On Tue, Sep 29, 2015 at 2:46 PM, Laxmikant Chitare wrote: > Hi, > > I know there is an elegant way to check if a given value is within certain > range. > Example - To check if x is between zero and ten, I can do 0 < x 10. > > Is there any similar elegant way to check

[issue23220] Documents input/output effects of how IDLE runs user code

2015-09-29 Thread Terry J. Reedy
Terry J. Reedy added the comment: Issue #21995 discussed same issue from cause side, as opposed to result. The new section is partly based on what I wrote above. I am not satisfied with it yet. New changeset ac6ade0c5927 by Terry Jan Reedy in branch '2.7': Issue 21995: Explain some

PY3.5 and nnumpy and scipy installation problem

2015-09-29 Thread Ek Esawi
Hi All again— Thanks to all who have provided excellent tips for installing Python, Numpy, Scipy, etc. Paul suggested the use Anaconda which proved to be the best and easiest way for me. If I may add I stumbled on an academic site that spells out in great details how to install Python, numpy,

[issue25262] Issues with BINUNICODE8 and BINBYTES8 opcodes in pickle

2015-09-29 Thread STINNER Victor
STINNER Victor added the comment: To access an array item, the type of the index variable must be size_t (or a type with the same size), otherwise the compiler produce less efficient machine code: http://www.viva64.com/en/a/0050/ => please keep Py_ssize_t type for i (I didn't check for the

Check if a given value is out of certain range

2015-09-29 Thread Laxmikant Chitare
Hi, I know there is an elegant way to check if a given value is within certain range. Example - To check if x is between zero and ten, I can do 0 < x 10. Is there any similar elegant way to check if a value is out of certain range? Example - To check if x is either less than zero or greater than

[issue25268] Support pointing frozen modules to the corresponding source files, if available.

2015-09-29 Thread Eric Snow
New submission from Eric Snow: (a generalization of issue #21335) One way or another, we should be able to record the appropriate path in the resulting data when a module is frozen. Keeping track of the source location is useful when debugging, especially with tracebacks. Also see a related

[issue21335] Update importlib.__init__ to reset _frozen_importlib's loader to SourceFileLoader

2015-09-29 Thread Eric Snow
Eric Snow added the comment: The underlying issue extends to all frozen modules. I've opened #25268 to consider how we might address it. -- nosy: +eric.snow ___ Python tracker

[issue25268] Support pointing frozen modules to the corresponding source files, if available.

2015-09-29 Thread Eric Snow
Changes by Eric Snow : -- nosy: +lemburg ___ Python tracker ___ ___

[issue25269] Add method to detect if a string contains surrogates

2015-09-29 Thread R. David Murray
New submission from R. David Murray: Because surrogates are in several contexts used to "smuggle" bytes through string APIs using surrogateescape, it is very useful to be able to determine if a given string contains surrogates. The email package, for example, uses different logic to handle

[issue25269] Add method to detect if a string contains surrogates

2015-09-29 Thread STINNER Victor
Changes by STINNER Victor : -- components: +Unicode nosy: +ezio.melotti, haypo ___ Python tracker ___

[issue25262] Issues with BINUNICODE8 and BINBYTES8 opcodes in pickle

2015-09-29 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > To access an array item, the type of the index variable must be size_t (or a > type with the same size), otherwise the compiler produce less efficient > machine code: http://www.viva64.com/en/a/0050/ > > => please keep Py_ssize_t type for i i is small

[issue21995] Idle: pseudofiles have no buffer attribute.

2015-09-29 Thread Terry J. Reedy
Terry J. Reedy added the comment: Related #23220 has draft of part of what pushed. I want to do more on the subject. -- assignee: docs@python -> terry.reedy ___ Python tracker

[issue25220] Enhance and refactor test.regrtest (convert regrtest.py to a package)

2015-09-29 Thread Roundup Robot
Roundup Robot added the comment: New changeset e5165dcae942 by Victor Stinner in branch 'default': Issue #25220: Add test for --wait in test_regrtest https://hg.python.org/cpython/rev/e5165dcae942 -- ___ Python tracker

[issue18814] Add utilities to "clean" surrogate code points from strings

2015-09-29 Thread R. David Murray
R. David Murray added the comment: Done: issue 25269. -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue25157] Installing Python 3.5.0 32bit on Windows 8.1 64bit system gives Error 0x80240017

2015-09-29 Thread Steve Dower
Changes by Steve Dower : -- components: +Windows nosy: +paul.moore, steve.dower, tim.golden, zach.ware ___ Python tracker ___

[ANN] pythenv

2015-09-29 Thread michel . casabianca
Pythenv runs a Python script creating a virtualenv on the fly. Requirements may be passed as a requirements file or embedded in the Python script in a dedicated comment: # requirements: foo==1.2.3, bar This project is on Github: https://github.com/c4s4/pythenv Enjoy! --

Re: multiprocessing speedup

2015-09-29 Thread Oscar Benjamin
On Tue, 29 Sep 2015 at 02:22 Rita wrote: > I am using the multiprocessing with apply_async to do some work. Each task > takes a few seconds but I have several thousand tasks. I was wondering if > there is a more efficient method and especially when I plan to operate on a >

[issue25250] AttributeError: 'MSVCCompiler' object has no attribute '_MSVCCompiler__version'

2015-09-29 Thread Steve Dower
Steve Dower added the comment: Well __version is determined by looking at sys.version to see what version was used to build Python, so you aren't really getting the "actual" one, though in practice it doesn't matter. For Python 3.5 and later you could get different versions from the one that

[issue23403] Use pickle protocol 4 by default?

2015-09-29 Thread STINNER Victor
STINNER Victor added the comment: Can't we "negociate" the protocol automatically? -- nosy: +haypo ___ Python tracker ___

pytest-2.8.1: fixes and more fixes

2015-09-29 Thread holger krekel
Just 11 days after 2.8 hit PyPI we published pytest-2.8.1 which fixes a host of regressions and bugs, see the changelog excerpt below. Docs are also freshly generated at http://pytest.org including a streamlined PDF. Note that the pytest team now follows more SEMVER style versioning which

[issue24164] Support pickling objects with __new__ with keyword arguments with protocol 2+

2015-09-29 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > Hum, can you please write a short example of such class which can only be > pickled by the protocol 4 currently? Just for my information. For now there are no such classes in the stdlib. No one implements __getnewargs_ex__. But an alternative

Re: Issue: cannot successfully install Python 3 on Windows 7

2015-09-29 Thread Gisle Vanem
Gilad Mayani wrote: I always get this message: the program can't start because api-ms-win-crt-runtime-I1-1-0.dll is missing from your computer. Is that really an 'I' in there? The .dll should really be named: %SystemRoot%\system32\api-ms-win-crt-runtime-l1-1-0.dll with an lower-case

[ANN] pythenv

2015-09-29 Thread casa
Pythenv runs a Python script creating a virtualenv on the fly. Requirements may be passed as a requirements file or embedded in the Python script in a dedicated comment: # requirements: foo==1.2.3, bar This project is on Github: https://github.com/c4s4/pythenv Enjoy! --

Issue: cannot successfully install Python 3 on Windows 7

2015-09-29 Thread Gilad Mayani
Dear Python staff, I am trying to install the latest version of Python 3 on my machine, in which I already have Python 2.7.3 installed. I did this by downloading the installer from the 'Download Python 3.5.0' button from https://www.python.org/downloads/. BTW, the installer installs the 32-bit

[issue24164] Support pickling objects with __new__ with keyword arguments with protocol 2+

2015-09-29 Thread STINNER Victor
STINNER Victor added the comment: "Pickling of objects of classes whose __new__ mandates the use of keyword-only arguments is supported with protocol 4 (using a new opcode NEWOBJ_EX)." Hum, can you please write a short example of such class which can only be pickled by the protocol 4

[issue25265] Python install failed windows 8.1- Error 0x80240017: Failed to execute MSU package

2015-09-29 Thread STINNER Victor
STINNER Victor added the comment: Duplicate of bug #25157. -- nosy: +haypo resolution: -> duplicate status: open -> closed superseder: -> Installing Python 3.5.0 32bit on Windows 8.1 64bit system gives Error 0x80240017 ___ Python tracker

[issue25265] Python install failed windows 8.1- Error 0x80240017: Failed to execute MSU package

2015-09-29 Thread Rahil Khurshid
New submission from Rahil Khurshid: Just downloaded and try to install the Python 3.5.0 .exe installer on Windows 8.1 Pro, which unexpectedly failed to install and crash on this error Error 0x80240017: Failed to execute MSU package (according to the logs) Then tried the older 3.4.3 .msi

Re: [issue22798] time.mktime doesn't update time.tzname

2015-09-29 Thread M.-A. Lemburg
On 29.09.2015 11:31, Akira Li wrote: > > Akira Li added the comment: > >> Would issue22798.diff patch address your issue? > > No. The issue is that C mktime() may update C tzname on some platforms > but time.mktime() does not update time.tzname on these platforms while > the time module docs

Re: Create a .lua fle from Python

2015-09-29 Thread Laura Creighton
In a message of Mon, 28 Sep 2015 18:41:09 -0300, Ariel Argañaraz writes: >Hi, >This is my first post, I would like to know if a library that can help me >with this. > > >I want to parse a XML fle with Python and save the data into a Lua table >called for example "newTable", then I want to create a

[issue18174] Make regrtest with --huntrleaks check for fd leaks

2015-09-29 Thread Roundup Robot
Roundup Robot added the comment: New changeset 0e7d71a3bf0d by Victor Stinner in branch 'default': Issue #18174: Explain why is_valid_fd() uses dup() instead of fstat() https://hg.python.org/cpython/rev/0e7d71a3bf0d -- ___ Python tracker

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

2015-09-29 Thread STINNER Victor
STINNER Victor added the comment: clru_cache_known_hash_5.larry.patch looks good to me. Python 3.5 has no more restriction to push patches, go ahead Serhiy, push it to 3.5 & 3.6. -- nosy: +haypo ___ Python tracker

Re: Question re class variable

2015-09-29 Thread alister
On Tue, 29 Sep 2015 02:27:23 -0700, plewto wrote: > I have a perplexing problem with Python 3 class variables. I wish to > generate an unique ID each time an instance of GameClass is created. > There are two versions of the __gen_id method with test run results for > each listed below the code. >

Re: Question re class variable

2015-09-29 Thread Antoon Pardon
Op 29-09-15 om 11:27 schreef ple...@gmail.com: > I have a perplexing problem with Python 3 class variables. I wish to generate > an unique ID each time an instance of GameClass is created. There are two > versions of the __gen_id method with test run results for each listed below > the code.

[issue25220] Enhance and refactor test.regrtest (convert regrtest.py to a package)

2015-09-29 Thread STINNER Victor
STINNER Victor added the comment: regrtest_class-2.patch: rebased path to try to get the [review] link. -- Added file: http://bugs.python.org/file40617/regrtest_class-2.patch ___ Python tracker

Re: Question re class variable

2015-09-29 Thread jmp
On 09/29/2015 01:02 PM, jmp wrote: class GameObject: @property def id(self): return id(self) #use the builtin id function print GameObject().id Cheers, JM I should add that until you don't serialize your object you're fine. If you need to serialize it, you may want to look at

[issue25267] Optimize UTF-8 encoder with error handlers

2015-09-29 Thread STINNER Victor
New submission from STINNER Victor: Attached patch optimizes the UTF-8 encoder for error handlers: ignore, replace, surrogateescape, surrogatepass. It is based on the patch faster_surrogates_hadling.patch written by Serhiy Storchaka in the issue #24870. It also modifies unicode_encode_ucs1()

[issue25266] mako benchmark not working in Python 3.6

2015-09-29 Thread STINNER Victor
STINNER Victor added the comment: Hum, it would be nice to patch the mako benchmark to replace inspect.getargspec() with inspect.signature() (available since Python 3.3). -- nosy: +haypo ___ Python tracker

[issue22609] Constructors of some mapping classes don't accept `self` keyword argument

2015-09-29 Thread STINNER Victor
STINNER Victor added the comment: UserDict_self_and_dict_keywords_3.patch looks good to me. -- nosy: +haypo ___ Python tracker ___

[issue23972] Asyncio reuseport

2015-09-29 Thread chris laws
chris laws added the comment: Rebase patch onto current master. -- Added file: http://bugs.python.org/file40616/23972_cjl_v003.patch ___ Python tracker

[issue25266] mako benchmark not working in Python 3.6

2015-09-29 Thread Florin Papa
New submission from Florin Papa: Hi All, My name is Florin Papa and I work in the Server Languages Optimizations Team at Intel Corporation. I would like to submit a patch that deprecates the mako benchmark for Python 3.6 and above. The mako benchmark uses inspect.getargspec(), which is

[issue25260] python -m test --coverage doesn't work on Windows

2015-09-29 Thread STINNER Victor
STINNER Victor added the comment: Attached patch simply removes the list of ignored directories. It fixes test_regrtest.test_coverage() on Windows. -- keywords: +patch nosy: +barry, georg.brandl, vinay.sajip Added file: http://bugs.python.org/file40620/regrtest_coverage.patch

[issue25250] AttributeError: 'MSVCCompiler' object has no attribute '_MSVCCompiler__version'

2015-09-29 Thread Matt Hickford
Matt Hickford added the comment: Hi Steve. Thanks for your reply. In the end I went with your something similar to your third suggestion. It's important I wanted to condition on what compiler distutils is using *now* to the build the extension on my computer, rather than what compiler was

[issue25001] Make --nowindows argument to regrtest propagate when running with -j

2015-09-29 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___

Re: Question re class variable

2015-09-29 Thread Steven D'Aprano
On Tue, 29 Sep 2015 09:17 pm, Anssi Saari wrote: [...] >> The problem is that in python you can't change a class variable through >> an instance. The moment you try, you create an instance attribute. > > That much is clear but why does his other version of __gen_id() work > (after a fashion)? It

Question re class variable

2015-09-29 Thread plewto
I have a perplexing problem with Python 3 class variables. I wish to generate an unique ID each time an instance of GameClass is created. There are two versions of the __gen_id method with test run results for each listed below the code. Originally I used the version which is now commented

[issue22798] time.mktime doesn't update time.tzname

2015-09-29 Thread Akira Li
Akira Li added the comment: > Would issue22798.diff patch address your issue? No. The issue is that C mktime() may update C tzname on some platforms but time.mktime() does not update time.tzname on these platforms while the time module docs suggest that it might be expected e.g.: Most of

[issue25111] Broken compatibility in FrameSummary equality

2015-09-29 Thread STINNER Victor
STINNER Victor added the comment: traceback_FrameSummary_equality_2.patch looks good to me, but I have the same remark than Berker (see the review). -- nosy: +haypo ___ Python tracker

[issue23640] int.from_bytes() is broken for subclasses

2015-09-29 Thread STINNER Victor
STINNER Victor added the comment: 0002-int.from_bytes-calls-constructor-for-subclasses.patch looks good to me, but see my review on Rietveld for 2 minor comments. -- nosy: +haypo ___ Python tracker

[issue25111] Broken compatibility in FrameSummary equality

2015-09-29 Thread Robert Collins
Robert Collins added the comment: LGTM too. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue18814] Add utilities to "clean" surrogate code points from strings

2015-09-29 Thread STINNER Victor
STINNER Victor added the comment: > I also want "detect if there are any surrogates". Could you please open a separated issue for this function/method? I believe that it's very different than other proposed functions/methods. It was proposed before to add methods like "is_ascii()" but the

Re: Question re class variable

2015-09-29 Thread Anssi Saari
Antoon Pardon writes: > Op 29-09-15 om 11:27 schreef ple...@gmail.com: >> I have a perplexing problem with Python 3 class variables. I wish to >> generate an unique ID each time an instance of GameClass is >> created. There are two versions of the __gen_id method

[issue24773] Implement PEP 495 (Local Time Disambiguation)

2015-09-29 Thread Akira Li
Changes by Akira Li <4kir4...@gmail.com>: -- nosy: +akira ___ Python tracker ___ ___ Python-bugs-list mailing

[issue25227] Optimize ASCII/latin1 encoder with surrogateescape error handlers

2015-09-29 Thread Roundup Robot
Roundup Robot added the comment: New changeset 128a3f03ddeb by Victor Stinner in branch 'default': Optimize ascii/latin1+surrogateescape encoders https://hg.python.org/cpython/rev/128a3f03ddeb -- ___ Python tracker

[issue25227] Optimize ASCII/latin1 encoder with surrogateescape error handlers

2015-09-29 Thread STINNER Victor
STINNER Victor added the comment: INADA Naoki: The ASCII and latin1 encoders are now up to 3 times as fast when the surrogateescape error handler is used in Python 3.6. -- nosy: +naoki, serhiy.storchaka resolution: -> fixed status: open -> closed

Re: Question re class variable

2015-09-29 Thread jmp
On 09/29/2015 11:27 AM, ple...@gmail.com wrote: I have a perplexing problem with Python 3 class variables. Your problem is that when assigning values to your class attribute, you are actually creating a instance attribute. class Foo: bar = "I'm a class attribute" def __init__(self):

Re: Question re class variable

2015-09-29 Thread Antoon Pardon
Op 29-09-15 om 13:17 schreef Anssi Saari: > Antoon Pardon writes: > >> Op 29-09-15 om 11:27 schreef ple...@gmail.com: >>> I have a perplexing problem with Python 3 class variables. I wish to >>> generate an unique ID each time an instance of GameClass is >>> created.

[issue25034] string.Formatter accepts empty fields but displays wrong when nested

2015-09-29 Thread Eric V. Smith
Eric V. Smith added the comment: Fixed in 3.4, 3.5, and 3.6. Thanks for the bug report and patch! I added you to the Misc/ACKS file. -- resolution: -> fixed stage: -> resolved status: open -> closed versions: +Python 3.6 ___ Python tracker

Re: Issue: cannot successfully install Python 3 on Windows 7

2015-09-29 Thread Oscar Benjamin
On Tue, 29 Sep 2015 at 10:22 Gilad Mayani wrote: > Dear Python staff, > > I am trying to install the latest version of Python 3 on my machine, in > which I already have Python 2.7.3 installed. > I did this by downloading the installer from the 'Download Python 3.5.0' > button

[issue9334] argparse does not accept options taking arguments beginning with dash (regression from optparse)

2015-09-29 Thread Memeplex
Memeplex added the comment: Here is another manifestation of this problem: http://bugs.python.org/issue17050 -- ___ Python tracker ___

[issue23640] int.from_bytes() is broken for subclasses

2015-09-29 Thread Stefan Krah
Stefan Krah added the comment: > There are similar issues with Decimal.from_float() (C implementation only), > chain.from_iterable(), epoll.fromfd() and kqueue.fromfd(). All these > alternative constructors don't call __new__ or __init__. Could you create new issues? I need a summary. :)

[issue25250] AttributeError: 'MSVCCompiler' object has no attribute '_MSVCCompiler__version'

2015-09-29 Thread Matt Hickford
Matt Hickford added the comment: It matters if you're trying to write a library that builds reliably 1. On Linux 2. On Windows compiler=msvc 3. On Windows compiler=mingw32 (many people set this in distutils.cfg [1]) ...for all Python versions 2.6 through 3.5 (24 combinations!) Anyway I think

[issue25034] string.Formatter accepts empty fields but displays wrong when nested

2015-09-29 Thread Roundup Robot
Roundup Robot added the comment: New changeset 9eae18e8af66 by Eric V. Smith in branch '3.4': Fixed issue #25034: Fix string.Formatter problem with auto-numbering https://hg.python.org/cpython/rev/9eae18e8af66 New changeset 65d7b4fd0332 by Eric V. Smith in branch '3.5': Issue #25034: Merge from

Re: Question re class variable

2015-09-29 Thread John Gordon
In alister writes: > why not simply use pythons builtin id function? > each new instance of an object is automatically assigned a unique ID It's only guaranteed to be unique for objects that exist at the same time. If an

[issue25250] AttributeError: 'MSVCCompiler' object has no attribute '_MSVCCompiler__version'

2015-09-29 Thread Steve Dower
Steve Dower added the comment: Once you've established that MSVC is being used, you can infer the version from the Python version, is what I meant by "it doesn't matter". The version attribute on the compiler instance is never going to differ pre-3.5, and post-3.5 it doesn't even exist.

[issue5288] tzinfo objects with sub-minute offsets are not supported (e.g. UTC+05:53:28)

2015-09-29 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: In my PEP 495 work (see issue 24773,) I relaxed the offset checks to allow any integer number of *seconds*. This was necessary to support all timezones in the Olson database. With respect to string representation of such offset, I would like to bring

[issue25266] mako benchmark not working in Python 3.6

2015-09-29 Thread Brett Cannon
Brett Cannon added the comment: We should also see if Mako 1.0.2 uses inspect.getargspec() and create a mako2 benchmark that does the right thing. As for Victor's suggestion to simply change the code, we have historically avoided modifying library code that we use in a benchmark as it changes

Re: Check if a given value is out of certain range

2015-09-29 Thread Rob Gaddi
On Tue, 29 Sep 2015 10:16:04 +0530, Laxmikant Chitare wrote: > Hi, > > I know there is an elegant way to check if a given value is within > certain range. > Example - To check if x is between zero and ten, I can do 0 < x 10. > > Is there any similar elegant way to check if a value is out of

[issue24954] No way to generate or parse timezone as produced by datetime.isoformat()

2015-09-29 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- assignee: -> belopolsky keywords: +easy ___ Python tracker ___

Re: Create a .lua fle from Python

2015-09-29 Thread jmp
On 09/28/2015 11:41 PM, Ariel Argañaraz wrote: Hi, This is my first post, I would like to know if a library that can help me with this. I want to parse a XML fle with Python and save the data into a Lua table called for example "newTable", then I want to create a "table.lua" fle with the

[issue25261] Incorrect Return Values for any() and all() Built-in Functions

2015-09-29 Thread Sreenivasulu Saya
Sreenivasulu Saya added the comment: Thanks Steven and Tim for the comments. Today, I learnt something about Python. -- ___ Python tracker ___

[issue11215] test_fileio error on AIX

2015-09-29 Thread Arnon Yaari
Arnon Yaari added the comment: Some AIX systems have seekable /dev/tty, as is the case here and in msg90762, and on my system too. There is already an exemption in test_fileio.py for systems that have a seekable /dev/tty. AIX just needs to be exempt too. (from my experience, AIX and Solaris

[issue25270] codecs.escape_encode systemerror on empty byte string

2015-09-29 Thread Paul Kehrer
New submission from Paul Kehrer: Python 3.5.0 (default, Sep 13 2015, 10:33:07) [GCC 4.2.1 Compatible Apple LLVM 6.1.0 (clang-602.0.53)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import codecs >>> codecs.escape_encode(b'') Traceback (most recent call

[issue25271] SystemError when doing codecs.escape_encode(b'')

2015-09-29 Thread Zachary Ware
Changes by Zachary Ware : -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> codecs.escape_encode systemerror on empty byte string ___ Python tracker

[issue19006] UnitTest docs should have a single list of assertions

2015-09-29 Thread Arnon Yaari
Changes by Arnon Yaari : -- nosy: +wiggin15 ___ Python tracker ___ ___ Python-bugs-list

[issue25250] AttributeError: 'MSVCCompiler' object has no attribute '_MSVCCompiler__version'

2015-09-29 Thread Matt Hickford
Matt Hickford added the comment: Yes you're right. My setup.py if you're curious https://github.com/hickford/primesieve-python/blob/master/setup.py Separately, I think compiler=mingw32 is broken in Python 3.5 on computers with Visual Studio 2015 installed. http://bugs.python.org/issue25251 if

[issue25271] SystemError when doing codecs.escape_encode(b'')

2015-09-29 Thread Florian Bruhin
New submission from Florian Bruhin: I can reproduce this with 3.4.3 and 3.5.0: >>> import codecs >>> codecs.escape_encode(b'') Traceback (most recent call last): File "", line 1, in SystemError: Objects/bytesobject.c:3553: bad argument to internal function -- components: Interpreter

[issue25268] Support pointing frozen modules to the corresponding source files, if available.

2015-09-29 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: I'm not sure which kind of use for frozen modules you have in mind. The freeze tool allows you to replace paths in source path prefixes using the -r option. We use this in eGenix PyRun to set the prefix to "" since at run-time, the source files won't be

[issue25270] codecs.escape_encode systemerror on empty byte string

2015-09-29 Thread Zachary Ware
Changes by Zachary Ware : -- nosy: +The Compiler, doerwalter, lemburg stage: -> needs patch ___ Python tracker ___

[issue25220] Enhance and refactor test.regrtest (convert regrtest.py to a package)

2015-09-29 Thread Roundup Robot
Roundup Robot added the comment: New changeset 817e25bd34d0 by Victor Stinner in branch 'default': Issue #25220: Split the huge main() function of libregrtest.main into a class https://hg.python.org/cpython/rev/817e25bd34d0 -- ___ Python tracker

[issue25220] Enhance and refactor test.regrtest (convert regrtest.py to a package)

2015-09-29 Thread Roundup Robot
Roundup Robot added the comment: New changeset 12c666eea556 by Victor Stinner in branch 'default': Issue #25220: Create libregrtest/runtest_mp.py https://hg.python.org/cpython/rev/12c666eea556 -- ___ Python tracker

[issue25270] codecs.escape_encode systemerror on empty byte string

2015-09-29 Thread Berker Peksag
Changes by Berker Peksag : -- components: +Extension Modules -Interpreter Core keywords: +patch nosy: +berker.peksag stage: needs patch -> patch review versions: +Python 3.6 -Python 3.2, Python 3.3 Added file: http://bugs.python.org/file40623/issue25270.diff

[issue25274] "./python -m test test_sys": Fatal Python error: Cannot recover from stack overflow

2015-09-29 Thread Roundup Robot
Roundup Robot added the comment: New changeset 00c1cd1f0131 by Victor Stinner in branch 'default': Issue #25274: Workaround test_sys crash just to keep buildbots usable https://hg.python.org/cpython/rev/00c1cd1f0131 -- nosy: +python-dev ___ Python

[issue25220] Enhance and refactor test.regrtest (convert regrtest.py to a package)

2015-09-29 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7e07c51d8fc6 by Victor Stinner in branch 'default': Issue #25220: Use print(flush=True) in libregrtest https://hg.python.org/cpython/rev/7e07c51d8fc6 New changeset e2ed6e9163d5 by Victor Stinner in branch 'default': Issue #25220, libregrtest:

[issue22609] Constructors of some mapping classes don't accept `self` keyword argument

2015-09-29 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you all for your reviews. -- resolution: -> fixed stage: commit review -> resolved status: open -> closed ___ Python tracker

[issue22958] Constructors of weakref mapping classes don't accept "self" and "dict" keyword arguments

2015-09-29 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue22798] time.mktime doesn't update time.tzname

2015-09-29 Thread Akira Li
Akira Li added the comment: Marc-Andre Lemburg writes: ... > tzname is set when the module is being loaded and not updated > afterwards (unless you call tzset()). I can't really see why you > would expect a module global in Python to follow the semantics > of a C global,

[issue25270] codecs.escape_encode systemerror on empty byte string

2015-09-29 Thread Bruno Oliveira
Changes by Bruno Oliveira : -- nosy: +Bruno Oliveira ___ Python tracker ___ ___

[issue25220] Enhance and refactor test.regrtest (convert regrtest.py to a package)

2015-09-29 Thread Roundup Robot
Roundup Robot added the comment: New changeset e6b48bfd6d8e by Victor Stinner in branch 'default': Issue #25220: truncate some long lines in libregrtest/*.py https://hg.python.org/cpython/rev/e6b48bfd6d8e New changeset 2c53c8dcde3f by Victor Stinner in branch 'default': Issue #25220,

[issue25220] Enhance and refactor test.regrtest (convert regrtest.py to a package)

2015-09-29 Thread Roundup Robot
Roundup Robot added the comment: New changeset 8bd9422ef41e by Victor Stinner in branch 'default': Issue #25220: Enhance regrtest -jN https://hg.python.org/cpython/rev/8bd9422ef41e -- ___ Python tracker

[issue25274] "./python -m test -R 3:3: test_sys": Fatal Python error: Cannot recover from stack overflow

2015-09-29 Thread STINNER Victor
New submission from STINNER Victor: haypo@selma$ ./python -m test -R 3:3: test_sys [1/1] test_sys Fatal Python error: Cannot recover from stack overflow. Current thread 0x7f1921854700 (most recent call first): File "/home/haypo/prog/python/default/Lib/test/test_sys.py", line 209 in f

[issue22609] Constructors of some mapping classes don't accept `self` keyword argument

2015-09-29 Thread Roundup Robot
Roundup Robot added the comment: New changeset 4c5407e1b0ec by Serhiy Storchaka in branch '2.7': Issue #22609: Constructor and the update method of collections.UserDict now https://hg.python.org/cpython/rev/4c5407e1b0ec New changeset 1869f5625392 by Serhiy Storchaka in branch '3.4': Issue

[issue22958] Constructors of weakref mapping classes don't accept "self" and "dict" keyword arguments

2015-09-29 Thread Roundup Robot
Roundup Robot added the comment: New changeset 8274fc521e69 by Serhiy Storchaka in branch '2.7': Issue #22958: Constructor and update method of weakref.WeakValueDictionary https://hg.python.org/cpython/rev/8274fc521e69 New changeset 01c79072d671 by Serhiy Storchaka in branch '3.4': Issue

[issue23972] Asyncio reuseport

2015-09-29 Thread Guido van Rossum
Guido van Rossum added the comment: I added a whole bunch of review comments. Please send a new patch! -- ___ Python tracker ___

  1   2   >