[issue19525] Strict indentation in Python3

2013-11-07 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis added the comment: Python 3 is intentionally stricter. Try attached file. $ python2.7 test $ python2.7 -t test test: inconsistent use of tabs and spaces in indentation $ python2.7 -tt test File "test", line 3 2 ^ TabError: inconsistent use of tabs a

[issue19525] Strict indentation in Python3

2013-11-07 Thread Sworddragon
New submission from Sworddragon: Python 2 provided this command line option: "-t Issue a warning when a source file mixes tabs and spaces for indentation in a way that makes it depend on the worth of a tab expressed in spaces. Issue an error when the option is given twice." I'm wonderin

[issue1348] httplib closes socket, then tries to read from it

2013-11-07 Thread Martin Panter
Changes by Martin Panter : -- nosy: +vadmium ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue19521] parallel build race condition on AIX since python-3.2

2013-11-07 Thread Michael Haubenwallner
Michael Haubenwallner added the comment: I'm unsure about the real purpose of _testembed, but given the name it does make sense to me to export the same symbols as $(BUILDPYTHON), thus reusing python.exp. -- ___ Python tracker

[issue19523] logging.FileHandler - using of delay argument case handle leaks

2013-11-07 Thread DDGG
DDGG added the comment: If you run this script, and then view the Task Manager for this process's handles, it is growing forever. handlers -> handles. this leak handle is Handler.lock object, because the instance was not be garbage-collected. -- __

[issue11245] Implementation of IMAP IDLE in imaplib?

2013-11-07 Thread Martin Panter
Changes by Martin Panter : -- nosy: +vadmium ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue19523] logging.FileHandler - using of delay argument case handle leaks

2013-11-07 Thread DDGG
Changes by DDGG : -- title: logging.FileHandler - using of delay argument case handler leaks -> logging.FileHandler - using of delay argument case handle leaks ___ Python tracker __

[issue3244] multipart/form-data encoding

2013-11-07 Thread Martin Panter
Changes by Martin Panter : -- nosy: +vadmium ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue17823] 2to3 fixers for missing codecs

2013-11-07 Thread Martin Panter
Changes by Martin Panter : -- nosy: +vadmium ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue19251] bitwise ops for bytes of equal length

2013-11-07 Thread Martin Panter
Changes by Martin Panter : -- nosy: +vadmium ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue19490] Problem installing matplotlib 1.3.1 with Python 2.7.6rc1 and 3.3.3rc1

2013-11-07 Thread Benjamin Peterson
Benjamin Peterson added the comment: Downgrading, since this is "fixed" in release branch. -- priority: release blocker -> normal ___ Python tracker ___ _

[issue19524] ResourceWarning when urlopen() forgets the HTTPConnection object

2013-11-07 Thread Martin Panter
New submission from Martin Panter: The AbstractHTTPHandler.do_open() method creates a HTTPConnection object but does not save it anywhere. This means a ResourceWarning is eventually triggered, at least when the HTTP server leaves the the connection open. Demonstration code: from urllib.reques

[issue19523] logging.FileHandler - using of delay argument case handler leaks

2013-11-07 Thread DDGG
New submission from DDGG: Issue File: Python26\Lib\logging\__init__.py class FileHandler(StreamHandler): """ A handler class which writes formatted logging records to disk files. """ def __init__(self, filename, mode='a', encoding=None, delay=0): """ Open the spec

[issue3158] Doctest fails to find doctests in extension modules

2013-11-07 Thread R. David Murray
R. David Murray added the comment: Added some review comments. Because it could cause possibly buggy doctest fragments to run that previously did not run, I don't think it should be backported as a bug fix. -- nosy: +r.david.murray ___ Python tracke

[issue19522] A suggestion: python 3.* is not as convenient as python 2.*

2013-11-07 Thread Eric Snow
Eric Snow added the comment: A lot of thought went into Python 3 changes, including making print a function (see PEP 3105). While typing efficiency may be appealing, keep in mind that generally code will be read more than written. There are other programming languages that highly value terse

[issue19522] A suggestion: python 3.* is not as convenient as python 2.*

2013-11-07 Thread wang xuancong
New submission from wang xuancong: Hi python developers, I notice that one major change in python 3 is that you make 'print' as a standard function, and it will require typing (). As you know, reading from and writing to IO is a high frequency operation. By entropy coding theorem, you should

[issue19518] Add new PyRun_xxx() functions to not encode the filename

2013-11-07 Thread Eric Snow
Eric Snow added the comment: PEP 432 is all about the PyRun_* API and especially relates to refactoring it with the goal of improving extensibility and maintainability. I'm sure Nick could expound, but the PEP is a response to the cruft that has accumulated over the years in Python/pythonrun.

[issue19518] Add new PyRun_xxx() functions to not encode the filename

2013-11-07 Thread STINNER Victor
STINNER Victor added the comment: > PEP 432 relates pretty closely here. What is the relation between this issue and the PEP 432? -- ___ Python tracker ___ _

[issue19518] Add new PyRun_xxx() functions to not encode the filename

2013-11-07 Thread Eric Snow
Eric Snow added the comment: PEP 432 relates pretty closely here. -- nosy: +eric.snow, ncoghlan ___ Python tracker ___ ___ Python-bugs

[issue19437] More failures found by pyfailmalloc

2013-11-07 Thread Roundup Robot
Roundup Robot added the comment: New changeset f2cd38795931 by Victor Stinner in branch 'default': Issue #19437: Fix fsconvert_strdup(), raise a MemoryError on PyMem_Malloc() http://hg.python.org/cpython/rev/f2cd38795931 New changeset f88c6417b9f6 by Victor Stinner in branch 'default': Issue #19

[issue17762] platform.linux_distribution() should honor /etc/os-release

2013-11-07 Thread Matthias Klose
Matthias Klose added the comment: my concern here is that platform.linux_distribution returns different values for the tuple, wether os-release is found or the lsb config file is found. I don't know about a good solution, however if the return value has different values, that has to be clearl

[issue17762] platform.linux_distribution() should honor /etc/os-release

2013-11-07 Thread STINNER Victor
STINNER Victor added the comment: Comments on add_os_release_support_2.patch: - You should not write a huge try/except OSError block. I would prefer something like: try: f = open(...) except OSError: return None with f: ... - I'm not sure about that, but you might use errors='surroga

[issue19518] Add new PyRun_xxx() functions to not encode the filename

2013-11-07 Thread STINNER Victor
STINNER Victor added the comment: > Updated patch addressing some remarks of Serhiy and adding documentation. Oh, and it adds also an unit test. I didn't run the unit test on Windows yet. -- ___ Python tracker ___

[issue19518] Add new PyRun_xxx() functions to not encode the filename

2013-11-07 Thread STINNER Victor
STINNER Victor added the comment: Updated patch addressing some remarks of Serhiy and adding documentation. -- Added file: http://bugs.python.org/file32538/pyrun_object-2.patch ___ Python tracker __

[issue19512] Avoid temporary Unicode strings, use identifiers to only create the string once

2013-11-07 Thread Roundup Robot
Roundup Robot added the comment: New changeset 01c4a0af73cf by Victor Stinner in branch 'default': Issue #19512, #19515: remove shared identifiers, move identifiers where they http://hg.python.org/cpython/rev/01c4a0af73cf -- ___ Python tracker

[issue19515] Share duplicated _Py_IDENTIFIER identifiers in C code

2013-11-07 Thread STINNER Victor
STINNER Victor added the comment: > New changeset 01c4a0af73cf by Victor Stinner in branch 'default': > Issue #19512, #19515: remove shared identifiers, move identifiers where they > http://hg.python.org/cpython/rev/01c4a0af73cf This changeset removes some identifiers duplicated in the same file

[issue19515] Share duplicated _Py_IDENTIFIER identifiers in C code

2013-11-07 Thread Roundup Robot
Roundup Robot added the comment: New changeset 01c4a0af73cf by Victor Stinner in branch 'default': Issue #19512, #19515: remove shared identifiers, move identifiers where they http://hg.python.org/cpython/rev/01c4a0af73cf -- nosy: +python-dev ___ Pyth

[issue16261] Fix bare excepts in various places in std lib

2013-11-07 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue19515] Share duplicated _Py_IDENTIFIER identifiers in C code

2013-11-07 Thread Andrei Dorian Duma
Andrei Dorian Duma added the comment: > @Andrei: Are you interested to work on a patch to remove identifiers > duplicated in the same file? Yes, I will provide a patch in a day or two. -- ___ Python tracker _

[issue19431] Document PyFrame_FastToLocals() and PyFrame_FastToLocalsWithError()

2013-11-07 Thread STINNER Victor
STINNER Victor added the comment: c_api_frame.patch: document some C functions of the frame object in the C API. -- keywords: +patch Added file: http://bugs.python.org/file32537/c_api_frame.patch ___ Python tracker

[issue19515] Share duplicated _Py_IDENTIFIER identifiers in C code

2013-11-07 Thread STINNER Victor
STINNER Victor added the comment: > Well, then IMHO it's not worth it. Ok, you are probably right :-) @Andrei: Are you interested to work on a patch to remove identifiers duplicated in the same file? -- ___ Python tracker

[issue19515] Share duplicated _Py_IDENTIFIER identifiers in C code

2013-11-07 Thread Antoine Pitrou
Antoine Pitrou added the comment: >> If you don't tell us what it brings (numbers?), I'm against it. > > For performances, it's probably very close to zero speed up. For > the memory, it's a few bytes per duplicated identifier. Well, then IMHO it's not worth it. --

[issue18454] distutils crashes when uploading to PyPI having only the username (no pw) defined

2013-11-07 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Same problem here. I'm currently uploading .exe files for psutil by hand. Interestingly the problem occurs with certain versions of python only (2.4, 2.5, 2.7, 3.2). -- nosy: +giampaolo.rodola ___ Python tracker

[issue19515] Share duplicated _Py_IDENTIFIER identifiers in C code

2013-11-07 Thread STINNER Victor
STINNER Victor added the comment: > If you don't tell us what it brings (numbers?), I'm against it. For performances, it's probably very close to zero speed up. For the memory, it's a few bytes per duplicated identifier. -- ___ Python tracker

[issue19515] Share duplicated _Py_IDENTIFIER identifiers in C code

2013-11-07 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Antoine, Martin: So, what do you think? Is it worth to move most common > identifiers > to a single place to not duplicate them? Well, worth what? :) If you don't tell us what it brings (numbers?), I'm against it. --

[issue19515] Share duplicated _Py_IDENTIFIER identifiers in C code

2013-11-07 Thread STINNER Victor
STINNER Victor added the comment: Antoine, Martin: So, what do you think? Is it worth to move most common identifiers to a single place to not duplicate them? If identifiers are already cleared at exit, the advantage would be to initialize duplicated identifiers more quickly, and don't initial

[issue19514] Merge duplicated _Py_IDENTIFIER identifiers in C code

2013-11-07 Thread Roundup Robot
Roundup Robot added the comment: New changeset cb4c964800af by Victor Stinner in branch 'default': Issue #19514: Add Andrei Dorian Duma to Misc/ACKS for changeset 4a09cc62419b http://hg.python.org/cpython/rev/cb4c964800af -- ___ Python tracker

[issue1534607] IndexError: Add bad index to msg

2013-11-07 Thread Brett Cannon
Changes by Brett Cannon : -- resolution: -> duplicate status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue1534607] IndexError: Add bad index to msg

2013-11-07 Thread Brett Cannon
Changes by Brett Cannon : -- superseder: -> Add index attribute to IndexError ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue19521] parallel build race condition on AIX since python-3.2

2013-11-07 Thread Martin v . Löwis
Martin v. Löwis added the comment: Wouldn't it be better if linking _testembed generated _testembed.exp instead of generating python.exp? I hope using $@.exp somehow could help. Hard-coding the name of the export file sounds like a flaw in the first place. -- nosy: +loewis ___

[issue1294959] Problems with /usr/lib64 builds.

2013-11-07 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Nov 07, 2013, at 04:56 PM, Matthias Klose wrote: >I disagree about sys.implementation. It's useless and wrong for cross builds. >Please use sysconfig instead. What sysconfig is maybe missing is a set of >variables which you can rely on. Agreed that sysconfi

[issue19515] Share duplicated _Py_IDENTIFIER identifiers in C code

2013-11-07 Thread Martin v . Löwis
Martin v. Löwis added the comment: Well, that was one of the motivations of introducing this Py_IDENTIFIER machinery: to be able to cleanup at the end (unlike the static variables that were used before, which couldn't be cleaned up). -- ___ Python t

[issue19514] Merge duplicated _Py_IDENTIFIER identifiers in C code

2013-11-07 Thread Martin v . Löwis
Martin v. Löwis added the comment: Thanks for the patch. Note: moving all identifiers would not have made a difference. They are static variables, so from a run-time point of view, there is no difference whether they are inside or outside of functions. -- resolution: -> fixed status:

[issue19514] Merge duplicated _Py_IDENTIFIER identifiers in C code

2013-11-07 Thread Roundup Robot
Roundup Robot added the comment: New changeset 4a09cc62419b by Martin v. Löwis in branch 'default': Issue #19514: Deduplicate some _Py_IDENTIFIER declarations. http://hg.python.org/cpython/rev/4a09cc62419b -- nosy: +python-dev ___ Python tracker

[issue19515] Share duplicated _Py_IDENTIFIER identifiers in C code

2013-11-07 Thread STINNER Victor
STINNER Victor added the comment: > Victor: There already *is* a cleanup function that clears all allocated > identifier memory at interpreter shutdown. Please read the source. Oh, great! I never noticed _PyUnicode_ClearStaticStrings(). Call trace: Py_Finalize() -> _PyUnicode_ClearStaticString

[issue15381] Optimize BytesIO to do less reallocations when written, similarly to StringIO

2013-11-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Updated patch uses large overallocation factor (1/2 instead 1/8), it may increase the speed on Windows. Fixed implementation of __sizeof__() and some minor bugs. -- stage: needs patch -> patch review Added file: http://bugs.python.org/file32536/bytes

[issue19515] Share duplicated _Py_IDENTIFIER identifiers in C code

2013-11-07 Thread Martin v . Löwis
Martin v. Löwis added the comment: Victor: There already *is* a cleanup function that clears all allocated identifier memory at interpreter shutdown. Please read the source. -- ___ Python tracker _

[issue17080] A better error message for float()

2013-11-07 Thread Roundup Robot
Roundup Robot added the comment: New changeset a73c47c1d374 by Ezio Melotti in branch 'default': #17080: improve error message of float/complex when the wrong type is passed. http://hg.python.org/cpython/rev/a73c47c1d374 -- nosy: +python-dev ___ Pytho

[issue17080] A better error message for float()

2013-11-07 Thread Ezio Melotti
Ezio Melotti added the comment: Fixed, thanks for the review. -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___ ___

[issue19497] selectors and modify()

2013-11-07 Thread Guido van Rossum
Guido van Rossum added the comment: Fixed by revision 9c976f1b17e9. -- assignee: -> gvanrossum resolution: -> fixed status: open -> closed ___ Python tracker ___ __

[issue1294959] Problems with /usr/lib64 builds.

2013-11-07 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis added the comment: configure.ac should accept an option, which allows to set any custom libdir. Examples (architecture: libdir) in Gentoo: x32: libx32 mips o32: lib mips n32: lib32 mips n64: lib64 -- ___ P

[issue1294959] Problems with /usr/lib64 builds.

2013-11-07 Thread Matthias Klose
Matthias Klose added the comment: I disagree about sys.implementation. It's useless and wrong for cross builds. Please use sysconfig instead. What sysconfig is maybe missing is a set of variables which you can rely on. -- ___ Python tracker

[issue1294959] Problems with /usr/lib64 builds.

2013-11-07 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Nov 07, 2013, at 03:40 PM, jan matejek wrote: >To reiterate, our current solution is to introduce "sys.lib" (and "sys.arch", >but that is never used anymore) that is either "lib" or "lib64", and use this >in place of the string "lib" wherever appropriate. We

[issue1294959] Problems with /usr/lib64 builds.

2013-11-07 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 On Nov 07, 2013, at 04:05 PM, jan matejek wrote: >> - I would like to see any new OS-dependent locations in the sysconfig >> module, not the sys module. > >how would you propose to put the value into sysconfig in

[issue19512] Avoid temporary Unicode strings, use identifiers to only create the string once

2013-11-07 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue19518] Add new PyRun_xxx() functions to not encode the filename

2013-11-07 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue11698] Improve repr for structseq objects to show named, but unindexed fields

2013-11-07 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis added the comment: IMHO '*' could be used as a separator, since relation between indexable fields and named, unindexable fields is similar to relation between positional-or-keyword parameters and keyword-only parameters. $./python -c "import os; print(os.sta

[issue15114] Deprecate strict mode of HTMLParser

2013-11-07 Thread Ezio Melotti
Ezio Melotti added the comment: 3.4 is done. 3.5 strict arg removed and strict code removed HTMLParseError removed HTMLParser.error and calls to HTMLParser.error removed -- Added file: http://bugs.python.org/file32535/issue15114-3.diff ___ Python tra

[issue19480] HTMLParser fails to handle some characters in the starttag

2013-11-07 Thread Ezio Melotti
Ezio Melotti added the comment: Fixed, thanks for the feedback! -- resolution: -> fixed stage: commit review -> committed/rejected status: open -> closed ___ Python tracker ___

[issue19480] HTMLParser fails to handle some characters in the starttag

2013-11-07 Thread Roundup Robot
Roundup Robot added the comment: New changeset 695f988824bb by Ezio Melotti in branch '2.7': #19480: HTMLParser now accepts all valid start-tag names as defined by the HTML5 standard. http://hg.python.org/cpython/rev/695f988824bb New changeset 9b9d188ed549 by Ezio Melotti in branch '3.3': #1948

[issue19515] Share duplicated _Py_IDENTIFIER identifiers in C code

2013-11-07 Thread Antoine Pitrou
Antoine Pitrou added the comment: What are you trying to achieve exactly? I don't think "sharing" identifier structs will gain anything significant. Please don't make the source code less readable in search for some mythical "efficiency". -- nosy: +pitrou _

[issue19521] parallel build race condition on AIX since python-3.2

2013-11-07 Thread Michael Haubenwallner
New submission from Michael Haubenwallner: Since python-3.2, there is a race condition building in parallel on AIX: Consider these Makefile(.pre.in) rules: $(BUILDPYTHON): ... $(LINKCC) ... $(LINKFORSHARED) ... Modules/_testembed: ... $(LINKCC) ... $(LINKFORSHARED) ... Modules/_freeze_imp

[issue19514] Merge duplicated _Py_IDENTIFIER identifiers in C code

2013-11-07 Thread STINNER Victor
STINNER Victor added the comment: merge_py_identifiers_sorted.patch looks good to me. -- ___ Python tracker ___ ___ Python-bugs-list m

[issue1294959] Problems with /usr/lib64 builds.

2013-11-07 Thread jan matejek
jan matejek added the comment: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dne 7.11.2013 16:56, Matthias Klose napsal(a): > > Matthias Klose added the comment: > > the patch in msg202343 is wrong, hardcoding lib64 on Debian/Ubuntu. This patch is provided for reference only - it works for us

[issue19514] Merge duplicated _Py_IDENTIFIER identifiers in C code

2013-11-07 Thread Andrei Dorian Duma
Andrei Dorian Duma added the comment: I added a new patch with sorted _Py_IDENTIFIERs. Regarding all identifiers at the top, I guess it might be more stylish, but it might affect performance. I'm not sure, though. -- Added file: http://bugs.python.org/file32533/merge_py_identifiers_sor

[issue19515] Share duplicated _Py_IDENTIFIER identifiers in C code

2013-11-07 Thread STINNER Victor
STINNER Victor added the comment: If most identifiers are stored in the same place, it would become possible to have a "cleanup" function to clear all identifiers. Such function could be called at Python shutdown to release as much memory as possible. -- __

[issue19515] Share duplicated _Py_IDENTIFIER identifiers in C code

2013-11-07 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +andrei.duma, loewis ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https

[issue1294959] Problems with /usr/lib64 builds.

2013-11-07 Thread Matthias Klose
Matthias Klose added the comment: the patch in msg202343 is wrong, hardcoding lib64 on Debian/Ubuntu. At least the configure check should check for lib64 as a directory and not a symlink, and only then default to lib64. two other issues with the patch: - I would like to see any new OS-depend

[issue18985] Improve the documentation in fcntl module

2013-11-07 Thread R. David Murray
R. David Murray added the comment: Thanks, Vajrasky (and Victor :) -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker __

[issue19514] Merge duplicated _Py_IDENTIFIER identifiers in C code

2013-11-07 Thread Andrei Dorian Duma
Andrei Dorian Duma added the comment: The patch I promised above. -- Added file: http://bugs.python.org/file32532/merge_py_identifiers.patch ___ Python tracker ___ __

[issue18985] Improve the documentation in fcntl module

2013-11-07 Thread Roundup Robot
Roundup Robot added the comment: New changeset 0e0dded5d616 by R David Murray in branch '3.3': #18985: Improve fcntl documentation. http://hg.python.org/cpython/rev/0e0dded5d616 New changeset ddf6da99b3cd by R David Murray in branch 'default': Merge #18985: Improve fcntl documentation. http://hg

[issue19514] Merge duplicated _Py_IDENTIFIER identifiers in C code

2013-11-07 Thread Martin v . Löwis
Martin v. Löwis added the comment: Another matter of style: I suggest alphabetical order for the identifiers, at least when the list gets long. -- ___ Python tracker ___ ___

[issue19514] Merge duplicated _Py_IDENTIFIER identifiers in C code

2013-11-07 Thread Martin v . Löwis
Martin v. Löwis added the comment: As a matter of style, I suggest that all identifiers are moved to the top of a file if some of them live there. IOW, it's (IMO) unstylish to have some at the top, and some in the middle (although this works perfectly fine, of course). -- nosy: +loewis

[issue19520] Win32 compiler warning in _sha3

2013-11-07 Thread Christian Heimes
Christian Heimes added the comment: Thanks! I'll look into it. I'd rather not change the reference implementation but in this case practicality beats purity. :) -- assignee: -> christian.heimes ___ Python tracker

[issue19514] Merge duplicated _Py_IDENTIFIER identifiers in C code

2013-11-07 Thread fhahn
fhahn added the comment: I've merged the _Py_IDENTIFIER identifiers mentioned above. I stumbled over anohter instance where _Py_IDENTIFIER is used more than once: _Py_IDENTIFIER(__setitem__) : Objects/typeobject.c#l5133 _Py_IDENTIFIER(__setitem__) : Objects/typeobject.c#l5184 -- keywo

[issue19519] Parser: don't transcode input string to UTF-8 if it is already encoded to UTF-8

2013-11-07 Thread Martin v . Löwis
Martin v. Löwis added the comment: tok->enc and tok->encoding should always have the same value, except that tok->enc gets set earlier. tok->enc is used when parsing from strings, to remember what codec to use. For file based parsing, the codec object created knows what encoding to use; for s

[issue11245] Implementation of IMAP IDLE in imaplib?

2013-11-07 Thread R. David Murray
R. David Murray added the comment: Hmm. Looking at this again, it appears as though there's no way to interrupt IDLE if you want to, say, send an email. If you are actually using this in code, how are you handling that situation? -- ___ Python tra

[issue19520] Win32 compiler warning in _sha3

2013-11-07 Thread Zachary Ware
New submission from Zachary Ware: There is only one remaining compiler warning on 32-bit Windows, see [1] (buildbot doubles warning counts on the Windows bots). The warning is coming from Modules/_sha3/keccak/KeccakF-1600-opt32.c#l497, which uses extractLanes as defined on line 213. The attac

[issue1294959] Problems with /usr/lib64 builds.

2013-11-07 Thread jan matejek
jan matejek added the comment: Yes. We still have a patch for two things: 1. fix setup.py script to look for libraries in correct (lib64) prefixes, and 2. fix values returned from sysconfig, to reflect that python resides in lib64 "$prefix/lib" is hardcoded in many places. Lib64 is probably not

[issue11245] Implementation of IMAP IDLE in imaplib?

2013-11-07 Thread R. David Murray
R. David Murray added the comment: What do you mean by the whole test routine failing? The test suite is currently passing on the buildbots, so are you speaking of the new test you are trying to write? -- ___ Python tracker

[issue1294959] Problems with /usr/lib64 builds.

2013-11-07 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Is this issue still relevant? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue19519] Parser: don't transcode input string to UTF-8 if it is already encoded to UTF-8

2013-11-07 Thread STINNER Victor
STINNER Victor added the comment: > The parser should check that the input is actually valid UTF-8 data. Ah yes, correct. It looks like input data is still checked for valid UTF-8 data. I suppose that the byte strings should be decoded from UTF-8 because Python 3 manipulates Unicode strings, not

[issue19519] Parser: don't transcode input string to UTF-8 if it is already encoded to UTF-8

2013-11-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The parser should check that the input is actually valid UTF-8 data. -- ___ Python tracker ___ ___

[issue19518] Add new PyRun_xxx() functions to not encode the filename

2013-11-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I added some comments on Rietveld. Please do not commit without documentation and tests. -- ___ Python tracker ___ __

[issue19512] Avoid temporary Unicode strings, use identifiers to only create the string once

2013-11-07 Thread STINNER Victor
STINNER Victor added the comment: >> Errors become more unlikely because objects are only initialized once, near >> startup. So it put also less pressure on code handling errors :) (it is >> usually the least tested part of the code) > If there are bugs in code handling errors, they should be

[issue19512] Avoid temporary Unicode strings, use identifiers to only create the string once

2013-11-07 Thread STINNER Victor
STINNER Victor added the comment: > Serhiy is right. You have to be responsible with the Py* namespace, and keep > new functions private unless they are useful enough to the outside and you > document them. I created the issue #19518 to discuss this part (but also to propose other enhancement

[issue19518] Add new PyRun_xxx() functions to not encode the filename

2013-11-07 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +georg.brandl ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue1175] .readline() has bug WRT nonblocking files

2013-11-07 Thread Yuri Bochkarev
Changes by Yuri Bochkarev : -- nosy: +Yuri.Bochkarev ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue19518] Add new PyRun_xxx() functions to not encode the filename

2013-11-07 Thread STINNER Victor
STINNER Victor added the comment: 2013/11/7 Serhiy Storchaka : >> On Windows, these changes should allow to pass an unencodable filename on >> the command line (ex: japanese script name on an english setup). > > Doesn't the surrogateescape error handler solve this issue? surrogateescape is very

[issue9634] Add timeout parameter to Queue.join()

2013-11-07 Thread Yuri Bochkarev
Changes by Yuri Bochkarev : -- nosy: +Yuri.Bochkarev ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue8844] Condition.wait() doesn't raise KeyboardInterrupt

2013-11-07 Thread Yuri Bochkarev
Changes by Yuri Bochkarev : -- nosy: +Yuri.Bochkarev ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue19519] Parser: don't transcode input string to UTF-8 if it is already encoded to UTF-8

2013-11-07 Thread STINNER Victor
STINNER Victor added the comment: The patch has an issue, importing test.bad_coding2 (UTF-8 with a BOM) does not raise a SyntaxError anymore. -- Added file: http://bugs.python.org/file32528/input_is_utf8.patch ___ Python tracker

[issue1820] Enhance Object/structseq.c to match namedtuple and tuple api

2013-11-07 Thread Sunny K
Sunny K added the comment: Oops, the correct issue for improving the repr is issue11698. -- ___ Python tracker ___ ___ Python-bugs-list

[issue11698] Improve repr for structseq objects to show named, but unindexed fields

2013-11-07 Thread Sunny K
Sunny K added the comment: The previous patch had a wrong mapping between keys and values. The current implementation of repr means that duplicated keys will be present when invisible fields are included. See points 2 and 3 in http://bugs.python.org/issue1820#msg202330 for more explanation. I h

[issue19519] Parser: don't transcode input string to UTF-8 if it is already encoded to UTF-8

2013-11-07 Thread STINNER Victor
Changes by STINNER Victor : Removed file: http://bugs.python.org/file32526/input_is_utf8.patch ___ Python tracker ___ ___ Python-bugs-list mai

[issue11698] Improve repr for structseq objects to show named, but unindexed fields

2013-11-07 Thread Sunny K
Changes by Sunny K : Removed file: http://bugs.python.org/file32265/structseq.patch ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue19519] Parser: don't transcode input string to UTF-8 if it is already encoded to UTF-8

2013-11-07 Thread STINNER Victor
New submission from STINNER Victor: Python parser (Parser/tokenizer.c) has a translate_into_utf8() function to decode a string from the input encoding and encode it to UTF-8. This function is unnecessary if the input string is already encoded to UTF-8, which is something common nowadays. Linux

[issue1820] Enhance Object/structseq.c to match namedtuple and tuple api

2013-11-07 Thread Sunny K
Sunny K added the comment: New patch for 3.4 adds the following: 1. _fields 2. _replace() 3. _asdict() 4. eval(repr(s)) == s Now the issues: 1. _asdict() returns a normal dictionary. I don't know if this is what is required. 2. Both _asdict() and _replace() assume that unnamed visible fiel

[issue17823] 2to3 fixers for missing codecs

2013-11-07 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue19514] Merge duplicated _Py_IDENTIFIER identifiers in C code

2013-11-07 Thread Ian Cordasco
Changes by Ian Cordasco : -- nosy: +icordasc ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

  1   2   >