[issue6814] xrange removal from documentation

2009-09-01 Thread Georg Brandl
Georg Brandl added the comment: Thanks, applied in r74613 (and will be merged to 3.1 branch soon). -- resolution: -> accepted status: open -> closed ___ Python tracker ___ _

[issue6813] update format() documentation and tutorial

2009-09-01 Thread Georg Brandl
Georg Brandl added the comment: Thanks, committed as r74614 (trunk), r74615 (3k). -- resolution: -> accepted status: open -> closed ___ Python tracker ___ __

[issue6808] python 3.1 documentation tutorial classes

2009-09-01 Thread Georg Brandl
Georg Brandl added the comment: Fixed 1.) in r74616. The "instances of C" is already correct in the sources. -- resolution: -> fixed status: open -> closed ___ Python tracker _

[issue6815] UnicodeDecodeError in os.path.expandvars

2009-09-01 Thread Alexandr Zamaraev
New submission from Alexandr Zamaraev : OS Windows Vista Home Basic Ru + sp2 Python 2.6.2 (r262:71605, Apr 14 2009, 22:40:02) [MSC v.1500 32 bit (Intel)] on win32 Simple code to crach (file expandvars_bug.py): [code] # -*- coding: cp1251 -*- import os.path var = r'C:\Вася\Microsoft' print os.pa

[issue6798] Argument for sys.settrace() callbacks documented incorrectly

2009-09-01 Thread Georg Brandl
Georg Brandl added the comment: It certainly seems to be implemented this way in ceval.c. I don't know if the docs describe the implementation intent better, but I'd say that this is then such a minor issue that just documenting the actual behavior is the best thing to do. -- _

[issue6765] math.log, log10 inconsistency

2009-09-01 Thread Georg Brandl
Georg Brandl added the comment: Okay, I made changes along Terry' suggestions in r74617. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ __

[issue6815] UnicodeDecodeError in os.path.expandvars

2009-09-01 Thread Ezio Melotti
Ezio Melotti added the comment: If you don't specify the encoding, unicode() will decode 'var' using the default ascii codec and it will fail if 'var' contains non-ascii characters. You should use var.decode(encoding) instead. The fact that the first print is not displayed correctly is probably

[issue6239] c_char_p return value returns string, not bytes

2009-09-01 Thread Georg Brandl
Georg Brandl added the comment: Assigning back to Thomas for commit. -- assignee: benjamin.peterson -> theller resolution: -> accepted ___ Python tracker ___ ___

[issue6810] add link to the documentation of signal.signal

2009-09-01 Thread Georg Brandl
Georg Brandl added the comment: I added a link and an anchor in r74618. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___

[issue6754] Non-existent member 'nb_inplace_divide' in PyNumberMethods

2009-09-01 Thread Georg Brandl
Georg Brandl added the comment: Thanks, fixed in r74619. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Py

[issue6732] PyInit_shoddy() in shoddy.c does not return anything on success

2009-09-01 Thread Georg Brandl
Georg Brandl added the comment: Thanks, fixed in r74620. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Py

[issue6638] optparse parse_args argument references wrong

2009-09-01 Thread Georg Brandl
Georg Brandl added the comment: Thanks, fixed in r74621. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Py

[issue6815] UnicodeDecodeError in os.path.expandvars

2009-09-01 Thread Alexandr Zamaraev
Alexandr Zamaraev added the comment: Sorry. First code is: var = ${APPDATA}\Microsoft\Windows\Start Menu In my windows F:\Lang\sf.net\svn\appupdater>echo %APPDATA% C:\Users\Леново\AppData\Roaming -- ___ Python tracker

[issue6815] UnicodeDecodeError in os.path.expandvars

2009-09-01 Thread Alexandr Zamaraev
Alexandr Zamaraev added the comment: All code: [code] # -*- coding: cp1251 -*- import os.path var = r'${APPDATA}\Microsoft\Windows\Start Menu' print os.path.expandvars(var) print os.path.expandvars(unicode(var, 'cp1251')) [/code] Console session: [code] C:\Users\Леново\AppData\Roaming\Microsoft

[issue6813] update format() documentation and tutorial

2009-09-01 Thread Eric Smith
Eric Smith added the comment: 2.7 does not support the !a conversion specifier. It's only available in 3.1 and above. It's because ascii() is a 3.x only builtin. -- nosy: +eric.smith ___ Python tracker ___

[issue6813] update format() documentation and tutorial

2009-09-01 Thread Eric Smith
Eric Smith added the comment: Never mind, I see that you didn't add the !a docs to trunk. -- ___ Python tracker ___ ___ Python-bugs-li

[issue5885] uuid.uuid1() is too slow

2009-09-01 Thread Daniel Black
Daniel Black added the comment: This is a slightly crude module version. The speedups were only 10% Python 3.2a0 (py3k:74612M, Sep 1 2009, 18:11:58) [GCC 4.3.2] on linux2 Using the same test from Wang Chun: before: uuid1(100) 101.759 microseconds after: uuid1(100

[issue5885] uuid.uuid1() is too slow

2009-09-01 Thread Daniel Black
Daniel Black added the comment: to prove it a bit more - ctype benchmark >>> import ctypes, ctypes.util >>> def uu1(n): ... t = time.time() ... _buffer = ctypes.create_string_buffer(16) ... for x in range(n): ... uuid._uuid_generate_time(_buffer) ... print('%.3f micro

[issue3724] math.log(x, 10) gives different result than math.log10(x)

2009-09-01 Thread Terry J. Reedy
Terry J. Reedy added the comment: The docs were patched in r74617 to (re)close #6765. This included something similar to the OP's math_doc.patch. -- nosy: +tjreedy ___ Python tracker ___

[issue6816] Provide CPython command line functionality via runpy module

2009-09-01 Thread Nick Coghlan
New submission from Nick Coghlan : Currently, the runpy._run_module_as_main() function allows a launch script to mimic Python's -m switch fairly well. This RFE suggests making it possible to mimic other command line behaviour of the CPython interpreter in a documented fashion: run_module_as_mai

[issue6816] Provide CPython command line functionality via runpy module

2009-09-01 Thread Nick Coghlan
Changes by Nick Coghlan : -- assignee: -> ncoghlan versions: +Python 3.2 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue6816] Provide CPython command line functionality via runpy module

2009-09-01 Thread Chris Withers
Changes by Chris Withers : -- nosy: +cjw296 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue6816] Provide CPython command line functionality via runpy module

2009-09-01 Thread Nick Coghlan
Changes by Nick Coghlan : -- versions: +Python 2.7 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue4683] urllib2.HTTPDigestAuthHandler fails on third hostname?

2009-09-01 Thread Dan
Dan added the comment: Attaching a patch. I don't have a test to go with it, except for the one submitted with the bug report. -- keywords: +patch Added file: http://bugs.python.org/file14815/nonce_count.diff ___ Python tracker

[issue5689] please support lzma compression as an extension and in the tarfile module

2009-09-01 Thread itkach
Changes by itkach : -- nosy: +itkach ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mail

[issue6434] buffer overflow in Zipfile when wrinting more than 2gig file

2009-09-01 Thread segfault42
segfault42 added the comment: still no one to help on this problem ? is someone has some idea ? -- ___ Python tracker ___ ___ Python-b

[issue3139] bytearrays are not thread safe

2009-09-01 Thread Boya Sun
Boya Sun added the comment: Although the bug is fixed, the following three code segments seems suspicious in _codecsmodule.c in the latest revision 74624, and they are similar to the bug described here: (1) escape_decode(PyObject *self, PyObject *args) { ... const char *da

[issue5705] os.getpwent returns unsigned 32bit value, os.setuid refuses it

2009-09-01 Thread Boya Sun
Boya Sun added the comment: Another potential bug discovered in posixmodule.c in the function posix_lchown: posix_lchown(PyObject *self, PyObject *args) { ... int uid, gid; ... if (!PyArg_ParseTuple(args, "etii:lchown", Py_FileSystem

[issue2722] os.getcwd fails for long path names on linux

2009-09-01 Thread Boya Sun
Boya Sun added the comment: This bug occurred in posix_getcwd() and is being fixed. Should the following code in posix_getcwdu() also be fixed the same way? posix_getcwdu(PyObject *self, PyObject *noargs) { char buf[1026]; ... #if defined(PYOS_OS2) && defined(PYCC_GCC)

[issue2620] Multiple buffer overflows in unicode processing

2009-09-01 Thread Boya Sun
Boya Sun added the comment: In Python/pyarena.c: block_new(size_t size) { /* Allocate header and block as one unit. ab_mem points just past header. */ block *b = (block *)malloc(sizeof(block) + size); ... } Should a check for overflow of "size" also be perfor

[issue6760] patch to subprocess docs to better explain Popen's 'args' argument

2009-09-01 Thread Chris Rebert
Changes by Chris Rebert : -- versions: +Python 3.1, Python 3.2 Added file: http://bugs.python.org/file14817/subprocess.rst.patch ___ Python tracker ___ ___

[issue6434] buffer overflow in Zipfile when wrinting more than 2gig file

2009-09-01 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: I did reproduce the problem, but I'm sorry I don't have the time to fix it. However, I will review any proposed patch. -- stage: -> needs patch ___ Python tracker _

[issue3139] bytearrays are not thread safe

2009-09-01 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: In theory, yes. But it happens that the GIL is not released before the buffer is used. -- ___ Python tracker ___

[issue6796] invalid print in tkinter\test\test_ttk\test_widgets.py

2009-09-01 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: You have in your PYTHONPATH a script with the same name as a standard module, and this script uses the python2 syntax. Please rename this script or change your PYTHONPATH. -- nosy: +amaury.forgeotdarc resolution: -> invalid status: open -> close

[issue2722] os.getcwd fails for long path names on linux

2009-09-01 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: Please open a new issue; and a patch is welcome. -- nosy: +amaury.forgeotdarc ___ Python tracker ___ _

[issue6817] char buffer in function posix_getcwdu should not be fix length

2009-09-01 Thread Boya Sun
New submission from Boya Sun : This issue is similar to issue 2722 (http://bugs.python.org/issue2722#), where the char buffer support that the path string has not fixed length in the function posix_getcwd(). In the function posix_getcwdu(), the char buffer is still fix length. But I think the

[issue2722] os.getcwd fails for long path names on linux

2009-09-01 Thread Boya Sun
Boya Sun added the comment: Amaury, Created issue 6817 with a patch. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue6802] build fails on Snow Leopard

2009-09-01 Thread Mark Miller
Mark Miller added the comment: This patch allows compiling, and forces everything to be x86_64. However, Python 2.6.2 still dies when attempting to install: cd Mac && make installmacsubtree DESTDIR="" DYLD_FRAMEWORK_PATH=/tmp/Python-2.6.2: ../python.exe ./scripts/cachersrc.py -v /tmp/opt/l

[issue6818] remove/delete method for zipfile/tarfile objects

2009-09-01 Thread Ross
New submission from Ross : It would be most helpful if a method could be included in the TarFile class of the tarfile module and the ZipFile class of the zipfile module that would remove a particular file (either given by a name or a TarInfo/ZipInfo object) from the archive. Usage to remove a si

[issue6818] remove/delete method for zipfile/tarfile objects

2009-09-01 Thread Ross
Changes by Ross : -- components: +IO ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mail

[issue6818] remove/delete method for zipfile/tarfile objects

2009-09-01 Thread Raymond Hettinger
Raymond Hettinger added the comment: +1 -- nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue6818] remove/delete method for zipfile/tarfile objects

2009-09-01 Thread Ross
Ross added the comment: Slight change to: "Such a method should probably only apply to archives that are in append mode as write mode would erase the original archive and read mode should render the archive immutable." The method should probably still apply to an archive in write mode. It is

[issue6819] Typo in datamodel.rst ("Custon" -> "Custom")

2009-09-01 Thread Jon Parise
New submission from Jon Parise : reference/datamodel.rst misspells "Custom" as "Custon". The attached patch fixes that. -- assignee: georg.brandl components: Documentation files: datamodel.custon.diff keywords: patch messages: 92157 nosy: georg.brandl, jon severity: normal status: open