Pages: [1] :: one page |
|
Author |
Thread Statistics | Show CCP posts - 0 post(s) |
Jdestars
Stars Research systems Incorporation
|
Posted - 2010.09.15 14:29:00 -
[1]
i try to convert my script api in Python 3.1 exemple provide by CCP dont work because its seems that Urlib module dont recognize the attribute urlencode
params = urllib.urlencode( {'characterID': EveCharId,'userid': EveUserId,'apikey': EveApikey, } ) AttributeError: 'module' object has no attribute 'urlencode'
someone have idea ?
|
Jdestars
Stars Research systems Incorporation
|
Posted - 2010.09.15 15:59:00 -
[2]
well done iv find it
import httplib, urllib
params = urllib.urlencode( { 'characterID': yourcharnumber, 'userid': youruserid, 'apikey': 'yourapikey', } )
but be change in
import http.client import urllib ..... params =urllib.parse.urlencode(
|
Mella Elcus
|
Posted - 2010.09.15 23:40:00 -
[3]
If you're still working on the conversion: http://docs.python.org/library/2to3.html
Haven't tried it but I guess it should be able to handle the most. Btw, why are you using stackless python? Unless you're really sure you need it you're probably better off with standard CPython.
|
Jdestars
Stars Research systems Incorporation
|
Posted - 2010.09.16 15:34:00 -
[4]
Edited by: Jdestars on 16/09/2010 15:36:59 thx for the link
i use this version & activestate release too , i dont "know" C... my skill in C are not refrech since 89 and Eve script are good exercice for upgrade my skill python
and CCP use stackless to in this code , I wanted to see the difference and to update my tools. Already that it became a wound to have to convert the dump db of sql on 2008 in mysql i convert my pricer tool (Excelsheet) in database with script import quote in final goal and other script with my website in constuction
|
GruffGraff
|
Posted - 2010.09.19 19:00:00 -
[5]
Originally by: Jdestars Edited by: Jdestars on 16/09/2010 15:36:59 thx for the link
i use this version & activestate release too , i dont "know" C... my skill in C are not refrech since 89 and Eve script are good exercice for upgrade my skill python
and CCP use stackless to in this code , I wanted to see the difference and to update my tools. Already that it became a wound to have to convert the dump db of sql on 2008 in mysql i convert my pricer tool (Excelsheet) in database with script import quote in final goal and other script with my website in constuction
You don't need to know C; CPython (i.e. the reference implementation) itself is implemented opaquely on top of it. Stackless is also implemented on top of C. Stackless is a perfectly fine implementation, you're just working more on the unknown side of the python community. |
Jdestars
Stars Research systems Incorporation
|
Posted - 2010.09.30 12:14:00 -
[6]
id solve my problems (skill in growing) my script for import materials seller/offer quote in mysql Db are under dev for replace my currents openoffice pricer (tool for determinate the cost (price ) of basis material production item function of some personal parameters & kind of average value (not only median like some other web tools )
please CCP a way for export item matTriel section in 1 clic ... too long with 350-500 item (for 1 region ) ;) and also capabilities of export history daily exchange value
|
|
|
|
Pages: [1] :: one page |
First page | Previous page | Next page | Last page |