[issue14689] make PYTHONWARNINGS variable work in libpython

2012-04-28 Thread Peter Eisentraut
New submission from Peter Eisentraut pete...@gmx.net: The environment variable PYTHONWARNINGS only works with the python interpreter binary, but not with programs embedding libpython. This could be changed by moving the code from Modules/main.c to Python/pythonrun.c. See attached patch

[issue14676] DeprecationWarning missing in default warning filters documentation

2012-04-26 Thread Peter Eisentraut
New submission from Peter Eisentraut pete...@gmx.net: DeprecationWarning was disabled by default in Python 2.7, but the documentation section Default Warning Filters does not list it as ignored. In the 3.x branches, this was already fixed. Trivial patch attached. -- assignee: docs

[issue14638] pydoc error on instance of a custom class

2012-04-21 Thread Peter Otten
Peter Otten __pete...@web.de added the comment: Patch upload, second attempt. -- keywords: +patch nosy: +peter.otten Added file: http://bugs.python.org/file25298/render_doc.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org

[issue14612] Crash after modifying f_lineno

2012-04-18 Thread Peter Otten
Peter Otten __pete...@web.de added the comment: frame_setlineno() doesn't keep track of with blocks. Here's a patch. -- keywords: +patch nosy: +potten Added file: http://bugs.python.org/file25258/frame_setlineno.patch ___ Python tracker rep

Re: [issue14591] Value returned by random.random() out of valid range

2012-04-16 Thread Peter Otten
Dave Reid wrote: New submission from Dave Reid seabass...@gmail.com: A particular combination of seed and jumpahead calls seems to force the MT generator into a state where it produces a random variate that is outside the range 0-1. Problem looks like it might be in

[issue14598] _cursesmodule.c fails with ncurses-5.9 on Linux

2012-04-16 Thread Peter Häring
New submission from Peter Häring p.haer...@gmx.net: I need to define NCURSES_INTERNALS in py_curses.h before ncurses.h is included, even on my Linux system with ncurses-5.9. See the same issue for cygwin: 14438 -- components: Extension Modules messages: 158481 nosy: phaering priority

[issue3493] No Backslash (\) in IDLE 1.2.2

2012-04-15 Thread Peter Nielsen
Peter Nielsen peter.ev...@gmail.com added the comment: Hello there Yes, I am afraid the problem persists. I have downloaded version 3.2.3 of python 32 bit. In terminal in OSX 10.7.3, you can use the keys ALT + SHIFT and 7 to get the \ but in the Idle application there is no way to do

[issue7562] Custom order for the subcommands of build

2012-02-26 Thread Peter Kleiweg
Changes by Peter Kleiweg pklei...@xs4all.nl: -- nosy: +pebbe ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7562 ___ ___ Python-bugs-list mailing

[issue11438] 2to3 does not fix izip_longest

2012-02-23 Thread Peter
Changes by Peter p.j.a.c...@googlemail.com: -- nosy: +maubp ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11438 ___ ___ Python-bugs-list mailing

[issue13989] gzip always returns byte strings, no text mode

2012-02-10 Thread Peter
New submission from Peter p.j.a.c...@googlemail.com: Consider the following example where I have a gzipped text file, $ python3 Python 3.2 (r32:88445, Feb 28 2011, 17:04:33) [GCC 4.2.1 (Apple Inc. build 5664)] on darwin Type help, copyright, credits or license for more information. import

[issue11990] redirected output - stdout writes newline as \n in windows

2012-01-08 Thread Peter Csapo
Peter Csapo astro...@gmail.com added the comment: I have having the same issues as Jimbofbx. This seems to stem from changes due to issue 10841. All stdio is now opened in binary mode, in consideration that it is the TextIOWrapper's job to do endline translation. The problem here

[issue13545] Pydoc3.2: TypeError: unorderable types

2011-12-07 Thread Peter Frauenglass
Peter Frauenglass python@everblue.info added the comment: I should also mention that pydoc2.7 -p 1234 works without issue. It seems to be a regression. Also adding lemburg to the Nosy list as the comments on platform.py suggest. -- nosy: +lemburg

[issue13545] Pydoc3.2: TypeError: unorderable types

2011-12-07 Thread Peter Frauenglass
Peter Frauenglass python@everblue.info added the comment: The patch in msg148968 solves the issue for me. I'm running Linux, originally installed as Mint 9, though upgraded and modified incrementally until it's now kubuntu 11.10. I have the libc6 package version 2.13-20ubuntu5 installed

[issue13541] HTTPResponse (urllib) has no attribute read1 needed for TextIOWrapper

2011-12-06 Thread Peter
New submission from Peter p.j.a.c...@googlemail.com: Use case: I want to open an HTTP URL, and treat the handle as though it were opened in text mode (i.e. unicode strings not bytes). $ python3 Python 3.2 (r32:88445, Feb 28 2011, 17:04:33) [GCC 4.2.1 (Apple Inc. build 5664)] on darwin Type

[issue13510] Clarify that readlines() is not needed to iterate over a file

2011-11-30 Thread Peter Otten
New submission from Peter Otten __pete...@web.de: I've been looking at code on the tutor mailing list for some time, and for line in file.readlines(): ... is a common idiom there. I suppose this is because the readlines() method is easily discoverable while the proper way (iterate over

[issue4147] xml.dom.minidom toprettyxml: omit whitespace for text-only elements

2011-11-15 Thread Peter Funk
Changes by Peter Funk p...@users.sourceforge.net: -- nosy: +pefu ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4147 ___ ___ Python-bugs-list

[issue13236] unittest needs more flush calls

2011-10-26 Thread Peter Eisentraut
Peter Eisentraut pete...@gmx.net added the comment: Attached is a test file. The key here is that I'm running the unittest suite inside of a long-running server process, so there is no predictable point of exit and cleanup. Therefore, the steps I show at the end of the file should be run

[issue13236] unittest needs more flush calls

2011-10-20 Thread Peter Eisentraut
New submission from Peter Eisentraut pete...@gmx.net: I'm using the TextTestRunner class in unittest/runner.py with a special file-like object passed in as stream. Doing this loses some output, because the run() method (and some lower-level methods) don't always call flush() on the stream

[issue12888] html.parser.HTMLParser.unescape works only with the first 128 entities

2011-09-03 Thread Peter Otten
Peter Otten __pete...@web.de added the comment: The unescape() method uses re.sub(regex, sub, re.ASCII), but the third argument is count, not flags. Fix is easy: use re.sub(regex, sub, flags=re.ASCII). -- keywords: +patch nosy: +potten Added file: http://bugs.python.org/file23092

[issue11866] race condition in threading._newname()

2011-08-13 Thread Peter Saveliev
Peter Saveliev svinota.savel...@gmail.com added the comment: counter.next() is a C routine and it is atomic from Python's point of view — if I understand right. The test shows that original threading.py leads to a (rare) race here, while with counter object there is no race condition

[issue11866] race condition in threading._newname()

2011-08-12 Thread Peter Saveliev
Peter Saveliev svinota.savel...@gmail.com added the comment: Any news? I hope, the change is trivial enough… -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11866

[issue12713] argparse: allow abbreviation of sub commands by users

2011-08-08 Thread Peter Williams
New submission from Peter Williams pwil3...@bigpond.net.au: Quite often the names of subcommands are quite long so that their meaning is clear. However, the downside to this is the increased typing the user of the command must make. A compromise between clarity and brevity can be realized

[issue12540] Restart Shell command leaves pythonw.exe processes running

2011-08-03 Thread Peter Caven
Peter Caven pca...@gmail.com added the comment: Terry, sorry about the delay in responding: I'm using 32bit Python. I haven't had a chance yet to try the 64 bit release. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12540

[issue12480] urllib2 doesn't use proxy (fieddler2), configed the proxy with ProxyHandler

2011-07-26 Thread Peter Bumbulis
Peter Bumbulis pbumbu...@gmail.com added the comment: proxy_bypass_registry in urllib.py does not handle the ProxyOverride registry value properly: it treats an empty override as *, i.e. bypass the proxy for all hosts. This behavior does not match other programs (e.g. Chrome) and can

[issue12540] Restart Shell command leaves pythonw.exe processes running

2011-07-12 Thread Peter Caven
New submission from Peter Caven pca...@gmail.com: On Windows Vista (x64) the IDLE Restart Shell command leaves a pythonw.exe process running each time that the command is used. Observed in Python 3.2.1 release and RC2. -- components: IDLE messages: 140179 nosy: Peter.Caven priority

[issue12531] documentation index entries for * and **

2011-07-11 Thread Peter Eisentraut
New submission from Peter Eisentraut pete...@gmx.net: The existing documentation index entries for * and ** only point to their use in function definitions but not to their use in function calls. I was looking for the latter, and it was difficult to find without this. Here is a small patch

[issue12487] urllib2.urlopen() returns object missing context manager

2011-07-04 Thread Peter Schuller
New submission from Peter Schuller peter.schul...@infidyne.com: The documentation states it returns a file-like object. In Python 2.5+ I expect such file-like objects to have a context manager for use with the with statement. In my particular use-case, the lack comes from urllib.addinfourl

[issue12457] type() returns incorrect type for nested classes

2011-07-01 Thread Peter Williams
Peter Williams pwil3...@bigpond.net.au added the comment: The class I was pickling was a top level class but a field inside that class had an instance of a nested class set as its value. The error message produced indicated that the reason for failure was the inability of pickle to find

[issue12457] type() returns incorrect type for nested classes

2011-06-30 Thread Peter Williams
New submission from Peter Williams pwil3...@bigpond.net.au: The built in type() function returns incorrect type names for nested classes which in turn causes pickle to crash when used with nested classes as it cannot find the nested class definitions from the using the string returned by type

[issue12444] accept sets or collections for str.strip/lstrip/rstrip

2011-06-29 Thread Peter Eisentraut
New submission from Peter Eisentraut pete...@gmx.net: It appears to be a pretty common mistake to think that the argument of str.strip/lstrip/rstrip is a substring rather than a set of characters. To allow a more clearer notation, it would be nice if these functions also accepted an argument

[issue8668] Packaging: add a 'develop' command

2011-06-16 Thread Peter Waller
Peter Waller peter.wal...@gmail.com added the comment: Hi - Great to see this functionality coming. There is one feature of it that I would really like to see fixed, which is currently broken in setuptools/distribute - I'm sorry if this is the wrong forum for this note, but I wanted to add

[issue1711800] SequenceMatcher bug with insert/delete block after replace

2011-06-15 Thread Peter Waller
Peter Waller peter.wal...@gmail.com added the comment: Apologies for the bump, but it has been more than a year and I did attach a patch! :-) What next? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1711800

[issue8668] Packaging: add a 'develop' command

2011-06-15 Thread Peter Waller
Changes by Peter Waller peter.wal...@gmail.com: -- nosy: +Peter.Waller ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8668 ___ ___ Python-bugs-list

[issue11113] html.entities mapping dicts need updating?

2011-06-14 Thread Hans Peter de Koning
Hans Peter de Koning h...@xs4all.nl added the comment: The reason I raised #12329 was that the v2.7.1 documentation in http://docs.python.org/library/htmllib.html#module-htmlentitydefs says: ... The definition provided here contains all the entities defined by XHTML 1.0 ... The only diff

[issue11113] html.entities mapping dicts need updating?

2011-06-14 Thread Hans Peter de Koning
Hans Peter de Koning h...@xs4all.nl added the comment: BTW, the HTMLParser module (as well as html.parser in 3.x) does claim to parse both HTML and XHTML, see http://docs.python.org/library/htmlparser.html#module-HTMLParser . -- ___ Python tracker

[issue12329] XHTML entity apos missing in htmlentitydefs

2011-06-13 Thread Hans Peter de Koning
New submission from Hans Peter de Koning h...@xs4all.nl: In module htmlentitydefs.py the following XHTML-1 entity is missing from dict name2codepoint: 'apos': 0x0027, # apostrophe, U+0027 ISOnum Above line should be added after line 72: 'ang': 0x2220, # angle, U+2220 ISOamso

[issue11889] 'enumerate' 'start' parameter documentation is confusing

2011-05-24 Thread Peter Hammer
Peter Hammer pham...@cardious.com added the comment: Changing the 'enumerate' doc string text from: | (0, seq[0]), (1, seq[1]), (2, seq[2]), ... to: | (start, seq[0]), (start+1, seq[1]), (start+2, seq[2]), ... would completely disambiguate the doc string at the modest cost

[issue6717] Some problem with recursion handling

2011-05-23 Thread Peter Wentworth
Peter Wentworth p.wentwo...@ict.ru.ac.za added the comment: Attached is a crashing program that shows that the event handler is called again before activation of the prior instance has completed. I also have a second turtle that queues the nested events. It doesn't crash the system, at least

[issue6717] Some problem with recursion handling

2011-05-23 Thread Peter Wentworth
Changes by Peter Wentworth p.wentwo...@ict.ru.ac.za: Removed file: http://bugs.python.org/file22072/drag_bug_is_nesting_events.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6717

[issue6717] Some problem with recursion handling

2011-05-23 Thread Peter Wentworth
Peter Wentworth p.wentwo...@ict.ru.ac.za added the comment: Oops, I wish I hadn't asked that silly question about the global declaration! Here is the tweaked file... -- Added file: http://bugs.python.org/file22073/drag_bug_is_nesting_events.py

[issue12159] Integer Overflow in __len__

2011-05-23 Thread Peter Fankhaenel
New submission from Peter Fankhaenel pit00...@googlemail.com: An OverflowError is emitted in case the return value of __len__ exceeds 2**31-1. The following code: class C (object): def __len__ (self): return self.l c = C() c.l = 2**31 len (c) # leads to an OverflowError

[issue6717] Some problem with recursion handling

2011-05-22 Thread Peter Wentworth
Peter Wentworth p.wentwo...@ict.ru.ac.za added the comment: I can confirm the crash persists as of Python 3.1.3 on Windows, and would like to add my vote to prioritizing it. Without having delved into the code, it seems strange that the rapid stream of events is causing stack overflow

[issue12127] Inconsistent leading zero treatment

2011-05-19 Thread Peter Wentworth
New submission from Peter Wentworth p.wentwo...@ict.ru.ac.za: In Python 3 we no longer have octal literals. The assignment x = 0050 gives an invalid token error. But the assignment y = int(0050) assigns the value 50 to y. I would advocate consistency in the two situations, and prefer

[issue12012] _ssl module doesn't compile with OpenSSL 1.0.0d: SSLv2_method is missing

2011-05-07 Thread Peter Eisentraut
Changes by Peter Eisentraut pete...@gmx.net: -- nosy: +petere ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12012 ___ ___ Python-bugs-list mailing

[issue5755] -Wstrict-prototypes is valid for Ada/C/ObjC but not for C++

2011-05-04 Thread Peter Le Bek
Peter Le Bek pe...@hyperplex.net added the comment: distutils reuses whatever flags Python was built with, covered here: http://bugs.python.org/issue1222585 (and here http://bugs.python.org/issue9031). -- nosy: +vokoda ___ Python tracker rep

[issue11866] race condition in threading._newname()

2011-05-03 Thread Peter Saveliev
Peter Saveliev svinota.savel...@gmail.com added the comment: Ok, patch attached. Patch made for Python: 2.6 Tested Python versions: 2.6, 2.7 -- keywords: +patch versions: +Python 2.6 Added file: http://bugs.python.org/file21866/newname_race_fix.patch

[issue11889] 'enumerate' 'start' parameter documentation is confusing

2011-04-20 Thread Peter Hammer
New submission from Peter Hammer pham...@cardious.com: A point of confusion using the builtin function 'enumerate' and enlightenment for those who, like me, have been confused. Note, this confusion was discussed at length at http://bugs.python.org/issue2831 prior to the 'start' parameter

[issue11866] race condition in threading._newname()

2011-04-18 Thread Peter Saveliev
New submission from Peter Saveliev svinota.savel...@gmail.com: The _newname() function has no locking. It is called from the new thread constructor. Such constructor is executed within parent thread. So, when several threads create new threads simultaneously, there can be race condition

[issue11708] argparse: suggestion for formatting optional positional args

2011-03-28 Thread Peter Williams
New submission from Peter Williams pwil3...@bigpond.net.au: At present, if a number (e.g. 2) of optional positional arguments are defined (e.g. arg1 and arg2) argparse formats them as follows: usage: program [arg1] [arg2] in the usage message. I would like to suggest that a better format

[issue11640] Shelve references globals in its __del__ method

2011-03-22 Thread Peter Davies
New submission from Peter Davies ultra...@gmail.com: Shelf.__setitem__ (which is called from __del__ when writeback is enabled) references globals. This was causing exceptions on interpreter shutdown (due to another exception) for me. I have attached a patch which stores the relevant globals

[issue3493] No Backslash (\) in IDLE 1.2.2

2011-03-12 Thread Peter Nielsen
Peter Nielsen peter.ev...@gmail.com added the comment: Yes, that is correct . Well, thanks for replying, anyway. I guess I'll have to use linux instead. On Sun, Mar 13, 2011 at 12:00 AM, Ronald Oussoren rep...@bugs.python.orgwrote: Ronald Oussoren ronaldousso...@mac.com added the comment

[issue11067] Py_LIMITED_API breaks most PySomething_Check() functions

2011-01-29 Thread Peter Eisentraut
New submission from Peter Eisentraut pete...@gmx.net: When setting Py_LIMITED_API, functions such as PyUnicode_Check() can no longer be used. Example: #define Py_LIMITED_API #include Python.h void foo() { PyObject *o; PyUnicode_Check(o); } test.c: In function ‘foo’: test.c:9

[issue10148] st_mtime differs after shutil.copy2

2011-01-28 Thread Peter
Peter p.j.a.c...@googlemail.com added the comment: I'm also seeing this on 32bit Windows XP using Python 3.1.2, and Python 3.2rc1 on a local NTFS filesystem. e.g. from os.stat(filename).st_mtime after using shutil.copy2(...) 1293634856.1402586 source 1293634856.1402581 copied I've been using

[issue11033] ElementTree.fromstring doesn't work with Unicode

2011-01-27 Thread Peter Cai
New submission from Peter Cai newpt...@gmail.com: xml.etree.ElementTree.fromstring doesn't work with Unicode string. See the code below: from xml.etree import ElementTree t = ElementTree.fromstring(u'doc诗/doc') Traceback (most recent call last): File stdin, line 1, in module File D

[issue10834] Python 2.7 x86 IDLE fails to run in Windows 7

2011-01-19 Thread Peter Heiberg
Peter Heiberg pe...@sveumsondre.no added the comment: Run - C:\Python27\python.exe -m test.regrtest ... stops at test_asynchat, been there for about 20mins. Can't seem to break the operation tho (Ctrl+C), it still hangs at test_asynchat with the blinking underscore one line down

[issue10904] PYTHONIOENCODING is not in manpage

2011-01-14 Thread Peter Kleiweg
New submission from Peter Kleiweg pklei...@xs4all.nl: The environment variable PYTHONIOENCODING should be documented in de manpage -- assignee: docs@python components: Documentation, IO messages: 126252 nosy: docs@python, pebbe priority: normal severity: normal status: open title

[issue9257] cElementTree iterparse requires events as bytes; ElementTree uses strings

2011-01-14 Thread Peter
Peter p.j.a.c...@googlemail.com added the comment: This wasn't fixed in Python 3.1.3 either. Is the trunk commit Amaury identified from py3k branch (r78942) suitable to back port to Python 3.1.x? -- ___ Python tracker rep...@bugs.python.org http

[issue10904] PYTHONIOENCODING is not in manpage

2011-01-14 Thread Peter Kleiweg
Peter Kleiweg pklei...@xs4all.nl added the comment: Ah, I see it's fixed in the latest version. The variable PYTHONIOENCODING was present at least since Python 2.6.4, but not documented in the manpage of versions 2.6.4, 2.7 and 3.1.1. I thought I had recent versions, but I see now versions

[issue10855] wave.Wave_read.close() doesn't release file

2011-01-12 Thread Peter Creath
Peter Creath pjcreath+pyt...@gmail.com added the comment: Thank you for clarifying the documentation. However, I don't think that fully resolves the issue. I'm not complaining about a failure to close the file. As you observe, it doesn't need to (and shouldn't) close a file object

[issue10855] wave.Wave_read.close() doesn't release file

2011-01-12 Thread Peter Creath
Peter Creath pjcreath+pyt...@gmail.com added the comment: A point of clarification on the original report: Georg is completely right when he points out that this is only an issue when passing in a file object. If passed a filename, wave.py both opens and closes the file explicitly

[issue4953] cgi module cannot handle POST with multipart/form-data in 3.0

2011-01-12 Thread Peter Kleiweg
Peter Kleiweg pklei...@xs4all.nl added the comment: Pierre Quentel wrote: - get the binary layer of stdout : out = sys.stdout.detach() You can't do that! That makes sys.stdout unavaible to the program that is importing the cgi module. Cgi should access and process sys.stdin only, as binary

[issue10855] wave.Wave_read.close() doesn't release file

2011-01-07 Thread Peter Creath
New submission from Peter Creath pjcreath+pyt...@gmail.com: Calling wave.close() fails to release all references to the file passed in via wave.open(filename_or_obj, rb). As a result, processing many wave files produces an IOError of too many files open. This bug is often masked because

[issue10841] binary stdio

2011-01-06 Thread Peter Kleiweg
Changes by Peter Kleiweg pklei...@xs4all.nl: -- nosy: +pebbe ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10841 ___ ___ Python-bugs-list mailing

[issue10841] binary stdio

2011-01-06 Thread Peter Kleiweg
Changes by Peter Kleiweg pklei...@xs4all.nl: -- nosy: -pebbe ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10841 ___ ___ Python-bugs-list mailing

[issue10834] Python 2.7 x86 fails to run in Windows 7

2011-01-05 Thread Peter Heiberg
New submission from Peter Heiberg pe...@sveumsondre.no: I recently installed Win7 on my laptop, and installed the x86 Python 2.7 package. IDLE fails to even start, and shows nothing but a process in task manager. I've tried compatibility modes both to Vista and XPSP2, with no luck. I ran

[issue10834] Python 2.7 x86 fails to run in Windows 7

2011-01-05 Thread Peter Heiberg
Peter Heiberg pe...@sveumsondre.no added the comment: The command line opens, but displays nothing but the white flashing underscore.. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10834

[issue10834] Python 2.7 x86 fails to run in Windows 7

2011-01-05 Thread Peter Heiberg
Peter Heiberg pe...@sveumsondre.no added the comment: The IDLE window doesn't open, the taskbar shows no icons and IDLE does not show up under Task Manager's Application tab.. Also, whenever I open an instance of IDLE, two instances of the .exe shows up under the Processes tab: one instance

[issue10834] Python 2.7 x86 fails to run in Windows 7

2011-01-05 Thread Peter Heiberg
Peter Heiberg pe...@sveumsondre.no added the comment: I am running the EN-US version of Win7, with Norwegian regional and keyboard settings. Tried changing everything to EN-US, with no change in results. Also tried deactivating visual themes and desktop composition for the .exe. What text

[issue10834] Python 2.7 x86 fails to run in Windows 7

2011-01-05 Thread Peter Heiberg
Peter Heiberg pe...@sveumsondre.no added the comment: Hey, progress! I ran python.exe, typed import idlelib.idle, pressed enter - same blinking underscore as before. Then i pressed Ctrl+C, and WHOA, python.exe prints 25 lines of something, and the Python Shell (pythonw.exe) pops up

[issue10834] Python 2.7 x86 fails to run in Windows 7

2011-01-05 Thread Peter Heiberg
Peter Heiberg pe...@sveumsondre.no added the comment: My Windows Firewall have been turned off from the day I installed Win7, so that couldn't cause it.. I also tried deactivating UAC, with no luck. Running with administrative privileges, without any results

[issue4953] cgi module cannot handle POST with multipart/form-data in 3.0

2011-01-02 Thread Peter Kleiweg
Peter Kleiweg pklei...@xs4all.nl added the comment: Why not simply: fp = sys.stdin.detach() -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4953

[issue4953] cgi module cannot handle POST with multipart/form-data in 3.0

2011-01-02 Thread Peter Kleiweg
Peter Kleiweg pklei...@xs4all.nl added the comment: Using platform-dependant code seems iffy to me. The detach function on sys.stdin, sys,stdout and sys.stderr is there specifically to switch these streams from text mode to binary mode. See: http://docs.python.org/py3k/library/sys.html

[issue10777] xml.etree.register_namespace dictionary changed size during iteration

2010-12-26 Thread Peter
New submission from Peter p.j.a.c...@googlemail.com: The following was found testing the Biopython unit tests (latest code from git) against Python 3.2 beta 2 (compiled from source on 64 bit Linux Ubuntu). Reduced test case: $ python3.2 Python 3.2b2 (r32b2:87398, Dec 26 2010, 19:01:30) [GCC

[issue3493] No Backslash (\) in IDLE 1.2.2

2010-11-14 Thread Peter Nielsen
Peter Nielsen peter.ev...@gmail.com added the comment: I have the same problem with a danish keyboard and OSX snowleopard.. I can use \ in both the command editor and pretty everywhere else but not in Idle. -- nosy: +Peter.Nielsen versions: +Python 2.6, Python 3.1 -Python 2.7

[issue10353] 2to3 and places argument in unitests assertAlmostEqual

2010-11-08 Thread Peter
New submission from Peter p.j.a.c...@googlemail.com: Consider the following example unit test using assertAlmostEqual which uses the places argument as a positional argument, call this places.py: import unittest class Tests(unittest.TestCase): def test_equal_to_five_decimal_places(self

[issue5712] tkinter - askopenfilenames returns string instead of tuple in windows 2.6.1 release

2010-11-08 Thread Peter Hall
Peter Hall peter.f.h...@nasa.gov added the comment: There seems some similarity between this issue and issue #10316 which occurs on Linux. -- nosy: +pfhall ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5712

[issue10316] tkFileDialog.askopenfilenames scrambling multiple file selection

2010-11-04 Thread Peter Hall
New submission from Peter Hall peter.f.h...@nasa.gov: I am running the following : Linux Centos version 2.6.18 Python version 2.5 tk version 8.5 tcl version 8.5 I have a Python GUI program (importing Tkinter and tkFileDialog) which prompts the user to select a (one to many) list of file names

[issue10316] tkFileDialog.askopenfilenames scrambling multiple file selection

2010-11-04 Thread Peter Hall
Changes by Peter Hall peter.f.h...@nasa.gov: -- type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10316 ___ ___ Python-bugs-list

[issue10194] Add gc.remap() function to the gc module.

2010-10-26 Thread Peter Ingebretson
Peter Ingebretson pinge...@yahoo.com added the comment: Thanks, I've started a thread on python-dev to discuss the patch. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10194

[issue10194] Add gc.remap() function to the gc module.

2010-10-26 Thread Peter Ingebretson
Peter Ingebretson pinge...@yahoo.com added the comment: Closing due to general lack of support on python-dev. Some portion of this implementation may come back as part of a PEP reference implementation. -- resolution: - rejected status: open - closed

[issue10194] Add gc.remap() function to the gc module.

2010-10-25 Thread Peter Ingebretson
New submission from Peter Ingebretson pinge...@yahoo.com: This patch implements the gc.remap() function as described in the following document: http://doublestar.org/in-place-python-reloading/ The intended use is an enhanced module reloading mechanism, a prototype of which is described here

[issue10194] Add gc.remap() function to the gc module.

2010-10-25 Thread Peter Ingebretson
Changes by Peter Ingebretson pinge...@yahoo.com: Added file: http://bugs.python.org/file19362/issue10194_gc_remap.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10194

[issue10194] Add gc.remap() function to the gc module.

2010-10-25 Thread Peter Ingebretson
Changes by Peter Ingebretson pinge...@yahoo.com: Removed file: http://bugs.python.org/file19361/python_remap.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10194

[issue10066] xmlrpclib does not handle some non-printable characters properly

2010-10-13 Thread Peter Gyorko
Peter Gyorko gyor...@balabit.hu added the comment: The shortest code which can trigger this error is the following: import xmlrpclib print xmlrpclib.dumps(('\x01',)) params param valuestring/string/value /param /params As you can see, the escape method does not care about non-printable

[issue10066] xmlrpclib does not handle some non-printable characters properly

2010-10-11 Thread Peter Gyorko
New submission from Peter Gyorko gyor...@balabit.hu: If I add a string to the response, which contains non-printable characters, the output will not be parsed by the most of the XML parsers (I tried with XML-RPC for PHP). Here is my quick and dirty fix: --- a/Lib/xmlrpclib.py +++ b/Lib

[issue9798] time.tzset() doesn't properly reset the time.timezone variable

2010-09-08 Thread Peter Simons
New submission from Peter Simons sim...@cryp.to: Attached are two programs that I would expect to produce the same output, but they don't. $ python --version Python 2.6.5 $ cat test-timezone-1.py import os, time os.environ[TZ] = Europe/Berlin time.tzset() print time.timezone

[issue9511] CharacterEncoderError when reading from sys.stdin from piped input in cmd.exe

2010-08-04 Thread Peter Boström
New submission from Peter Boström peterbost...@gmail.com: When reading from piped stdin, python has trouble decoding some special characters. To reproduce, run the following command from cmd.exe: echo ü | C:\Python31\python.exe pycat.py UnicodeDecodeError: 'charmap' codec can't decode byte

[issue9419] RUNSHARED needs LDFLAGS

2010-07-29 Thread Peter Häring
New submission from Peter Häring p.haer...@gmx.net: test_distutils fails with 2.7 on a shared build (at least if building outside the source tree), 2.6 versions work. The reason for this is, that the test tries to link and doesn't find libpython-2.7.so.1. A solution (or workaround) is to add

[issue9420] gdbm with /usr/include/ndbm.h

2010-07-29 Thread Peter Häring
New submission from Peter Häring p.haer...@gmx.net: There are systems out there, wich don't have ndbm, but gdbm and ndbm.h directly in the include-path (usually /usr/include), not in the subdirectory i.e. gdbm. setup.py at the moment assumes, that there is ndbm on the system

[issue9420] gdbm with /usr/include/ndbm.h

2010-07-29 Thread Peter Häring
Changes by Peter Häring p.haer...@gmx.net: -- type: - compile error ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9420 ___ ___ Python-bugs-list

[issue7490] IGNORE_EXCEPTION_DETAIL should ignore the module name

2010-07-28 Thread Peter
Peter p.j.a.c...@googlemail.com added the comment: I take it the IGNORE_EXCEPTION_DETAIL should ignore the module name fix will not be applied to Python 3.1.x? Is there a separate bug to enhance 2to3 to turn IGNORE_EXCEPTION_DETAIL on? -- nosy: +maubp

[issue9217] 2to3 crashes with some doctests

2010-07-28 Thread Peter
Changes by Peter p.j.a.c...@googlemail.com: -- nosy: +maubp ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9217 ___ ___ Python-bugs-list mailing

[issue9217] 2to3 doctests

2010-07-28 Thread Peter
Changes by Peter p.j.a.c...@googlemail.com: -- title: 2to3 crashes with some doctests - 2to3 doctests ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9217

[issue9217] 2to3 crashes with some doctests

2010-07-28 Thread Peter
Peter p.j.a.c...@googlemail.com added the comment: Reverted accidental title change - had keyboard focus on the page not the address bar I think. Sorry! -- title: 2to3 doctests - 2to3 crashes with some doctests ___ Python tracker rep

[issue2734] 2to3 converts long(itude) argument to int

2010-07-23 Thread Peter
Changes by Peter p.j.a.c...@googlemail.com: -- nosy: +maubp ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2734 ___ ___ Python-bugs-list mailing

[issue9257] cElementTree iterparse requires events as bytes; ElementTree uses strings

2010-07-23 Thread Peter
Changes by Peter p.j.a.c...@googlemail.com: -- nosy: +maubp ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9257 ___ ___ Python-bugs-list mailing

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

2010-07-23 Thread Peter Donis
Peter Donis peterdo...@alum.mit.edu added the comment: @Mark, I'm probably stubborn, yes. :-) Could you post verbose output from your testing on Windows? I'd at least like to be able to duplicate your findings; it's possible there's something simple I'm missing

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

2010-07-23 Thread Peter Donis
Peter Donis peterdo...@alum.mit.edu added the comment: @Mark, no problem, thanks for keeping up with all my patches. :-) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1812

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

2010-07-22 Thread Peter Donis
Peter Donis peterdo...@alum.mit.edu added the comment: I don't normally run Windows, so it will take a little time for me to set up a Windows build environment. However, I've made a number of other improvements as a result of further testing on Linux, and I've uploaded the improved patch

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

2010-07-22 Thread Peter Donis
Peter Donis peterdo...@alum.mit.edu added the comment: Uploaded revised diff against py3k branch, doctest-fixes6-py3k.diff, with same improvements as doctest-fixes6.diff. Tests still pass on my Linux box. -- Added file: http://bugs.python.org/file18134/doctest-fixes6-py3k.diff

<    1   2   3   4   5   6   7   >