[issue747320] rfc2822 formatdate functionality duplication

2010-08-18 Thread Shashwat Anand
Changes by Shashwat Anand : -- nosy: +l0nwlf ___ Python tracker <http://bugs.python.org/issue747320> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue8252] add a metadata section in setup.cfg

2011-04-03 Thread Shashwat Anand
Changes by Shashwat Anand : -- nosy: -l0nwlf ___ Python tracker <http://bugs.python.org/issue8252> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue8253] add a resource+files section in setup.cfg

2011-04-03 Thread Shashwat Anand
Changes by Shashwat Anand : -- nosy: -l0nwlf ___ Python tracker <http://bugs.python.org/issue8253> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue4487] Add utf8 alias for email charsets

2011-04-03 Thread Shashwat Anand
Changes by Shashwat Anand : -- nosy: -l0nwlf ___ Python tracker <http://bugs.python.org/issue4487> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue8013] time.asctime segfaults when given a time in the far future

2011-01-02 Thread Shashwat Anand
Changes by Shashwat Anand : -- nosy: -l0nwlf ___ Python tracker <http://bugs.python.org/issue8013> ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2011-01-02 Thread Shashwat Anand
Changes by Shashwat Anand : -- nosy: -l0nwlf ___ Python tracker <http://bugs.python.org/issue4953> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue4194] default subprocess.Popen buffer size

2010-02-06 Thread Shashwat Anand
Shashwat Anand added the comment: Tested it on mac OSX (Snow leopard) Shashwat-Anands-MacBook-Pro:Desktop l0nwlf$ python2.5 popentest.py time with os.popen : 0.0342061519623 time with subprocess.Popen : 0.0421631336212 Shashwat-Anands-MacBook-Pro:Desktop l0nwlf$ python2.6 --version Python

[issue7900] posix.getgroups() failure on Mac OS X

2010-02-12 Thread Shashwat Anand
Shashwat Anand added the comment: I don't see any issue here, runs perfectly fine on Mac OS X (Snow Leopard) Shashwat-Anands-MacBook-Pro:test l0nwlf$ pwd /Users/l0nwlf/python-svn/Lib/test Shashwat-Anands-MacBook-Pro:test l0nwlf$ python2.7 test_posix.py testNoArgFunctions (__main__.PosixT

[issue7909] os.path.abspath(os.devnull) returns \\\\nul should be nul?

2010-02-12 Thread Shashwat Anand
Shashwat Anand added the comment: Seems fine to me, does not raise any errors. My OS is OS X Snow Leopard. I checked it in python 2.5, 2.6, 2.7 too, no issues raised. Shashwat-Anands-MacBook-Pro:test l0nwlf$ python2.6 Python 2.6.1 (r261:67515, Jul 7 2009, 23:51:51) [GCC 4.2.1 (Apple Inc

[issue7920] urllib2.HTTPRedirectHandler incorrect redirect

2010-02-12 Thread Shashwat Anand
Shashwat Anand added the comment: In Python 2.7a3+, trunk:78165 the code is as follows: (note that there is a segment of code to fix malformed URLs) """ if 'location' in headers: newurl = headers.getheaders('location')[0] elif &

[issue7900] posix.getgroups() failure on Mac OS X

2010-02-12 Thread Shashwat Anand
Shashwat Anand added the comment: It seems they are basically the same thing, the version of GCC and the build of OS X(latest in the case here). Was not able to figure out the (dot 1) stuff though. -- nosy: -loewis, michael.foord, orsenthil, ronaldoussoren

[issue7900] posix.getgroups() failure on Mac OS X

2010-02-12 Thread Shashwat Anand
Shashwat Anand added the comment: Thanks for correcting it back. I did not even realized it. -- ___ Python tracker <http://bugs.python.org/issue7900> ___ ___

[issue7920] urllib2.HTTPRedirectHandler incorrect redirect

2010-02-12 Thread Shashwat Anand
Changes by Shashwat Anand : -- nosy: +orsenthil ___ Python tracker <http://bugs.python.org/issue7920> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue7900] posix.getgroups() failure on Mac OS X

2010-02-12 Thread Shashwat Anand
Shashwat Anand added the comment: 5646 and 5646.1 are the builds of GCC by Apple. The various builds of gcc are present on http://www.opensource.apple.com/source/gcc/ [GCC 4.2.1 (Apple Inc. build 5646) (dot 1)] on darwin -> http://www.opensource.apple.com/source/gcc/gcc-5646.1/ [GCC 4.

[issue7966] mhlib uses deprecated module

2010-02-19 Thread Shashwat Anand
Shashwat Anand added the comment: There is a discussion going on python-dev too, the author being sjoerd. http://mail.python.org/pipermail/python-dev/2010-February/097772.html GvR reply : http://mail.python.org/pipermail/python-dev/2010-February/097774.html -- nosy: +l0nwlf

[issue8051] Python 2.7 alpha 4 show wrong version number on osx

2010-03-03 Thread Shashwat Anand
New submission from Shashwat Anand : Python 2.7 alpha 4 (trunk 78643) upon being invoked on terminal shows wrong version number.Since it is no longer alpha 3, it should show 'Python 2.7a4+' as version Shashwat-Anands-MacBook-Pro:Misc l0nwlf$ python2.7 Python 2.7a3+ (trunk:78643, M

[issue8051] Python 2.7 alpha 4 show wrong version number on osx

2010-03-03 Thread Shashwat Anand
Shashwat Anand added the comment: Python 2.7 alpha 4 will be released on 2010-03-06 according to PEP 0373. The Misc/NEWS (http://svn.python.org/projects/python/trunk/Misc/NEWS) mentions : What's New in Python 2.7 alpha 4? Since this is almost _the python 2.7 alpha 4_, I expected to

[issue8163] DictionaryServices module broken in python2.6 and later

2010-03-17 Thread Shashwat Anand
New submission from Shashwat Anand : I am able to call DictionaryServices module from python2.5 and later. However it works correctly only on python2.5. Below is the stack-trace on using DictionaryServices on python2.5, python2.6 and python2.7 Shashwat-Anands-MacBook-Pro:PyObjCTest l0nwlf

[issue8190] Add an xml-rpc client for PyPi

2010-03-28 Thread Shashwat Anand
Changes by Shashwat Anand : -- nosy: +l0nwlf ___ Python tracker <http://bugs.python.org/issue8190> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue8250] Implement pkgutil APIs as described in PEP 376

2010-03-28 Thread Shashwat Anand
Changes by Shashwat Anand : -- nosy: +l0nwlf ___ Python tracker <http://bugs.python.org/issue8250> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue8252] add a metadata section in setup.cfg

2010-03-28 Thread Shashwat Anand
Changes by Shashwat Anand : -- nosy: +l0nwlf ___ Python tracker <http://bugs.python.org/issue8252> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue8253] add a resource+files section in setup.cfg

2010-03-28 Thread Shashwat Anand
Changes by Shashwat Anand : -- nosy: +l0nwlf ___ Python tracker <http://bugs.python.org/issue8253> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue8254] write a configure command

2010-03-28 Thread Shashwat Anand
Changes by Shashwat Anand : -- nosy: +l0nwlf ___ Python tracker <http://bugs.python.org/issue8254> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue8255] step-by-step tutorial

2010-03-28 Thread Shashwat Anand
Changes by Shashwat Anand : -- nosy: +l0nwlf ___ Python tracker <http://bugs.python.org/issue8255> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue8208] test_issue7820 fails: "name '?' is not defined"

2010-03-30 Thread Shashwat Anand
Shashwat Anand 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

[issue1083] Confusing error message when dividing timedelta using /

2010-03-30 Thread Shashwat Anand
Shashwat Anand 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

[issue7040] test_smtplib fails on os x 10.6

2010-03-30 Thread Shashwat Anand
Changes by Shashwat Anand : -- nosy: +l0nwlf ___ Python tracker <http://bugs.python.org/issue7040> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue1693050] \w not helpful for non-Roman scripts

2010-03-30 Thread Shashwat Anand
Changes by Shashwat Anand : -- nosy: +l0nwlf ___ Python tracker <http://bugs.python.org/issue1693050> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue7472] email.encoders.encode_7or8bit(): typo "iso-2202". "iso-2022" is correct.

2010-04-06 Thread Shashwat Anand
Shashwat Anand 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 <http://bugs.python.org/issue7

[issue8331] a documentation grammar fix in logging module

2010-04-06 Thread Shashwat Anand
New submission from Shashwat Anand : 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

[issue4487] Add utf8 alias for email charsets

2010-04-06 Thread Shashwat Anand
Shashwat Anand 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.

[issue4570] Bad example in set tutorial

2010-04-06 Thread Shashwat Anand
Shashwat Anand 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'} >>

[issue8350] os.mkdir doc comment is incorrect

2010-04-08 Thread Shashwat Anand
Shashwat Anand 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"

[issue4007] make clean fails to delete .a and .so.X.Y files

2010-04-08 Thread Shashwat Anand
Shashwat Anand 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 <http://bugs.python.org/issue4

[issue8352] imp.find_module of a .py ending dir causes glibc double free crash

2010-04-08 Thread Shashwat Anand
Shashwat Anand added the comment: mkdir 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. I am sure you do not mean 'bpython intepret

[issue8350] os.mkdir doc comment is incorrect

2010-04-09 Thread Shashwat Anand
Shashwat Anand 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 <http://bugs.python.org/issue8

[issue8364] Update site.setquit docstring

2010-04-10 Thread Shashwat Anand
Shashwat Anand added the comment: merwok I think you forgot to attach patch -- nosy: +l0nwlf ___ Python tracker <http://bugs.python.org/issue8364> ___ ___ Pytho

[issue8364] Update site.setquit docstring

2010-04-10 Thread Shashwat Anand
Shashwat Anand added the comment: looks fine to me. However I heard trunk will be/is frozen. -- ___ Python tracker <http://bugs.python.org/issue8364> ___ ___

[issue8340] bytearray undocumented on trunk

2010-04-10 Thread Shashwat Anand
Shashwat Anand added the comment: On a related note, the documentation of 'bytes' is not backported too. -- nosy: +l0nwlf ___ Python tracker <http://bugs.python.

[issue8340] bytearray undocumented on trunk

2010-04-10 Thread Shashwat Anand
Shashwat Anand 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 <http://bu

[issue8365] 'readline' module fails to build on OS X - some recent change broke it

2010-04-10 Thread Shashwat Anand
New submission from Shashwat Anand : '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 bit

[issue8365] 'readline' module fails to build on OS X - some recent change broke it

2010-04-10 Thread Shashwat Anand
Shashwat Anand 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-

[issue8366] OS X universal builds fail on 2.7b1 and py3k with "Don't know machine value for archs"

2010-04-11 Thread Shashwat Anand
Shashwat Anand 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

[issue8366] OS X universal builds fail on 2.7b1 and py3k with "Don't know machine value for archs"

2010-04-11 Thread Shashwat Anand
Shashwat Anand 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 <http://bugs.python.org/issue8

[issue8365] 'readline' module fails to build on OS X - some recent change broke it

2010-04-11 Thread Shashwat Anand
Shashwat Anand 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 <http://bugs.python.org/issue8

[issue8365] 'readline' module fails to build on OS X - some recent change broke it

2010-04-11 Thread Shashwat Anand
Changes by Shashwat Anand : -- status: open -> closed ___ Python tracker <http://bugs.python.org/issue8365> ___ ___ Python-bugs-list mailing list Unsubscri

[issue8366] OS X universal builds fail on 2.7b1 and py3k with "Don't know machine value for archs"

2010-04-11 Thread Shashwat Anand
Shashwat Anand 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

[issue7370] patch: BaseHTTPServer reinventing rfc822 date formatting

2010-04-11 Thread Shashwat Anand
Shashwat Anand 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

[issue7370] patch: BaseHTTPServer reinventing rfc822 date formatting

2010-04-12 Thread Shashwat Anand
Changes by Shashwat Anand : Removed file: http://bugs.python.org/file16890/BaseHTTPServer.patch ___ Python tracker <http://bugs.python.org/issue7370> ___ ___ Python-bug

[issue7370] patch: BaseHTTPServer reinventing rfc822 date formatting

2010-04-12 Thread Shashwat Anand
Shashwat Anand 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.uti

[issue7370] patch: BaseHTTPServer reinventing rfc822 date formatting

2010-04-12 Thread Shashwat Anand
Changes by Shashwat Anand : Added file: http://bugs.python.org/file16900/BaseHTTPServer.patch ___ Python tracker <http://bugs.python.org/issue7370> ___ ___ Python-bug

[issue5277] email message.get_params() and related methods sometimes fail.

2010-04-12 Thread Shashwat Anand
Shashwat Anand 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: &quo

[issue4487] Add utf8 alias for email charsets

2010-04-12 Thread Shashwat Anand
Shashwat Anand 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 <http://bugs.python.org/i

[issue1368247] unicode in email.MIMEText and email/Charset.py

2010-04-12 Thread Shashwat Anand
Shashwat Anand 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\u0

[issue6521] Contradictory documentation for email.mime.text.MIMEText

2010-04-12 Thread Shashwat Anand
Shashwat Anand 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.dav

[issue8402] glob returns empty list with "[" character in the folder name

2010-04-14 Thread Shashwat Anand
Shashwat Anand 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

[issue8402] glob returns empty list with "[" character in the folder name

2010-04-14 Thread Shashwat Anand
Shashwat Anand 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'

[issue8402] glob returns empty list with "

2010-04-14 Thread Shashwat Anand
Shashwat Anand added the comment: You repeated the same comment twice and added an 'unnamed' file. I assume you did it by mistake. -- ___ Python tracker <http://bugs.python.

[issue8402] glob returns empty list with "[" character in the folder name

2010-04-14 Thread Shashwat Anand
Changes by Shashwat Anand : -- title: glob returns empty list with " -> glob returns empty list with "[" character in the folder name ___ Python tracker <http://bugs

[issue8463] shutil.make_archive() supports bz2, but it's not documented

2010-04-19 Thread Shashwat Anand
Shashwat Anand 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&#

[issue8463] shutil.make_archive() supports bz2, but it's not documented

2010-04-19 Thread Shashwat Anand
Shashwat Anand added the comment: Attaching the fix -- keywords: +patch Added file: http://bugs.python.org/file16992/shutil.patch ___ Python tracker <http://bugs.python.org/issue8

[issue8381] IDLE 2.6 freezes on OS X 10.6

2010-04-19 Thread Shashwat Anand
Shashwat Anand 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

[issue8464] tarfile creates tarballs with execute permissions set

2010-04-19 Thread Shashwat Anand
Shashwat Anand 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 <

[issue8464] tarfile creates tarballs with execute permissions set

2010-04-19 Thread Shashwat Anand
Changes by Shashwat Anand : -- nosy: +tarek ___ Python tracker <http://bugs.python.org/issue8464> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue8463] shutil.make_archive() supports bz2, but it's not documented

2010-04-19 Thread Shashwat Anand
Changes by Shashwat Anand : -- nosy: +tarek ___ Python tracker <http://bugs.python.org/issue8463> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue4768] email.generator.Generator object bytes/str crash - b64encode() bug?

2010-04-19 Thread Shashwat Anand
Changes by Shashwat Anand : -- nosy: +r.david.murray ___ Python tracker <http://bugs.python.org/issue4768> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue4768] email.generator.Generator object bytes/str crash - b64encode() bug?

2010-04-19 Thread Shashwat Anand
Changes by Shashwat Anand : -- nosy: +l0nwlf ___ Python tracker <http://bugs.python.org/issue4768> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue8381] IDLE 2.6 freezes on OS X 10.6

2010-04-19 Thread Shashwat Anand
Shashwat Anand 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

[issue8474] Duplicate tests in email test suite

2010-04-20 Thread Shashwat Anand
New submission from Shashwat Anand : 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

[issue7472] email.encoders.encode_7or8bit(): typo "iso-2202". "iso-2022" is correct.

2010-05-04 Thread Shashwat Anand
Shashwat Anand added the comment: Adding unit-test for the patch -- keywords: +patch Added file: http://bugs.python.org/file17212/test_email.patch ___ Python tracker <http://bugs.python.org/issue7

[issue7472] email.encoders.encode_7or8bit(): typo "iso-2202". "iso-2022" is correct.

2010-05-04 Thread Shashwat Anand
Shashwat Anand 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 <http://bugs.python.org/issue7

[issue7472] email.encoders.encode_7or8bit(): typo "iso-2202". "iso-2022" is correct.

2010-05-04 Thread Shashwat Anand
Changes by Shashwat Anand : Added file: http://bugs.python.org/file17215/encoders.patch ___ Python tracker <http://bugs.python.org/issue7472> ___ ___ Python-bugs-list m

[issue8811] fixing sqlite3 docs for py3k

2010-05-24 Thread Shashwat Anand
New submission from Shashwat Anand : 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 b

[issue8811] fixing sqlite3 docs for py3k

2010-05-24 Thread Shashwat Anand
Shashwat Anand 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

[issue1368368] prompt_user_passwd() in FancyURLopener masks 401 Unauthorized error page

2010-05-24 Thread Shashwat Anand
Changes by Shashwat Anand : -- nosy: +l0nwlf ___ Python tracker <http://bugs.python.org/issue1368368> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue8811] fixing sqlite3 docs for py3k

2010-05-26 Thread Shashwat Anand
Changes by Shashwat Anand : -- nosy: +r.david.murray ___ Python tracker <http://bugs.python.org/issue8811> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue8845] Expose sqlite3 connection inTransaction as read-only in_transaction attribute

2010-05-28 Thread Shashwat Anand
Changes by Shashwat Anand : -- nosy: +l0nwlf ___ Python tracker <http://bugs.python.org/issue8845> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue8845] Expose sqlite3 connection inTransaction as read-only in_transaction attribute

2010-05-28 Thread Shashwat Anand
Shashwat Anand 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

[issue8845] Expose sqlite3 connection inTransaction as read-only in_transaction attribute

2010-05-28 Thread Shashwat Anand
Changes by Shashwat Anand : Removed file: http://bugs.python.org/file17484/dbapi.patch ___ Python tracker <http://bugs.python.org/issue8845> ___ ___ Python-bugs-list m

[issue8845] Expose sqlite3 connection inTransaction as read-only in_transaction attribute

2010-05-28 Thread Shashwat Anand
Shashwat Anand added the comment: >>> conn = sqlite3.connect('dbdump.sqlite') >>> c = conn.cursor() >>> conn.in_transaction False >>> c.execute('CREATE TABLE foo (id integer, name text)') >>> conn.in_transaction False It g

[issue8845] Expose sqlite3 connection inTransaction as read-only in_transaction attribute

2010-05-28 Thread Shashwat Anand
Changes by Shashwat Anand : Removed file: http://bugs.python.org/file17485/dbapi.patch ___ Python tracker <http://bugs.python.org/issue8845> ___ ___ Python-bugs-list m

[issue8845] Expose sqlite3 connection inTransaction as read-only in_transaction attribute

2010-05-28 Thread Shashwat Anand
Shashwat Anand 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

[issue8470] Let cmd.cmd.intro be unicode friendly

2010-05-29 Thread Shashwat Anand
Changes by Shashwat Anand : -- nosy: +l0nwlf ___ Python tracker <http://bugs.python.org/issue8470> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue8898] The email package should defer to the codecs module for all aliases

2010-06-04 Thread Shashwat Anand
Shashwat Anand 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 : alia

[issue8898] The email package should defer to the codecs module for all aliases

2010-06-04 Thread Shashwat Anand
Shashwat Anand 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. >>&g

[issue7370] patch: BaseHTTPServer reinventing rfc822 date formatting

2010-06-05 Thread Shashwat Anand
Changes by Shashwat Anand : Removed file: http://bugs.python.org/file16900/BaseHTTPServer.patch ___ Python tracker <http://bugs.python.org/issue7370> ___ ___ Python-bug

[issue7370] patch: BaseHTTPServer reinventing rfc822 date formatting

2010-06-05 Thread Shashwat Anand
Shashwat Anand 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 <http://bugs.python.org/issue7

[issue7370] patch: BaseHTTPServer reinventing rfc822 date formatting

2010-06-06 Thread Shashwat Anand
Changes by Shashwat Anand : Removed file: http://bugs.python.org/file17567/BaseHTTPServer.patch ___ Python tracker <http://bugs.python.org/issue7370> ___ ___ Python-bug

[issue7370] patch: BaseHTTPServer reinventing rfc822 date formatting

2010-06-06 Thread Shashwat Anand
Shashwat Anand 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/file17

[issue8572] httplib getheader() throws error instead of default

2010-06-12 Thread Shashwat Anand
Changes by Shashwat Anand : -- nosy: +l0nwlf ___ Python tracker <http://bugs.python.org/issue8572> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue8989] email.utils.make_msgid: specify domain

2010-06-13 Thread Shashwat Anand
Shashwat Anand added the comment: Adrian, Could you generate the diffs from the top level of the checkout and attach it here? -- nosy: +l0nwlf ___ Python tracker <http://bugs.python.org/issue8

[issue7370] patch: BaseHTTPServer reinventing rfc822 date formatting

2010-06-13 Thread Shashwat Anand
Shashwat Anand added the comment: Agreed. Attaching the unit test. -- Added file: http://bugs.python.org/file17656/test_httpserver.patch ___ Python tracker <http://bugs.python.org/issue7

[issue9010] Infinite loop in imaplib.IMAP4_SSL when used with Gmail

2010-06-16 Thread Shashwat Anand
Shashwat Anand 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("

[issue9033] cmd module tab misbehavior

2010-06-19 Thread Shashwat Anand
Shashwat Anand 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 linke

[issue9033] cmd module tab misbehavior

2010-06-19 Thread Shashwat Anand
Changes by Shashwat Anand : -- nosy: +ned.deily ___ Python tracker <http://bugs.python.org/issue9033> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue8820] IDLE not launching correctly

2010-06-19 Thread Shashwat Anand
Changes by Shashwat Anand : -- nosy: +kbk ___ Python tracker <http://bugs.python.org/issue8820> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue8820] IDLE not launching correctly

2010-06-19 Thread Shashwat Anand
Changes by Shashwat Anand : -- nosy: +l0nwlf ___ Python tracker <http://bugs.python.org/issue8820> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue4654] os.path.realpath() get the wrong result

2010-06-19 Thread Shashwat Anand
Changes by Shashwat Anand : -- nosy: +l0nwlf, loewis ___ Python tracker <http://bugs.python.org/issue4654> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue4654] os.path.realpath() get the wrong result

2010-06-19 Thread Shashwat Anand
Shashwat Anand 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

[issue9018] os.path.normcase(None) does not raise an error on linux and should

2010-06-19 Thread Shashwat Anand
Shashwat Anand 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

  1   2   >