Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Fred Economic Data API
Post: RE: Fred Economic Data API

Are you behind a proxy or something? Also, please, don't post images of code/data/errors. Post as text using BBCode
buran Web Scraping & Web Development 2 120 Feb-26-2024, 06:29 PM
    Thread: Explanation of code
Post: RE: Explanation of code

(Feb-26-2024, 02:41 PM)ejKDE Wrote: even though function is called without arguments?You never call the function format_selector yourself, it's called internally from YoutubeDL.download and it expec...
buran General Coding Help 4 229 Feb-26-2024, 02:49 PM
    Thread: Scratch pad for writing forum threads / posts with markdown/markup
Post: RE: Scratch pad for writing forum threads / posts ...

why not save draft posts, at least here on forum
buran Bar 2 155 Feb-25-2024, 08:46 PM
    Thread: Operation result class
Post: RE: Operation result class

(Feb-25-2024, 10:12 AM)SirDonkey Wrote: some kind of a second hidden control flowwhat do you mean by that?
buran General Coding Help 6 341 Feb-25-2024, 10:40 AM
    Thread: Operation result class
Post: RE: Operation result class

As other already said - in python you can raise Exceptions and warnings I am not sure how info is different from success so not sure what to suggest about it. also if you need to return multiple value...
buran General Coding Help 6 341 Feb-24-2024, 07:52 PM
    Thread: Decorators @ annotation
Post: RE: Decorators @ annotation

(Feb-23-2024, 04:25 PM)drcl Wrote: How is that good if I want to use my function in other decorators?You use the decorator on your function, not your function in decorators. Actually the decorators ...
buran General Coding Help 3 248 Feb-24-2024, 06:07 AM
    Thread: file transfer
Post: RE: file transfer

(Feb-18-2024, 07:10 AM)DPaul Wrote: Yes, you are right. I did think of that, but: The place where I create these "files", is not the same (physically) as where the server is. Hence.I don't see why ...
buran Bar 10 436 Feb-18-2024, 07:53 AM
    Thread: file transfer
Post: RE: file transfer

I don't how you create the files and how long it takes, but right now it looks like your workflow is to create all (or batch of) files and then move them at once and you clock that time. Is it plausib...
buran Bar 10 436 Feb-18-2024, 06:42 AM
    Thread: Python3 string slicing
Post: RE: Python3 string slicing

(Feb-16-2024, 08:06 AM)Luchano55 Wrote: counting begins at 0 and ends at -1That is not correct statement. The correct is that you can use both positive and negative indexes. spam = list(range(10)) ...
buran General Coding Help 4 453 Feb-16-2024, 10:07 AM
    Thread: File loop curiously skipping files - FIXED
Post: RE: File loop curiously skipping files - FIXED

You should use context manager to open the file (with statement). it will close the file for you at the end. Although not related to your problem, I'm surprised, nobody mentioned you should not use b...
buran General Coding Help 10 578 Feb-10-2024, 07:08 AM
    Thread: conversion of newlines in a string
Post: RE: conversion of newlines in a string

>>> foo = 'spam\reggs\nspam\r\neggs' >>> '\n'.join(foo.splitlines()) 'spam\neggs\nspam\neggs'docs for str.splitlines()
buran News and Discussions 3 394 Jan-14-2024, 02:04 PM
    Thread: [solved] list content check
Post: RE: list content check

(Jan-03-2024, 02:10 PM)paul18fr Wrote: is there a simplier way to test a list content?b **smile** (solution#2 does the job in a single line)It's unclear what exactly you try to check >>> s...
buran General Coding Help 6 498 Jan-03-2024, 02:46 PM
    Thread: __init__() got multiple values for argument 'schema'
Post: RE: __init__() got multiple values for argument 's...

(Jan-03-2024, 08:34 AM)dawid294 Wrote: This is the codeAnd the full traceback is...? Please don't provide one piece of info at a time. Anyway, I would guess the problem is oracle+cx_oracle part and...
buran General Coding Help 4 1,109 Jan-03-2024, 09:42 AM
    Thread: How to check if Skype call is connected or disconnected in Python?
Post: RE: How to check if Skype call is connected or dis...

Do you have a question/problem related to this specific code snippet?
buran General Coding Help 1 297 Dec-28-2023, 08:31 AM
    Thread: partial functions before knowing the values
Post: RE: partial functions before knowing the values

(Dec-22-2023, 03:25 PM)mikisDeWitte Wrote: I was also thinking of using *args & **kwargs, but I find that syntax bad for readibility.using *args and **kwargs is perfectly fine. Actually for me i...
buran General Coding Help 4 468 Dec-22-2023, 05:46 PM
    Thread: Create SQLite3 database with peewee
Post: RE: Create SQLite3 database with peewee

(Dec-19-2023, 12:03 PM)khanzain Wrote: which should resolve the issue you're facing.I don't see any changes between your code and OP second snippet
buran General Coding Help 2 525 Dec-20-2023, 02:38 PM
    Thread: openpyxl documentation
Post: RE: openpyxl documentation

The PyPI page for respective package is always a good place to start when looking for information for third-party package https://pypi.org/project/openpyxl/ there is Project links section which usuall...
buran General Coding Help 3 452 Dec-20-2023, 08:39 AM
    Thread: problem with print lists
Post: RE: problem with print lists

(Dec-14-2023, 03:04 PM)MarekGwozdz Wrote: How can i print this in readable format?What exactly is considered "readable" format in this case (list of Choice object instance(s))?
buran General Coding Help 4 552 Dec-15-2023, 08:57 AM
    Thread: Script that alternates between 2 text messages
Post: RE: Script that alternates between 2 text messages

from itertools import cycle from time import sleep for msg in cycle(['Drive', 'Through']): print(msg) sleep(2)
buran General Coding Help 1 457 Dec-12-2023, 03:02 PM
    Thread: usage of ":"
Post: RE: usage of ":"

It is weird that this actually works. I am surprised myself that this is valid syntax. In this case print is just a name (i.e. you can replace it with any valid python name), that in this case overrid...
buran Homework 1 432 Dec-12-2023, 10:11 AM

User Panel Messages

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