[issue7622] [patch] improve unicode methods: split() rsplit() and replace()

2010-01-13 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Committed in r77461 (trunk), r77462 (py3k). Thank you very much! -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7622

[issue7607] stringlib fastsearch could be improved on 64-bit builds

2010-01-13 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- resolution: - out of date status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7607 ___

[issue7494] _lsprof (cProfile): Profiler.clear() keeps references to detroyed nodes

2010-01-13 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +alexandre.vassalotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7494 ___ ___

[issue7688] TypeError: __name__ must be set to a string object

2010-01-13 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- assignee: - jnoller nosy: +jnoller priority: - normal stage: - needs patch type: crash - behavior versions: +Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7688

[issue7523] add SOCK_NONBLOCK and SOCK_CLOEXEC to socket module

2010-01-13 Thread lekma
lekma lekma...@gmail.com added the comment: lekma, do you have a real name that we should add to the ACKS file? no, lekma is fine (that's a nick I carry since childhood) Looking at it again, there's the question of accept() behaviour. [...] Sorry for not having seen that earlier and thanks

[issue7658] OS X pythonw.c compile error with 10.4 or earlier deployment target: no spawn.h

2010-01-13 Thread Ned Deily
Ned Deily n...@acm.org added the comment: @Sridhar: that's the part that's not fixed yet. We'll have a patch for that shortly. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7658 ___

[issue7658] OS X pythonw.c compile error with 10.4 or earlier deployment target: no spawn.h

2010-01-13 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: Ned and Sridhar: IMO we need a configure test to detect which argument should be used to extract ppc code (ppc or ppc7400). -- ___ Python tracker rep...@bugs.python.org

[issue7689] Pickling of classes with a metaclass and copy_reg

2010-01-13 Thread Craig Citro
New submission from Craig Citro craigci...@gmail.com: Currently, it's impossible to use the usual pickle mechanisms to pickle a dynamically created class, even if the user requests a different pickling mechanism via copy_reg. The attached patch makes this customization possible by simply

[issue7671] test_popen fails if path contains special char like ;

2010-01-13 Thread Florent Xicluna
Florent Xicluna la...@yahoo.fr added the comment: It triggers some Windows buildbot failures. http://www.python.org/dev/buildbot/all/builders/x86%20XP-4%20trunk/builds/2837 -- ___ Python tracker rep...@bugs.python.org

[issue5683] Speed up cPickle's pickling generally

2010-01-13 Thread Skip Montanaro
Skip Montanaro s...@pobox.com added the comment: You can fix it if you are dumping to a file, however if you are calling dumps() you are kind of screwed if dumping large objects. There's no place to flush the buffer. I have a fix to Unladen Swallow's cPickle module. I'm run it by them

[issue5516] equality not symmetric for subclasses of datetime.date and datetime.datetime

2010-01-13 Thread Nick Coghlan
Changes by Nick Coghlan ncogh...@gmail.com: -- assignee: - ncoghlan nosy: +ncoghlan ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5516 ___ ___

[issue5683] Speed up cPickle's pickling generally

2010-01-13 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Do we need an intermediate buffer at all when called from dumps()? How about allocating the buffer as a PyStringObject, so that it can be used directly for the result in that case? (IIRC there's a handy _PyString_Resize function) --

[issue5178] Add context manager for temporary directory

2010-01-13 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: Building a collection of issues I want to take a look at for 2.7 -- assignee: - ncoghlan versions: +Python 3.2 -Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5178

[issue7690] Wrong PEP number in importlib module manual page

2010-01-13 Thread Francesco Ricciardi
New submission from Francesco Ricciardi francesco.riccia...@hp.com: At the end of section 2.9.1 of the Library Reference, i.e. the introduction to the importlib module manual page, there is the See Also box that often we can find in the manual pages. The last PEP of the box has the title

[issue7661] compiling ctypes fails with non-ascii path

2010-01-13 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: I've merged the first patch. The other one is a bit more controversial because it modifies a file from the original libffi. Besides, configure is auto-generated so you should modify configure.ac instead. --

[issue7661] compiling ctypes fails with non-ascii path

2010-01-13 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: Removed file: http://bugs.python.org/file15816/issue7661_ctypes_path.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7661 ___

[issue7384] curses crash on FreeBSD

2010-01-13 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: I've not had any success tracking the cause of this failure down, and no longer have the resources to do so. It does appear that curses itself is broken on FreeBSD: it's not just a problem with the tests. Adding Andrew Kuchling to the

[issue1266] segfault in curses when calling redrawwin() before refresh()

2010-01-13 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: I wonder whether issue 7384 (test_curses crash on FreeBSD) is related to this. There does seem to be some sort of readline interaction going on in that issue. -- nosy: +mark.dickinson ___ Python

[issue5683] Speed up cPickle's pickling generally

2010-01-13 Thread Skip Montanaro
Skip Montanaro s...@pobox.com added the comment: Perhaps. Let's take it one step at a time though. If I change your large pickle example to use dumps() instead of dump() in an unsullied Python2.5 I get a MemoryError. In general, I think you have to be careful using dumps(). Any attempt to

[issue5683] Speed up cPickle's pickling generally

2010-01-13 Thread Skip Montanaro
Skip Montanaro s...@pobox.com added the comment: Oh, BTW, the proposed fix is in Rietveld: http://codereview.appspot.com/189051 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5683 ___

[issue7686] redundant open modes 'rbb', 'wbb', 'abb' no longer work on Windows

2010-01-13 Thread Skip Montanaro
Changes by Skip Montanaro s...@pobox.com: -- nosy: +skip.montanaro ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7686 ___ ___ Python-bugs-list

[issue7691] test_bsddb3 files are not always removed when test fails

2010-01-13 Thread Florent Xicluna
New submission from Florent Xicluna la...@yahoo.fr: The series of failures 2808-2838 in buildbot x86 XP-4 is due to a file which was not removed after test 2807 was aborted. http://www.python.org/dev/buildbot/all/builders/x86%20XP-4%20trunk/builds/2807 -- components: Tests keywords:

[issue7544] Fatal error on thread creation in low memory condition

2010-01-13 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Another problem with my patch! If initsite() calls PyGILState_Ensure(): assert(autoInterpreterState) fails because autoInterpreterState is NULL. _PyGILState_Init() have to be called before initsite(). I don't know where it should

[issue7544] Fatal error on thread creation in low memory condition

2010-01-13 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: If initsite() calls PyGILState_Ensure() (...) Note: I was using gdb to track a bug on a debug build (--with-pydebug). I used pyo macro which calls _PyObject_Dump(), and _PyObject_Dump() calls PyGILState_Ensure() = assertion

[issue7692] Pointless comparision of unsigned integer with zero

2010-01-13 Thread Bugger
New submission from Bugger buffer.100.webmas...@spamgourmet.com: Hi, small preprocessor warning. Pointless comparision of unsigned integer with zero. Check PyMem_NEW. Can an usigned int be smaller than 0? comparision is pointless here. Bye, Bugger -- components: None messages:

[issue7693] tarfile.extractall can't have unicode extraction path

2010-01-13 Thread Peter Bienstman
New submission from Peter Bienstman peter.bienst...@ugent.be: import tarfile fname = unichr(40960) + ua.ogg f = file(fname, w) f.write(A) f.close() tar_pipe = tarfile.open(test.tar, mode=w|, format=tarfile.PAX_FORMAT) tar_pipe.add(fname) tar_pipe.close() tar_pipe =

[issue7692] Pointless comparision of unsigned integer with zero

2010-01-13 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Thanks for the report. This was already fixed for the trunk in r76740 (and merged to py3k in r76741); it doesn't particularly seem worth backporting the fix to the maintenance branches, since there's no real bug here. -- nosy:

[issue7652] Merge C version of decimal into py3k.

2010-01-13 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: As a first step in unifying test_decimal.py and test_cdecimal.py I would like to patch test_decimal.py in trunk and py3k. This is to minimize differences between py3k and py3k-cdecimal. (1) Remove test that Decimal(x) generates a copy.

[issue7652] Merge C version of decimal into py3k.

2010-01-13 Thread Stefan Krah
Changes by Stefan Krah stefan-use...@bytereef.org: Added file: http://bugs.python.org/file15855/trunk_help_unify.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7652 ___

[issue2846] Gzip cannot handle zero-padded output + patch

2010-01-13 Thread Brian Curtin
Changes by Brian Curtin cur...@acm.org: Removed file: http://bugs.python.org/file15852/issue2846.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2846 ___

[issue2846] Gzip cannot handle zero-padded output + patch

2010-01-13 Thread Brian Curtin
Brian Curtin cur...@acm.org added the comment: Thanks for taking a look! Patch updated with that try/except removed. -- Added file: http://bugs.python.org/file15856/issue2846.diff ___ Python tracker rep...@bugs.python.org

[issue2846] Gzip cannot handle zero-padded output + patch

2010-01-13 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Thank you Brian. I've committed the patch into trunk and py3k. I haven't backported it to 2.6 and 3.1, since it's more a new feature than a bug fix. -- resolution: - fixed stage: patch review - committed/rejected status: open - closed

[issue7384] curses crash on FreeBSD

2010-01-13 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Given your diagnosis so far, +1 on the skip. -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7384 ___

[issue7625] bytearray needs more tests for b.some_method()[0] is not b

2010-01-13 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Committed in trunk (r77475) and py3k (r77476). Thank you. -- nosy: +pitrou resolution: - fixed status: open - closed versions: -Python 2.6, Python 3.1 ___ Python tracker rep...@bugs.python.org

[issue2375] PYTHON3PATH environment variable to supersede PYTHONPATH for multi-Python environments

2010-01-13 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: Setting up specific environments for each Python version is outside the scope of Python. This is something the user needs to handle using a virtualenv setup, an env-setup shell script or similar approach. -- nosy: +lemburg

[issue1571841] email module does not complay with RFC 2046: CRLF issue

2010-01-13 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1571841 ___ ___

[issue7694] DeprecationWarning from distuils.commands.build_ext needs stacklevel

2010-01-13 Thread Tres Seaver
New submission from Tres Seaver tsea...@agendaless.com: 2.7 has a new DeprecationWarning inside the build_ext command for code which sets the 'compiler' to anything other than a string or None. Because the warning occurs within property getter / setters, it needs to boost the stacklevel for the

[issue2375] PYTHON3PATH environment variable to supersede PYTHONPATH for multi-Python environments

2010-01-13 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: I disagree with the closing of this bug on the following grounds: currently, and for the foreseeable future, there will be two python commands on many systems, 'python' and 'python3'. This is unlike the superficially similar situation

[issue2375] PYTHON3PATH environment variable to supersede PYTHONPATH for multi-Python environments

2010-01-13 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: R. David Murray wrote: R. David Murray rdmur...@bitdance.com added the comment: I disagree with the closing of this bug on the following grounds: currently, and for the foreseeable future, there will be two python commands on many

[issue2375] PYTHON3PATH environment variable to supersede PYTHONPATH for multi-Python environments

2010-01-13 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Yes, it does: rdmur...@maestro:~/python/py3kls -l ../ptest/p3/bin total 7328 -rwxr-xr-x 1 rdmurray rdmurray 131 Dec 20 12:22 2to3 -rwxr-xr-x 1 rdmurray rdmurray 119 Dec 20 12:22 idle3 -rwxr-xr-x 1 rdmurray rdmurray 104 Dec 20

[issue2375] PYTHON3PATH environment variable to supersede PYTHONPATH for multi-Python environments

2010-01-13 Thread Ralf Schmitt
Ralf Schmitt sch...@gmail.com added the comment: Marc-Andre Lemburg m...@egenix.com added the comment: You can easily have python3 implemented as shell script setting up PYTHONPATH to whatever your particular Python installation uses. yes, and you need to write a python shell script, which

[issue6769] in xmlrpclib.py: NameError: global name 'HTTPSConnection' is not defined

2010-01-13 Thread Kristján Valur Jónsson
Changes by Kristján Valur Jónsson krist...@ccpgames.com: -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6769 ___ ___

[issue2375] PYTHON3PATH environment variable to supersede PYTHONPATH for multi-Python environments

2010-01-13 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: R. David Murray wrote: R. David Murray rdmur...@bitdance.com added the comment: Yes, it does: rdmur...@maestro:~/python/py3kls -l ../ptest/p3/bin total 7328 -rwxr-xr-x 1 rdmurray rdmurray 131 Dec 20 12:22 2to3 -rwxr-xr-x 1

[issue6837] Mark the compiler package as deprecated

2010-01-13 Thread Brett Cannon
Changes by Brett Cannon br...@python.org: -- priority: normal - release blocker ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6837 ___ ___

[issue7690] Wrong PEP number in importlib module manual page

2010-01-13 Thread Brett Cannon
Changes by Brett Cannon br...@python.org: -- assignee: georg.brandl - brett.cannon nosy: +brett.cannon ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7690 ___

[issue6058] Add cp65001 to encodings/aliases.py

2010-01-13 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: I created two scripts for exporting the IronPython findings and checking them in CPython. These are the results: Checking code Page 28591 against encoding 'iso-8859-1' using file 'iso-8859-1.map' 0 errors Checking code Page 28592

[issue6058] Add cp65001 to encodings/aliases.py

2010-01-13 Thread Marc-Andre Lemburg
Changes by Marc-Andre Lemburg m...@egenix.com: Added file: http://bugs.python.org/file15858/export-encodings.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6058 ___

[issue6058] Add cp65001 to encodings/aliases.py

2010-01-13 Thread Marc-Andre Lemburg
Changes by Marc-Andre Lemburg m...@egenix.com: Added file: http://bugs.python.org/file15859/check-encodings.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6058 ___

[issue6058] Add cp65001 to encodings/aliases.py

2010-01-13 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: What we could do is add new codecs based on the .NET tables for cp65000 et al. However, before doing this, I'd like to know where these code page settings can occur and what exact names are used for them. If they only appear in .NET and

[issue7690] Wrong PEP number in importlib module manual page

2010-01-13 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: Fixed in r77479 for py3k and r77480 for 3.1. Thanks, Francesco! -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7690

[issue1634034] Show expected token on syntax error

2010-01-13 Thread Dave Malcolm
Dave Malcolm dmalc...@redhat.com added the comment: I'm attaching a new version of the patch, based on Oliver's (from 3 years ago). This patch is against the py3k branch. I've introduced a new table of (const) strings: _PyParser_TokenDescs, giving descriptions of each token type, so that you

[issue3892] bsddb: test01_basic_replication fails sometimes

2010-01-13 Thread Florent Xicluna
Florent Xicluna la...@yahoo.fr added the comment: Still occurs, on 2010-01-13. http://www.python.org/dev/buildbot/all/builders/x86%20Ubuntu%20trunk/builds/264 -- nosy: +flox ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3892

[issue7695] missing termios constants

2010-01-13 Thread Conor Hughes
New submission from Conor Hughes con...@berkeley.edu: Module termios is missing some constants useful for handling control characters under Mac OS X (and Solaris, and probably BSD but I don't have a pure BSD system to test against). In particular, these systems support a control character

[issue4555] Smelly exports

2010-01-13 Thread Dave Malcolm
Dave Malcolm dmalc...@redhat.com added the comment: Re: msg #77350: I propose to simply filter out init[_a-z]+ from the set of bad symbols. I'm attaching a patch (to trunk) to Makefile.pre.in which filters out such symbols. Relevant part of output of make smelly on my svn build with this

[issue7385] MemoryView_FromObject crashes if PyBuffer_GetBuffer fails

2010-01-13 Thread Florent Xicluna
Changes by Florent Xicluna la...@yahoo.fr: -- nosy: +flox ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7385 ___ ___ Python-bugs-list mailing list

[issue7693] tarfile.extractall can't have unicode extraction path

2010-01-13 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- components: +Library (Lib) -Extension Modules nosy: +ezio.melotti priority: - normal stage: - test needed type: crash - behavior versions: +Python 2.7 ___ Python tracker rep...@bugs.python.org

[issue7696] Improve Memoryview/Buffer documentation

2010-01-13 Thread Florent Xicluna
New submission from Florent Xicluna la...@yahoo.fr: Various notes while reading the Memoryview documentation: - “memoryviews allow Python code to access the internal data of an object that supports the buffer protocol without copying. Memory can be interpreted as simple bytes or complex data

[issue7693] tarfile.extractall can't have unicode extraction path

2010-01-13 Thread Lars Gustäbel
Changes by Lars Gustäbel l...@gustaebel.de: -- assignee: - lars.gustaebel nosy: +lars.gustaebel ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7693 ___

[issue3299] Direct calls to PyObject_Del/PyObject_DEL are broken for --with-pydebug

2010-01-13 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: Added file: http://bugs.python.org/file15862/sre_py_decref.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3299 ___

[issue3299] Direct calls to PyObject_Del/PyObject_DEL are broken for --with-pydebug

2010-01-13 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: Added file: http://bugs.python.org/file15863/thread_py_decref.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3299 ___

[issue3299] Direct calls to PyObject_Del/PyObject_DEL are broken for --with-pydebug

2010-01-13 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: This issue is still open, it's still possible to crash Python in debug mode. I updated patches for the _sre and thread modules. -- ___ Python tracker rep...@bugs.python.org

[issue7697] os.getcwd() should raise UnicodeDecodeError for arbitrary bytes

2010-01-13 Thread Florent Xicluna
New submission from Florent Xicluna la...@yahoo.fr: When the current working directory is not decodable, the os.getcwd() function should raise an error. sys.getfilesystemencoding() 'utf-8' cwd=b'/tmp/\xe7' os.mkdir(cwd); os.chdir(cwd) os.getcwdb() b'/tmp/\xe7' os.getcwd() # Should raise

[issue7632] dtoa.c: oversize b in quorem

2010-01-13 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Just so I don't forget, there are a couple more places in the dtoa.c that look suspicious and need to be checked; I haven't tried to generate failures for them yet. Since we're up to bug 5, I'll number these 6 and 7: (6) at the end of

[issue7697] os.getcwd() should raise UnicodeDecodeError for arbitrary bytes

2010-01-13 Thread Florent Xicluna
Florent Xicluna la...@yahoo.fr added the comment: Actually, it is the documented behaviour. http://docs.python.org/py3k/library/os.html#file-names-command-line-arguments-and-environment-variables b'\xe7'.decode('utf-8', 'surrogateescape') '\udce7' -- resolution: - invalid stage: -

[issue7697] os.getcwd() should raise UnicodeDecodeError for arbitrary bytes

2010-01-13 Thread Philip Jenvey
Philip Jenvey pjen...@underboss.org added the comment: Right, this is an intentional change in behavior in Python 3.1, non-decodable characters are now decoded to utf8b (via the surrogateescape error handler). The unicode string returned from getcwd furthermore can be passsed around to other

[issue7267] format method: c presentation type broken

2010-01-13 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti stage: - test needed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7267 ___

[issue7300] Unicode arguments in str.format()

2010-01-13 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7300 ___ ___ Python-bugs-list

[issue7698] pystack macro in Misc/gdbinit incorrectly uses PyEval_EvalFrame

2010-01-13 Thread Jean-Paul Calderone
New submission from Jean-Paul Calderone exar...@divmod.com: pystack tries to detect C frames which it can extract Python frame info from. However, it still references the old, now (supposedly) unused PyEval_EvalFrame function. This leads it to never find any frames, since PyEval_EvalFrameEx

[issue3445] Ignore missing attributes in functools.update_wrapper

2010-01-13 Thread Evan Klitzke
Evan Klitzke e...@eklitzke.org added the comment: I'm also interested in seeing this fixed. In the current behavior, the following code doesn't work: start code from functools import wraps def magic(func): @wraps(func) def even_more_magic(*args): return

[issue7693] tarfile.extractall can't have unicode extraction path

2010-01-13 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: When test.tar is opened, the filename is read as a string, so when os.path.join() is called in self._extract_member(tarinfo, os.path.join(path, tarinfo.name)), path is u'.' and tarinfo.name is '\xea\x80\x80a.ogg'. tarinfo.name is a byte

[issue7698] pystack macro in Misc/gdbinit incorrectly uses PyEval_EvalFrame

2010-01-13 Thread Skip Montanaro
Skip Montanaro s...@pobox.com added the comment: Thanks for the heads up. Should be fixed on trunk (r77484) and py3k (r77485). -- assignee: - skip.montanaro nosy: +skip.montanaro resolution: - fixed status: open - closed ___ Python tracker

[issue7699] strptime, strftime documentation

2010-01-13 Thread Michael Stephens
New submission from Michael Stephens m...@mikej.st: The documentation for strftime and strptime behavior strikes me as a bit jumbled right now. The behavior of datetime.datetime.strptime is explained by a reference to time.strptime, which in turn references time.strftime to explain the format

[issue7695] missing termios constants

2010-01-13 Thread Conor Hughes
Conor Hughes con...@berkeley.edu added the comment: As these aren't POSIX, changing to feature request. -- type: behavior - feature request ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7695

[issue7662] time.utcoffset()

2010-01-13 Thread Brian Curtin
Changes by Brian Curtin cur...@acm.org: -- priority: - normal stage: - needs patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7662 ___ ___

[issue2796] Build issues in DragonFly BSD

2010-01-13 Thread Brian Curtin
Changes by Brian Curtin cur...@acm.org: -- priority: - normal stage: - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2796 ___ ___

[issue7699] strptime, strftime documentation

2010-01-13 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti priority: - normal stage: - patch review versions: +Python 2.6, Python 3.1, Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7699

[issue3035] Removing apparently unwanted functions from Tkinter

2010-01-13 Thread Brian Curtin
Brian Curtin cur...@acm.org added the comment: If this stuff needs to be removed it should probably go through the deprecation process. -- keywords: +needs review nosy: +brian.curtin priority: - low stage: - patch review type: - behavior versions: +Python 3.2 -Python 3.0

[issue7695] missing termios constants

2010-01-13 Thread Brian Curtin
Changes by Brian Curtin cur...@acm.org: -- priority: - normal stage: - needs patch versions: +Python 2.7, Python 3.2 -Python 2.5, Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7695

[issue3426] os.path.abspath with unicode argument should call os.getcwdu

2010-01-13 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: I added the fix on ntpath and more tests. I also refactored the tests I added for posixpath. I don't know what is the situation of os2emxpath and macpath and if they should be fixed too. The code for abspath is currently the same on all 4

[issue7699] strptime, strftime documentation

2010-01-13 Thread Michael Stephens
Michael Stephens m...@mikej.st added the comment: I think it's referring to: datetime.time(10, 34, 6).strftime(%Y-%m-%d %H:%M:%S) '1900-01-01 10:34:06' and thus still applies. It is wrong about month and day being replaced by '0', however, and I've updated the patch to change that to '1'.