DzinX

Poland

Age: 30

I ❤ Python

Sep
1
awarded Good Answer
Aug
22
revised How to extend an array with an existing JavaScript Array?
Highlighted differences between this question and the one about "push".
Aug
1
awarded Guru
Jul
26
awarded Yearling
Jul
26
awarded Yearling
Jul
22
awarded Nice Answer
Jul
2
awarded Curious
Jun
3
awarded Great Question
May
27
awarded Announcer
Apr
18
comment How to parse javascript results with Python
Your code looks fine. You can check x.getcode() to make sure you actually download the page (it should return 200).
Apr
7
comment Batch Renaming of Files in a Directory
@ShashankSawant It is indeed a formatting operator. See String Formatting Operations for documentation and sample usage.
Apr
3
revised Understanding "Too many ancestors" from pylint
spelling
Mar
4
awarded Nice Question
Feb
27
awarded Enlightened
Feb
19
awarded Nice Answer
Dec
30
awarded Populist
Dec
13
comment How to extend an array with an existing JavaScript Array?
@Deqing: Array's push method can take any number of arguments, which are then pushed to the back of the array. So a.push('x', 'y', 'z') is a valid call that will extend a by 3 elements. apply is a method of any function that takes an array and uses its elements as if they were all given explicitly as positional elements to the function. So a.push.apply(a, ['x', 'y', 'z']) would also extend the array by 3 elements. Additionally, apply takes a context as the first argument (we pass a again there to append to a).
Nov
19
awarded Enlightened
Nov
9
awarded Favorite Question
Oct
29
revised python csv headers not in first line
Fixed wrongly named argument.
1 2 3 4 5