Tagged Questions

1
vote
1answer
76 views

Why doesn't Python recognize my utf-8 encoded source file?

Here is a little tmp.py with a non ASCII character: if __name__ == "__main__": s = 'ß' print(s) Running it I get the following error: Traceback (most recent call last): File ".\tmp.py", ...
0
votes
1answer
45 views

Where is _ctypes._SimpleCData.__mul__() method implemented?

For example: >>> ctypes.c_char * 2 <type '_ctypes.SimpleType'> The type c_char_Array_2 is created on the fly by the __mul__() method in _ctypes._SimpleCData,I want to know how it did ...
0
votes
1answer
25 views

Error while downloading the source code from google app engine

I am using the following command : appcfg.py download_app -A <application-id> -V <application-version> <output-dir> It then asks me for googleusername and password. But after ...
0
votes
2answers
56 views

Apply patches to python libraries

I want to apply patches that the author of a Python library uploaded on his website. Is there any way to do this easily without resorting to doing it manually on each impacted line? Something like: ...
0
votes
1answer
35 views

Advantages of installing from source instead of installer for Python 2.7

I'm a complete beginner learning Python. I noticed the Windows installer for Python states "does not include source" and below it there's an option to install the source via tarball. ...
-5
votes
3answers
202 views

How to lock source code of terminal ran perl, obj c, c++, python, and ruby etc scripts?

I am looking to sell scripts I made in perl, obj c, c++, python, ruby, bash, php, etc etc etc They are all ran in the terminal. (Linux) How can I lock the source code, so my scripts can be ...
-4
votes
1answer
66 views

Source code parser(prefered Python) [closed]

I am looking a tool which take source code as a input and tokenize them as a operator, keyword, class, function, member variable, comments and parameter. Tool should take parsing logic from ...
1
vote
2answers
116 views

How to comment out python code using sed command

I want to comment out following line of code using the sed command. Actual Code: response = HttpResponse() response['Content-Disposition'] = 'attachment; filename=%s.zip' % ...
1
vote
3answers
156 views

SWT source code editor widget

Is there any source code editor widget for SWT? I looked for a long time and nothing found... I saw that question: SWT Syntax highlighting widget, but I don't want to use raw StyledText widget - I ...
2
votes
4answers
105 views

Is there a platform-agnostic Python widget that syntax highlights source code?

I'm writing a small GUI tool in Python that scans C/C++/Java source files for specific patterns (eg: "todo" inside a comment) and displays them as a treeview. I want to display the contents of the ...
3
votes
3answers
97 views

How to check source code of a python method?

To be short, suppose I have a string 'next', next = "123rpq" and I can apply a str method .isdigit() to 'next'. So my question is how to check the implementation of this method. Hence is there a ...
1
vote
1answer
102 views

pydoc-like program to browse content(code) of python files in browser?

pydoc allows you to view documentation of python modules and packages in directories added to your pythonpath in a browser. But is there a way to browse the complete code of those files? Edit: ...
0
votes
0answers
238 views

Saving web page's Source-code Python

I was trying to scrape a webpage, but when I organize the page's source code python misses some codes that I'll need. If I save the source code previously, by right clicking on the page, I have no ...
2
votes
2answers
126 views

source code of python inbuilt functions

I have used type() function in my program... I just want to know how does Python implement this? Or where could I find the source code file that implement this function?
0
votes
1answer
89 views

What are the best examples of well/properly/efficiently commented python projects [closed]

I, once again, am going to make a New Year's resolution to do a better job commenting my Python projects. I am asking the community for some examples they look to for best practices. What projects do ...

1 2 3 4
15 30 50 per page