[issue44216] Bug in class method with optional parameter

2021-05-23 Thread Ashish Shevale
New submission from Ashish Shevale : Consider the following piece of code class MyClass: def do_something(self, a, b = []): b.append(a) print("b contains", b) def caller(self): a = (1,2) self.do_something(a) a = MyClass().caller() a = MyClas

[issue31252] Operator.itemgetter documentation should include dictionary keys example

2017-08-21 Thread Ashish Nitin Patil
New submission from Ashish Nitin Patil: Current documentation lacks the example of usage with dictionary keys. e.g. `itemgetter('sample')({'sample': True, 'How about this': 'Nope'})` -- assignee: docs@python components: Documentation messages: 30

[issue27497] csv module: Add return value to DictWriter.writeheader

2016-09-05 Thread Ashish Nitin Patil
Ashish Nitin Patil added the comment: Thank you Berker & Skip for your review & additional inputs. I have added a (probably not so good) unittest for testing the newly added *return*. I have also added the corresponding *versionchanged* info to the documentation as suggested by Berke

[issue27497] csv module: Add return value to DictWriter.writeheader

2016-09-04 Thread Ashish Nitin Patil
Ashish Nitin Patil added the comment: Also, I noticed in the documentation for `csv.DictWriter` (https://docs.python.org/3/library/csv.html#csv.DictWriter.writeheader) does not contain the following line - to the writer's file object, formatted according to the current dialect. Alt

[issue27497] csv module: Add return value to DictWriter.writeheader

2016-09-04 Thread Ashish Nitin Patil
Ashish Nitin Patil added the comment: Hi, I have added the "return" to the writeheader method. I ran the tests for the csv library (./python -m test -v test_csv) and got no errors (Ran 101 tests in 0.322s; 1 test OK.). Kindly review the patch. -- keywords: +

[issue23603] Embedding Python3.4 - PyUnicode_Check fails (MinGW-W64)

2015-03-08 Thread Ashish Sadanandan
Ashish Sadanandan added the comment: Thanks for the reply. MSVC does produce the expected results, I forgot to mention that earlier. So I guess this means I can't realistically expect anyone to look into this problem? I can switch to MSVC but the spotty C++11/14 support is irritating to

[issue23603] Embedding Python3.4 - PyUnicode_Check fails (MinGW-W64)

2015-03-07 Thread Ashish Sadanandan
Changes by Ashish Sadanandan : -- title: MinGW-64 and embedding Python3.4 -> Embedding Python3.4 - PyUnicode_Check fails (MinGW-W64) ___ Python tracker <http://bugs.python.org/issu

[issue23603] MinGW-64 and embedding Python3.4

2015-03-07 Thread Ashish Sadanandan
Changes by Ashish Sadanandan : -- title: MinGW-64 -> MinGW-64 and embedding Python3.4 ___ Python tracker <http://bugs.python.org/issue23603> ___ ___ Python-

[issue23603] MinGW-64

2015-03-07 Thread Ashish Sadanandan
New submission from Ashish Sadanandan: I'm trying to embed Python 3.4.3 (x64) in a program compiled using MinGW-W64 g++ 4.9.2 (output from "g++ -v" attached) and Boost.Python 1.57.0. A simple example kept crashing at runtime and I managed to track it down to this testcase (whi

[issue14901] Python Windows FAQ is Very Outdated

2012-12-20 Thread Ashish Nitin Patil
Ashish Nitin Patil added the comment: Always happy to contribute! My first! Looking forward to getting accustomed to it & doing my part for python. -- ___ Python tracker <http://bugs.python.org/iss

[issue14901] Python Windows FAQ is Very Outdated

2012-12-07 Thread Ashish Nitin Patil
Ashish Nitin Patil added the comment: Just added my name to the Misc/ACKS. -- Added file: http://bugs.python.org/file28250/faq+ack.patch ___ Python tracker <http://bugs.python.org/issue14

[issue14901] Python Windows FAQ is Very Outdated

2012-12-07 Thread Ashish Nitin Patil
Ashish Nitin Patil added the comment: Made most of the relevant changes & updation to the FAQ. 1. Updated references to Windows 7/XP/Vista & dropped all references & solutions on older Windows. 2. Also, many of the ending FAQs like cw3215mt.dll, CTL3D32 were completely dropped as

[issue14901] Python Windows FAQ is Very Outdated

2012-12-06 Thread Ashish Nitin Patil
Ashish Nitin Patil added the comment: Found this - http://docs.python.org/3/using/windows.html Seems like my work got a bit easy. Need to truncate the bits & bytes oof the document so as to fit with FAQ system. I think I will also need to do changes to the official wiki (online) too. Any

[issue14901] Python Windows FAQ is Very Outdated

2012-12-06 Thread Ashish Nitin Patil
Ashish Nitin Patil added the comment: Is anyone currently working on this issue? I am a newbie & am really looking forward to contributing, but, quite unsure of what exact changes need to be made to the FAQ documentation. The previous comments are very helpful & I am going to proceed

[issue7002] help me to set variables - 64 bit

2009-09-25 Thread Ashish
New submission from Ashish : Hello, I am compiling python 2.6.2 and 3.1. I tried to compile 64 bit ( ELF 64-bit )python but it gets 32 bit ( ELF 32-bit ). bash-3.00$ sudo file /usr/local/Python-2.6.2/bin/python /usr/local/Python-2.6.2/bin/python: ELF 32-bit MSB executable, PowerPC or cisco

[issue6989] Compile error for Python-2.6.2 on Solaris

2009-09-25 Thread Ashish
Ashish added the comment: Issue seems to be resolved. Please close the issue. Thanks a lot Mark for your cooperation, support and Guideline. :-) -- status: open -> closed ___ Python tracker <http://bugs.python.org/iss

[issue6989] Python-2.6.2

2009-09-24 Thread Ashish
Ashish added the comment: I added vaiable as export CXX="gcc -q64" then run sudo ./configure --with-universal-archs="64 bit" --prefix=/opt/Python-2.6.2/ After completion of configure I removed "O3" from makefile, then run sudo make It seems to be run fine. But

[issue6989] Python-2.6.2

2009-09-24 Thread Ashish
New submission from Ashish : I am getting error while compiling python-2.6.2 OS - Solaris 10 8/07 s10s_u4wos_12b SPARC bash-3.00$ isainfo -v 64-bit sparcv9 applications asi_blk_init 32-bit sparc applications asi_blk_init v8plus div32 mul32 Paths and defined PATH=/usr/local/bin