[issue8252] add a metadata section in setup.cfg
Changes by Shashwat Anand anand.shash...@gmail.com: -- nosy: -l0nwlf ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8252 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8253] add a resource+files section in setup.cfg
Changes by Shashwat Anand anand.shash...@gmail.com: -- nosy: -l0nwlf ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8253 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4487] Add utf8 alias for email charsets
Changes by Shashwat Anand anand.shash...@gmail.com: -- nosy: -l0nwlf ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4487 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8013] time.asctime segfaults when given a time in the far future
Changes by Shashwat Anand anand.shash...@gmail.com: -- nosy: -l0nwlf ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8013 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4953] cgi module cannot handle POST with multipart/form-data in 3.0
Changes by Shashwat Anand anand.shash...@gmail.com: -- nosy: -l0nwlf ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4953 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue747320] rfc2822 formatdate functionality duplication
Changes by Shashwat Anand anand.shash...@gmail.com: -- nosy: +l0nwlf ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue747320 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9153] Run tests and demos as part of the test suite
Changes by Shashwat Anand anand.shash...@gmail.com: -- nosy: +l0nwlf ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9153 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9161] add_option in optparse no longer accepts unicode string
Changes by Shashwat Anand anand.shash...@gmail.com: -- nosy: +l0nwlf ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9161 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8470] Let cmd.cmd.intro be unicode friendly
Shashwat Anand anand.shash...@gmail.com added the comment: Python 2.7 is already released. This is a non-issue on py3.x. Should this issue be closed or we work on it. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8470 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9085] Version number inconsistency in email package
Shashwat Anand anand.shash...@gmail.com added the comment: In python2.5 email version is 4.0.2 In python2.6 email version is 4.0.1 In python 2.7rc2 email version is 4.0.2 I think version number is wrong with 2.5, it should have been 4.0.0 rather than 4.0.2. David: Adding you as nosy so as you can confirm upon this. -- nosy: +l0nwlf, r.david.murray versions: +Python 2.5 -Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9085 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4963] mimetypes.guess_extension result changes after mimetypes.init()
Shashwat Anand anand.shash...@gmail.com added the comment: Can't reproduce. 16:36:36 l0nwlf-MBP:~$ python2.7 Python 2.7rc2+ (trunk:82148M, Jun 22 2010, 10:32:46) [GCC 4.2.1 (Apple Inc. build 5646) (dot 1)] on darwin Type help, copyright, credits or license for more information. import mimetypes mimetypes.guess_extension('image/jpeg') '.jpe' mimetypes.init() mimetypes.guess_extension('image/jpeg') '.jpe' Results were same in python2.5, 2.6 too. I wonder whether this is machine specific or distro specific. -- nosy: +l0nwlf ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4963 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4655] during Python installation, setup.py should not use .pydistutils.cfg
Changes by Shashwat Anand anand.shash...@gmail.com: -- nosy: +tarek ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4655 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1685453] email package should work better with unicode
Changes by Shashwat Anand anand.shash...@gmail.com: -- nosy: +l0nwlf ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1685453 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9048] no OS X buildbots in the stable list
Changes by Shashwat Anand anand.shash...@gmail.com: -- nosy: +l0nwlf ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9048 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7192] webbrowser.get(firefox) does not work on Mac with installed Firefox
Shashwat Anand anand.shash...@gmail.com added the comment: 16:05:57 l0nwlf-MBP:/Applications/Firefox.app/Contents/MacOS$ ./firefox-bin 'http://www.google.com' says firefox is already running as ff is open. After we quit ff, 16:09:05 l0nwlf-MBP:/Applications/Firefox.app/Contents/MacOS$ ./firefox-bin -remote 'http://www.google.com' Nothing happens. 16:09:14 l0nwlf-MBP:/Applications/Firefox.app/Contents/MacOS$ ./firefox-bin 'http://www.google.com' Opened firefox with url(google homepage) as mentioned. Also, import webbrowser url = 'http://www.google.com' c = webbrowser.get('safari') c.open(url) True Opens two instances of safari, one with home-page and another with url mentioned. Initially safari was not running and firefox is my default browser. Incase safari is running it opens only one instance with url(google homepage) opened. -- nosy: +l0nwlf ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7192 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7192] webbrowser.get(firefox) does not work on Mac with installed Firefox
Shashwat Anand anand.shash...@gmail.com added the comment: I searched for proxy+firefox on roundup and the only two issue I got was issue 8238 and issue 1160328. None of them seems related to webbrowser. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7192 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8252] add a metadata section in setup.cfg
Shashwat Anand anand.shash...@gmail.com added the comment: Is +gsoc a keyword too ? :O On Tue, Jun 22, 2010 at 7:16 PM, Ãric Araujo rep...@bugs.python.org wrote: Ãric Araujo mer...@netwok.org added the comment: Iâm starting on this now. Monitor http://bitbucket.org/Merwok/distutils2-killsetup for updates. -- keywords: +gsoc resolution: - accepted stage: - needs patch versions: -Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8252 ___ -- Added file: http://bugs.python.org/file17742/unnamed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8252 ___Is quot;+gsocquot; a keyword too ? :Obrbrdiv class=gmail_quoteOn Tue, Jun 22, 2010 at 7:16 PM, Ãric Araujo span dir=ltrlt;a href=mailto:rep...@bugs.python.org;rep...@bugs.python.org/agt;/span wrote:br blockquote class=gmail_quote style=margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;br Ãric Araujo lt;a href=mailto:mer...@netwok.org;mer...@netwok.org/agt; added the comment:br br Iâm starting on this now. Monitor a href=http://bitbucket.org/Merwok/distutils2-killsetup; target=_blankhttp://bitbucket.org/Merwok/distutils2-killsetup/a for updates.br br --br keywords: +gsocbr resolution: Â -gt; acceptedbr stage: Â -gt; needs patchbr versions: Â -Python 3.3br divdiv/divdiv class=h5br ___br Python tracker lt;a href=mailto:rep...@bugs.python.org;rep...@bugs.python.org/agt;br lt;a href=http://bugs.python.org/issue8252; target=_blankhttp://bugs.python.org/issue8252/agt;br ___br /div/div/blockquote/divbr ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1349106] email.Generators does not separates headers with \r\n
Changes by Shashwat Anand anand.shash...@gmail.com: -- nosy: +l0nwlf ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1349106 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8252] add a metadata section in setup.cfg
Shashwat Anand anand.shash...@gmail.com added the comment: merwok: Pont noted. I replied it via Gmail, was unaware of the fact that it adds an unnamed file. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8252 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9033] cmd module tab misbehavior
Shashwat Anand anand.shash...@gmail.com added the comment: Tested the patch and it works for trunk and python3.2 alpha. Without adding SDK flag with configure readline module failed to build. Python build finished, but the necessary bits to build these modules were not found: _gdbm ossaudiodevreadline spwd However for cmd module, tab completion and history(up|down arrow) worked fine. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9033 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9033] cmd module tab misbehavior
Shashwat Anand anand.shash...@gmail.com added the comment: It seems readline module is not installed on your system. Quoting Ned Deily's comment from issue8365 which will most probably solve your issue: Issue6877 (and subsequent fixes in Issue8066) allows the Python readline module to be built and linked with the OS X editline (libedit) library rather than with the GNU readline library (which is not included with OS X). However, the libedit included in versions of OS X prior to 10.5 is considered too broken to use here. By default, if you do not specify an --with-universal-archs other than 32-bit to configure or if you do not explicitly set MACOSX_DEPLOYMENT_TARGET to another value, configure defaults to using 10.4 (or earlier) so the building of the readline module is skipped. You can check this: from distutils.sysconfig import get_config_var get_config_var('MACOSX_DEPLOYMENT_TARGET') '10.4' (Whether this is the best default is another question.) As it stands, to be able to build the readline module, either: (1) supply the GNU readline library as a local library, or (2) ensure you are building with a deployment target of at least 10.5. For example: ./configure MACOSX_DEPLOYMENT_TARGET=10.6 ; make Also note that option (2) is not available for 3.1.x since the changes to support editline/libedit were not ported to it; they are, however, in 2.6.5, 2.7 (trunk), and 3.2 (py3k) -- nosy: +l0nwlf ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9033 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9033] cmd module tab misbehavior
Changes by Shashwat Anand anand.shash...@gmail.com: -- nosy: +ned.deily ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9033 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8820] IDLE not launching correctly
Changes by Shashwat Anand anand.shash...@gmail.com: -- nosy: +kbk ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8820 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8820] IDLE not launching correctly
Changes by Shashwat Anand anand.shash...@gmail.com: -- nosy: +l0nwlf ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8820 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4654] os.path.realpath() get the wrong result
Changes by Shashwat Anand anand.shash...@gmail.com: -- nosy: +l0nwlf, loewis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4654 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4654] os.path.realpath() get the wrong result
Shashwat Anand anand.shash...@gmail.com added the comment: No such issue on python 2.6, 2.7, 3.2. print(os.path.realpath('/Users/l0nwlf/Desktop/tmp/../decotest.lnk')) /Users/l0nwlf/Desktop/decotest.lnk I think this issue can be closed. However, I came with a different issue while testing on 2.6, trunk and 3.2. print(os.path.realpath('~/Desktop/tmp/../decotest.lnk')) /Volumes/CoreHD/py3k/~/Desktop/decotest.lnk -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4654 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9018] os.path.normcase(None) does not raise an error on linux and should
Shashwat Anand anand.shash...@gmail.com added the comment: Following the documentation, os.path.normcase(path) Normalize the case of a pathname. On Unix and Mac OS X, this returns the path unchanged; on case-insensitive filesystems, it converts the path to lowercase. On Windows, it also converts forward slashes to backward slashes. on Mac OS X, import os os.name 'posix' Checking through, Lib/posixpath.py, # Normalize the case of a pathname. Trivial in Posix, string.lower on Mac. # On MS-DOS this may also turn slashes into backslashes; however, other # normalizations (such as optimizing '../' away) are not allowed # (another function should be defined to do that). def normcase(s): Normalize case of pathname. Has no effect under Posix # TODO: on Mac OS X, this should really return s.lower(). return s Why on Mac OS X, it should return s.lower() ? Also to raise Error for None case we can probably change normcase() in Lib/posixpath.py as, def normcase(s): Normalize case of pathname. Has no effect under Posix if s is None: raise AttributeError return s -- nosy: +l0nwlf ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9018 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4654] os.path.realpath() get the wrong result
Shashwat Anand anand.shash...@gmail.com added the comment: By different issue I meant expected but non-useful output. Although it does exactly what it is supposed to do, but expanding tilde (~) to $HOME could have been the default behavior(more user-friendly I should say). Don't know if that is worth it but the scale seems more on the negative side. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4654 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9010] Infinite loop in imaplib.IMAP4_SSL when used with Gmail
Shashwat Anand anand.shash...@gmail.com added the comment: import imaplib HOST=imap.gmail.com PORT=993 USERNAME=usern...@gmail.com PASSWORD=password server = imaplib.IMAP4_SSL(host=HOST, port=PORT) server.login(USERNAME, PASSWORD) def f(): print server.select(INBOX) print server.uid(FETCH, 1:*, (UID FLAGS BODY.PEEK[HEADER.FIELDS (Subject)])) Call the f() function and then wait about about an hour. Call f() again and server.select() will not return but take all CPU. Tried to reproduce this on Python 2.7RC1. Seemed Ok to me. Took some 3 seconds to call f() not only once, but twice, thrice. -- nosy: +l0nwlf ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9010 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8989] email.utils.make_msgid: specify domain
Shashwat Anand anand.shash...@gmail.com added the comment: Adrian, Could you generate the diffs from the top level of the checkout and attach it here? -- nosy: +l0nwlf ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8989 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7370] patch: BaseHTTPServer reinventing rfc822 date formatting
Shashwat Anand anand.shash...@gmail.com added the comment: Agreed. Attaching the unit test. -- Added file: http://bugs.python.org/file17656/test_httpserver.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7370 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8572] httplib getheader() throws error instead of default
Changes by Shashwat Anand anand.shash...@gmail.com: -- nosy: +l0nwlf ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8572 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7370] patch: BaseHTTPServer reinventing rfc822 date formatting
Changes by Shashwat Anand anand.shash...@gmail.com: Removed file: http://bugs.python.org/file17567/BaseHTTPServer.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7370 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7370] patch: BaseHTTPServer reinventing rfc822 date formatting
Shashwat Anand anand.shash...@gmail.com added the comment: You could get a minor speedup by doing “from email.utils import formatdate”. I guess I shall do that. Applied the patch and tested it, it does not break anything IMO and should go in python2.7 -- Added file: http://bugs.python.org/file17573/BaseHTTPServer.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7370 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7370] patch: BaseHTTPServer reinventing rfc822 date formatting
Changes by Shashwat Anand anand.shash...@gmail.com: Removed file: http://bugs.python.org/file16900/BaseHTTPServer.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7370 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7370] patch: BaseHTTPServer reinventing rfc822 date formatting
Shashwat Anand anand.shash...@gmail.com added the comment: Seems that earlier patch was incorrect. Rectifying and submitting the correct patch. -- Added file: http://bugs.python.org/file17567/BaseHTTPServer.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7370 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8898] The email package should defer to the codecs module for all aliases
Shashwat Anand anand.shash...@gmail.com added the comment: from email.charset.ALIASES most of them failed to be recognize by codecs module. for i in email.charset.ALIASES.keys(): ... try: ... codecs.lookup(i) ... except LookupError: ... print(Not recognized by codecs : alias {} mapped to {}.format(i, email.charset.ALIASES[i])) ... ... Not recognized by codecs : alias latin-8 mapped to iso-8859-14 Not recognized by codecs : alias latin-9 mapped to iso-8859-15 Not recognized by codecs : alias latin-2 mapped to iso-8859-2 Not recognized by codecs : alias latin-3 mapped to iso-8859-3 codecs.CodecInfo object for encoding iso8859-1 at 0x10160af58 Not recognized by codecs : alias latin-6 mapped to iso-8859-10 Not recognized by codecs : alias latin-7 mapped to iso-8859-13 Not recognized by codecs : alias latin-4 mapped to iso-8859-4 Not recognized by codecs : alias latin-5 mapped to iso-8859-9 codecs.CodecInfo object for encoding euc_jp at 0x1016260b8 Not recognized by codecs : alias latin-10 mapped to iso-8859-16 codecs.CodecInfo object for encoding ascii at 0x101626120 Not recognized by codecs : alias latin_10 mapped to iso-8859-16 codecs.CodecInfo object for encoding iso8859-1 at 0x10160aae0 Not recognized by codecs : alias latin_2 mapped to iso-8859-2 Not recognized by codecs : alias latin_3 mapped to iso-8859-3 Not recognized by codecs : alias latin_4 mapped to iso-8859-4 Not recognized by codecs : alias latin_5 mapped to iso-8859-9 Not recognized by codecs : alias latin_6 mapped to iso-8859-10 Not recognized by codecs : alias latin_7 mapped to iso-8859-13 Not recognized by codecs : alias latin_8 mapped to iso-8859-14 Not recognized by codecs : alias latin_9 mapped to iso-8859-15 codecs.CodecInfo object for encoding cp949 at 0x101626390 codecs.CodecInfo object for encoding euc_kr at 0x101626530 So basically apart from latin-1 all the latin* failed to be recognized by codecs. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8898 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8898] The email package should defer to the codecs module for all aliases
Shashwat Anand anand.shash...@gmail.com added the comment: We need to add aliases for those codecs. The current aliases list only supports the format latinN for N in 1-10. latinN means latin1 to latin10 ? But latin_1 is a recognized alias. codecs.lookup('latin_1') codecs.CodecInfo object for encoding iso8859-1 at 0x10160aae0 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8898 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8470] Let cmd.cmd.intro be unicode friendly
Changes by Shashwat Anand anand.shash...@gmail.com: -- nosy: +l0nwlf ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8470 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8845] Expose sqlite3 connection inTransaction as read-only in_transaction attribute
Changes by Shashwat Anand anand.shash...@gmail.com: -- nosy: +l0nwlf ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8845 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8845] Expose sqlite3 connection inTransaction as read-only in_transaction attribute
Shashwat Anand anand.shash...@gmail.com added the comment: Tested this patch, works perfectly fine. Also it suits for the particular use case which David mentioned where there is no better alternate approach. -- Added file: http://bugs.python.org/file17484/dbapi.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8845 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8845] Expose sqlite3 connection inTransaction as read-only in_transaction attribute
Changes by Shashwat Anand anand.shash...@gmail.com: Removed file: http://bugs.python.org/file17484/dbapi.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8845 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8845] Expose sqlite3 connection inTransaction as read-only in_transaction attribute
Shashwat Anand anand.shash...@gmail.com added the comment: conn = sqlite3.connect('dbdump.sqlite') c = conn.cursor() conn.in_transaction False c.execute('CREATE TABLE foo (id integer, name text)') sqlite3.Cursor object at 0x1004a7730 conn.in_transaction False It gives True for Insert and False for Select. perfect Ok. However It should give True when we Create tables ? Adding unit-test which upon showing this behavior fails the test. -- Added file: http://bugs.python.org/file17485/dbapi.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8845 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8845] Expose sqlite3 connection inTransaction as read-only in_transaction attribute
Changes by Shashwat Anand anand.shash...@gmail.com: Removed file: http://bugs.python.org/file17485/dbapi.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8845 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8845] Expose sqlite3 connection inTransaction as read-only in_transaction attribute
Shashwat Anand anand.shash...@gmail.com added the comment: Ok then. Uploading unit-test which takes value of in_transaction as False after issuing a Create statement. It passes with the patch applied. -- Added file: http://bugs.python.org/file17486/dbapi.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8845 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8811] fixing sqlite3 docs for py3k
Changes by Shashwat Anand anand.shash...@gmail.com: -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8811 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8811] fixing sqlite3 docs for py3k
New submission from Shashwat Anand anand.shash...@gmail.com: The docs of sqlite3 for python 3.0 and 3.1 seems to be written for python 2.6 and hence wrong at many places. like, for member in r: print member However the docs for sqlite3 in py3k trunk seems fine. The sqlite3 doc in py3k trunk should be used in these places. http://docs.python.org/release/3.0.1/library/sqlite3.html http://docs.python.org/release/3.1/library/sqlite3.html -- assignee: d...@python components: Documentation files: sqlite.rst.patch keywords: patch messages: 106382 nosy: d...@python, georg.brandl, ghaering, l0nwlf priority: normal severity: normal status: open title: fixing sqlite3 docs for py3k versions: Python 3.1, Python 3.2 Added file: http://bugs.python.org/file17451/sqlite.rst.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8811 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8811] fixing sqlite3 docs for py3k
Shashwat Anand anand.shash...@gmail.com added the comment: ok, I think a few example codes are wrongly mentioned as if it were 2.x docs, however those examples at http://docs.python.org/dev/py3k/library/sqlite3 works correctly. Do by 'mostly', do you mean I should submit another patch with only those wrong examples rectified ? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8811 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1368368] prompt_user_passwd() in FancyURLopener masks 401 Unauthorized error page
Changes by Shashwat Anand anand.shash...@gmail.com: -- nosy: +l0nwlf ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1368368 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7472] email.encoders.encode_7or8bit(): typo iso-2202. iso-2022 is correct.
Shashwat Anand anand.shash...@gmail.com added the comment: Adding unit-test for the patch -- keywords: +patch Added file: http://bugs.python.org/file17212/test_email.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7472 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7472] email.encoders.encode_7or8bit(): typo iso-2202. iso-2022 is correct.
Shashwat Anand anand.shash...@gmail.com added the comment: I was getting a feel that the inner if-test is not being used in any case. Submitting the patch which removes the inner if test and adding a unittest. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7472 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7472] email.encoders.encode_7or8bit(): typo iso-2202. iso-2022 is correct.
Changes by Shashwat Anand anand.shash...@gmail.com: Added file: http://bugs.python.org/file17215/encoders.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7472 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8474] Duplicate tests in email test suite
New submission from Shashwat Anand anand.shash...@gmail.com: In trunk/Lib/email/test/test_email.py, test_default_cte() is repeated twice, one being the subset of other. Attached patch resolve the duplicity. -- components: Library (Lib) files: test_email.patch keywords: patch messages: 103739 nosy: barry, l0nwlf, r.david.murray severity: normal status: open title: Duplicate tests in email test suite versions: Python 2.7, Python 3.1, Python 3.2 Added file: http://bugs.python.org/file17009/test_email.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8474 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8463] shutil.make_archive() supports bz2, but it's not documented
Shashwat Anand anand.shash...@gmail.com added the comment: Seems like these formats are supported, so yes bztar can be used as a format parameter. _ARCHIVE_FORMATS = { 'gztar': (_make_tarball, [('compress', 'gzip')], gzip'ed tar-file), 'bztar': (_make_tarball, [('compress', 'bzip2')], bzip2'ed tar-file), 'ztar': (_make_tarball, [('compress', 'compress')], compressed tar file), 'tar': (_make_tarball, [('compress', None)], uncompressed tar file), 'zip': (_make_zipfile, [],ZIP file) } -- nosy: +l0nwlf ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8463 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8463] shutil.make_archive() supports bz2, but it's not documented
Shashwat Anand anand.shash...@gmail.com added the comment: Attaching the fix -- keywords: +patch Added file: http://bugs.python.org/file16992/shutil.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8463 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8381] IDLE 2.6 freezes on OS X 10.6
Shashwat Anand anand.shash...@gmail.com added the comment: Idle provided by built-in python in Mac OS X Snow leopard i.e. python 2.6.1 is running without any issues. It is /usr/bin/idle2.6. And if by very new mac you mean latest intel based macs released last summer, then yes I have the same machine. -- nosy: +l0nwlf ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8381 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8464] tarfile creates tarballs with execute permissions set
Shashwat Anand anand.shash...@gmail.com added the comment: Is self.fd = os.open(name, mode, 0666) Ok ? Should not it be self.fd = os.open(name, mode, 0644), because that is what the default permissions are. -- nosy: +l0nwlf ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8464 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8464] tarfile creates tarballs with execute permissions set
Changes by Shashwat Anand anand.shash...@gmail.com: -- nosy: +tarek ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8464 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8463] shutil.make_archive() supports bz2, but it's not documented
Changes by Shashwat Anand anand.shash...@gmail.com: -- nosy: +tarek ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8463 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4768] email.generator.Generator object bytes/str crash - b64encode() bug?
Changes by Shashwat Anand anand.shash...@gmail.com: -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4768 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4768] email.generator.Generator object bytes/str crash - b64encode() bug?
Changes by Shashwat Anand anand.shash...@gmail.com: -- nosy: +l0nwlf ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4768 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8381] IDLE 2.6 freezes on OS X 10.6
Shashwat Anand anand.shash...@gmail.com added the comment: Ned : After I opened a new window, that is how it opened : http://imagebin.us/images/gbg8zdr25hviw26hnqfv.png And IDLE hanged a little later. Had to do a force quit. So yes, the problem is in Apple build Idle2.6 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8381 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8402] glob returns empty list with [ character in the folder name
Shashwat Anand anand.shash...@gmail.com added the comment: When you do : glob.glob(c:\abc\afolderwith[test]\*) returns empty list It looks for all files in three directories: c:\abc\afolderwitht\* c:\abc\afolderwithe\* c:\abc\afolderwiths\* Ofcourse they do not exist so it returns empty list 06:35:05 l0nwlf-MBP:Desktop $ ls -R test 1 2 3 06:35:15 l0nwlf-MBP:Desktop $ ls -R test1 alpha beta gamma glob.glob('/Users/l0nwlf/Desktop/test[123]/*') ['/Users/l0nwlf/Desktop/test1/alpha', '/Users/l0nwlf/Desktop/test1/beta', '/Users/l0nwlf/Desktop/test1/gamma'] As you can see, by giving the argument test[123] it looked for test1, test2, test3. Since test1 existed, it gave all the files present within it. -- nosy: +l0nwlf ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8402 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8402] glob returns empty list with [ character in the folder name
Shashwat Anand anand.shash...@gmail.com added the comment: glob module does not provide what you want. As a workaround you can try: os.listdir(c:\abc\afolderwith[test]) 07:02:52 l0nwlf-MBP:Desktop $ ls -R test\[123\]/ 1 2 3 os.listdir('/Users/l0nwlf/Desktop/test[123]') ['1', '2', '3'] Changing type to 'Feature Request' -- status: pending - open type: behavior - feature request ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8402 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8402] glob returns empty list with
Shashwat Anand anand.shash...@gmail.com added the comment: You repeated the same comment twice and added an 'unnamed' file. I assume you did it by mistake. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8402 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8402] glob returns empty list with [ character in the folder name
Changes by Shashwat Anand anand.shash...@gmail.com: -- title: glob returns empty list with - glob returns empty list with [ character in the folder name ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8402 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7370] patch: BaseHTTPServer reinventing rfc822 date formatting
Changes by Shashwat Anand anand.shash...@gmail.com: Removed file: http://bugs.python.org/file16890/BaseHTTPServer.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7370 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7370] patch: BaseHTTPServer reinventing rfc822 date formatting
Shashwat Anand anand.shash...@gmail.com added the comment: Quoting from the docstring of trunk/Lib/email/utils.py - formatdate() We cannot use strftime() because that honors the locale and RFC 2822 requires that day and month names be the English abbreviations. So yes, I do agree that email.utils.formatdate() should be used instead of time.strftime() to remove duplicate codes and be compliant with RFC. Removing previous patch and submitting another. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7370 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7370] patch: BaseHTTPServer reinventing rfc822 date formatting
Changes by Shashwat Anand anand.shash...@gmail.com: Added file: http://bugs.python.org/file16900/BaseHTTPServer.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7370 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5277] email message.get_params() and related methods sometimes fail.
Shashwat Anand anand.shash...@gmail.com added the comment: According to RFC2231 the named disposition (content disposition field) is provided by the MIME mechanism. The encoded parameter like the following: Content-Disposition: inline; filename*0=Re: [Mailman-Users] Messages shunted with \TypeError: ; filename*1=decodingUnicode is not supported\.eml is not behaving the way it should be. The patch by rcoyner seems fine to me as it rectifies the wrong behaviour of _parseparam i.e. the counting issue of nested 'double quotes' and clears the unit tests. -- nosy: +l0nwlf ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5277 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4487] Add utf8 alias for email charsets
Shashwat Anand anand.shash...@gmail.com added the comment: MIMEText doesn't support unicode input. This was the reason OP Test case failed. For reference : http://bugs.python.org/issue1368247 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4487 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1368247] unicode in email.MIMEText and email/Charset.py
Shashwat Anand anand.shash...@gmail.com added the comment: After applying maxua's patch we do not get the unicode error but as david stated the support is not there. Here is the test. import email msg = email.MIMEText.MIMEText(u'\u043a\u0438\u0440\u0438\u043b\u0438\u0446\u0430') msg.set_charset('utf8') msg.as_string() 'MIME-Version: 1.0\nContent-Transfer-Encoding: 8bit\nContent-Type: text/plain; charset=utf8\n\n\xd0\xba\xd0\xb8\xd1\x80\xd0\xb8\xd0\xbb\xd0\xb8\xd1\x86\xd0\xb0' This does not seems a viable general solution to the problem. I guess, this issue should be closed and emphasis should be now on development of 'email 6.0'. By the way I mailed Marius, the author of the blog-post http://mg.pov.lt/blog/unicode-emails-in-python , if I can borrow his example for the doc-patch. -- nosy: +l0nwlf status: pending - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1368247 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6521] Contradictory documentation for email.mime.text.MIMEText
Shashwat Anand anand.shash...@gmail.com added the comment: UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-7: ordinal not in range(128) The lack of unicode encoding support should be mentioned explicitly. Attaching a doc patch. -- keywords: +patch nosy: +l0nwlf, r.david.murray Added file: http://bugs.python.org/file16906/email.mime.rst.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6521 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8366] OS X universal builds fail on 2.7b1 and py3k with Don't know machine value for archs
Shashwat Anand anand.shash...@gmail.com added the comment: I tried to reproduce it on trunk by trying, ./configure --enable-universalsdk --with-universal-archs=32-bit ; make However It did managed to build successfully. The relevant bits during installation: gcc -c -arch ppc -arch i386 -isysroot / -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I. -IInclude -I./Include -DPy_BUILD_CORE -o Modules/python.o ./Modules/python.c snip Python build finished, but the necessary bits to build these modules were not found: bsddb185 gdbm linuxaudiodev ossaudiodevreadline spwd sunaudiodev To find the necessary bits, look in setup.py in detect_modules() for the module's name. Failed to build these modules: _bsddb _locale running build_scripts trim /usr/bin/install -c -m 644 ./Tools/gdb/libpython.py python.exe-gdb.py 12:52:55 l0nwlf-MBP:python-svn $ ./python.exe Python 2.7b1+ (trunk:79945M, Apr 11 2010, 12:46:28) [GCC 4.2.1 (Apple Inc. build 5646) (dot 1)] on darwin Type help, copyright, credits or license for more information. -- nosy: +l0nwlf ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8366 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8366] OS X universal builds fail on 2.7b1 and py3k with Don't know machine value for archs
Shashwat Anand anand.shash...@gmail.com added the comment: I reinstalled with : make distclean; ./configure --enable-universalsdk --with-universal-archs=32-bit; make on 10.6.2 (Intel) Which I guess is correct. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8366 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8365] 'readline' module fails to build on OS X - some recent change broke it
Shashwat Anand anand.shash...@gmail.com added the comment: ./configure MACOSX_DEPLOYMENT_TARGET=10.6 ; make does the trick. However it should be done by default rather than being defined explicitly. Closing the issue. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8365 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8365] 'readline' module fails to build on OS X - some recent change broke it
Changes by Shashwat Anand anand.shash...@gmail.com: -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8365 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8366] OS X universal builds fail on 2.7b1 and py3k with Don't know machine value for archs
Shashwat Anand anand.shash...@gmail.com added the comment: The error was finally reproduced with : $make distclean; ./configure --enable-universalsdk=/Developer/SDKs/MacOSX10.6.sdk --with-universal-archs=32-bit MACOSX_DEPLOYMENT_TARGET=10.6; make gcc -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.6.sdk -u _PyMac_Error -o python.exe \ Modules/python.o \ libpython2.7.a -ldl -framework CoreFoundation Traceback (most recent call last): File /Volumes/CoreHD/python-svn/Lib/site.py, line 544, in module main() File /Volumes/CoreHD/python-svn/Lib/site.py, line 523, in main addbuilddir() File /Volumes/CoreHD/python-svn/Lib/site.py, line 118, in addbuilddir s = build/lib.%s-%.3s % (get_platform(), sys.version) File /Volumes/CoreHD/python-svn/Lib/sysconfig.py, line 646, in get_platform Don't know machine value for archs=%r%(archs,)) ValueError: Don't know machine value for archs=('i386', 'i386', 'ppc', 'ppc') make: *** [sharedmods] Error 1 Also, $ ls /Developer/SDKs/ MacOSX10.5.sdk MacOSX10.6.sdk -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8366 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7370] patch: BaseHTTPServer reinventing rfc822 date formatting
Shashwat Anand anand.shash...@gmail.com added the comment: Instead of “email.utils.formatdate(time, usegmt=True)” we can simply use time.strftime() and clean the code in a better way. The duplication is there in date_time_string() as well as log_date_time_string(). Submitting the patch for review. -- nosy: +l0nwlf Added file: http://bugs.python.org/file16890/BaseHTTPServer.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7370 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8364] Update site.setquit docstring
Shashwat Anand anand.shash...@gmail.com added the comment: merwok I think you forgot to attach patch -- nosy: +l0nwlf ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8364 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8364] Update site.setquit docstring
Shashwat Anand anand.shash...@gmail.com added the comment: looks fine to me. However I heard trunk will be/is frozen. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8364 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8340] bytearray undocumented on trunk
Shashwat Anand anand.shash...@gmail.com added the comment: On a related note, the documentation of 'bytes' is not backported too. -- nosy: +l0nwlf ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8340 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8340] bytearray undocumented on trunk
Shashwat Anand anand.shash...@gmail.com added the comment: Attached a patch to backport the 'bytearray' and 'bytes' documentation in trunk. -- keywords: +patch Added file: http://bugs.python.org/file16860/functions.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8340 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8365] 'readline' module fails to build on OS X - some recent change broke it
New submission from Shashwat Anand anand.shash...@gmail.com: 'readline' module fails to build on OS X in case of trunk and python 3.x. It have no issues with python 2.5 and 2.6 and python 2.7 alpha. Here is the trace after running ./configure; make in trunk Python build finished, but the necessary bits to build these modules were not found: bsddb185 dl gdbm imageoplinuxaudiodev ossaudiodev readline spwd sunaudiodev With that the uparrow-downarrow and other features fails which I suppose depends on 'readline' 07:31:51 l0nwlf-MBP:python-svn $ ./python.exe Python 2.7b1+ (trunk:79945M, Apr 11 2010, 07:14:54) [GCC 4.2.1 (Apple Inc. build 5646) (dot 1)] on darwin Type help, copyright, credits or license for more information. t = 'test' ^[[A^[[A^[[B^[[B 07:32:53 l0nwlf-MBP:CoreHD $ python3.2 Python 3.2a0 (py3k:79532, Apr 1 2010, 01:48:52) [GCC 4.2.1 (Apple Inc. build 5646) (dot 1)] on darwin Type help, copyright, credits or license for more information. import readline Traceback (most recent call last): File stdin, line 1, in module ImportError: No module named readline t = 'test' ^[[A^[[A (pressing up-arrow for repeating the previous command fails) However, an interesting observation is, 07:34:00 l0nwlf-MBP:CoreHD $ python2.7 Python 2.7a4+ (trunk:78750, Mar 7 2010, 08:09:00) [GCC 4.2.1 (Apple Inc. build 5646) (dot 1)] on darwin Type help, copyright, credits or license for more information. import readline t = 'test' t = 'test' No such issue here, 'uparrow' is working, thereby completing the previous command on interpretor. The version is python2.7 alpha as you can see. So I assume some recent changes broke something, it was fine earlier. -- components: Build messages: 102807 nosy: l0nwlf, ronaldoussoren severity: normal status: open title: 'readline' module fails to build on OS X - some recent change broke it versions: Python 2.7, Python 3.1, Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8365 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8365] 'readline' module fails to build on OS X - some recent change broke it
Shashwat Anand anand.shash...@gmail.com added the comment: After I recompiled my older revision the 'readline' module failed to build. So I guess this is not python-related issue, rather something to do with my system. 08:17:47 l0nwlf-MBP:python-svn(rev79372) $ ./python.exe -V Python 2.7a4+ 08:17:53 l0nwlf-MBP:python-svn(rev79372) $ ./python.exe Python 2.7a4+ (trunk:79372, Apr 11 2010, 08:15:12) [GCC 4.2.1 (Apple Inc. build 5646) (dot 1)] on darwin Type help, copyright, credits or license for more information. import readline Traceback (most recent call last): File stdin, line 1, in module ImportError: No module named readline I will try looking for the cause behind it. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8365 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8350] os.mkdir doc comment is incorrect
Shashwat Anand anand.shash...@gmail.com added the comment: Tested on trunk. 11:46:02 l0nwlf-MBP:python-svn $ ./python.exe Python 2.7a4+ (trunk:79888M, Apr 9 2010, 11:41:22) [GCC 4.2.1 (Apple Inc. build 5646) (dot 1)] on darwin Type help, copyright, credits or license for more information. import posix posix.mkdir('1') posix.mkdir('2', 000) posix.mkdir('3', mode=000) Traceback (most recent call last): File input, line 1, in module TypeError: mkdir() takes no keyword arguments import os os.mkdir('4', 777) os.mkdir('5', mode=777) Traceback (most recent call last): File input, line 1, in module TypeError: mkdir() takes no keyword arguments The two options to fix this are: 1. Patch python-svn/Modules/posixmodule.c to take the keyword arguments. 2. Modify the PyDoc in posixmodule.c as Todd suggested. I had attached a patch which solves the issue using solution '2'. Also I observed that os.makedirs() have no such issue even though it uses os.mkdir() because it uses 'mkdir(name, mode)' to call mkdir. -- keywords: +patch nosy: +l0nwlf versions: +Python 2.7 Added file: http://bugs.python.org/file16836/posixmodule.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8350 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4007] make clean fails to delete .a and .so.X.Y files
Shashwat Anand anand.shash...@gmail.com added the comment: skip.montanaro forgot to attached the patch obviously, however the issue is trivial but there i.e. the presence of libpython.a file. -- nosy: +l0nwlf ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4007 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8352] imp.find_module of a .py ending dir causes glibc double free crash
Shashwat Anand anand.shash...@gmail.com added the comment: quotemkdir bla.py; python -c 'import imp; imp.find_module(bla, [.])' This causes bpython to crash after the first input char if such a directory exist./quote I am sure you do not mean 'bpython intepretor' here. -- nosy: +l0nwlf ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8352 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8350] os.mkdir doc comment is incorrect
Shashwat Anand anand.shash...@gmail.com added the comment: The ideal right fix would be for C functions to support introspection - Agreed, but then it will be needed to do so in quite a number of C codes. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8350 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7472] email.encoders.encode_7or8bit(): typo iso-2202. iso-2022 is correct.
Shashwat Anand anand.shash...@gmail.com added the comment: I am submitting the patch as suggested by Yukihiro -- keywords: +patch nosy: +l0nwlf Added file: http://bugs.python.org/file16789/encoders.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7472 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8331] a documentation grammar fix in logging module
New submission from Shashwat Anand anand.shash...@gmail.com: Just fixed some grammatical error in the docs of logging module. -- assignee: georg.brandl components: Documentation files: logging.patch keywords: patch messages: 102510 nosy: georg.brandl, l0nwlf, vinay.sajip severity: normal status: open title: a documentation grammar fix in logging module versions: Python 2.6, Python 2.7, Python 3.1, Python 3.2 Added file: http://bugs.python.org/file16792/logging.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8331 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4487] Add utf8 alias for email charsets
Shashwat Anand anand.shash...@gmail.com added the comment: I tested it on python 2.5, 2.6, 2.7 trunk and 3.2 varying msg.set_charset(x) with x = 'utf8' and 'utf-8' Here are the results. Apparantly python 2.x had issue with Test case and 3.2 passed but I guess it is unrelated with the issue. 07:35:40 l0nwlf-MBP:~ $ python2.5 Python 2.5.4 (r254:67916, Jul 7 2009, 23:51:24) [GCC 4.2.1 (Apple Inc. build 5646)] on darwin Type help, copyright, credits or license for more information. from email.MIMEText import MIMEText msg = MIMEText(u'\u043a\u0438\u0440\u0438\u043b\u0438\u0446\u0430') msg.set_charset('utf8') print msg.as_string() Traceback (most recent call last): File stdin, line 1, in module File /System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/email/message.py, line 131, in as_string g.flatten(self, unixfrom=unixfrom) File /System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/email/generator.py, line 84, in flatten self._write(msg) File /System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/email/generator.py, line 109, in _write self._dispatch(msg) File /System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/email/generator.py, line 135, in _dispatch meth(msg) File /System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/email/generator.py, line 178, in _handle_text self._fp.write(payload) UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-7: ordinal not in range(128) msg.set_charset('utf-8') print msg.as_string() Traceback (most recent call last): File stdin, line 1, in module File /System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/email/message.py, line 131, in as_string g.flatten(self, unixfrom=unixfrom) File /System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/email/generator.py, line 84, in flatten self._write(msg) File /System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/email/generator.py, line 109, in _write self._dispatch(msg) File /System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/email/generator.py, line 135, in _dispatch meth(msg) File /System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/email/generator.py, line 178, in _handle_text self._fp.write(payload) UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-7: ordinal not in range(128) 07:36:17 l0nwlf-MBP:~ $ python2.6 Python 2.6.5 (r265:79063, Apr 6 2010, 21:34:21) [GCC 4.2.1 (Apple Inc. build 5646) (dot 1)] on darwin Type help, copyright, credits or license for more information. from email.MIMEText import MIMEText msg = MIMEText(u'\u043a\u0438\u0440\u0438\u043b\u0438\u0446\u0430') msg.set_charset('utf8') print msg.as_string() Traceback (most recent call last): File stdin, line 1, in module File /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/email/message.py, line 135, in as_string g.flatten(self, unixfrom=unixfrom) File /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/email/generator.py, line 84, in flatten self._write(msg) File /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/email/generator.py, line 109, in _write self._dispatch(msg) File /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/email/generator.py, line 135, in _dispatch meth(msg) File /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/email/generator.py, line 178, in _handle_text self._fp.write(payload) UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-7: ordinal not in range(128) msg.set_charset('utf-8') print msg.as_string() Traceback (most recent call last): File stdin, line 1, in module File /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/email/message.py, line 135, in as_string g.flatten(self, unixfrom=unixfrom) File /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/email/generator.py, line 84, in flatten self._write(msg) File /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/email/generator.py, line 109, in _write self._dispatch(msg) File /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/email/generator.py, line 135, in _dispatch meth(msg) File /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/email/generator.py, line 178, in _handle_text self._fp.write(payload) UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-7: ordinal not in range(128) 07:36:37 l0nwlf-MBP:~ $ python2.7 Python 2.7a4+ (trunk:78750, Mar 7 2010, 08:09:00) [GCC 4.2.1 (Apple Inc. build 5646) (dot 1)] on darwin Type help, copyright, credits or license for more information. from email.MIMEText import MIMEText msg
[issue4570] Bad example in set tutorial
Shashwat Anand anand.shash...@gmail.com added the comment: I guess giving fruit, the set of unique fruit a different name makes it more clear. Comments alignment fixed. basket = {'apple', 'orange', 'apple', 'pear', 'orange', 'banana'} print(basket) {'orange', 'bananna', 'pear', 'apple'} fruit = ['apple', 'orange', 'apple', 'pear', 'orange', 'banana'] uniquefruit = set(fruit) # create a set without duplicates uniquefruit {'orange', 'pear', 'apple', 'banana'} -- nosy: +l0nwlf Added file: http://bugs.python.org/file16793/datastructure.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4570 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8208] test_issue7820 fails: name '?' is not defined
Shashwat Anand anand.shash...@gmail.com added the comment: I did not find any issue here. Trunk running on OS X 10.6.2: 06:25:00 l0nwlf-MBP:test $ python2.7 -V Python 2.7a4+ 06:25:05 l0nwlf-MBP:test $ python2.7 test_pep263.py test_compilestring (__main__.PEP263Test) ... ok test_issue3297 (__main__.PEP263Test) ... ok test_issue7820 (__main__.PEP263Test) ... ok test_pep263 (__main__.PEP263Test) ... ok -- Ran 4 tests in 0.003s OK -- nosy: +l0nwlf ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8208 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1083] Confusing error message when dividing timedelta using /
Shashwat Anand anand.shash...@gmail.com added the comment: I do not understand why python2.7 is marked in Version tag ? I reproduced the error on 3.1 but no isues on 2.7 06:39:30 l0nwlf-MBP:data $ python2.7 Python 2.7a4+ (trunk:78750, Mar 7 2010, 08:09:00) [GCC 4.2.1 (Apple Inc. build 5646) (dot 1)] on darwin Type help, copyright, credits or license for more information. import datetime d = datetime.timedelta(1) d / 2 datetime.timedelta(0, 43200) d // 2 datetime.timedelta(0, 43200) 06:41:13 l0nwlf-MBP:data $ python3.1 Python 3.1.1 (r311:74480, Mar 21 2010, 20:21:46) [GCC 4.2.1 (Apple Inc. build 5646) (dot 1)] on darwin Type help, copyright, credits or license for more information. import datetime d = datetime.timedelta(1) d / 2 Traceback (most recent call last): File stdin, line 1, in module TypeError: unsupported operand type(s) for /: 'datetime.timedelta' and 'int' d // 2 datetime.timedelta(0, 43200) -- nosy: +l0nwlf ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1083 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7040] test_smtplib fails on os x 10.6
Changes by Shashwat Anand anand.shash...@gmail.com: -- nosy: +l0nwlf ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7040 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1693050] \w not helpful for non-Roman scripts
Changes by Shashwat Anand anand.shash...@gmail.com: -- nosy: +l0nwlf ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1693050 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8190] Add an xml-rpc client for PyPi
Changes by Shashwat Anand anand.shash...@gmail.com: -- nosy: +l0nwlf ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8190 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8250] Implement pkgutil APIs as described in PEP 376
Changes by Shashwat Anand anand.shash...@gmail.com: -- nosy: +l0nwlf ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8250 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8252] add a metadata section in setup.cfg
Changes by Shashwat Anand anand.shash...@gmail.com: -- nosy: +l0nwlf ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8252 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com