Profile

Cover photo
Josué Kouka
Attends Supinfo - Nantes
209 followers|74,417 views
AboutPostsYouTube

Stream

Josué Kouka

Questions  - 
 
Hi guys !!! Could someone explain this http://pastie.org/8636799 please ?
I can't figure it out. Why does everything change ? Thanks guys ^_^
l = [[0]] * 10 >>> l [[0], [0], [0], [0], [0], [0], [0], [0], [0], [0]] >>> l[0][0] = 1 >>> l [[1], [1], [1], [1], [1], [1], [1], [1], [1], [1]] >>>. 154 characters / 7 lines. Embed Code. . Advertising from Carbon: Be nice.
1
avadh patel's profile photoAngus Hollands's profile photoJosué Kouka's profile photoAsaf Las's profile photo
11 comments
 
thank you for pointing to this issue.
btw, the word 'pointer' is avoided  in python docs except in python C API and for this particular case:  :-)
... all three elements of [[]] * 3 are (pointers to)  this single empty list. ...

http://docs.python.org/3.3/library/stdtypes.html
Add a comment...

Josué Kouka

Shared publicly  - 
 
Discovering REAL chinese food ^_^
1

Josué Kouka

Shared publicly  - 
1

Josué Kouka

Shared publicly  - 
1

Josué Kouka

Shared publicly  - 
1
In their circles
297 people
Have them in circles
209 people
Full Option's profile photo
Francois-Xavier De Nys's profile photo
Julien GARCIA (nucl3arsnake)'s profile photo
Ahmed Mohamed Vall's profile photo
FrancK Fouillet's profile photo
armel tejiona's profile photo
Tchakala Divine Pierre's profile photo
Tarig elmabrouk's profile photo
Rossi ODDET's profile photo

Josué Kouka

commented on a video on YouTube.
Shared publicly  - 
 
Damn, They've failed. There's NO SOUND AT ALL in space LOL
2
Josué Kouka's profile photoSheepy Tommohawked's profile photoWesley Teoh's profile photo
4 comments
 
+Tommohawked it's because the body is denser than air and sound travels faster in denser objects.

Josué Kouka

Shared publicly  - 
 
Dev Team Bowling Party. I'm doing my special
1

Josué Kouka

Shared publicly  - 
 
 
Brave Israeli Soldier Speaks Out On BBC Against the Crimes of His Government...
He is closer than most of us to these kinds of criminals Israel does ..for THOSE WHO Think Israel is defending and not mass murdering....!!
#Israel #warcrimes #usa #palestine #Gaza #humanrights  
1

Josué Kouka

Shared publicly  - 
 
#OpenERP  how to pass a parent view field value to a child view with default 
http://pastie.org/4901811
#Python   #xml   #Openobject  
from osv import osv, fields import pdb class family_family(osv.osv): _name = 'family.family' _columns = { 'name': fields.char('Family Name',size=128), 'member_ids': fields.one2many('family.member','fa...
1
People
In their circles
297 people
Have them in circles
209 people
Full Option's profile photo
Francois-Xavier De Nys's profile photo
Julien GARCIA (nucl3arsnake)'s profile photo
Ahmed Mohamed Vall's profile photo
FrancK Fouillet's profile photo
armel tejiona's profile photo
Tchakala Divine Pierre's profile photo
Tarig elmabrouk's profile photo
Rossi ODDET's profile photo
Education
  • Supinfo - Nantes
    present
Story
Tagline
HI !
Links
Other profiles
Contributor to