[issue12546] str.format cannot fill with \x00 char

2011-07-13 Thread Gavin Andresen
New submission from Gavin Andresen gavinandre...@gmail.com: This gives me fooinstead of expected foo\x00\x00\x00 : {0:\x006}.format('foo') -- components: Library (Lib) messages: 140225 nosy: Gavin.Andresen priority: normal severity: normal status: open title: str.format cannot fill

[issue12546] str.format cannot fill with \x00 char

2011-07-13 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +eric.smith, ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12546 ___ ___

[issue4028] Problem compiling the multiprocessing module on sunos5

2011-07-13 Thread Sebastian
Sebastian sebastian.maly...@gmail.com added the comment: Yes, it is. I encountered it at Solaris9 with python 2.7.1. -- nosy: +SebaM6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4028 ___

[issue1170] shlex have problems with parsing unicode

2011-07-13 Thread Santiago Romero
Santiago Romero srom...@gmail.com added the comment: I think I'm suffering the same problem in some small programs that use shlex: import shlex text = python and shlex shlex.split(text) ['python', 'and', 'shlex'] text = upython and shlex shlex.split(text)

[issue1170] shlex have problems with parsing unicode

2011-07-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/issue1170 ___ ___ Python-bugs-list

[issue12547] whatsnew/3.3: error in example about nntplib

2011-07-13 Thread July Tikhonov
New submission from July Tikhonov july.t...@gmail.com: from nntplib import NNTP with nntplib.NNTP('news.gmane.org') as n: will not work. It should be import nntplib with nntplib.NNTP('news.gmane.org') as n: or from nntplib import NNTP with NNTP('news.gmane.org') as n: --

[issue12524] change httplib docs POST example

2011-07-13 Thread Bharadwaj
Bharadwaj barbi.br...@gmail.com added the comment: Newbie to python dev. This looks like a good issue to get started with and I am interested in creating a patch. What should the new URL be? python.org:80? -- nosy: +barbi ___ Python tracker

[issue12524] change httplib docs POST example

2011-07-13 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: You'll need a page that accepts POST requests, possibly returning some meaningful value, and without side effects (e.g. adding messages is usually done via POST, but we don't want a new message for every user that tries the example).

[issue12546] str.format cannot fill with \x00 char

2011-07-13 Thread Eric V. Smith
Eric V. Smith e...@trueblade.com added the comment: \x00 is used as a flag internally meaning use the default fill character. That's clearly a bug. I'll look at fixing it. I think there are other places in the built in __format__ functions where special values are used instead of flags. I'll

[issue12524] change httplib docs POST example

2011-07-13 Thread Bharadwaj
Bharadwaj barbi.br...@gmail.com added the comment: Is there someway to create a test page in python.org instead of an external domain? This can ensure many people have access to it and will not become defunct. Please suggest next steps to proceed with this ticket. --

[issue12546] str.format cannot fill with \x00 char

2011-07-13 Thread Davide Rizzo
Davide Rizzo sor...@gmail.com added the comment: This patch removes the special meaning for \x00 and defines the default padding character (' ') in parse_internal_render_format_spec. Test included. Maybe the default padding character should be defined elsewhere? -- keywords: +patch

[issue12524] change httplib docs POST example

2011-07-13 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: FWIW the 'show issue' button on the left sidebar of http://bugs.python.org/ uses POST, so maybe you could send an issue number as request there to get back the issue page. -- ___ Python tracker

[issue12546] str.format cannot fill with \x00 char

2011-07-13 Thread Davide Rizzo
Davide Rizzo sor...@gmail.com added the comment: Oops, sorry. Above patch was overly buggy. Please just ignore it. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12546 ___

[issue12546] str.format cannot fill with \x00 char

2011-07-13 Thread Davide Rizzo
Changes by Davide Rizzo sor...@gmail.com: Removed file: http://bugs.python.org/file22639/format00.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12546 ___

[issue12547] whatsnew/3.3: error in example about nntplib

2011-07-13 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset e0cd35660ae9 by Ezio Melotti in branch 'default': #12547: Fix import and output in nntplib example. Initial patch by July Tikhonov. http://hg.python.org/cpython/rev/e0cd35660ae9 -- nosy: +python-dev

[issue12547] whatsnew/3.3: error in example about nntplib

2011-07-13 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: Fixed, thanks for the report and the patch! -- nosy: +ezio.melotti resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org

[issue12546] str.format cannot fill with \x00 char

2011-07-13 Thread Davide Rizzo
Davide Rizzo sor...@gmail.com added the comment: Here's the patch. Same rationale as above (removed the special meaning of '\x00', default specified in parse_internal_render_format_spec). Sorry about the mess again! -- Added file: http://bugs.python.org/file22640/format00.patch

[issue12548] Add suport native Functor

2011-07-13 Thread yura levchenko
New submission from yura levchenko levchenko.yuriy.vladimirov...@gmail.com: sample: def foo(a,b): print a,b foo(1,2) fa = foo%(1) fa(2) fab = foo%(1,2) fab() result 12 12 12 -- components: None messages: 140239 nosy: yura.levchenko priority: normal severity: normal status: open

[issue12548] Add suport native Functor

2011-07-13 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: It's not entirely clear to me what you are proposing, but it looks like functools.partial[0]. Whatever it is, adding new syntax especially for it sounds highly unlikely. You might want to propose and discuss it on python-ideas though.

[issue12549] test_platform test_mac_ver fails on Darwin x86_64

2011-07-13 Thread Davide Rizzo
New submission from Davide Rizzo sor...@gmail.com: test test_platform failed -- Traceback (most recent call last): File /Users/davide/cpython/Lib/test/test_platform.py, line 194, in test_mac_ver self.assertEqual(res[2], 'i386') AssertionError: 'x86_64' != 'i386' - x86_64 + i386 uname

[issue12546] str.format cannot fill with \x00 char

2011-07-13 Thread Eric V. Smith
Eric V. Smith e...@trueblade.com added the comment: Patch looks good at first glance. I'll review it some more today and commit it. Thanks! -- stage: needs patch - commit review ___ Python tracker rep...@bugs.python.org

[issue12550] regrtest: register SIGALRM signal using faulthandler

2011-07-13 Thread STINNER Victor
New submission from STINNER Victor victor.stin...@haypocalc.com: Sometimes, some tests are stopped because of SIGALRM. A recent example: --- [157/357] test_socketserver Alarm clock *** Error code 142 ---

[issue12149] Segfault in _PyObject_GenericGetAttrWithDict

2011-07-13 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Oooh, an interesting and complex bug with an one-liner fix! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12149 ___

[issue4028] Problem compiling the multiprocessing module on sunos5

2011-07-13 Thread Sebastian M
Sebastian M sebastian.maly...@gmail.com added the comment: One more thing, as I tried to rebuild whole python I've encountered on following problem: building '_multiprocessing' extension gcc -fPIC -fno-strict-aliasing -g -O2 -DNDEBUG -DHAVE_SEM_OPEN=1 -DHAVE_FD_TRANSFER=1

[issue1170] shlex have problems with parsing unicode

2011-07-13 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: This isn't going to get fixed in 2.x (shlex doesn't support unicode in 2.x, and doing so would be a new feature). In 3.x all strings are unicode, so the problem you are seeing doesn't exist. This issue is about the broader problem of

[issue12551] Provide data for TLS channel binding

2011-07-13 Thread Jacek Konieczny
New submission from Jacek Konieczny jaj...@jajcus.net: Recently IETF encourages using of the SCRAM-SHA-1-PLUS SASL authentication mechanism (5802) in new protocols. That is a requirement e.g. of the current XMPP specification (RFC6120). Any compliant implementation needs to support the

[issue12551] Provide data for TLS channel binding

2011-07-13 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Interestingly (from rfc5929): This definition of 'tls-unique' means that a channel's bindings data may change over time, which in turn creates a synchronization problem should the channel's bindings data change between the time

[issue12545] Incorrect handling of return codes in the posix_lseek function in posixmodule.c

2011-07-13 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12545 ___ ___ Python-bugs-list mailing

[issue12551] Provide data for TLS channel binding

2011-07-13 Thread Jacek Konieczny
Jacek Konieczny jaj...@jajcus.net added the comment: Do you happen to know which API? Not yet. I see no reference to tls-unique or channel binding, in either the OpenSSL website or the latest OpenSSL snapshot. Yes, I know it is not directly documented. It would be nice if there was

[issue12545] Incorrect handling of return codes in the posix_lseek function in posixmodule.c

2011-07-13 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: In addition I would like the posix_lseek function to accept a value larger than 2^63 as a seek offset How would it work? The C lseek() takes a signed (64-bit) offset as argument, so we would have to call it multiple times anyway. --

[issue12531] documentation index entries for * and **

2011-07-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/issue12531 ___ ___

[issue12527] assertRaisesRegex doc'd with 'msg' arg, but it's not implemented?

2011-07-13 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- assignee: - ezio.melotti nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12527 ___

[issue12545] Incorrect handling of return codes in the posix_lseek function in posixmodule.c

2011-07-13 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: ... A negative file offset may be valid for some devices in some implementations. The POSIX.1-1990 standard did not specifically prohibit lseek() from returning a negative offset. Therefore, an application was required to clear

[issue10224] Build 3.x documentation using python3.x

2011-07-13 Thread Sye van der Veen
Sye van der Veen syeber...@gmail.com added the comment: When I built the documentation on Win7, it failed with a SyntaxError, and it took some digging to find the reason why. I was hoping that issuing this warning would save others the trouble. I agree: on Windows, PYTHON is rarely set.

[issue12545] Incorrect handling of return codes in the posix_lseek function in posixmodule.c

2011-07-13 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: In the posix_lseek function check for result != -1 instead of checking for result 0 in return code checks of the value returned by lseek. +1 This can be useful when parsing /dev/mem on x86_64, for example. In addition I would like

[issue12536] lib2to3 BaseFix class creates un-needed loggers leading to refleaks

2011-07-13 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: If the logger attribute is part of the official API and Benjamin doesn’t think it wise to just remove it, I think we should either start deprecating it (using a property), or set it to a shared logger object instead of creating one per file.

[issue12544] Avoid using a pseudo-dict for _type_equality_funcs in unittest

2011-07-13 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: What’s the typo? About the test case: Benjamin probably judged that testing this internal detail was not worth it, as long as the code was readable and working. -- nosy: +benjamin.peterson, eric.araujo

[issue12544] Avoid using a pseudo-dict for _type_equality_funcs in unittest

2011-07-13 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: Actually, what happened was I saw the bug report, didn't see your patch, and started working on my own patch. I see we came to roughly the same conclusion, though. :) About the test, I'm not sure testcases having no cyclic references is

[issue12536] lib2to3 BaseFix class creates un-needed loggers leading to refleaks

2011-07-13 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: I say kill the loggers. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12536 ___ ___

[issue12551] Provide data for TLS channel binding

2011-07-13 Thread Jacek Konieczny
Jacek Konieczny jaj...@jajcus.net added the comment: I skim-read the TLS specification, looked at the OpenSSL API and it seems it should be easy to implement. I am getting to work right now… -- ___ Python tracker rep...@bugs.python.org

[issue12552] email.MIMEText overide BASE64 on TEXT/HTML

2011-07-13 Thread Blame-me Jaillie
New submission from Blame-me Jaillie darkshado.1...@gmail.com: Apologies if this is in the wrong place. Simple enough issue. This line of code from email.mime: MIMEText(textonly, 'plain', _charset='UTF-8') Where 'textonly' is just a plain text email message to be displayed on a multipart

[issue7484] smtplib: verify breaks with Postfix servers

2011-07-13 Thread Felipe Cruz
Felipe Cruz felipec...@loogica.net added the comment: Can anyone take a loot at those patches? Do they need more tests? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7484 ___

[issue12544] Avoid using a pseudo-dict for _type_equality_funcs in unittest

2011-07-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/issue12544 ___ ___

[issue12545] Incorrect handling of return codes in the posix_lseek function in posixmodule.c

2011-07-13 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: How would it work? The C lseek() takes a signed (64-bit) offset as argument, so we would have to call it multiple times anyway. Python does already call multiple times the same function if the input is larger than the type used

[issue1170] shlex have problems with parsing unicode

2011-07-13 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Would raising a TypeError if the given argument is a unicode be unacceptable for 2.7? It would at least make things clear. -- ___ Python tracker rep...@bugs.python.org

[issue4819] Misc/cheatsheet needs updating

2011-07-13 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I spent a few minutes updating the cheatsheet. I think that the document is an outdated duplicate of random parts of the docs (syntax, man page, library reference, etc.) that’s rather hard to maintain for little benefit. Is there any evidence

[issue1043134] Add preferred extensions for MIME types

2011-07-13 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: The proposed patch does not solve the issue. In the current API, there is no way to do it, so this bug requires a new feature. I think it would involve a new dict, like preferred_extensions, which would be seeded with default values, like

[issue11027] Implement sectionxform in configparser

2011-07-13 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11027 ___ ___ Python-bugs-list

[issue11470] Flag inappropriate uses of callable class attributes

2011-07-13 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Hi Thomas, could you give us a status update? Maybe I can help with tests or docs? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11470

[issue4819] Misc/cheatsheet needs updating

2011-07-13 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: Another idea might be to have a cheatsheet in the official docs with links to the right section and possibly a minimal description. It would be useful to get a quick overview of the features of the language and use the links to jump to

[issue11604] Have type(n,b,d) check for type(b[i]) is module

2011-07-13 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I don’t know if this should be left to lint tools or addressed by CPython itself. Raymond, do you have an opinion? -- nosy: +rhettinger ___ Python tracker rep...@bugs.python.org

[issue1559549] ImportError needs attributes for module and file name

2011-07-13 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: How about this case: from validmodule import name_with_typo Do we need one keyword argument module_name and one attribute_name? -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org

[issue9285] Add a profile decorator to profile and cProfile

2011-07-13 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: See #8916 for adding standard functionality similar to the decorator module. -- components: +Extension Modules -Benchmarks dependencies: +Move PEP 362 (function signature objects) into inspect nosy: +eric.araujo title: A decorator for

[issue12545] Incorrect handling of return codes in the posix_lseek function in posixmodule.c

2011-07-13 Thread Kuberan Naganathan
Kuberan Naganathan kubi...@gmail.com added the comment: Im most familiar with solaris. Atleast on solaris lseek interprets its signed arg as the unsigned value with the same bit pattern. I cannot be certain that this is common across other operating systems. On Jul 13, 2011 8:09 AM, Antoine

[issue9285] Add a profile decorator to profile and cProfile

2011-07-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/issue9285 ___ ___ Python-bugs-list

[issue11344] Add os.path.splitpath(path) function

2011-07-13 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I’m not sure this is correct for POSIX: splitpath('/gparent/parent/') returns ['gparent', 'parent'] / is a real directory, it should be the ultimate parent of any path IIUC. On a related note, using “parent” for the leaf file looks strange to

[issue4376] Nested ctypes 'BigEndianStructure' fails

2011-07-13 Thread Vlad Riscutia
Changes by Vlad Riscutia riscutiav...@gmail.com: Removed file: http://bugs.python.org/file22627/issue4376_fix.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4376 ___

[issue12545] Incorrect handling of return codes in the posix_lseek function in posixmodule.c

2011-07-13 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Im most familiar with solaris. Atleast on solaris lseek interprets its signed arg as the unsigned value with the same bit pattern. Only with SEEK_SET, I assume? -- ___ Python tracker

[issue4376] Nested ctypes 'BigEndianStructure' fails

2011-07-13 Thread Vlad Riscutia
Vlad Riscutia riscutiav...@gmail.com added the comment: New patch containing unittest that actually tests the feature. I would appreciate it if someone can try this on a bigendian machine. -- Added file: http://bugs.python.org/file22642/issue4376_fix.diff

[issue12412] non defined representation for pwd.struct_passwd

2011-07-13 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Actually, I’ve found that there are some structseq’s repr that get tested in the CPython test suite. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12412

[issue3177] implement os.startfile on posix and MacOSX

2011-07-13 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I’m not sure we want to copy the Windows startfile call for other OSes. The os module is designed to wrap system-level calls, masking OS differences (for sendfile, for example) but not going further; it’s up to other modules (like shutil) to

[issue5907] repr of time.struct_time type does not eval

2011-07-13 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5907 ___ ___ Python-bugs-list

[issue11698] Improve repr for structseq objects to show named, but unindexed fields

2011-07-13 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11698 ___ ___ Python-bugs-list

[issue3177] implement os.startfile on posix and MacOSX

2011-07-13 Thread Giampaolo Rodola'
Giampaolo Rodola' g.rod...@gmail.com added the comment: +1 on what Eric just said. See issue 10882 and msg 126049 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3177 ___

[issue1820] Enhance Object/structseq.c to match namedtuple and tuple api

2011-07-13 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1820 ___ ___ Python-bugs-list

[issue4376] Nested ctypes 'BigEndianStructure' fails

2011-07-13 Thread Vlad Riscutia
Changes by Vlad Riscutia riscutiav...@gmail.com: Removed file: http://bugs.python.org/file22642/issue4376_fix.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4376 ___

[issue4376] Nested ctypes 'BigEndianStructure' fails

2011-07-13 Thread Vlad Riscutia
Vlad Riscutia riscutiav...@gmail.com added the comment: Changed c_int in tests to c_int32 just to be on the safe side. -- Added file: http://bugs.python.org/file22643/issue4376_fix.diff ___ Python tracker rep...@bugs.python.org

[issue11260] smtpd-as-a-script feature should be documented and should use argparse

2011-07-13 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Here are comments on the doc patch. +Run as a script +--- I’d say “Command-Line Interface”. +``smtpd`` is a pluggable RFC 2821-compliant SMTP proxy. :mod:`smtpd` is also a pluggable etc. +.. program:: smtpd.py Strip the .py + the

[issue9285] Add a profile decorator to profile and cProfile

2011-07-13 Thread Collin Winter
Changes by Collin Winter coll...@gmail.com: -- nosy: -collinwinter ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9285 ___ ___ Python-bugs-list

[issue4376] Nested ctypes 'BigEndianStructure' fails

2011-07-13 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: I don't like your test because it depends on system endian: +if sys.byteorder == little: +struct.menu.spam = 0x00FF +else: +struct.menu.spam = 0xFF00 I would prefer a

[issue3177] implement os.startfile on posix and MacOSX

2011-07-13 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: So, unless someone wants to turn this request into “Add shutil.open”, I’ll close it in a few days. (I haven’t found the original discussion; if someone could add a link to the archives on mail.python.org or copy relevant quotes, it could

[issue10224] Build 3.x documentation using python3.x

2011-07-13 Thread Eric Snow
Changes by Eric Snow ericsnowcurren...@gmail.com: -- nosy: +ericsnow ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10224 ___ ___ Python-bugs-list

[issue2506] Line tracing of continue after always-taken if is incorrect

2011-07-13 Thread Jean-Paul Calderone
Jean-Paul Calderone invalid@example.invalid added the comment: Since the main argument for not fixing this bug seems to be that it doesn't affect many users, it seems like I should comment here that the issue is affecting me. A recently proposed addition to Twisted gets bitten by this case,

[issue1559549] ImportError needs attributes for module and file name

2011-07-13 Thread Eric Snow
Changes by Eric Snow ericsnowcurren...@gmail.com: -- nosy: +ericsnow ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1559549 ___ ___

[issue11470] Flag inappropriate uses of callable class attributes

2011-07-13 Thread Eric Snow
Changes by Eric Snow ericsnowcurren...@gmail.com: -- nosy: +ericsnow ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11470 ___ ___ Python-bugs-list

[issue4376] Nested ctypes 'BigEndianStructure' fails

2011-07-13 Thread Vlad Riscutia
Vlad Riscutia riscutiav...@gmail.com added the comment: But if you set raw memory to let's say b'\0\0\0\1', when you look at the c_int value afterwards, won't it be different on little endian and big endian machines? -- ___ Python tracker

[issue3177] implement os.startfile on posix and MacOSX

2011-07-13 Thread Ram Rachum
Ram Rachum cool...@cool-rr.com added the comment: Eric, I have no problem with this function being placed in `shutil` instead of `os`, as long as it's implemented and it's in the standard library, and people don't have to use subprocess to run open or xdg-open themselves as I currently do.

[issue4376] Nested ctypes 'BigEndianStructure' fails

2011-07-13 Thread Jake
Changes by Jake jake.coff...@gmail.com: -- nosy: -Jake.Coffman ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4376 ___ ___ Python-bugs-list

[issue4376] Nested ctypes 'BigEndianStructure' fails

2011-07-13 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: But if you set raw memory to let's say b'\0\0\0\1', when you look at the c_int value afterwards, won't it be different on little endian and big endian machines? A big endian structure is supposed to read and write memory in

[issue2506] Line tracing of continue after always-taken if is incorrect

2011-07-13 Thread Eric Snow
Changes by Eric Snow ericsnowcurren...@gmail.com: -- nosy: +ericsnow ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2506 ___ ___ Python-bugs-list

[issue4376] Nested ctypes 'BigEndianStructure' fails

2011-07-13 Thread Vlad Riscutia
Changes by Vlad Riscutia riscutiav...@gmail.com: Removed file: http://bugs.python.org/file22643/issue4376_fix.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4376 ___

[issue4376] Nested ctypes 'BigEndianStructure' fails

2011-07-13 Thread Vlad Riscutia
Vlad Riscutia riscutiav...@gmail.com added the comment: You're right. I was busy swapping bytes in my head and missed that :) -- Added file: http://bugs.python.org/file22644/issue4376_fix.diff ___ Python tracker rep...@bugs.python.org

[issue12552] email.MIMEText overide BASE64 for utf8 charset

2011-07-13 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: This should do what you want: from email import charset charset.add_charset('utf-8', charset.SHORTEST, charset.QP) This will override the default handling of utf-8 (which is BASE64, as you note). If this doesn't solve your problem

[issue12553] email should default to 8bit CTE unless policy.must_be_7bit is set

2011-07-13 Thread R. David Murray
New submission from R. David Murray rdmur...@bitdance.com: Most MTA/MTUs these days can handle 8bit just fine. I think that the CTE for MIMEText parts should default to 8bit unless policy.must_be_7bit is set. This will require adding support for this CTE to Charset. The Policy docs imply

[issue12552] email.MIMEText overide BASE64 for utf8 charset

2011-07-13 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Opened issue 12553 for the 8bit feature request. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12552 ___

[issue12545] Incorrect handling of return codes in the posix_lseek function in posixmodule.c

2011-07-13 Thread Kuberan Naganathan
Kuberan Naganathan kubi...@gmail.com added the comment: I did some testing on this. Solaris seems to treat files as a large circular buffer of size 2^64 with respect to seeks in the /proc file system address space file. No error results with seeks of greater than 2^63 with any of SEEK_SET,

[issue2506] Add mechanism to diasable optimizations

2011-07-13 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: I think supporters of this feature request should take discussion to python-ideas to try to gather more support. The initial post should summarize reasons for the request, possible implementations, and the counter-arguments of Raymond.

[issue12552] email.MIMEText overide BASE64 for utf8 charset

2011-07-13 Thread Blame-me Jaillie
Blame-me Jaillie darkshado.1...@gmail.com added the comment: Very much obliged to you - as pointed out by R David Murray: from email import charset charset.add_charset('utf-8', charset.SHORTEST, charset.QP) This works exactly as expected - but to expand for anyone else who happens across

[issue11183] Finer-grained exceptions for the ssl module

2011-07-13 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Note: the ERR_GET_REASON() macro helps get a more precise explanation of an error. We could add a reason attribute to raised exceptions, and also provide a mnemonic-integer mapping. -- stage: - needs patch

[issue12551] Provide data for TLS channel binding

2011-07-13 Thread Jacek Konieczny
Jacek Konieczny jaj...@jajcus.net added the comment: Here is a patch, ready for review. Seems to work, though I still need to check it with some other implementation. I have chosen not to expose another three OpenSSL functions (SSL_get_finished, SSL_get_peer_finished, SSL_session_reused), but

[issue12552] email.MIMEText overide BASE64 for utf8 charset

2011-07-13 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Good point. In 2.x that will work, and will give you the 8bit CTE at need, as long as you pass encoded text to MIMEText (as opposed to unicode...which it doesn't really handle correctly if I recall right). --

[issue12545] Incorrect handling of return codes in the posix_lseek function in posixmodule.c

2011-07-13 Thread Jesús Cea Avión
Changes by Jesús Cea Avión j...@jcea.es: -- nosy: +jcea ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12545 ___ ___ Python-bugs-list mailing list

[issue12549] test_platform test_mac_ver fails on Darwin x86_64

2011-07-13 Thread Ned Deily
Ned Deily n...@acm.org added the comment: What version of OS X are you running this on? 10.7 perhaps? AFAIK, uname has always reported 'i386' for Intel machines. -- nosy: +ned.deily ___ Python tracker rep...@bugs.python.org

[issue12551] Provide data for TLS channel binding

2011-07-13 Thread Jesús Cea Avión
Changes by Jesús Cea Avión j...@jcea.es: -- nosy: +jcea ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12551 ___ ___ Python-bugs-list mailing list

[issue12549] test_platform test_mac_ver fails on Darwin x86_64

2011-07-13 Thread Davide Rizzo
Davide Rizzo sor...@gmail.com added the comment: No, it's 10.6.8. Now that I think of it I updated from 10.6.7 recently. But I have no 10.6.7 x86_64 bit machine where to test. -- ___ Python tracker rep...@bugs.python.org

[issue7559] TestLoader.loadTestsFromName swallows import errors

2011-07-13 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Michael, if you have no objection to this patch I'm willing to commit it. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7559 ___

[issue12554] Failed imports clean up module, but not sub modules

2011-07-13 Thread Calvin Spealman
New submission from Calvin Spealman ironfro...@gmail.com: I came across this behavior when it was related to the shadowing of a small typo bug and took me forever to find. In my case, the original error was shadowed in a way that is unrelated to this bug, but lead to the module being imported

[issue4376] Nested ctypes 'BigEndianStructure' fails

2011-07-13 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset 72e73fa03124 by Victor Stinner in branch '3.2': Close #4376: ctypes now supports nested structures in a endian different than http://hg.python.org/cpython/rev/72e73fa03124 New changeset 637210b9d054 by Victor Stinner in branch

[issue12554] Failed imports clean up module, but not sub modules

2011-07-13 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: That can't be done. If an import fails, it fails. But if it succeeds, the module is loaded, and there is no reason to unload it. After all, import in python is idempotent (doing it a second time has no effect other than adding the

[issue4376] Nested ctypes 'BigEndianStructure' fails

2011-07-13 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: I commited your fix, thanks Vlad! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4376 ___

  1   2   >