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
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: 300648
nosy: ashishnitinpatil, docs@python
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 b
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.
Although
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: +
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
have
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 (which is not using
Changes by Ashish Sadanandan ashish.sadanan...@gmail.com:
--
title: MinGW-64 - MinGW-64 and embedding Python3.4
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23603
Changes by Ashish Sadanandan ashish.sadanan...@gmail.com:
--
title: MinGW-64 and embedding Python3.4 - Embedding Python3.4 -
PyUnicode_Check fails (MinGW-W64)
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23603
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 rep...@bugs.python.org
http://bugs.python.org/issue14901
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 I found
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 rep...@bugs.python.org
http://bugs.python.org/issue14901
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
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 help
New submission from Ashish pimp...@gmail.com:
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
Ashish pimp...@gmail.com 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 after make install i
16 matches
Mail list logo