python-2.7
Tab key not indenting in Python
I recently upgraded to python2.7 and noticed that th开发者_开发问答e tab key does not function appropriately in the shell. Instead, it appears to search through the underlying directory (the standard[详细]
2023-02-07 02:41 分类:问答Python logging module logs on Mac, but not Linux
I am experiencing an issue where I am using the logging module in my app.I am working in Eclipse against the LDT Python (Py 2.7) interface (rather than Pydev) on my MacBook Pro.The logging module work[详细]
2023-02-06 04:44 分类:问答How do I figure out why Python is throwing this non-descriptive error in Windows 7 64 bit
I\'m making graphs using scipy on python 2.7 on Windows 7 64 bit.I installed it from http://www.lfd.uci.edu/~gohlke/pythonlibs/.[详细]
2023-02-06 03:32 分类:问答Get exception description and stack trace which caused an exception, all as a string
How to convert a caught Exception (its description and stack trace) into a str for ex开发者_开发技巧ternal use?[详细]
2023-02-02 00:47 分类:问答Windows XP , Python 2.7 and Pygame
How can I make pygame work with Python 2.7 under Windows XP? I think I need to compile it, but I\'m not sure.[详细]
2023-02-02 00:38 分类:问答What is the result of % in Python?
What does the % in a calculation? I can\'t seem to work out what it does. Does it work out a percent of the calculation for example: 4 % 2 is apparently equ开发者_运维问答al to 0. How?[详细]
2023-01-30 14:06 分类:问答Making HTTP HEAD request with urllib2 from Python 2
I\'m trying to do a HEAD request of a page using Python 2. I am trying import misc_urllib2 ..... opender = urllib2.build_opener([misc_urllib2.MyHTTPRedirectHandler(), misc_urllib2.HeadRequest()])[详细]
2023-01-30 08:00 分类:问答Any way to properly pretty-print OrderedDict?
I like the pprint module in Python. I use it a lot for testing and debugging. I frequently use the width option to make sure the output fits nicely within my terminal window.[详细]
2023-01-28 11:12 分类:问答Python 2.7 SimlpeQueue Import Error (a bug?)
$ python2.6 -c \'from multiprocessing.开发者_开发问答queues import SimpleQueue\' $ python2.7 -c \'from multiprocessing.queues import SimpleQueue\'[详细]
2023-01-27 13:53 分类:问答Keeping in-memory data in sync with a file for long running Python script
I have a Python (2.7) script that acts as a server and it will therefore run for very long periods of time. This script ha开发者_开发知识库s a bunch of values to keep track of which can change at any[详细]
2023-01-27 04:21 分类:问答