473,507 Members | 11,372 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

lowercase u before string in "python for windows"

why does this occur when using the python windows extensions? all
string are prefixed by a lowercase "u".
is there a newsgroup explicitly for python windows extensions?

example of output below.

SMBIOSBIOSVersion:u'A16'
SMBIOSMajorVersion:2
SMBIOSMinorVersion:3
SMBIOSPresent:True
SoftwareElementID:u'Phoenix ROM BIOS PLUS Version 1.10 A16'
SoftwareElementState:3
Status:u'OK'
TargetOperatingSystem:0
here is a snippet of the code:

if objItem.Status != None:
print "Status:" + ` objItem.Status`
if objItem.TargetOperatingSystem != None:
print "TargetOperatingSystem:" + `
objItem.TargetOperatingSystem`
if objItem.Version != None:
print "Version:" + ` objItem.Version`
Mar 10 '08 #1
3 2742
why does this occur when using the python windows extensions? all
string are prefixed by a lowercase "u".
They are Unicode strings:

http://docs.python.org/ref/strings.html
is there a newsgroup explicitly for python windows extensions?
Not that I know of, other than what's described here:

https://sourceforge.net/mail/?group_id=78018

-tkc
Mar 10 '08 #2
On Mon, Mar 10, 2008 at 5:20 PM, davidj411 <da*******@gmail.comwrote:
why does this occur when using the python windows extensions?
There's nothing Windows specific about this - it just means that you
have unicode strings. See
<http://effbot.org/zone/unicode-objects.htm>,

--
Cheers,
Simon B.
si***@brunningonline.net
http://www.brunningonline.net/simon/blog/
GTalk: simon.brunning | MSN: small_values | Yahoo: smallvalues
Mar 10 '08 #3
>
is there a newsgroup explicitly for python windows extensions?

Not that I know of, other than what's described here:

https://sourceforge.net/mail/?group_id=78018

-tkc
There is a PyWin32 user's group:

http://mail.python.org/mailman/listinfo/python-win32

The maintainer of the project is a regular contributor to the list as
are a number of other very knowledgeable Windows guys.

Mike
Mar 10 '08 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
5791
by: Peter Hansen | last post by:
The term "mock filesystem" refers to code allowing unit or acceptance tests to create, read and write, and manipulate in other ways "virtual" files, without any actual disk access. Everything is...
7
7653
by: jeffbernstein | last post by:
Greetings. I'm reading "How to think like a computer scientist: Learning with Python" and there's a question regarding string operations. The question is, "Can you think of a property that...
30
2865
by: bblais | last post by:
Hello, Let me start by saying that I am coming from a background using Matlab (or Octave), and C++. I am going to outline the basic nuts-and-bolts of how I work in these languages, and ask for...
2
3186
by: André | last post by:
Short description: Using a wxPython based app, I would like to take a python script in an editor window, invoke the python interpreter and use another window as stdin/stdout/stderr. Based on...
2
1456
by: Blair LeGent | last post by:
Following the directions in "Python in a Nutshell" (an excellent book), I entered the C code for "helloworld.c", saved it as a file, and entered this script and saved it as setup.py: from...
92
3850
by: ureuffyrtu955 | last post by:
Python is a good programming language, but "Python" is not a good name. First, python also means snake, Monty Python. If we search "python" in google, emule, many results are not programming...
3
1311
by: kyosohma | last post by:
Hi, Is there some way to get a list of "impure" Python modules/extensions from PyPI? I know the mySQL module is a good example, but I am working on creating some decent instructions on how to...
3
1457
by: bsagert | last post by:
After a couple of weeks studying Python, I already have a few useful scripts, including one that downloads 1500 Yahoo stock quotes in 6 seconds. However, many things are puzzling to me. I keep on...
2
4361
by: bsagert | last post by:
I downloaded Mark Pilgrims's feedparser.py in a zipfile to my Windows machine, unzipped it and tried to install it to no avail. Here is the result => C:\>python...
0
7221
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7109
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7372
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7481
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5619
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4702
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3179
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
758
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
411
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.