Python 3 is the latest version of the Python programming language and was formally released on December 3rd, 2008.

learn more… | top users | synonyms

-4
votes
0answers
38 views

Appending binary bits in Python [on hold]

I converted a decimal value into binary (7 bits string). But my result has to be a 9 bits string where the last 2 MSBs are 11. How can I do that in Python?
-6
votes
0answers
18 views

problem while downloading the file using python script [on hold]

using python 3.4 import wget url = "http://www.example.com/songs/41078914/stream?client_id=bcc10d97babdd9960f87d30831e0eb9d" file = wget.download(url) error: name, ext = filename.rsplit('.', 1) ...
0
votes
0answers
18 views

Trying to understand function scope with Python multiprocess.Process in Windows 7 [migrated]

I'm trying to understand function scope with Python. In Windows 7 using Python 3.3.5: p = Process(target = f, args = ('Bob',)) can not call function f, but: p = Process(target = f('Bob'), args = ...
0
votes
0answers
13 views

remove stop words from arabic corpora [duplicate]

how to remove stop words from corpus in Arabic language using python? i tried to write code for that but the problem appear they couldn't find matching with stop words which read from other text file. ...
0
votes
0answers
20 views

How to extract the attributes of a function of an instance passed as a function? [migrated]

How can I extract the attributes of the "SimpleSubscriber object from the following method object? <bound method SimpleSubscriber.process of <__main__.SimpleSubscriber object at ...
0
votes
0answers
21 views

Python Compare Values from 2 Columns from two separate CSV files

I am using Python. I have two columns(in separate CSVs) that contain an ID tag. Ideally, I would like to add on columns of information from one CSV to the other whenever the ID tag matches. For the ...
-4
votes
2answers
190 views

A newbie in python trying to learn [closed]

Am trying to learn how to program before i go to uni and i stumbled upon a question which i have been unable to do. In the function write code to input two integers m and n and calculate and display ...
1
vote
1answer
83 views

Additional actions in setup.py for install

Background So, I'm developing a project, and I'm writing setup.py script for it, using distutils. I'm using CPython3.3. I use some libraries that have invalid distributions in PyPI, so they have to ...
1
vote
1answer
140 views

Is using os.environ to store the value of command line switches pythonic?

I write CLI-executable Python 3 scripts regularly to do data compilation and some maintenance tasks, and try to adhere to PEP 8 and the Google Python Style Guide when doing so. Google's guide says to ...
3
votes
2answers
339 views

What was the need of introducing Python 3 when we already had Python 2 [duplicate]

I am still learning python and I started with Python 3. This question not Python 2 vs 3 or difference between them like print() is a function and not language construct and 3/2 = 1.5 My question is ...
3
votes
1answer
199 views

What is the advantage of determining scopes statically and using them dynamically in case of Python?

Firstly let me clarify that I know C and am learning Python. So my OOPS is kind of bad. I was reading the official tutorial and found this Although scopes are determined statically, they are ...
1
vote
2answers
1k views

Why do people consider Python a weak language? [closed]

I've been using Python for a little while now and I am enjoying it, but a few of my friends are telling me to start using a language like C# or Java instead and give these reasons: Python is a ...
-1
votes
1answer
258 views

Would porting JPype to Python 3 be useful? [closed]

I have an open source project my company would like me to do with a small team, creating an adapter for the Oracle NoSQL database to be used in Python, but to do that we would need to be able to make ...
16
votes
1answer
483 views

What are the problems python 3 new features solve?

Python 3 new features say: we’re mostly fixing well-known annoyances and warts, and removing a lot of old cruft It mentions what is different (the fix) but not why (the problems). I have have ...
3
votes
1answer
903 views

understanding the encoding scheme in python 3

I got this error in my program which grab data from different website and write them to a file: 'charmap' codec can't encode characters in position 151618-151624: character maps to <undefined> ...
4
votes
2answers
497 views

Should I start developing in Python 3? [duplicate]

Possible Duplicate: Should we use python 2.6 or 2.7 or 3.x? Now that Django runs on Python 3, I think it's time to ask that all-important question: Should I start using Python 3 instead of ...
1
vote
1answer
280 views

What features are missing from Python IDE tools?

What are the most desired features currently lacking in any Python IDE tools? I'm also interested in what's missing in Komodo 6 but available in other tools (I currently use Komodo 6 for Python 3 ...
20
votes
5answers
1k views

Will Python 3.0's backwards-incompatibility affect adoption?

I visited Slashdot this morning to find out that Python 3.0 has been released. I know C# and Perl, but have wanted to learn Python for some time, especially after I saw its ease of use to create ...