[issue4609] Allow use of 256 FD's on solaris in 32 bit mode

2008-12-09 Thread Peter Saunders
Changes by Peter Saunders [EMAIL PROTECTED]: -- components: +Distutils -Interpreter Core type: - feature request ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4609

[issue4609] Allow use of 256 FD's on solaris in 32 bit mode

2008-12-09 Thread Peter Saunders
Changes by Peter Saunders [EMAIL PROTECTED]: -- components: +Interpreter Core -Distutils ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4609

[issue4515] Formatting error in What's New in Python 3.0

2008-12-03 Thread Peter Wang
New submission from Peter Wang [EMAIL PROTECTED]: In the section Removed Syntax, there is some ReST markup that leaked through into the output: The only acceptable syntax for relative imports is from .``[*module*] :keyword:`import` *name*; :keyword:`import` forms not starting

[issue4516] Another formatting error in What's New in Python 3.0

2008-12-03 Thread Peter Wang
New submission from Peter Wang [EMAIL PROTECTED]: In the Library Changes section, the next to last bullet point about string.letters has leaked through some ReST markup into the final output: :data:string.letters` -- assignee: georg.brandl components: Documentation messages: 76866 nosy

[issue4111] Add DTrace probes

2008-11-13 Thread Laszlo (Laca) Peter
Laszlo (Laca) Peter [EMAIL PROTECTED] added the comment: I'm the python package maintainer at Sun. We would really like to get the dtrace probes upstream, let me know how I can help. -- nosy: +laca ___ Python tracker [EMAIL PROTECTED] http

[issue3014] file_dealloc() assumes errno is set when EOF is returned

2008-08-28 Thread Laszlo (Laca) Peter
Changes by Laszlo (Laca) Peter [EMAIL PROTECTED]: -- nosy: +laca ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3014 ___ ___ Python-bugs-list mailing

[issue1840] Tools/i18n/msgfmt.py fixes for Python 3.0

2008-08-27 Thread Peter Harris
Peter Harris [EMAIL PROTECTED] added the comment: As far as I can tell, it is OK now. Thanks! ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue1840 ___ ___ Python

[issue2275] urllib2 header capitalization

2008-07-11 Thread Hans-Peter Jansen
Hans-Peter Jansen [EMAIL PROTECTED] added the comment: Facundo, first of all: *really* nice work, thanks a lot. While I don't fully understand the issues raised lately here, especially what broke (user code). I can see, that it completely solves my original problem, which is great. While

[issue3207] file.write() after file.readline() in mode r+

2008-06-26 Thread Peter
New submission from Peter [EMAIL PROTECTED]: Following code: fp = open(delete.me, r+t) fp.readline() fp.write(New line \n) fp.close() Won't do anything. I mean nor writing to file, nor raising exception. Nothing. I can't find any note about this crap. So, it is the best place

[issue3207] file.write() after file.readline() in mode r+

2008-06-26 Thread Peter
Changes by Peter [EMAIL PROTECTED]: ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3207 ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue3207] file.write() after file.readline() in mode r+

2008-06-26 Thread Peter
Peter [EMAIL PROTECTED] added the comment: Amaury Forgeot d'Arc, your example really raise IOError 0 Thing is that you had 1 string in the file Here is it: open(delete.me, w).write(first\nsecond\nthird) fp = open(delete.me, r+t) fp.readline() 'first\n' fp.write(Newbie) fp.close() open

[issue1180] Option to ignore or substitute ~/.pydistutils.cfg

2008-06-25 Thread Peter Fein
Peter Fein [EMAIL PROTECTED] added the comment: Is this going to make the 2.6 release? The lack of this option causes grief on MacPorts. Just wondering if there's anything I could do to move this along, as a cursory reading shows everyone to be happy... -- nosy: +pfein

[issue3193] Python 2.5.2 - Python[2420:613] Error loading / flat namespace error

2008-06-24 Thread Peter Dilley
New submission from Peter Dilley [EMAIL PROTECTED]: I have noticed a new crash when using pyglet module after installing the latest Apple security patch/framework for Quicktime, Quicktime Framework 7.5.0. This error is repeatable. This error occurs when the opened window is selected/made

[issue3193] Python 2.5.2 - Python

2008-06-24 Thread Peter Dilley
Peter Dilley [EMAIL PROTECTED] added the comment: Done at pyglet, Thanks for the update, my first Python error like that, could not determine where the issue was stemming from. My worry was the latest security patching from Apple introduced this bug with the Mac version of Python.org's

[issue1628484] Python 2.5 64 bit compile fails on Solaris 10/gcc 4.1.1

2008-06-05 Thread Peter N
Peter N [EMAIL PROTECTED] added the comment: Martin, On solaris 10 x86, this patch makes it possible to build python 2.5.x. Without it, there is no way for the automated build to work. I believe that your characterization of it as Therefore, I claim that this makes things more complex

[issue3045] Windows online help broken when spaces in TEMP environ

2008-06-05 Thread Peter Whaite
New submission from Peter Whaite [EMAIL PROTECTED]: If the environ vars TEMP or TMP contain spaces on w32 the on-line help will not work. e.g. help('or') gives the message The system cannot find the file specified. This is because pydoc.tempfilepager sets filename=tempfile.mktemp() which

[issue2966] pydoc doesnt show 'from module import identifier' in the docs

2008-05-25 Thread Peter Puk
New submission from Peter Puk [EMAIL PROTECTED]: When you try to make a doc from your programm woth pydoc, it doesnt show the the identifiers in the modules section. when i put 'from module import identifier' in my code -- components: Extension Modules messages: 67340 nosy: peter.puk

[issue2859] sphinx and virtualenv

2008-05-15 Thread Peter
New submission from Peter [EMAIL PROTECTED]: I tried to install sphinx with virtualenv.The error message is showing a missing file: ... INFORMATION the speedup extension could not be compiled, Jinja will fall back to the native python classes

[issue2527] Pass a namespace to timeit

2008-04-02 Thread Peter Otten
Peter Otten [EMAIL PROTECTED] added the comment: Alexander, I'm fine with a more specific argument name. ns was what the Timer already used internally. Antoine, from __main__ import name1, ..., nameN works fine on the command line, but inside a function you'd have to declare the names you

[issue2527] Pass a namespace to timeit

2008-04-01 Thread Peter Otten
New submission from Peter Otten [EMAIL PROTECTED]: I'd like to suggest a different approach than the one taken in rev. 54348 to improve timeit's scripting interface: allow passing it a namespace. Reasons: - It has smaller overhead for functions that take an argument: def f(a): pass

[issue1424152] urllib/urllib2: HTTPS over (Squid) Proxy fails

2008-03-31 Thread Peter Poeml
Changes by Peter Poeml [EMAIL PROTECTED]: -- nosy: +poeml _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1424152 _ ___ Python-bugs-list mailing list Unsubscribe

[issue2275] urllib2 header capitalization

2008-03-30 Thread Hans-Peter Jansen
Hans-Peter Jansen [EMAIL PROTECTED] added the comment: But should not this patch be handled in a way wherein. key.capitalize() is just replaced by key.upper()? Hmm, are you sure? hello.upper() 'HELLO' but the issue is with values containing dashes: 'accept-charset'.capitalize() 'Accept

[issue2275] urllib2 header capitalization

2008-03-30 Thread Hans-Peter Jansen
Hans-Peter Jansen [EMAIL PROTECTED] added the comment: Hi Senthil, that looks promising, and the title() trick is nice, as it fixes my issue.. Thanks, Pete __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2275

[issue1733184] slice type is unhashable

2008-03-24 Thread L. Peter Deutsch
L. Peter Deutsch [EMAIL PROTECTED] added the comment: Having now read messages 63380 and 63384, I agree with them: I would have withdrawn my proposal if it hadn't gotten rejected first. I do have a use case, but the workaround is pretty easy. _ Tracker [EMAIL

[issue2275] urllib2 header capitalization

2008-03-11 Thread Hans-Peter Jansen
New submission from Hans-Peter Jansen [EMAIL PROTECTED]: The urllib2 behavior related to headers is - hmm - improvable. It simply capitalize() the key, which leads to funny results like: Accept-charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 while this is seemingly conforming to the specs, it's simply

[issue2161] STORE_LOCAL byte code is not documented

2008-02-22 Thread Peter Tröger
New submission from Peter Tröger: The byte code STORE_LOCAL is referenced in the description of STORE_NAME, but has no own entry in the list. See here: http://docs.python.org/lib/bytecodes.html -- components: Documentation messages: 62685 nosy: troeger severity: minor status: open

[issue2020] _sha256 module missing if openssl is not in a normal directory.

2008-02-06 Thread Peter Saunders
New submission from Peter Saunders: When compiling python 2.5.1 on Solaris 10 (sparc and x86), with openssl 0.9.8e - test_md5 fails with No module named _sha256. (As does doing an import md5) When compiling, setup.dist was modified, the ssl parts were uncommented, and modified to use

[issue1868] threading.local doesn't free attrs when assigning thread exits

2008-01-18 Thread Peter Fein
New submission from Peter Fein: threading.local doesn't free attributes assigned to a local() instance when the assigning thread exits. See attached patch for _threading_local.py doctests. Per discussion with Crys and arkanes in #python, this may be an issue with PyThreadState_Clear

[issue1840] Tools/i18n/msgfmt.py fixes for Python 3.0

2008-01-16 Thread Peter Harris
New submission from Peter Harris: Python 3.0: Use bytes instead of str to construct the binary file, don't try to .sort a dict's keys(). This patch is a tentative fix - in one place I've had to provide an encoding from str to bytes and I've guessed UTF-8, which may be OK for most .po files

[issue1830] pygettext.py syntax error

2008-01-15 Thread Peter Harris
New submission from Peter Harris: Tools/i18n/pygettext.py contains a syntax error. On line 665, there is an old u'' string for testing unicode on pre-3.0 python. It should be OK to remove it. -- components: Demos and Tools messages: 59961 nosy: scav severity: normal status: open

[issue1830] pygettext.py py3k errors

2008-01-15 Thread Peter Harris
Peter Harris added the comment: Also, a couple of instances of assuming dict.keys() is a list, and trying to use .sort() on them. Patch attached for both issues. -- title: pygettext.py syntax error - pygettext.py py3k errors Added file: http://bugs.python.org/file9173/pygettext.diff

[issue1812] doctest _load_testfile function -- newline handling seems incorrect

2008-01-12 Thread Peter Donis
Peter Donis added the comment: I've uploaded a revised diff with two small improvements: (1) Removed a redundant os.isfile check in PackageLoaderTestImporter.get_data() in doctest_testfile.py. (The open() builtin already raises IOError if the file can't be opened.) (2) Added doctest.master

[issue1812] doctest _load_testfile function -- newline handling seems incorrect

2008-01-11 Thread Peter Donis
New submission from Peter Donis: When running doctest.testfile on a Linux machine, testing a txt file saved on a Windows machine, doctest raised a SyntaxError exception for each Windows newline in the txt file. On examining the code in the _load_testfile function, it looks to me like

[issue1812] doctest _load_testfile function -- newline handling seems incorrect

2008-01-11 Thread Peter Donis
Peter Donis added the comment: Edit: I should have said that the attached diff also includes changes to test_doctest.py to test for the correct newline behavior. Because the test setup is a little complex, I added an auxiliary script, doctest_testfile.py, and an accompanying text file

[issue1734] documentation on metaclasses is incomplete and misleading

2008-01-05 Thread L. Peter Deutsch
L. Peter Deutsch added the comment: Actually, called and callable are OK, if the documentation says somewhere that the normal effect of calling a type object is to invoke __new__. The places I looked first (sections 3.1, 3.3, and 3.4.1) do not say this. 5.3.4 does say that the result of calling

[issue1518] Fast globals/builtins access (patch)

2008-01-05 Thread L. Peter Deutsch
L. Peter Deutsch added the comment: Sorry, I wrote E's cached pointer to C.f, which of course should be E's cached pointer to A.f. __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1518

[issue1518] Fast globals/builtins access (patch)

2008-01-05 Thread L. Peter Deutsch
L. Peter Deutsch added the comment: The proposed approach to speeding up lookup of inherited methods is not quite sound, given that class attributes can be added and removed dynamically. Consider: class A: def f(x): ... class B(A): pass class C(B): pass If C caches a pointer to A.f

[issue1734] documentation on metaclasses is incomplete and misleading

2008-01-04 Thread L. Peter Deutsch
L. Peter Deutsch added the comment: Please reopen this issue as a documentation bug. The documentation for __new__ in section 3.4.1 says: __new__() is intended mainly to allow subclasses of immutable types (like int, str, or tuple) to customize instance creation. The documentation

[issue1734] no effect if metaclass modifies dict

2008-01-03 Thread L. Peter Deutsch
New submission from L. Peter Deutsch: In the following, dir(Node) should include the name 'z', and Node.z should be 'Node'. However, dir(Node) does not include 'z', and Node.z is undefined (AttributeError). This is directly contrary to the Python documentation, which says metaclasses can modify

[issue1691] feature request: methods that modify instances should return instance

2007-12-23 Thread Peter Farson
New submission from Peter Farson: Here's an example: I'd like to be able to reverse a list for iterating... for i in range(10).reverse() This could work if reverse method returned self, but currently it doesn't return anything. I think the overhead is slight and worth

[issue1509] Documentation lacking for the sqlite3 module.

2007-11-28 Thread Peter Mawhorter
Peter Mawhorter added the comment: I could try, but I honestly don't know exactly how the fetch* functions work. It would probably take me a good couple of hours of reading before I could write decent documentation, and as much as that would be great, I'm not about to squeeze that into my

[issue1509] Documentation lacking for the sqlite3 module.

2007-11-28 Thread Peter Mawhorter
Peter Mawhorter added the comment: Yes actually... the fetch documentation there is a sufficient explanation of the functions provided. If it could be added to docs.python.org, that would be great. There still remains the fact that the docstrings in the sqlite3 module don't agree

[issue1509] Documentation lacking for the sqlite3 module.

2007-11-27 Thread Peter Mawhorter
New submission from Peter Mawhorter: The current documentation for the sqlite3 module on the web fails to make any mention of the fetch* functions posessed by the Cursor class of that module. It in fact gives no indication of how one should extract results from sql queries. The docstrings

[issue1475] test_popen fails when the directory contains a space

2007-11-20 Thread Peter Åstrand
Peter Åstrand added the comment: I think there's some confusion in this bug. The report on http://pastebin.com/fa947767 indicates a problem in test_popen. This is a test for os.popen() and it does not have anything to do with the subprocess module. I believe it is test_popen.py that should

[issue1727780] 64/32-bit issue when unpickling random.Random

2007-11-08 Thread Peter Maxwell
Peter Maxwell added the comment: For the record, and to prevent dilution of the count of times this bug has been encountered: this issue is a duplicate of issue1472695, which was later marked won't fix for no apparent reason. sligocki's patch is more thorough than mine was and I hope it has

[issue1372] zlibmodule.c: int overflow in PyZlib_decompress

2007-11-03 Thread Peter Weseloh
Peter Weseloh added the comment: You are right. The format should be 'l'. I overlooked that. In my case the optional 'buf_size' parameter of 'decompress' is not used anyhow. Shall I change the patch accordingly? It work well for me and I now checked the code of PyArg_ParseTuple (Python

[issue1372] zlibmodule.c: int overflow in PyZlib_decompress

2007-11-02 Thread Peter Weseloh
New submission from Peter Weseloh: When I use zlib.decompress to decompress a string where the result would be 1 GB I get SystemError: Objects/stringobject.c:4089: bad argument to internal function I tracked that down to an int overflow of r_strlen in PyZlib_decompress. Using Py_ssize_t instead

[issue1241] subprocess.py stdout of childprocess always buffered.

2007-10-06 Thread Peter Ã…strand
Peter Ã…strand added the comment: Most probably, this is not a problem with the Python side or the pipes, but the libc streams in the application. stderr is normally unbuffered, while stdout is buffered. You can see this by running the app with grep: $ ./a.out | grep STDOUT STDERR sleeping 0

[issue1228] 3.0 tutorial/datastructures.rst patch

2007-10-02 Thread Peter Harris
New submission from Peter Harris: Describe 3.0 comparison behaviour (but not in much detail) -- components: Documentation files: datastructures.diff messages: 56212 nosy: scav severity: normal status: open title: 3.0 tutorial/datastructures.rst patch versions: Python 3.0

[issue1229] 3.0 library/stdtypes.rst

2007-10-02 Thread Peter Harris
New submission from Peter Harris: line 221 'loating point' - 'Floating point'. Also, maybe double-check that __cmp__ method still has special meaning in 3.0. My last patch took out mention of it because 3.0a1 seems not to support comparisons using __cmp__ method, but I could be missing

[issue1219] 3.0 library/stdtypes.rst patch

2007-09-28 Thread Peter Harris
New submission from Peter Harris: Cleanup (removal of 2.x references, long etc. ). I'm not 100% sure I've got the rich-comparison stuff correct. -- components: Documentation files: stdtypes.diff messages: 56186 nosy: scav severity: normal status: open title: 3.0 library/stdtypes.rst

[issue1211] cleanup patch for 3.0 tutorial/interpreter.rst

2007-09-27 Thread Peter Harris
New submission from Peter Harris: Proposed cleanup patch for tutorial/interpreter.rst -- components: Documentation files: interpreter.diff messages: 56164 nosy: scav severity: normal status: open title: cleanup patch for 3.0 tutorial/interpreter.rst versions: Python 3.0

[issue1212] 3.0 tutorial/introduction.rst mentions 'long'

2007-09-27 Thread Peter Harris
New submission from Peter Harris: Remove reference to 'long' in tutorial/introduction.rst. Patch attached. -- components: Documentation files: introduction.diff messages: 56165 nosy: scav severity: normal status: open title: 3.0 tutorial/introduction.rst mentions 'long' versions: Python

[issue1213] 3.0 tutorial/classes.rst patch

2007-09-27 Thread Peter Harris
New submission from Peter Harris: I think this wording is a little clearer and removes implied reference to earlier Python versions, while still giving a simplistic tutorial-level idea of what the MRO is. YMMV, so please disregard if I've made it worse. -- components: Documentation

[issue1599254] mailbox: other programs' messages can vanish without trace

2007-09-17 Thread Peter Lloyd
Changes by Peter Lloyd: -- nosy: +peter.ll _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1599254 _ ___ Python-bugs-list mailing list Unsubscribe: http

[issue1086] test_email failed

2007-09-02 Thread Peter van Kampen
Peter van Kampen added the comment: Attached is msg_15.txt encoded in utf-8. f = codecs.open('Lib/email/test/data/msg_15.txt', 'r', encoding='iso-8859-1') s = f.read() f.close() f = open('Lib/email/test/data/msg_15.txt','w') f.write(s) f.close() $ ./python Lib/test/regrtest.py test_email

<    2   3   4   5   6   7