Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7748247
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T10:44:05+00:00 2026-06-01T10:44:05+00:00

Possible Duplicate: How do I determine if my python shell is executing in 32bit

  • 0

Possible Duplicate:
How do I determine if my python shell is executing in 32bit or 64bit mode?

I made a question earlier that never got replied to, but I have something more specific now so hopefully you can help.

Basically the SendKeys library only appears to install on my 32 bit system of Windows…

So I was wondering if there is a way of making it so this function I am going to write will only execute on a 32 bit system? I realise there is a platform.architecture() method to check the current system, but it returns the string “(’64bit’, ‘WindowsPE’)”.

I was wondering if there was a way to read the 64 bit part of this string to make this function work correctly.

For example, pseudo code:

checker = platform.architecture()
system = strip or read 64 bit from checker string somehow
if system == 64 bit
then warn system is 64 bit and won't run function
else run function

Along the line of that. Unless there is a simpler way of checking it – maybe against the version of Python used (ie 32 or 64 bit)

Hope I’ve grasped this correctly – I’m still rather new to programming. 🙂

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T10:44:06+00:00Added an answer on June 1, 2026 at 10:44 am

    Following this documentation, try this code:

    is_64bits = sys.maxsize > 2**32
    

    Note: this can return an incorrect result if 32bit Python is running on a 64bit operating system.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible Duplicate: How can I determine if a python script is executed from crontab?
Possible Duplicate: Learning Python: If condition executing all the time This Python code is
Possible Duplicate: Python - Determine the type of an object? I want 'complex' to
Possible Duplicate: Determine if two binary trees are equal Got an interview yesterday, a
Possible Duplicate: Determine word size of my processor It is One Interview question today.
Possible Duplicate: Determine if a java application is in debug mode in Eclipse I
Possible Duplicate: Determine original name of variable after its passed to a function. I
Possible Duplicate: Is there any way to determine text direction from CultureInfo in asp.net?
Possible Duplicate: What does “WARN Could not determine content-length of response body.” mean and
Possible Duplicate: Yield In VB.NET In C#, when writing a function that returns an

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.