Skip to content
#

Python

python logo

Python is a dynamically typed programming language designed by Guido van Rossum. Much like the programming language Ruby, Python was designed to be easily read by programmers. Because of its large following and many libraries, Python can be implemented and used to do anything from webpages to scientific research.

Here are 1,183 public repositories matching this topic...

eric-wieser
eric-wieser commented Apr 15, 2020

Picking up from #15731, there are many places in numpy where we do something like:

try:
    something_which_throws_typeError
except TypeError:
    raise ValueError("a clearer explanation of what went wrong")

It would produce a marginally clearer error if we could change these to use traceback chaining. Our two options are either:

  1. The inner error provides valuable infor
ThomasWaldmann
ThomasWaldmann commented Apr 13, 2020

If somebody has some time for FUSE benchmarking:

diff --git a/src/borg/fuse.py b/src/borg/fuse.py
index 429790e4..27ab1c1a 100644
--- a/src/borg/fuse.py
+++ b/src/borg/fuse.py
@@ -644,12 +644,13 @@ def read(self, fh, offset, size):
                 data = self.data_cache[id]
                 if offset + n == len(data):
                     # evict fully read chunk from cache
-     
MyreMylar
MyreMylar commented Jun 28, 2020

Currently the toggle_fullscreen() contain these lines:

This function only works under the UNIX X11 video driver. For most situations it is better to call pygame.display.set_mode() with new display flags.

This is no longer accurate as the function works on windows for sure (tested) and looking at the code likely works on mac and with other display drivers on linux too. I believe it is also

circuitpython
powersoft
powersoft commented Sep 1, 2020

I wont to convert a unixtimestamp to localtime in circuit python.
This is the simple code:

unix_correction = 946684800 # correct to 01-01-2000
timezone = 7200
t=1598887049

def convertUnixTime(t,timezone):
dummy=time.localtime(t-unix_correction+timezone)
return "%4d-%02d-%02d %02d:%02d" % (dummy[0],dummy[1],dummy[2],dummy[3],dummy[4])

Running it I get the error message:

"time

gaborznagy
gaborznagy commented Sep 4, 2020

Since #3358 and #3407 systemd-journal() source supports Journald namespaces.

Since the source stores the journald cursor under different persist-keys (based on the configured namespace() option), it allows multiple concurrent sources.

However, we still have a limitation, that only 1 systemd-journald() source can be used in the config.
(See the the journal_reader_initialized global va

soloud
brightening-eyes
brightening-eyes commented Feb 20, 2018

hi,
as you know, in SoLoud, the number of filters are limited
we should implement more like different reverbs, fir and irr filters, (these could be used to implement HRTF support), Chorus, One Poll, One Zero, Pole Zero, Two Pole, Two Zero, etc
a library exists called stk under zlib license which already implemented these maybe we can implement some of these out

Created by Guido van Rossum

Released February 20, 1991

Organization
python
Website
www.python.org
Wikipedia
Wikipedia

Related Topics

language ruby
You can’t perform that action at this time.