New Posts  All Forums:Forum Nav:

Python ide?

post #1 of 13
Thread Starter 
I tried using pyDev which is an eclipse plugin but was having trouble installing it.

Any suggestions?
post #2 of 13
What platform are you on? I'd suggest trying to install pydev again as it's really good (probably the easiest way is to install it from eclipse update). On windows some people recommend pyscripter and there is a python plugin for VS. On linux pretty much any editor, I personally use gedit a lot. I also recommend ipython. It's not an IDE but still a great tool for quickly checking out small pieces of code.
Edited by poroboszcz - 11/5/12 at 7:16pm
buka
(17 items)
 
  
Reply
buka
(17 items)
 
  
Reply
post #3 of 13
Thread Starter 
Thanks for the reply!

but while i got you here, since im new to python, simple question for you.

say i have like a list A = and an item like '18d'
How would i see if and element of 18d matches something in the list? (like the d in '3d')

do i use the in method or w/e u would call it?
post #4 of 13
If you want to check if the whole variable you have is in the array you just use in. If you want to check if any item in the array contains something in your variable you have to iterate through the items. E.g.
Code:
arr = ["qwer", "asdf", "zxcv"]
a = "asdf"
b = "cv"

a in arr    # gives true

b in arr    # gives false

for item in arr:
    print b in item    # prints false, false, true

for index, item in enumerate(arr):
    if (b in item):
        print "String", s, "found in element", index", ":", item    # prints: String cv found in element 2: zxcv

Again iPython is a great tool to play around with stuff like this.
buka
(17 items)
 
  
Reply
buka
(17 items)
 
  
Reply
post #5 of 13
Thread Starter 
well i knda knew that but in my case, for an assignment i was working on, has to do with a deck of cards so like each card is for example 7C = 7 of clubs
so i have to see my next card say it's 3C. so i need to see if either the suit or the number match? So is their a way to break up strings or something?
post #6 of 13
PyCharm is the absolute best, but it is commercial software (not expensive at all).
Back in Black
(13 items)
 
  
CPUMotherboardGraphicsRAM
AMD Phenom II X4 965 BE (C3) Biostar TA790GX A3+ Sapphire HD 5770 (v2) CORSAIR XMS3 4GB DDR3 
Hard DriveOptical DriveOSMonitor
WD Caviar Black 640GB Sony Optiarc CD/DVD RW Windows 7 Ultimate x64 NEC MultiSync LCD 1960NXi 
KeyboardPowerCaseMouse
Microsoft Comfort Curve Keyboard 2000 Corsair 650TX Cooler Master Storm Scout Logitech MX 400 Laser 
  hide details  
Reply
Back in Black
(13 items)
 
  
CPUMotherboardGraphicsRAM
AMD Phenom II X4 965 BE (C3) Biostar TA790GX A3+ Sapphire HD 5770 (v2) CORSAIR XMS3 4GB DDR3 
Hard DriveOptical DriveOSMonitor
WD Caviar Black 640GB Sony Optiarc CD/DVD RW Windows 7 Ultimate x64 NEC MultiSync LCD 1960NXi 
KeyboardPowerCaseMouse
Microsoft Comfort Curve Keyboard 2000 Corsair 650TX Cooler Master Storm Scout Logitech MX 400 Laser 
  hide details  
Reply
post #7 of 13
why do you need an ide? Eclipse seems like overkill for python.
First Gaming Rig
(16 items)
 
  
CPUMotherboardGraphicsHard Drive
Intel i7 2600k Asrock P67 Pro 3 SE GTX 580 WD 10EALX 
Optical DriveCoolingOSMonitor
ASUS DRW Havik 140 Windows 7 Ultimate ASUS VH228T 
MonitorMonitorKeyboardPower
ASUS VH228T Toshiba 32RV600A Packard Bell Aero Cool Strike X 1100w 
CaseMouseMouse PadAudio
Asus Antec Logitech MX518 razer goliathus Creative 2.1 
  hide details  
Reply
First Gaming Rig
(16 items)
 
  
CPUMotherboardGraphicsHard Drive
Intel i7 2600k Asrock P67 Pro 3 SE GTX 580 WD 10EALX 
Optical DriveCoolingOSMonitor
ASUS DRW Havik 140 Windows 7 Ultimate ASUS VH228T 
MonitorMonitorKeyboardPower
ASUS VH228T Toshiba 32RV600A Packard Bell Aero Cool Strike X 1100w 
CaseMouseMouse PadAudio
Asus Antec Logitech MX518 razer goliathus Creative 2.1 
  hide details  
Reply
post #8 of 13
Sublime Text 2.

No question. smile.gif

(it's a simple text editor, but can do anything)
post #9 of 13
Thread Starter 
id i couldnt seem to get the pydev installed in my eclipse working so i've just been using the python shell. works for small testing but once i finish my program idk what im gonna do haha, seemslike if i copy and paste it it's going to be all unformatted tongue.gif
post #10 of 13
Quote:
Originally Posted by Plex View Post

Sublime Text 2.
No question. smile.gif
(it's a simple text editor, but can do anything)

This guys speaks the truth.
 
Desktop
(13 items)
 
MacBook Pro 13"
(6 items)
 
CPUGraphicsRAMHard Drive
Intel i5 480m@2.67GHz AMD Radeon Mobility 5650 4GB DDR3 500GB 
OSMonitor
Windows 7 64bit HP 15.6" 1366x768 
CPUMotherboardGraphicsRAM
E7500 Intel...:( MSI GTS250 1GB 2GB 
Hard DriveOSMonitorPower
250GB Windows XP 17" LG CRT 1280x768@85hz 400W 
CPUGraphicsRAMHard Drive
Intel i5 @ 2.5 GHz Intel HD4000 4 GB DDR3 @ 1600 MHz 500 GB @ 5400 RPM 
OSMonitor
OSX Lion 13.3" @ 1280 x 800 
  hide details  
Reply
 
Desktop
(13 items)
 
MacBook Pro 13"
(6 items)
 
CPUGraphicsRAMHard Drive
Intel i5 480m@2.67GHz AMD Radeon Mobility 5650 4GB DDR3 500GB 
OSMonitor
Windows 7 64bit HP 15.6" 1366x768 
CPUMotherboardGraphicsRAM
E7500 Intel...:( MSI GTS250 1GB 2GB 
Hard DriveOSMonitorPower
250GB Windows XP 17" LG CRT 1280x768@85hz 400W 
CPUGraphicsRAMHard Drive
Intel i5 @ 2.5 GHz Intel HD4000 4 GB DDR3 @ 1600 MHz 500 GB @ 5400 RPM 
OSMonitor
OSX Lion 13.3" @ 1280 x 800 
  hide details  
Reply
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Coding and Programming