[issue20440] Use Py_REPLACE/Py_XREPLACE macros

2014-02-01 Thread Martin v . Löwis
Martin v. Löwis added the comment: I think Raymond's original concern still applies: The macros do add to the learning curve. I would personally expect that Py_REPLACE(op, op2) does an INCREF on op2, but it does not. Explicit is better than implicit. -- nosy: +l

[issue17162] Py_LIMITED_API needs a PyType_GenericDealloc

2014-01-31 Thread Martin v . Löwis
Martin v. Löwis added the comment: I'm not sure we are looking at the same code base, I look at http://hg.python.org/cpython/file/b56ce3410ca6/Lib/collections/__init__.py#l401 and ISTM that collections.Counter is *not* implemented in C. Also, according to http://hg.python.org/cpython

[issue17162] Py_LIMITED_API needs a PyType_GenericDealloc

2014-01-31 Thread Martin v . Löwis
Martin v. Löwis added the comment: It's certainly possible to write a "proper" dealloc - just call PyObject_Del directly. This is correct if the type isn't subclassable, and works if it actually isn't subclassed, or if the subclass object can also be released through

[issue17162] Py_LIMITED_API needs a PyType_GenericDealloc

2014-01-30 Thread Martin v . Löwis
Martin v. Löwis added the comment: If the set of slots gets extended, extensions would have to opt-in to use the newer slots, i.e. the availability of slot numbers should be conditional at compile-time. Returning 0 for slots not supported in a version seems fine to me as well (after

[issue20414] Python 3.4 has two Overlapped types

2014-01-28 Thread Martin v . Löwis
Martin v. Löwis added the comment: See my review in Rietveld. -- ___ Python tracker <http://bugs.python.org/issue20414> ___ ___ Python-bugs-list mailing list Unsub

[issue20414] Python 3.4 has two Overlapped types

2014-01-28 Thread Martin v . Löwis
Martin v. Löwis added the comment: It seems fine to me to link pythonXY.dll with wsock32.dll. This is a standard library in Windows NT+, so there is no need to avoid linking with it. I also now agree that any change that we may make is too big for 3.4, so I propose to defer any action on this

[issue20166] window x64 c-extensions not works on python3.4.0b2

2014-01-28 Thread Martin v . Löwis
Martin v. Löwis added the comment: I think the change should be reverted, and the original issue closed as "won't fix". Alternatively, to fix the original issue, the specific linker warning could be suppressed. -- ___ Python

[issue20416] Marshal: special case int and float, don't use references

2014-01-28 Thread Martin v . Löwis
Martin v. Löwis added the comment: For the record, format 3 was added through issue16475, format 4 was added through issue19219. In msg175962, Kristjan argued that there is no reason _not_ to share int objects, e.g. across multiple code objects. Now it seems that this argument is flawed

[issue17162] Py_LIMITED_API needs a PyType_GenericDealloc

2014-01-28 Thread Martin v . Löwis
Martin v. Löwis added the comment: I propose a more general solution: add a function PyType_GetSlot. -- keywords: +patch Added file: http://bugs.python.org/file33762/getslot.diff ___ Python tracker <http://bugs.python.org/issue17

[issue17432] PyUnicode_ functions not accessible in Limited API on Windows

2014-01-27 Thread Martin v . Löwis
Changes by Martin v. Löwis : -- status: open -> closed ___ Python tracker <http://bugs.python.org/issue17432> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue20414] Python 3.4 has two Overlapped types

2014-01-27 Thread Martin v . Löwis
Martin v. Löwis added the comment: One sub issue then is naming: _overlapped renamed Overlapped.GetOverlappedResult to Overlapped.getresult. I think the _winapi name is better, since all other methods also use Windows API function names

[issue20414] Python 3.4 has two Overlapped types

2014-01-27 Thread Martin v . Löwis
Martin v. Löwis added the comment: I think overlapped.c should be merged back to _winapi (apparently, it started with code from _winapi). overlapped has a number of functions that aren't in _winapi, but should be (IMO). Then, the _overlapped module should be dropped. Of course, this may

[issue18321] Multivolume support in tarfile module

2014-01-27 Thread Martin v . Löwis
Martin v. Löwis added the comment: Lars, would you like to take a look? -- ___ Python tracker <http://bugs.python.org/issue18321> ___ ___ Python-bugs-list mailin

[issue13153] IDLE crashes when pasting non-BMP unicode char on Py3

2014-01-05 Thread Martin v . Löwis
Martin v. Löwis added the comment: I completely lost track which problem is being solved here. Is it still "IDLE crashes when pasting non-BMP unicode char on Py3"? If so, how is this patch solving it? IMO, the issue shouhldn't have been reopened. Instead, a new issue shoul

[issue13115] tp_as_{number, sequence, mapping} can't be set using PyType_FromSpec

2014-01-04 Thread Martin v . Löwis
Martin v. Löwis added the comment: Since 3.2 has seen its last bugfix release, this won't be added to 3.2 anymore. -- resolution: -> fixed status: open -> closed ___ Python tracker <http://bugs.python.

[issue17432] PyUnicode_ functions not accessible in Limited API on Windows

2014-01-04 Thread Martin v . Löwis
Martin v. Löwis added the comment: This is now fixed for 3.3 and 3.4. Sorry it took so long. -- ___ Python tracker <http://bugs.python.org/issue17432> ___ ___

[issue19526] Review additions to the stable ABI of Python 3.4

2014-01-04 Thread Martin v . Löwis
Changes by Martin v. Löwis : -- resolution: -> fixed status: open -> closed ___ Python tracker <http://bugs.python.org/issue19526> ___ ___ Python-bugs-list

[issue19526] Review additions to the stable ABI of Python 3.4

2014-01-03 Thread Martin v . Löwis
Martin v. Löwis added the comment: The procedure to obtain the new API was this: * write a C file #define Py_LIMITED_API #include * compile this with gcc -E | grep -v '#' * diff and inspect the two preprocessor outputs. Ideally, they come out empty, but they currently sh

[issue19538] Changed function prototypes in the PEP 384 stable ABI

2014-01-03 Thread Martin v . Löwis
Martin v. Löwis added the comment: I agree with Serhiy. This use case is not "supported", i.e. it getting this compiler warning if you implement a function from the interpreter core is not a bug. The work-around that he suggests sounds reasonable to me. -- nosy: +loewis

[issue16113] SHA-3 (Keccak) support may need to be removed before 3.4

2014-01-03 Thread Martin v . Löwis
Martin v. Löwis added the comment: Thanks for the report. Restored in 8a3718f31188 -- resolution: -> fixed status: open -> closed ___ Python tracker <http://bugs.python.org/i

[issue16113] SHA-3 (Keccak) support may need to be removed before 3.4

2014-01-03 Thread Martin v . Löwis
Martin v. Löwis added the comment: I have now removed the aha code. -- resolution: -> fixed status: open -> closed ___ Python tracker <http://bugs.python.org/i

[issue19347] PEP 453 implementation tracking issue

2014-01-02 Thread Martin v . Löwis
Changes by Martin v. Löwis : -- priority: release blocker -> normal ___ Python tracker <http://bugs.python.org/issue19347> ___ ___ Python-bugs-list mai

[issue16113] SHA-3 (Keccak) support may need to be removed before 3.4

2014-01-02 Thread Martin v . Löwis
Martin v. Löwis added the comment: I just looked at the hash-forum archives (*) http://cio.nist.gov/esd/emaildir/lists/hash-forum/msg02809.html which says that they plan to publish the draft "soon after Christmas". They also indicate how the padding open issue might get resolved (a

[issue17997] ssl.match_hostname(): sub string wildcard should not match IDNA prefix

2014-01-02 Thread Martin v . Löwis
Changes by Martin v. Löwis : -- priority: normal -> release blocker ___ Python tracker <http://bugs.python.org/issue17997> ___ ___ Python-bugs-list mai

[issue16113] SHA-3 (Keccak) support may need to be removed before 3.4

2014-01-02 Thread Martin v . Löwis
Martin v. Löwis added the comment: Ok, this this remains a release blocker. I'm still +1 for removing it, and I'm -0 for removing it just before the release candidate. AFAICT, there is *zero* (.1) chance that it actually becomes a NIST standard before the Python relea

[issue16043] xmlrpc: gzip_decode has unlimited read()

2014-01-02 Thread Martin v . Löwis
Martin v. Löwis added the comment: Demoting this from release blocker: apparently, the release-blocking property was only intended for 2.6.9, which has been released. -- nosy: +loewis priority: release blocker -> critical ___ Python tracker &l

[issue19407] PEP 453: update the "Installing Python Modules" documentation

2014-01-02 Thread Martin v . Löwis
Martin v. Löwis added the comment: I suggest that a documentation issue cannot be a release blocker. Most people read the documentation online, and will read an update once it is available. -- nosy: +loewis ___ Python tracker <h

[issue19347] PEP 453 implementation tracking issue

2014-01-02 Thread Martin v . Löwis
Martin v. Löwis added the comment: I propose to downgrade this from "release blocker" again. "prefer to have everything we can sorted" is IMO not a sufficient rationale to block the release; if taken literally, 3.4 could never ever release since it doesn't have eve

[issue19749] test_venv failure on AIX: 'module' object has no attribute 'O_NOFOLLOW'

2014-01-02 Thread Martin v . Löwis
Martin v. Löwis added the comment: test_venv now passes on that buildbot, apparently since PIP 1.5 has fixed the issue, and is now bundled with Python. -- nosy: +loewis resolution: -> fixed status: open -> closed ___ Python tracker

[issue17997] ssl.match_hostname(): sub string wildcard should not match IDNA prefix

2014-01-02 Thread Martin v . Löwis
Martin v. Löwis added the comment: Just to clarify the status of this issue: it *only* blocks 3.2. -- priority: release blocker -> normal ___ Python tracker <http://bugs.python.org/issu

[issue16113] SHA-3 (Keccak) support may need to be removed before 3.4

2014-01-02 Thread Martin v . Löwis
Martin v. Löwis added the comment: I'm going to remove sha3 from the trunk tomorrow unless I hear otherwise. Python shouldn't implement something called "sha3" until SHA-3 actually is a standard. According to the current NIST timeline, the comment period on the draft FIPS

[issue20000] SSLContext.get_ca_certs() and self-signed certs

2014-01-02 Thread Martin v . Löwis
Martin v. Löwis added the comment: BTW, congrats to issue 20,000. -- nosy: +loewis ___ Python tracker <http://bugs.python.org/issue2> ___ ___ Python-bug

[issue20101] Determine correct behavior for time functions on Windows

2014-01-02 Thread Martin v . Löwis
Martin v. Löwis added the comment: As a further datapoint, it would be good to find out whether any of you has NTP enabled, and if so, against what time server. To find out, open the clock settings ("Datums- und Uhrzeiteinstellungen ändern"), and go to NTP tab (&qu

[issue19728] PEP 453: enable pip by default in the Windows binary installers

2014-01-02 Thread Martin v . Löwis
Martin v. Löwis added the comment: The command works fine; I have now integrated it into the installer. -- resolution: -> fixed status: open -> closed ___ Python tracker <http://bugs.python.org/i

[issue20107] Revert PEP 453 integration

2014-01-02 Thread Martin v . Löwis
Martin v. Löwis added the comment: But it's not in git, AFAICT, https://github.com/pypa/pip/blob/1.5.X/pip/__init__.py still has "1.5rc4" in 93820f5e37, and pypi.python.org/pypi/pip still points to 1.4.1. So what do you mean by

[issue20107] Revert PEP 453 integration

2014-01-02 Thread Martin v . Löwis
Martin v. Löwis added the comment: The only "known" (to me) release date of PIP is documented on http://www.pip-installer.org/en/latest/news.html "Beta and final releases of 1.5 are planned for end of 2013." Apparently, this hasn't happened, either. Something *mus

[issue20107] Revert PEP 453 integration

2014-01-02 Thread Martin v . Löwis
New submission from Martin v. Löwis: According to PEP 453, the integration of pip must be reverted if PIP 1.5 was not released by December 29. AFAICT, this hasn't happened. So is it ok that I revert the PIP integration by Saturday? -- messages: 207149 nosy: dstufft, larry, l

[issue19846] Python 3 raises Unicode errors with the C locale

2013-12-09 Thread Martin v . Löwis
Martin v. Löwis added the comment: >From what I read, it appears that the SO posting is plain wrong. Consider, for >example, https://developer.gnome.org/glib/stable/glib-Character-Set-Conversion.html#g-filename-to-utf8 # Converts a string which is in the encoding used by GLib for fil

[issue19846] Python 3 raises Unicode errors with the C locale

2013-12-09 Thread Martin v . Löwis
Martin v. Löwis added the comment: Nick: which glib functions are you specifically referring to? Many of them don't deal with strings at all, and of those that do, many are encoding-agnostic (i.e. it is correct to claim that they operate on UTF-8, but likewise also correct that they op

[issue10976] json.loads() raises TypeError on bytes object

2013-12-01 Thread Martin v . Löwis
Martin v. Löwis added the comment: Bike-shedding: instead of jsonb, make it json.bytes. Else, it may get confused with other protocols, such as "JSONP" or "BSON". -- nosy: +loewis ___ Python tracker <http://bug

[issue19738] pytime.c loses precision under Windows

2013-11-23 Thread Martin v . Löwis
Martin v. Löwis added the comment: I think this issue can be resolved by reducing the loss to the maximum available precision; it's about time.time(), after all. I don't think pygettimeofday can change; gettimeofday traditionally has only µs. So the issue really is that it

[issue19668] Add support of the cp1125 encoding

2013-11-23 Thread Martin v . Löwis
Martin v. Löwis added the comment: +1 -- ___ Python tracker <http://bugs.python.org/issue19668> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue19728] PEP 453: enable pip by default in the binary installers

2013-11-23 Thread Martin v . Löwis
Martin v. Löwis added the comment: I agree with Nick; this is really a minor issue and we can resolve it here in the tracker. I missed the place in the PEP where it said that the option should be checked, since it mentions changes to the installers twice, and in "implementation strategy

[issue19715] test_touch_common failure under Windows

2013-11-23 Thread Martin v . Löwis
Martin v. Löwis added the comment: > AssertionError: 1385161652120374900 not greater than or equal to > 1385161652120375500 > Anything coming from T() would have "000" at the end, not "900" or "500". But "900" *is* "000" :-) A. t1

[issue19728] PEP 453: enable pip by default in the binary installers

2013-11-23 Thread Martin v . Löwis
Martin v. Löwis added the comment: This "clean uninstall" is a convention at least on Windows and Linux (except that on Linux, you have the option of leaving manually-edited configuration files behind if you wish). An MSI can indeed invoke commands on uninstall (preferably of cou

[issue19715] test_touch_common failure under Windows

2013-11-23 Thread Martin v . Löwis
Martin v. Löwis added the comment: Tim, > First, if *both* timestamps went through this code, it's monotonically > non-decreasing. ts1 < ts2 [...] but T(ts1) > T(ts2) can't happen It's as Steve says (and I tried to say before): What *can* happen is that ts1 >

[issue19715] test_touch_common failure under Windows

2013-11-22 Thread Martin v . Löwis
Martin v. Löwis added the comment: One "obvious" conversion error is this code from http://hg.python.org/cpython/file/4101bfaa76fe/Python/pytime.c#l35 microseconds = large.QuadPart / 10 - 116444736; This discard the 100ns part of the current time, rounding it down to the

[issue19715] test_touch_common failure under Windows

2013-11-22 Thread Martin v . Löwis
Martin v. Löwis added the comment: OTOH, a time.time() in units of 100ns needs 53.6 bits, so it should "almost" fit. -- ___ Python tracker <http://bugs.python.o

[issue19715] test_touch_common failure under Windows

2013-11-22 Thread Martin v . Löwis
Martin v. Löwis added the comment: Looking at the ReactOS sources, it appears that Windows doesn't do any rounding, so it's all Python's fault. Windows keeps its system time (in KI_USER_SHARED_DATA) in essentially a FILETIME represenation (i.e. units of 100ns since 1601), and

[issue19715] test_touch_common failure under Windows

2013-11-22 Thread Martin v . Löwis
Martin v. Löwis added the comment: >> Then, the utime call in step 4 asked to set this to > You mean step 3, right? ("date back 10s") No, I really meant step 4 (touch). The second touch call *really* steps backwards. I don't find that very surprising, since it is actua

[issue19715] test_touch_common failure under Windows

2013-11-22 Thread Martin v . Löwis
Martin v. Löwis added the comment: I think I found the problem. In one run, the current time (as reported by time.time()) was 1385154213.291315 On the first touch call (in step 1), the file is not there, and gets its current time internally from the system (not sure which part exactly

[issue19715] test_touch_common failure under Windows

2013-11-22 Thread Martin v . Löwis
Martin v. Löwis added the comment: IIUC, the sequence of events is this: 1. touch 2. read old_mtime 3. date back 10s 4. touch 5. read mtime So the time stamp that is set in step 3 is never read, correct? So there is no test that it is newer than the 10s-old-stamp, but only newer then the

[issue19715] test_touch_common failure under Windows

2013-11-22 Thread Martin v . Löwis
Martin v. Löwis added the comment: I don't quite understand the test: why is it dating back the file by 10s, but then not using the dated-back time stamp for anything? -- nosy: +loewis ___ Python tracker <http://bugs.python.org/is

[issue19692] Rename Py_SAFE_DOWNCAST

2013-11-22 Thread Martin v . Löwis
Martin v. Löwis added the comment: -1. The macro name doesn't claim the cast to be safe, i.e. it's not "Py_SAFELY_DOWNCAST", but "safe downcast", i.e. it's an assertion that the cast actually has been verified as be

[issue17810] Implement PEP 3154 (pickle protocol 4)

2013-11-19 Thread Martin v . Löwis
Martin v. Löwis added the comment: Attached is a patch that takes a different approach to framing, putting it into an optional framing layer by means of a buffered reader/writer. The framing structure is the same as in PEP 3154; a separate PYFRAMES magic is prepended to guard against protocol

[issue19550] PEP 453: Windows installer integration

2013-11-19 Thread Martin v . Löwis
Martin v. Löwis added the comment: I have now committed the changes to the installer. A demo installer can be found at http://prof.beuth-hochschule.de/fileadmin/user/mvon_loewis/python-3.4.16027.msi I'm skeptical about the lack of proper deinstallation: per convention, uninstallati

[issue19550] PEP 453: Windows installer integration

2013-11-14 Thread Martin v . Löwis
Martin v. Löwis added the comment: I'm currently blocked on a discrepancy of this request and PEP 453. You are asking me to run "ensurepip --upgrade", whereas the PEP asks for an option to install the bundled pip (i.e. a mere ensurepip). Which of these

[issue19550] PEP 453: Windows installer integration

2013-11-11 Thread Martin v . Löwis
Martin v. Löwis added the comment: I missed the original message. I'll try to come up with a patch. -- ___ Python tracker <http://bugs.python.org/is

[issue19550] PEP 453: Windows installer integration

2013-11-11 Thread Martin v . Löwis
Martin v. Löwis added the comment: IIUC, the current implementation strategy is to check the wheels into source control. If so, what's to be done in the installer (except for making sure that the wheels get bundled and installed into the msi, which it should do by de

[issue19515] Share duplicated _Py_IDENTIFIER identifiers in C code

2013-11-08 Thread Martin v . Löwis
Martin v. Löwis added the comment: I'd be +0 on extracting common identifiers. I see a slight increase of readability, and expect a slight reduction of memory usage, and a tiny reduction in runtime. It's not really worth the effort, but I fail to see that it causes harm. I see n

[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: +l

[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). -- ___ P

[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 sta

[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 <http://bugs.python.org/issue19

[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 <http://bugs.python.org/issue19

[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). --

[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

[issue19450] Bug in sqlite in Windows binaries

2013-10-31 Thread Martin v . Löwis
Martin v. Löwis added the comment: It's certainly possible to update SQLite without rebuilding Python. Just replace sqlite3.dll with a newer version. -- ___ Python tracker <http://bugs.python.org/is

[issue19433] Define PY_UINT64_T on Windows 32bit

2013-10-29 Thread Martin v . Löwis
Martin v. Löwis added the comment: LGTM -- ___ Python tracker <http://bugs.python.org/issue19433> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue18603] PyOS_mystricmp unused and no longer available

2013-10-22 Thread Martin v . Löwis
Martin v. Löwis added the comment: The patch looks good to me. The stable ABI was originally intended for Windows only, where the functions are guaranteed to be included in python3.dll (as the .def file references them); they are included in python3X.dll as link.exe doesn't do the same o

[issue19260] "int" comment in marshal.c is outdated

2013-10-14 Thread Martin v . Löwis
Martin v. Löwis added the comment: I agree that the comment can be removed. If the code is (now) statically type-safe, there is no point in keeping it. -- nosy: +loewis ___ Python tracker <http://bugs.python.org/issue19

[issue19210] Unicode Objects in Tuples

2013-10-11 Thread Martin v . Löwis
Martin v. Löwis added the comment: It's at https://mail.python.org/mailman/listinfo/python-list -- ___ Python tracker <http://bugs.python.org/issue19210> ___ ___

[issue19210] Unicode Objects in Tuples

2013-10-10 Thread Martin v . Löwis
Martin v. Löwis added the comment: Stephen: do you agree that your example actually doesn't demonstrate the issue you originally reported? Your first to print statements don't actually print a tuple, whereas the latter two do, and the string gets always escaped in the tuple, and

[issue12892] UTF-16 and UTF-32 codecs should reject (lone) surrogates

2013-10-08 Thread Martin v . Löwis
Martin v. Löwis added the comment: Marc-Andre: please don't confuse "use in major operating systems" with "major use in operating systems". I agree with Antoine that UTF-16 isn't widely used on Windows, despite notepad and Office supporting it. Most users on Wind

[issue19143] Finding the Windows version getting messier

2013-10-02 Thread Martin v . Löwis
Martin v. Löwis added the comment: According to http://stackoverflow.com/questions/17399302/how-can-i-detect-windows-8-1-in-a-desktop-application another strategy is to directly read the version out of the registry, from HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion (values

[issue19143] Finding the Windows version getting messier

2013-10-02 Thread Martin v . Löwis
Martin v. Löwis added the comment: tim.peters: looking at the implementation of the proposed annoying functions with names like IsWindows8Point1OrGreater, it turns out that they all go back to VerifyVersionInfoW, which is available since W2k (but still doesn't tell the actual ve

[issue19106] Prepare .hgtouch and Tools/hg/hgtouch.py to run on the bots

2013-10-01 Thread Martin v . Löwis
Martin v. Löwis added the comment: Documenting the pydotorg setup is a field of ongoing discussions. If you ask three people involved, you get three answers where this should be documented, with no chance for consensus. >From an infrastructure point of view, it is up to the infrastruct

[issue19106] Prepare .hgtouch and Tools/hg/hgtouch.py to run on the bots

2013-09-30 Thread Martin v . Löwis
Martin v. Löwis added the comment: "make touch" (or "hg touch") certainly should be mentioned. Details of the buildbot configuration need not. Publishing the buildbot configuration file might be useful, except that it also contains all the builder passwords, which should

[issue19106] Prepare .hgtouch and Tools/hg/hgtouch.py to run on the bots

2013-09-30 Thread Martin v . Löwis
Martin v. Löwis added the comment: I have now updated the master.cfg to make buildbottouch a separate build step. -- ___ Python tracker <http://bugs.python.org/issue19

[issue19106] Prepare .hgtouch and Tools/hg/hgtouch.py to run on the bots

2013-09-30 Thread Martin v . Löwis
Martin v. Löwis added the comment: Here is a patch that backdates outputs 1s after their youngest input (and sleeps if necessary to avoid producing files in the future). With that, I get lap-le:3k loewis$ touch Parser/asdl_c.py ;date;make touch;date Mo 30 Sep 2013 15:29:21 CEST hg --config

[issue19106] Prepare .hgtouch and Tools/hg/hgtouch.py to run on the bots

2013-09-30 Thread Martin v . Löwis
Martin v. Löwis added the comment: I see two solutions, both involving to track the newest timestamp that needs to pass. a) touch the file to have a time stamp in the future. make might complain, though. b) sleep until a second has passed, then touch (actually, sleep of 100ms multiple times

[issue19083] IDNA prefix should be case insensitive

2013-09-26 Thread Martin v . Löwis
Martin v. Löwis added the comment: Pepijn: Can you please submit the contributor form? http://www.python.org/psf/contrib/contrib-form/ -- ___ Python tracker <http://bugs.python.org/issue19

[issue19048] itertools.tee doesn't have a __sizeof__ method

2013-09-19 Thread Martin v . Löwis
Martin v. Löwis added the comment: Antoine: in (my experience of) memory analysis, the size of a single object is mostly irrelevant. If you need to know how much memory something consumes, you typically want to know the memory of a set of objects. So this is the case that really must be

[issue19048] itertools.tee doesn't have a __sizeof__ method

2013-09-19 Thread Martin v . Löwis
Martin v. Löwis added the comment: > The problem is that that definition isn't helpful. > If we ever change itertools.tee to use non-PyObjects internally, s > suddenly its sys.getsizeof() would have to return much larger numbers > despite visible behaviour not having changed at

[issue18961] Non-UTF8 encoding line

2013-09-16 Thread Martin v . Löwis
Martin v. Löwis added the comment: One issue at a time, please, and issue18960 is already its own issue. In any case, item "1" in "Concepts" of PEP 263 is clear that any deviation from the declared encoding should ca

[issue18961] Non-UTF8 encoding line

2013-09-16 Thread Martin v . Löwis
Martin v. Löwis added the comment: Terry: the comment isn't self-contradictory. Instead, the file constitutes a perfectly fine iso-8859-15 byte sequence (albeit a meaningless one: any byte sequence is perfectly fine iso-8559-15, and, in a comment, any characters are allowed by the P

[issue18992] test_sax fails on Windows under 3.4.0a2

2013-09-10 Thread Martin v . Löwis
Martin v. Löwis added the comment: It turns out that TortoiseHg was showing the files as modified. I have now "reverted" my local changes, so this should be fine now. I was somewhat under time pressure when making the release, so I didn't notice then (and TortoiseHg seems to

[issue18992] test_sax fails on Windows under 3.4.0a2

2013-09-10 Thread Martin v . Löwis
Martin v. Löwis added the comment: Is there an easy way to recheck the entire tree, possibly reverting any files that don't match the content that they should have? I'd rather not throw the tree away. -- ___ Python tracker <http://bu

[issue17684] Skip tests in test_socket like testFDPassSeparate on OS X

2013-08-04 Thread Martin v . Löwis
Martin v. Löwis added the comment: Thanks! -- ___ Python tracker <http://bugs.python.org/issue17684> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue18652] Add itertools.coalesce

2013-08-04 Thread Martin v . Löwis
Martin v. Löwis added the comment: Simplicity is in the eye of the beholder, yet... you need to remember the break when *writing* the code, so the loop might be more difficult to write (but then, I need to remember/lookup the function name and parameters for coalesce)... when reading the code

[issue18652] Add a “first” function to the stdlib

2013-08-04 Thread Martin v . Löwis
Martin v. Löwis added the comment: Nick: that the code is difficult to decipher is really the fault of functional programming, which is inherently difficult to decipher (since last function applied is written first). Explicit iteration is easier to read. I would write Hynek's example as

[issue18652] Add a “first” function to the stdlib

2013-08-04 Thread Martin v . Löwis
Martin v. Löwis added the comment: I also think it should go to itertools. I also found the name "first" confusing, in particular since it means what Serhiy assumes in LISP, which might be familiar to people interested in functional list processing. Also, Ruby and Smalltalk use

[issue18651] test failures on KFreeBSD

2013-08-04 Thread Martin v . Löwis
Martin v. Löwis added the comment: Note that 3.4 will need a different patch, due to issue17684. -- nosy: +loewis ___ Python tracker <http://bugs.python.org/issue18

[issue17684] Skip tests in test_socket like testFDPassSeparate on OS X

2013-08-04 Thread Martin v . Löwis
Martin v. Löwis added the comment: Charles-Francois: why did you commit this to default only, and not to 3.3? (see also issue18651) -- nosy: +loewis ___ Python tracker <http://bugs.python.org/issue17

[issue16067] UAC prompt for installation shows temporary file name

2013-08-03 Thread Martin v . Löwis
Martin v. Löwis added the comment: Thanks for the report. This is now fixed on the active branches. -- nosy: +loewis resolution: -> fixed status: open -> closed ___ Python tracker <http://bugs.python.org/i

[issue18023] msi product code for 2.7.5150 not in Tools/msi/uuids.py

2013-08-01 Thread Martin v . Löwis
Martin v. Löwis added the comment: I have now added the uuid. -- resolution: -> fixed status: open -> closed ___ Python tracker <http://bugs.python.org/i

[issue18569] Set PATHEXT in the Windows installer

2013-08-01 Thread Martin v . Löwis
Martin v. Löwis added the comment: Thanks for the patch. It works fine (with the expected limitation that you need to restart running shells for this to take effect). -- resolution: -> fixed status: open -> closed ___ Python tracker

[issue3778] python uninstaller leave registry entries

2013-08-01 Thread Martin v . Löwis
Martin v. Löwis added the comment: Nobody has contributed a patch in five years, so it apparently is pretty hard. -- ___ Python tracker <http://bugs.python.org/issue3

[issue16111] Python 2.7.3 Windows MSI installer installs the VC++ 9 dlls directly to WinSxS folder

2013-08-01 Thread Martin v . Löwis
Martin v. Löwis added the comment: This is not true. Installing the modules into the SxS folder using the Merge Module (msm) is also a recommended way of installing the DLLs. I fail to see a problem in this report. -- nosy: +loewis ___ Python

[issue18521] [cppcheck] Full report

2013-08-01 Thread Martin v . Löwis
Martin v. Löwis added the comment: Julien: I propose to resolve this issue in the same way as we have done previously with analysis tools (with some unfortunate exceptions). Somebody motivated enough (hopefully you) agrees to initially study the tool output, and ideally also then agrees to

<    1   2   3   4   5   6   7   8   9   10   >