[issue2401] Solaris: ctypes tests being skipped despite following #1516

2010-06-09 Thread Atro Tossavainen
Atro Tossavainen added the comment: > Does this apply to any current version? Funny you should ask, I've just started building Python 2.6.5 yesterday. I should know in a bit. -- status: pending -> open ___ Python tracker

[issue8915] Use locale.nl_langinfo in _strptime

2010-06-09 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: See also issue8957. If this happens, I would like to add a pure python implementation strftime. See also issue7989. -- assignee: -> belopolsky nosy: +belopolsky ___ Python tracker

[issue3423] DeprecationWarning message applies to wrong context with exec()

2010-06-09 Thread Greg Hazel
Greg Hazel added the comment: Searching the file for "raise" is sort of pointless, since exec() takes a string which might have come from anywhere, and there might be any number of exec() calls in the module. See: http://codepad.org/7EBMhb0O There are at least two reasonable answers: :1: Dep

[issue3494] "[Errno 11] Resource temporarily unavailable" while using tracing facility/threads (in linux listdir with unicode path)

2010-06-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: "The above fix could be backported." Too late now. -- nosy: +tjreedy resolution: -> out of date status: open -> closed ___ Python tracker ___ _

[issue3456] compile python using MinGW

2010-06-09 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: -Python 2.5 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue3456] compile python using MinGW

2010-06-09 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: +Python 3.2 -Python 2.6, Python 2.7, Python 3.0 ___ Python tracker ___ ___ Python-bugs-list ma

[issue3430] httplib.HTTPResponse documentations inconsistent

2010-06-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: Docs have been considerably updated since 2.5. Please check if this still applies to the 2.7 docs -- nosy: +tjreedy status: open -> pending ___ Python tracker

[issue3423] DeprecationWarning message applies to wrong context with exec()

2010-06-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: In 3.1, I get >>> exec("1/0") Traceback (most recent call last): File "", line 1, in exec("1/0") File "", line 1, in ZeroDivisionError: int division or modulo by zero In your example, would you really prefer that the warning message start with "1" (o

[issue8784] tarfile/Windows: Don't use mbcs as the default encoding

2010-06-09 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Marc-Andre Lemburg wrote: > > Marc-Andre Lemburg added the comment: > > STINNER Victor wrote: >> >> STINNER Victor added the comment: >> >> I created a TAR archive with the 7-zip archiver of file with diacritics in >> their name (eg. "é" and "à"). Then

[issue3276] httplib.HTTPConnection._send_request should not blindly assume dicts for headers

2010-06-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: This is a feature request for now old versions. It would have to be reformulated as a feature request for a 3.2 module. I do not see the dict (mapping now?) requirement being changed. -- nosy: +tjreedy resolution: -> out of date status: open -> pendi

[issue8784] tarfile/Windows: Don't use mbcs as the default encoding

2010-06-09 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: STINNER Victor wrote: > > STINNER Victor added the comment: > > I created a TAR archive with the 7-zip archiver of file with diacritics in > their name (eg. "é" and "à"). Then I opened the archive with WinRAR: the file > names were not displayed correct

[issue3213] "pydoc -p" should listen to [::] if IPv6 is supported

2010-06-09 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.5 ___ Python tracker ___ ___ Python-bugs-list ma

[issue3129] struct allows repeat spec. without a format specifier

2010-06-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: I verified that 3.1 has same behavior. Doc says format strings "are built up from format characters" which "may be preceded by an integral repeat count". So I agree that such formats are bugs that should be reported and that ignoring repeat counts of nothing

[issue665194] datetime-RFC2822 roundtripping

2010-06-09 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: -1 on adding more formatting/parsing methods to datetime. +1 on adding functions to email.utils that work with datetime objects. Adding #5094 as a dependency because RFC 2822 requires timezone information for proper formatting. -- dependencies:

[issue8784] tarfile/Windows: Don't use mbcs as the default encoding

2010-06-09 Thread STINNER Victor
STINNER Victor added the comment: I created a TAR archive with the 7-zip archiver of file with diacritics in their name (eg. "é" and "à"). Then I opened the archive with WinRAR: the file names were not displayed correctly :-/ 7-zip encodes "à" (U+00e0) as 0x85 (1 byte), and "é" (U+00e9) as 0x

[issue8828] Atomic function to rename a file

2010-06-09 Thread STINNER Victor
STINNER Victor added the comment: [atomic_move_file-windows.py]: implementation of atomic_move_file() for Windows, depends on CreateTransaction() and MoveFileTransacted(), only available on Windows Vista, Windows Server 2008, or more recent version. This function *is* atomic. This function i

[issue8828] Atomic function to rename a file

2010-06-09 Thread STINNER Victor
STINNER Victor added the comment: About the function names: - shutil.atomic_move_file(): only available on some OS - shutil.move_file(): use shutil.atomic_move_file() if available, or fall back to a best effort implementation Implement an atomic function to rename a directory is more complex

[issue8954] wininst regression: errors when building on linux

2010-06-09 Thread anatoly techtonik
anatoly techtonik added the comment: In this SCons thread http://scons.tigris.org/ds/viewMessage.do?dsForumId=1268&dsMessageId=2617686 -- ___ Python tracker ___

[issue2657] Curses sometimes fails to initialize terminal

2010-06-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: Is this an issue with 2.7 or 3.1? -- nosy: +tjreedy status: open -> pending ___ Python tracker ___ _

[issue3053] test_shutil fails under AIX

2010-06-09 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: -Python 2.5 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue1738] filecmp.dircmp does exact match only

2010-06-09 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: The patch does not apply to py3k branch. -- assignee: -> belopolsky stage: -> needs patch ___ Python tracker ___ ___

[issue1730136] tkFont.__eq__ gives type error

2010-06-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: I agree that this change is sensible and verified that it is needed for 3.1 as well. I think it should be applied. -- nosy: +tjreedy stage: -> commit review versions: +Python 2.6, Python 2.7, Python 3.1, Python 3.2 -Python 2.5 ___

[issue2901] "error: can't allocate region" from mmap() when receiving big chunk of data

2010-06-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: Please test on 2.6 or better, 2.7 (rc already out) and 3.1 to verify there still is a problem. -- nosy: +tjreedy status: open -> pending ___ Python tracker ___

[issue1257] atexit errors should result in nonzero exit code

2010-06-09 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.4, Python 2.5, Python 3.0 ___ Python tracker ___ __

[issue2892] improve cElementTree iterparse error handling

2010-06-09 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- type: behavior -> feature request versions: +Python 3.2 -Python 2.5 ___ Python tracker ___ ___ Python-bu

[issue8604] Adding an atomic FS write API

2010-06-09 Thread STINNER Victor
STINNER Victor added the comment: Trac has an AtomicFile class which copies file mode, owner, etc. http://trac.edgewall.org/browser/trunk/trac/util/__init__.py?#L145 -- ___ Python tracker __

[issue2840] Expat parser locks XML source file if ContentHandler raises an exception

2010-06-09 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.5 ___ Python tracker ___ ___ Python-bugs-list ma

[issue2818] pulldom cannot handle xml file with large external entity properly

2010-06-09 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.5 ___ Python tracker ___ ___ Python-bugs-list ma

[issue1874] email parser does not register a defect for invalid Content-Transfer-Encoding on multipart messages

2010-06-09 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.5, Python 3.0 ___ Python tracker ___ ___ Python-

[issue1738] filecmp.dircmp does exact match only

2010-06-09 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: -Python 2.6, Python 2.7, Python 3.1 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue1738] filecmp.dircmp does exact match only

2010-06-09 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.5 ___ Python tracker ___ ___ Python-bugs-list ma

[issue2604] doctest.DocTestCase fails when run repeatedly

2010-06-09 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.4, Python 2.5, Python 2.6, Python 3.0 ___ Python tracker ___ __

[issue2126] BaseHTTPServer.py fails long POST from IE

2010-06-09 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: +Python 2.7 -Python 2.5 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue2212] Cookie.BaseCookie has ambiguous unicode handling

2010-06-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: Sean, I don't understand 'inline' in this context. -- nosy: +tjreedy versions: -Python 2.5 ___ Python tracker ___ _

[issue2209] mailbox module doesn't support compressed mbox

2010-06-09 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: +Python 3.2 -Python 2.5 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue1483] xml.sax.saxutils.prepare_input_source ignores character stream in InputSource

2010-06-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: Are this and the other issues still problems in 2.7 (rc out now) and 3.1? -- nosy: +tjreedy versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.5 ___ Python tracker ___

[issue2175] Expat sax parser silently ignores the InputSource protocol

2010-06-09 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.5, Python 2.6, Python 3.0 ___ Python tracker ___ __

[issue2174] xml.sax.xmlreader does not support the InputSource protocol

2010-06-09 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.5, Python 2.6, Python 3.0 ___ Python tracker ___ __

[issue2148] nis module not supporting group aliases

2010-06-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: Is this really a bug (discrepancy between nis.cat doc and behavior) or a feature request? -- nosy: +tjreedy versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.5 ___ Python tracker

[issue2401] Solaris: ctypes tests being skipped despite following #1516

2010-06-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: Does this apply to any current version? -- nosy: +tjreedy resolution: -> out of date status: open -> pending ___ Python tracker ___ ___

[issue5302] Allow package_data globs match directories

2010-06-09 Thread Éric Araujo
Éric Araujo added the comment: Terry, I’m undoing your changes. Tarek told me to set these versions, since Distutils2 will be compatible from 2.4 to 3.2. Triaging-ly y’rs ;) -- versions: +Python 2.5, Python 2.6, Python 2.7, Python 3.1 ___ Python tra

[issue1739842] xmlrpclib can no longer marshal Fault objects

2010-06-09 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- resolution: -> fixed status: open -> closed versions: +Python 2.6 -Python 2.5 ___ Python tracker ___ ___

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

2010-06-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: Does this 2.5 issue apply to anything current? -- nosy: +tjreedy status: open -> pending ___ Python tracker ___

[issue1767511] SocketServer.DatagramRequestHandler

2010-06-09 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: -Python 2.5 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://

[issue1753718] base64 "legacy" functions violate RFC 3548

2010-06-09 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: -Python 2.5 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://

[issue2620] Multiple buffer overflows in unicode processing

2010-06-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: Brett, open and fixed are contradictory? for what version did you reopen this? -- ___ Python tracker ___ ___

[issue3710] Reference leak in thread._local

2010-06-09 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: -Python 2.5 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue5302] Allow package_data globs match directories

2010-06-09 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: -Python 2.5, Python 2.6, Python 2.7, Python 3.1, Python 3.3 ___ Python tracker ___ ___ Python

[issue1856] shutdown (exit) can hang or segfault with daemon threads running

2010-06-09 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: -Python 2.4 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue4947] sys.stdout fails to use default encoding as advertised

2010-06-09 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: -Python 2.4, Python 2.5 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue8958] 2.7rc1 tarfile.py: `bltn_open(targetpath, "wb")` -> IOError: Is a directory

2010-06-09 Thread Sridhar Ratnakumar
New submission from Sridhar Ratnakumar : 1. Find an OSX 10.5.8 machine 2. wget http://hntool.googlecode.com/files/hntool-0.1.1.tar.gz 3. $ python2.7 -c "import tarfile as T; t=T.open('hntool-0.1.1.tar.gz'); t.extractall()" Traceback (most recent call last): File "", line 1, in File "/Libr

[issue1193610] Expat Parser to supply document locator in incremental parse

2010-06-09 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- priority: high -> normal ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:

[issue1193610] Expat Parser to supply document locator in incremental parse

2010-06-09 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: +Python 3.2 -Python 2.5, Python 2.6 ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue3297] Python interpreter uses Unicode surrogate pairs only before the pyc is created

2010-06-09 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: -Python 2.4, Python 2.5, Python 3.0 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue2267] datetime.datetime operator methods are not subclass-friendly

2010-06-09 Thread Mark Dickinson
Mark Dickinson added the comment: > Do you have a link [...] Nope. Just going on Tim's description of it as "Guido's decision". I've no idea of the history, and I don't particularly recall any recent relevant python-dev discussions. -- ___ Pytho

[issue2267] datetime.datetime operator methods are not subclass-friendly

2010-06-09 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I also believe something needs to be fixed here in any case. Either Date.fromordinal(..) should return date or Date(..) + timedelta(..) should return Date. -- ___ Python tracker

[issue2267] datetime.datetime operator methods are not subclass-friendly

2010-06-09 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: > If you want to challenge Guido's design decision, I think > python-dev would be the place to do it. Do you have a link supporting that it was "Guido's design decision"? This decision must have been made around class/type unification, but I don't reme

[issue7739] time.strftime may hung while trying to open /etc/localtime but does not release GIL

2010-06-09 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Victor, I understand your last comment as wanting to keep the GIL while calling tzset(), but release it around the strftime() call. You still want to apply your patch, right? I think the problem is not with a concurrent tzset() call, but with another

[issue2267] datetime.datetime operator methods are not subclass-friendly

2010-06-09 Thread Mark Dickinson
Mark Dickinson added the comment: If you want to challenge Guido's design decision, I think python-dev would be the place to do it. -- ___ Python tracker ___ ___

[issue8957] strptime('%c', ..) fails to parse output of strftime('%c', ..) in non-English locale

2010-06-09 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : Added file: http://bugs.python.org/file17602/strptime-locale-bug.py ___ Python tracker ___ ___ Python-bugs-li

[issue8957] strptime('%c', ..) fails to parse output of strftime('%c', ..) in non-English locale

2010-06-09 Thread Alexander Belopolsky
New submission from Alexander Belopolsky : The following code: import locale, time locale.setlocale(locale.LC_ALL, "fr_FR.UTF-8") t = time.localtime() s = time.strftime('%c', t) time.strptime('%c', s) Raises ValueError: time data '%c' does not match format 'Mer 9 jui 16:14:46 2010' in any lo

[issue1578643] various datetime methods fail in restricted mode

2010-06-09 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I would like to remove datetime module dependency on time module altogether. For example getting timestamp as a float and later break it into sec/usec just to satisfy time module API looks rather inefficient. -- assignee: -> belopolsky nosy: +

[issue6973] subprocess.Popen.send_signal doesn't check whether the process has terminated

2010-06-09 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: I totally agree this should be fixed (there was a similar issue for psutil: http://code.google.com/p/psutil/issues/detail?id=58) but communicate() and wait() should be affected in the same manner. Probably it would make sense to add an is_running() method

[issue6457] subprocess.Popen.communicate can lose data from output/error streams when broken input pipe occures

2010-06-09 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : -- nosy: +giampaolo.rodola ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:/

[issue2267] datetime.datetime operator methods are not subclass-friendly

2010-06-09 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I would like to take another shot at this. The link in Amaury's closing comment no longer works, so here is the relevant post: """ Returning same type as self for arithmetic in subclasses Tim Peters tim.peters at gmail.com Sat Jan 8 02:09:27 CET 2005

[issue7839] Popen should raise ValueError if pass a string when shell=False or a list when shell=True

2010-06-09 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : -- nosy: +giampaolo.rodola ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:/

[issue8956] Incorrect ValueError message for subprocess.Popen.send_signal() on Windows

2010-06-09 Thread Brian Curtin
Brian Curtin added the comment: Good catch, I forgot to update that message when adding the other signal support. Would you rather see something more generic like "Unsupported signal" rather than start listing all of the signals? Another alternative is to allow any signal through including i

[issue8956] Incorrect ValueError message for subprocess.Popen.send_signal() on Windows

2010-06-09 Thread Giampaolo Rodola'
New submission from Giampaolo Rodola' : def send_signal(self, sig): """Send a signal to the process """ if sig == signal.SIGTERM: self.terminate() elif sig == signal.CTRL_C_EVENT: os.kill(self.pid, signal.CTRL_C_EVENT

[issue5115] Extend subprocess.kill to be able to kill process groups

2010-06-09 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/pyt

[issue8955] import doesn't notice changes to working directory

2010-06-09 Thread R. David Murray
R. David Murray added the comment: This is working as designed. Try printing sys.path in your scripts. It is what's in sys.path that matters, not the cwd. (The cwd is put in the path as "" in the specific case of running the python interactive shell...and in certain applications that embed

[issue8949] PyArg_Parse*(): "z" should not accept bytes

2010-06-09 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +loewis ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue8930] messed up formatting after reindenting

2010-06-09 Thread Antoine Pitrou
Antoine Pitrou added the comment: I've fixed some in r81860. If you see others, please signal them here. -- ___ Python tracker ___ ___

[issue8077] cgi handling of POSTed files is broken

2010-06-09 Thread Guido van Rossum
Guido van Rossum added the comment: The example works for me if I make this change: --- Lib/cgi.py (revision 81862) +++ Lib/cgi.py (working copy) @@ -608,7 +608,7 @@ parser = email.parser.FeedParser() # Create bogus content-type header for proper multipart parsing p

[issue8941] utf-32be codec failing on UCS-2 python build for 32-bit value

2010-06-09 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Antoine Pitrou wrote: > > Antoine Pitrou added the comment: > > Here is a new patch with tests. > >> I wonder whether it wouldn't be better to preallocate >> a Unicode object with size of e.g. size/4 + 16 and >> then resize the object as necessary in cas

[issue8955] import doesn't notice changes to working directory

2010-06-09 Thread James
New submission from James : Attempting to change the working directory and then import based on that change has no effect. Import seems impossible. Attached is tarball example. As seen below, bar1.py can import foo from src, however bar2.py bar3.py and bar4.py cannot, despite their respective

[issue8947] Provide as_integer_ratio() method to Decimal

2010-06-09 Thread Stefan Krah
Changes by Stefan Krah : -- nosy: +skrah ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/

[issue1100942] Add datetime.time.strptime and datetime.date.strptime

2010-06-09 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I have updated Amaury's patch for py3k. I simplified the test for default date values and fixed a documentation nit. (Time fileds are [4:7], not [4:6]). The result is attached as issue1100942.diff. Note that date.strptime accepts some time specs and t

[issue8941] utf-32be codec failing on UCS-2 python build for 32-bit value

2010-06-09 Thread Antoine Pitrou
Antoine Pitrou added the comment: Here is a new patch with tests. > I wonder whether it wouldn't be better to preallocate > a Unicode object with size of e.g. size/4 + 16 and > then resize the object as necessary in case a surrogate > pair needs to be created (won't happen that often in > pract

[issue8954] wininst regression: errors when building on linux

2010-06-09 Thread Brian Curtin
Brian Curtin added the comment: Where was that reported? -- nosy: +brian.curtin stage: -> unit test needed type: -> behavior ___ Python tracker ___

[issue8954] wininst regression: errors when building on linux

2010-06-09 Thread anatoly techtonik
anatoly techtonik added the comment: At least is was reported that compiled binaries contains wrong platform name, i.e. 'linux' and there are errors about inability to look up some compiler options in windows registry while building. -- ___ Python

[issue8954] wininst regression: errors when building on linux

2010-06-09 Thread anatoly techtonik
New submission from anatoly techtonik : 2.5.1 version of distutils was able to correctly build wininst dists from linux. Right now there are errors which I'll describe in more details once I can get some Linux box. -- assignee: tarek components: Distutils messages: 107398 nosy: tarek,

[issue8953] Syntax error in http://docs.python.org/library/decimal.html#recipes

2010-06-09 Thread Brian Curtin
Changes by Brian Curtin : -- resolution: -> invalid ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue8953] Syntax error in http://docs.python.org/library/decimal.html#recipes

2010-06-09 Thread Jean Jordaan
Jean Jordaan added the comment: Aargh, sorry, sent too quick :-( -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list

[issue8953] Syntax error in http://docs.python.org/library/decimal.html#recipes

2010-06-09 Thread Jean Jordaan
New submission from Jean Jordaan : http://docs.python.org/library/decimal.html#recipes has this code: for i in range(places): build(next() if digits else '0') Mismatched parenthesis. -- assignee: d...@python components: Documentation messages: 107396 nosy: Jean.Jordaan, d.

[issue8950] In getargs.c, make 'L' code raise TypeError for float arguments.

2010-06-09 Thread STINNER Victor
STINNER Victor added the comment: Le mercredi 09 juin 2010 14:24:01, vous avez écrit : > Here's a patch. Victor, are you interested in reviewing? I ran the whole test suite: there is no error. The patch is ok, please commit it in Python 3.2. -- __

[issue8948] cleanup functions are not executed with unittest.TestCase.debug()

2010-06-09 Thread Michael Foord
Michael Foord added the comment: Typo correction in revision 81859. Also needs merging onto py3k. -- ___ Python tracker ___ ___ Python

[issue8941] utf-32be codec failing on UCS-2 python build for 32-bit value

2010-06-09 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti stage: -> unit test needed ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue8949] PyArg_Parse*(): "z" should not accept bytes

2010-06-09 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: STINNER Victor wrote: > > STINNER Victor added the comment: > > Le mercredi 09 juin 2010 13:06:53, vous avez écrit : >> "s" accepts bytes via the buffer interface > > No. "s*" and "s#" do accept any buffer compatible object (including bytes and > bytear

[issue8950] In getargs.c, make 'L' code raise TypeError for float arguments.

2010-06-09 Thread Mark Dickinson
Mark Dickinson added the comment: Here's a patch. Victor, are you interested in reviewing? -- keywords: +patch Added file: http://bugs.python.org/file17597/issue8950.diff ___ Python tracker ___

[issue8941] utf-32be codec failing on UCS-2 python build for 32-bit value

2010-06-09 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Antoine Pitrou wrote: > > Antoine Pitrou added the comment: > > The following code at the beginning of PyUnicode_DecodeUTF32Stateful is buggy > when codec endianness doesn't match the native endianness (not to mention it > could also crash if the underl

[issue8939] Use C type names (PyUnicode etc;) in the C API docs

2010-06-09 Thread Éric Araujo
Éric Araujo added the comment: > 1 and 0 were formatted with ``1`` and ``0``. I don't understand why, > so I removed the italic style. This reST construct marks up code. Please revert this change. :) -- nosy: +merwok ___ Python tracker

[issue8941] utf-32be codec failing on UCS-2 python build for 32-bit value

2010-06-09 Thread Antoine Pitrou
Antoine Pitrou added the comment: Here is a simple patch. A test should be added, though. -- keywords: +patch Added file: http://bugs.python.org/file17596/utf32.patch ___ Python tracker

[issue8949] PyArg_Parse*(): "z" should not accept bytes

2010-06-09 Thread STINNER Victor
STINNER Victor added the comment: Le mercredi 09 juin 2010 13:06:53, vous avez écrit : > "s" accepts bytes via the buffer interface No. "s*" and "s#" do accept any buffer compatible object (including bytes and bytearray), but "s" doesn't. I fixed recently the documentation about that. --

[issue8941] utf-32be codec failing on UCS-2 python build for 32-bit value

2010-06-09 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +doerwalter ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue8941] utf-32be codec failing on UCS-2 python build for 32-bit value

2010-06-09 Thread Antoine Pitrou
Antoine Pitrou added the comment: The following code at the beginning of PyUnicode_DecodeUTF32Stateful is buggy when codec endianness doesn't match the native endianness (not to mention it could also crash if the underlying CPU arch doesn't support unaligned access to 4-byte integers): #ifnd

[issue8941] utf-32be codec failing on UCS-2 python build for 32-bit value

2010-06-09 Thread Antoine Pitrou
Antoine Pitrou added the comment: Also witnessed on 2.x (UCS-2 build): >>> unicode(b'\x00\x01\x00\x00', 'utf-32be') u'\ud800\u0773' >>> unicode(b'\x00\x00\x01\x00', 'utf-32le') u'\U0001' -- nosy: +haypo, lemburg, pitrou priority: normal -> high title: utf-32be codec failing on 16-b

[issue8923] Remove unused "errors" argument from _PyUnicode_AsDefaultEncodedString()

2010-06-09 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: STINNER Victor wrote: > > STINNER Victor added the comment: > >> Since Python3 fixes the UTF-8 default encoding, it's better >> to enhance PyUnicode_AsUTF8String() to cache the UTF-8 >> string in the Unicode object > > Right, that sounds like a great ide

[issue8949] PyArg_Parse*(): "z" should not accept bytes

2010-06-09 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: "z" should not accept bytes... why not ? "z" is the same as "s" with the addition that passing None as parameter will result in the pointer to get set to NULL. "s" accepts bytes via the buffer interface, so why should "z" behave differently ? If a functio

[issue8939] Use C type names (PyUnicode etc;) in the C API docs

2010-06-09 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: STINNER Victor wrote: > > STINNER Victor added the comment: > > Le mercredi 09 juin 2010 11:06:25, vous avez écrit : >>> - replace Python types by C Python types (eg. str => PyUnicodeObject* >>> and None => Py_None) >> >> I was thinking of e.g. "PyUnico

[issue8952] Doc/c-api/arg.rst: fix documentation of number formats

2010-06-09 Thread Mark Dickinson
Mark Dickinson added the comment: The other variable of interest here is that some integer formats will accept types with an __index__ method, while others won't. I'm not sure which types fall into each category, right now. -- ___ Python tracker

  1   2   >