Python Forum
Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 20,310
» Latest member: QABOB
» Forum threads: 38,801
» Forum posts: 175,923

Full Statistics

Online Users
There are currently 39 online users.
» 1 Member(s) | 30 Guest(s)
Google, Bing, Facebook, Mojeek, Google Image, snippsat

Latest Threads
No new line from print in...
Forum: General Coding Help
Last Post: noisefloor
1 hour ago
» Replies: 11
» Views: 298
Python compiler
Forum: General Coding Help
Last Post: noisefloor
1 hour ago
» Replies: 1
» Views: 65
Trading Risk management s...
Forum: Code sharing
Last Post: NeoQuant
Yesterday, 07:34 PM
» Replies: 5
» Views: 89
Standard template Data En...
Forum: Code Review
Last Post: Hosthubac
Yesterday, 05:51 PM
» Replies: 0
» Views: 49
Python Online Compiler
Forum: News and Discussions
Last Post: ichsanputr
Yesterday, 07:39 AM
» Replies: 3
» Views: 11,117
Python is not working on ...
Forum: General Coding Help
Last Post: noisefloor
Nov-28-2025, 10:44 AM
» Replies: 4
» Views: 203
Help with Serial.write in...
Forum: General Coding Help
Last Post: Larz60+
Nov-28-2025, 04:44 AM
» Replies: 8
» Views: 730
Can I develop a live vide...
Forum: Web Scraping & Web Development
Last Post: mamta25
Nov-27-2025, 04:48 AM
» Replies: 6
» Views: 7,837
silent deployment Python ...
Forum: News and Discussions
Last Post: Larz60+
Nov-26-2025, 09:58 PM
» Replies: 3
» Views: 203
Proposal for PEP
Forum: News and Discussions
Last Post: Gribouillis
Nov-26-2025, 03:53 PM
» Replies: 1
» Views: 165

 
  functions in C
Posted by: Skaperen - Aug-01-2018, 03:02 AM - Forum: News and Discussions - No Replies

people can write functions for Python in C. is this different than, or the same as, using the ctypes module? if different, is it easy to made..... More

Print this item

  I've Wanted to do This Since College
Posted by: ichabod801 - Aug-01-2018, 02:25 AM - Forum: Bar - Replies (1)

So I'm working on some game programming. Nothing fancy, mind you. One of the games I have working is Klondike (Solitaire). Now, if you've ever played ..... More

Print this item

  i can use this statement as a variable name
Posted by: Skaperen - Aug-01-2018, 02:17 AM - Forum: General Coding Help - Replies (6)

there is such a thing as an async statement. yet i can use async as a variable name. it is not a reserved word. how does that work?

Print this item

  i have decided
Posted by: Skaperen - Aug-01-2018, 01:37 AM - Forum: Bar - Replies (3)

after reading the history of where and how the line width of terminals came from (including the very interesting history of punch cards), i have decid..... More

Print this item

  I'm trying to get Wingware to work with no luck
Posted by: 357mag - Jul-31-2018, 11:12 PM - Forum: General Coding Help - No Replies

I've installed Python and Wingware Personal but everytime I run a program I get this message at the bottom:

User Debugger: Debug process exited PID..... More

Print this item

  pip won't install twisted
Posted by: mcmxl22 - Jul-31-2018, 10:11 PM - Forum: Web Scraping & Web Development - Replies (1)

I'm trying to install scrapy which requires twisted but twisted won't install because[error]error: Microsoft Visual C++ 14.0 is required. Get it with ..... More

Print this item

  imagemagick convert python equivalent
Posted by: diniwed - Jul-31-2018, 08:18 PM - Forum: GUI - Replies (4)

I have been looking for a python equivalent to the Imagemagick convert command.

More specifically I would like to convert .jpeg .png .tiff … image..... More

Print this item

  Python to Exe file
Posted by: TreeLeaF - Jul-31-2018, 07:57 PM - Forum: General Coding Help - Replies (2)

Still looking for help. Hey I need help making a python file into a exe file. I used things like py2exe or cx freeze or pyinstaller but each time this..... More

Print this item

  bool
Posted by: PreservedKillich - Jul-31-2018, 06:39 PM - Forum: General Coding Help - Replies (6)

cmd_array[] contains ['EVENT_EXTANT_WINDOW', '82', '1', '10', '0']

bool_expected = bool(cmd_array[4])
returns True

Why?

Thanks

Print this item

  Die Threads
Posted by: snippsat - Jul-31-2018, 06:11 PM - Forum: News and Discussions - Replies (1)

David Beazley EuroPython 2018 Keynote
This may be a better Threads library in..... More

Print this item

  Loop Condition Question
Posted by: malonn - Jul-31-2018, 05:48 PM - Forum: General Coding Help - Replies (6)

I want to iterate over a loop until an OSError is thrown. That's it. What's the best way to do that. What I'm doing is using [icode]winreg.EnumKey[..... More

Print this item

  Very beginner but please help!
Posted by: thurpe - Jul-31-2018, 03:50 PM - Forum: General Coding Help - Replies (2)

Hi, I am following a set of exercises, and I got stuck a bit on this one:
Write a function that returns the first and last elements of a list.

My ..... More

Print this item

  Jython code throws ImportError when invoked from a Java jar
Posted by: dchucks - Jul-31-2018, 01:10 PM - Forum: General Coding Help - Replies (6)

I am trying to invoke a Python script from a Spring Boot application which is bundled as a JAR. I added Maven dependency for Jython Standalone JAR. Th..... More

Print this item

  Draw Weibull distribution probability function based on Confidence interval
Posted by: farzadtb - Jul-31-2018, 12:36 PM - Forum: Data Science - Replies (1)

I would like to know, if in Python it's possible to create a plot of Weibull probability like bellow :

[img]http://i67.tinypic.com/1zfhded.png[/img..... More

Print this item

  Decypher complex (to me) statement
Posted by: PreservedKillich - Jul-31-2018, 12:05 PM - Forum: General Coding Help - Replies (5)

I am a C/C++ programmer (I have an inkling of classes and OOD) who has just been given his first Python task. My former co-worker who enjoyed code obf..... More

Print this item

  pytest fixture in conftest.py thrown error while in the test file runs
Posted by: OzzieOzzum - Jul-31-2018, 10:41 AM - Forum: General Coding Help - Replies (1)

While Testing a @pytest.fixture(scope="module")

When the fixture is included in the test file - tests/test_authors.py, test works fine

[pyth..... More

Print this item

  How Does pyspark deal with Spaces in Queries
Posted by: cpatte7372 - Jul-31-2018, 09:48 AM - Forum: General Coding Help - Replies (3)

Hello community,

Can someone let me know how pyspark.sql deals with spaces?

For example the following query won't work:

[python]myresults = s..... More

Print this item

  Python code for gcode reader and representation
Posted by: ralmeida - Jul-31-2018, 07:58 AM - Forum: General Coding Help - Replies (1)

I am new to Python and I was wondering if someone can give me a few tips how to program in Python a gcode reader and afterwards the respective represe..... More

Print this item

  Best practice for sharing gspread credentials to server
Posted by: shlomiLan - Jul-31-2018, 07:33 AM - Forum: Web Scraping & Web Development - Replies (1)

I'm using gspread (to write data to Google spreadsheet) and my app runs on Heroku.
I credentials json file (for gspread), that I don't want to put on..... More

Print this item

  Individuallien attack in alien invasion game
Posted by: runnerpaul - Jul-31-2018, 05:52 AM - Forum: General Coding Help - Replies (1)

I'm enhancing the Alien Invasion sample program from the Python Crash Course book. One feature I'd like to add is to randomly have a single alien to f..... More

Print this item

  Tree using CSV
Posted by: pandeyrishabh - Jul-31-2018, 05:31 AM - Forum: Data Science - Replies (7)

I have a CSV dataset having columns like ID,Name,ParentId and I want to visualise it in Tree format Please Help anybody
id,Name,ParentId
ACAD0100,Ac..... More

Print this item

  coding: utf-8
Posted by: Skaperen - Jul-31-2018, 05:22 AM - Forum: General Coding Help - Replies (1)

you can put # -*- coding: utf-8 -*- in a Python source file to say that the source has UTF-8 encoded characters within. but, what woul..... More

Print this item

  max() output
Posted by: mcmxl22 - Jul-31-2018, 01:00 AM - Forum: General Coding Help - No Replies

I am trying to get this to log the options chosen over time, then suggest the one most commonly used. I got the logging part working but the result of..... More

Print this item

  international python
Posted by: Skaperen - Jul-31-2018, 12:44 AM - Forum: News and Discussions - Replies (12)

has anyone modified Python to accept foreign language translations of keywords so that a Python script can be written entirely in a foreign language?

Print this item

  Python to Exe file
Posted by: TreeLeaF - Jul-31-2018, 12:24 AM - Forum: General Coding Help - No Replies

Hey I need help making a python file into a exe file. I used things like py2exe or cx freeze or pyinstaller but each time this error message came up o..... More

Print this item

  "os.symlink(targetdir,destfile)" VS "ln -s targetdir destfile" (not equivalent?
Posted by: NobahdiAtoll - Jul-30-2018, 11:27 PM - Forum: General Coding Help - Replies (1)

Ok so I been working with Linux for a few years now and I have finally decided to put file and folder linking into practice, considering I need files ..... More

Print this item

  Project: Google map
Posted by: Truman - Jul-30-2018, 10:08 PM - Forum: Homework - Replies (5)

The point of the project is to type any address and after "enter" to automatically be redirected to google map with that location on the map. When I r..... More

Print this item

  Vpython Delay in plotting points
Posted by: SohaibAJ - Jul-30-2018, 08:44 PM - Forum: General Coding Help - No Replies

Hello,
I am trying to make a 2D 360degree LiDAR using the Garmin LiDAR Lite module and want to do all the mapping on Raspberry Pi. For this I used an..... More

Print this item

  Bringing function out of class into main loop
Posted by: zukochew - Jul-30-2018, 06:22 PM - Forum: GUI - Replies (1)

Hello all,
Does anybody know how to bring function out of a class into main loop?
For my code, I was not able to call the function lol1 into the ex..... More

Print this item

  understanding sorted key parameter
Posted by: amirt - Jul-30-2018, 05:50 PM - Forum: General Coding Help - Replies (2)

Can someone explain what is happening in the following sorting action:

I have a list:
[python]L = ['breathe', '_', 'd', '+', 'a', 'bear']
[/pytho..... More

Print this item

  will CICS program in python language in coming year?
Posted by: arya_starc - Jul-30-2018, 04:28 PM - Forum: Bar - Replies (6)

Hello guys,

I am new to python language but I have industry experience of 4+ years in mainframe technology.
So just to relate mainframe languages ..... More

Print this item

  Reset csv.reader
Posted by: Huck - Jul-30-2018, 03:25 PM - Forum: Data Science - Replies (16)

Comma delimited file:
ID Colors
1 red
2 red
3 blue
4 red
5 blue
6 blue
7 red
8 blue
9 blue
10 blue

My code reads the above comma delimit..... More

Print this item

  Python regex with negative set of characters multiline
Posted by: sonicblind - Jul-30-2018, 02:29 PM - Forum: General Coding Help - Replies (2)

Hi,

I have following text stored as a string:

[output]
final class myClass1 {
const APPLICATION1 = 1;
const APPLICATION2 = 2;
}
final class..... More

Print this item

  pyspark sql unable to recognize SQL query command
Posted by: cpatte7372 - Jul-30-2018, 01:06 PM - Forum: General Coding Help - Replies (6)

down vote
favorite

Community,
I have written the following pyspark.sql query. However, pyspark doesn't appear to recognize the SQL query 'TOP 20 ..... More

Print this item

  Send data BMP180 between client and server trought module socket
Posted by: smalhao - Jul-30-2018, 12:56 PM - Forum: Networking - No Replies

I would like to send data of BMP180 sensor between a client and a server with two raspberry pi 3 being that the client when executing the command get ..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  No new line from print in... 1 hour ago Lou noisefloor General Codin...
  Python compiler 1 hour ago NeoQuant noisefloor General Codin...
  Trading Risk management s... Yesterday, 19:34 NeoQuant NeoQuant Code sharing
  Standard template Data En... Yesterday, 17:51 Hosthubac Hosthubac Code Review
  Python Online Compiler Yesterday, 07:39 alexmaxwell1 ichsanputr News and Disc...
  Python is not working on ... 11-28, 10:44 lary_p noisefloor General Codin...
  Help with Serial.write in... 11-28, 04:44 racingsubby Larz60+ General Codin...
  Can I develop a live vide... 11-27, 04:48 mtrkhan mamta25 Web Scraping ...
  silent deployment Python ... 11-26, 21:58 Bummibaer Larz60+ News and Disc...
  Proposal for PEP 11-26, 15:53 matt Gribouillis News and Disc...
  My regex function is not ... 11-26, 08:47 Moltar1997 perfringo General Codin...
Most views
  The best Prog... 579505
  Tutorial Requ... 512912
  Web Scraping ... 442372
  Newbie with P... 386398
  New Users Int... 381749
Most reputation
buran 581
snippsat 511
Larz60+ 452
Gribouillis 362
deanhystad 328
Most replies
  New Users Int... 452
  [book] Variou... 188
  CKEditor / Ri... 100
  moving from t... 95
  Free keys and... 91
Top posters
Larz60+ 12113
buran 8196
snippsat 7394
deanhystad 6916
metulburr 5151
Top referrers
Googlepro 23
python 6
metulburr 6
NonEntity 5
buran 3
Newest members
QABOB Today
adityaN Today
NeoQuant Yesterday
Hosthubac Yesterday
ifdainstitute7 Yesterday

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020