Description:
The Python computer language.
|
|
|
Newbie question about scrapy tutorial
|
| |
Hello, I have a question about scrapy tutorial and I put 2 questions in the scrapy group [link] [link] but there were no answers. Can anyone here help me? The spider works fine but I couldn't figure out where the items file is so that I can... more »
|
|
No duplicate variable
|
| |
class A(object): def __init__(self, value=0.): self.value = value class B(A): def __init__(self, value=None): A.__init__(self) self.value = value obj = B() When "B" initializes, it overwrite "value" variable of "A". How do I make sure that no variable should not be defined with names of "A" in... more »
|
|
Too Many Values To Unpack
|
| |
...Iterating over a dictionary, such as what you're doing in the line <<for (nm, dt) in levelDict>>, only produces the keys that are in the dictionary. This means that this line only works if the keys in levelDict are pairs of "nm"s and "dt"s, whatever "nm" and "dt" represent. (In case the foregoing is too subtle a clue: Choose better... more »
|
|
semantics of [:]
|
| |
Could someone help confirm/clarify the semantics of the [:] operator in Python? a = range(51,55) ...b = a[:] # b receives a copy of a, but they are independent ...c = [] c = a[:] # c receives a copy of a, but they are independent ...d = [] d[:] = a # d receives a copy of a, but they are independent ...do.... more »
|
|
Split class across multiple files
|
| |
I have a class which holds a connection to a server and a bunch of services. In this class I have methods that need to work with that connection and services. Right now there are about 50 methods some of which can be quite long. From an organizational standpoint, I'd like to have method implementations in their own files.... more »
|
|
Regexp and multiple groups (with repeats)
|
| |
Hello, >>> r=re.compile(r'(?:[a-zA-Z]:)([ \\/]\w+)+') >>> r.search(r'c:/tmp/spam/eggs'). groups() ('/eggs',) Obviously, I would like to capture all groups: ('/tmp', '/spam', '/eggs') But it seems that re captures only the last group. Is there any way to capture all groups with repeat following it, i.e. (...)+ or (...)* ?... more »
|
|
checking 'type' programmatically
|
| |
Disclaimer: this is for exploring and debugging only. Really. I can check type or __class__ in the interactive interpreter: Python 2.6.2 (r262:71600, Jun 16 2009, 16:49:04) [GCC 4.1.2 20080704 (Red Hat 4.1.2-44)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import subprocess... more »
|
|
Nike dunk high shoes wholesale\retail
|
| |
Nike dunk high shoes wholesale\retail Our company mainly deal with the import and export of the brand sports shoes, clothes, jewelry, bags , glasses, etc . Products such as Nike Jordan sell well in America , Canada , as well as Europe and other countries. Our objective is to supply products of first-class quality... more »
|
|
www.voguecatch.com sell cheap nike shoe,handbag,shox shoe,sunglass,t-shirt,ed hardy ca from there
|
| |
Our main products list is as below: 1) sports shoes: air jordan, jordan 23, af1, Jordan fussion, air max, Dunks, Puma, Bape, GUCCI, Prada, UGG, Timberland boots, ect. 2) handbags: Chanel, Chloe, Coach, D&G, LV, Fendi, Gucci, Hermes, Prada, UGG, ect. 3) T-shirts: Affliction, BBC, POLO, Lacoste, ED-Hardy, EVS, GGG, A&F,... more »
|
|
Announcement: depikt - the minimalistic python gate to gtk
|
| |
Hi all, these days i make depikt, a python C-extension for building apps with gtk. It was a challenge for me and big fun. From its short description on sourceforge.net: "Python-3 wrappers for GTK. A minimalistic approach - just suited for GUI-building of apps, in no way for widget-building. Currently 1250... more »
|
|
|