On Oct 24, 2024 17:51, Roland Mueller via Python-list
wrote:
ke 23. lokak. 2024 klo 20.11 Albert-Jan Roskam via Python-list (
python-list@python.org) kirjoitti:
> Today I used chardet.detect in the repl and it returned
windows-1252
> (incorrect, beca
$ python -m chardet FILENAME
FILENAME: MacRoman with confidence 0.7167379080370483
Thanks!
Albert-Jan
--
https://mail.python.org/mailman/listinfo/python-list
Hi,
Are there any tools that check whether type annotations and Numpydoc
strings are consistent?
I did find this Vim
plugin: https://lxyuan0420.github.io/posts/til-vim-pydocstring-plugin.
Looks incredibly useful, but I haven't tried it yet.
Thanks!
AJ
--
https://mail.python
I also think that list/archive isn't working properly. Very little emails.
Before, this was quite a busy list.
--
https://mail.python.org/mailman/listinfo/python-list
On Aug 13, 2024 15:29, Barry Scott via Python-list
wrote:
> Could not find file 'C:\Users\Charl\OneDrive\Documents\The Sims 4 Mod
Constructor\Projects\MetalMummysMods_Ehlers-DanlosMod\Python\__pycache__\MetalMummysMods_Ehlers-DanlosMod.cpython-37.pyc'.
> Element ID: (No Elem
Or like below, although pylint complains about this: "consider using
with". Less indentation this way.
f = None
try:
f = open(FILENAME)
records = f.readlines()
except Exception:
sys.exit(1)
finally:
if f is not None:
f.close()
--
https://mai
The example exception is not what bothers me. The syntax change is
nowhere near as useful as `with` and context managers. They provide an
excellent idiom for resource usage and release.
Your suggestion complicates the `with` statement and brings only a tiny
indentation red
On Mar 10, 2024 12:59, Thomas Passin via Python-list
wrote:
On 3/10/2024 6:17 AM, Barry wrote:
>
>
>> On 8 Mar 2024, at 23:19, Thomas Passin via Python-list
wrote:
>>
>> We just learned a few posts back that it might be specific to Linux;
I ran it on
On Mar 8, 2024 19:35, Thomas Passin via Python-list
wrote:
On 3/8/2024 1:03 PM, Albert-Jan Roskam via Python-list wrote:
> Hi,
> I was replacing some os.path stuff with Pathlib and I discovered
this:
> Path(256 * "x").i
Hi,
I was replacing some os.path stuff with Pathlib and I discovered this:
Path(256 * "x").is_file() # OSError
os.path.isfile(256 * "x") # bool
Is this intended? Does pathlib try to resemble os.path as closely as
possible?
Best wishes,
On Sep 15, 2023 19:45, "Peter J. Holzer via Python-list"
wrote:
On 2023-09-15 17:42:06 +0200, Albert-Jan Roskam via Python-list wrote:
> This is more related to Postgresql than to Python, I hope this is
ok.
> I want to measure Postgres queries N
n the
times. Is there a timeit-like function in Postgresql?
Thanks!
Albert-Jan
--
https://mail.python.org/mailman/listinfo/python-list
On Feb 18, 2023 17:28, Rob Cliffe via Python-list
wrote:
On 18/02/2023 15:29, Thomas Passin wrote:
> On 2/18/2023 5:38 AM, Albert-Jan Roskam wrote:
>> I sometimes use this trick, which I learnt from a book by
Martelli.
>> Instead of try/exc
:
_cache.pop()
try:
return _cache[arg]
except KeyError:
result = expensivefunc(arg)
_cache[arg] = result
return result
Albert-Jan
--
https://mail.python.org/mailman/listinfo/python-list
On Jan 15, 2023 05:26, Dino wrote:
Hello, I have built a PoC service in Python Flask for my work, and - now
that the point is made - I need to make it a little more performant (to
be honest, chances are that someone else will pick up from where I left
off, and implement the
On Dec 21, 2022 06:01, Chris Angelico wrote:
On Wed, 21 Dec 2022 at 15:28, Jach Feng wrote:
> That's what I am taking this path under Windows now, the ultimate
solution before Windows has shell similar to bash:-)
Technically, Windows DOES have a shell similar to bash. It'
On Dec 15, 2022 10:21, Peter Otten <__pete...@web.de> wrote:
>>> from collections import namedtuple
>>> Row = namedtuple("Row", "foo bar baz")
>>> row = Row(1, 2, 3)
>>> row._replace(bar=42)
Row(foo=1, bar=42, baz=3)
Ahh, I always thought these are undocumen
On Oct 19, 2022 13:02, Albert-Jan Roskam wrote:
Hi,
I am trying to create a celery.schedules.crontab object from an
external
yaml file. I can successfully create an instance from a dummy class
"Bar",
but the crontab class seems call __setsta
code below.
Thanks!
Albert-Jan
Python 3.6.8 (default, Nov 16 2020, 16:55:22)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-44)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import yaml
>>> f
On Oct 14, 2022 18:19, "Peter J. Holzer" wrote:
On 2022-10-14 07:40:14 -0700, Dan Stromberg wrote:
> Alternatively, you can "ps axfwwe" (on Linux) to see environment
> variables, and check what the environment of cron (or similar) is. It
> is this environment (mostly) that
Hi,
I'm using Flask + Celery + RabbitMQ. Can anyone recommend a good book or
other resource about Celery?
Thanks!
Albert-Jan
--
https://mail.python.org/mailman/listinfo/python-list
On Aug 1, 2022 19:34, Dieter Maurer wrote:
Albert-Jan Roskam wrote at 2022-7-31 11:39 +0200:
> I have a function init_logging.log_uncaught_errors() that I use for
> sys.excepthook. Now I also want to call another function
(ffi.dlclose())
> upon
log_uncaught_errors() so it does both things?
Thanks!
Albert-Jan
--
https://mail.python.org/mailman/listinfo/python-list
On Apr 20, 2022 13:01, Sam Ezeh wrote:
I went back to the code recently and I remembered what the problem was.
I was using multiprocessing.Pool.pmap which takes a callable (the
lambda here) so I wasn't able to use comprehensions or starmap
Is there anything for situations
On Apr 2, 2022 20:50, Abdellah ALAOUI ISMAILI
wrote:
i would like to convert in my flask app an SQL query to an plotly pie
chart using pandas. this is my code :
def query_tickets_status() :
query_result = pd.read_sql ("""
SELECT COUNT(*)count_status
-- Forwarded message --
From: Marco Sulla
Date: Apr 2, 2022 22:44
Subject: dict.get_deep()
To: Python List <>
Cc:
A proposal. Very often dict are used as a deeply nested carrier of
data, usually decoded from JSON.
data["users"][0]["address"]["str
a()) # OSError
https://marshmallow.readthedocs.io/en/stable/api_reference.html#marshmallow.Schema.from_dict
https://docs.python.org/3/library/inspect.html#inspect.getsource
Thanks!
Albert-Jan
--
https://mail.python.org/mailman/listinfo/python-list
On Feb 28, 2022 10:11, Loris Bennett wrote:
Hi,
I have an SQLAlchemy class for an event:
class UserEvent(Base):
__tablename__ = "user_events"
id = Column('id', Integer, primary_key=True)
date = Column('date', Date, nullable=False)
If you don't like the idea of 'adding' strings you can 'concat'enate:
>>> items = [[1,2,3], [4,5], [6]]
>>> functools.reduce(operator.concat, items)
[1, 2, 3, 4, 5, 6]
>>> functools.reduce(operator.iconcat, items, [])
[1, 2, 3, 4, 5, 6]
The latter is the functio
On Feb 19, 2022 12:28, Shaozhong SHI wrote:
I have a cvs file of 932956 row and have to have time.sleep in a Python
script. It takes a long time to process.
How can I speed up the processing? Can I do multi-processing?
Perhaps a dask df:
https://docs.dask.org/
On Feb 18, 2022 08:23, Saruni David wrote:
>> Christian Gohlke's site has a Pillow .whl for python
2.7: https://www.lfd.uci.edu/~gohlke/pythonlibs/#pillow
--
https://mail.python.org/mailman/listinfo/python-list
On Feb 3, 2022 17:01, Dan Stromberg wrote:
> The best answer to "is this slower on
> Pypy" is probably to measure.
> Sometimes it makes sense to rewrite C
> extension modules in pure python for pypy.
Hi Dan, thanks. What profiler do you recommend I normally us
f the program (e.g
a modulo 11 digit check) are implemented in Cython. Should I use pure
Python instead when using Pypy? I compiled the Cython modules for pypy and
they work, but I'm afraid they might just slow things down.
Thanks!
Albert-Jan
--
https://mail.python.org/mailman/listi
On Feb 2, 2022 23:31, Barry wrote:
> On 2 Feb 2022, at 21:12, Marco Sulla
wrote:
>
> You could add a __del__ that calls stop :)
Didn't python3 make this non deterministic when del is called?
I thought the recommendation is to not rely on __del__ in python3 code
to easily set the transfer encoding to gzip
Albert-Jan
--
https://mail.python.org/mailman/listinfo/python-list
e how this Julia/Python
interaction might work. The little bit of experience with Julia more or
less coincides with what Oscar mentioned: a lot of "warm up" time. This is
actually a py2.7 project that I inherited. I was asked to convert it to
py3.8.
Thanks and merry xmas
.html#
* https://pypi.org/project/juliacall/
* https://github.com/JuliaPy/PyCall.jl
Thanks in advance!
Albert-Jan
--
https://mail.python.org/mailman/listinfo/python-list
> df['URL'] = df.apply(lambda x: connect(df['URL']), axis=1)
I think you need axis=0. Or use the Series, df['URL'] =
df.URL.apply(connect)
--
https://mail.python.org/mailman/listinfo/python-list
in advance!
Albert-Jan
--
https://mail.python.org/mailman/listinfo/python-list
Hi,
logging.basicConfig(level="DEBUG")
..in e.g __init__.py
AJ
On 4 Aug 2021 23:26, Javi D R wrote:
Hi
I would like to do some tracing in a flask. I have been able to trace
request in plain python requests using sys.settrace(), but this doesnt
work
with F
>>> [1] https://pypi.org/project/clize/
I use and like docopt (https://github.com/docopt/docopt). Is clize a
better choice?
--
https://mail.python.org/mailman/listinfo/python-list
is it better to use
3rd party libraries? It seems that things get a little easier with newer
Python versions, so it might also a reason to simplify the code.
Cheers!
Albert-Jan
--
https://mail.python.org/mailman/listinfo/python-list
> Asyncio and httpx [1] look promising but don't seem to support ntlm. Any
tips?
==> https://pypi.org/project/httpx-ntlm/
Not sure how I missed this in the first place. :-)
--
https://mail.python.org/mailman/listinfo/python-list
Hi,
I need to make thousands of requests that require ntlm authentication so I
was hoping to do them asynchronously. With synchronous requests I use
requests/requests_ntlm. Asyncio and httpx [1] look promising but don't
seem to support ntlm. Any tips?
Cheers!
Albert-Jan
On 20 Mar 2021 23:47, Cameron Simpson wrote:
On 20Mar2021 12:53, Sibylle Koczian wrote:
>Am 20.03.2021 um 09:34 schrieb Alan Bawden:
>>The real reason Python strings support a .title() method is surely
>>because Unicode supports upper, lower, _and_ title case letters, and
you could call a simple bash script in a git hook that syncs your
MANIFEST.in with your .gitignore. Something like:
echo -n "exclude " > MANIFEST.in
cat .gitignore | tr '\n' ' ' >> MANIFEST.in
echo "graft $(readlink -f ./keep/this)" >> MANIFEST.in
https://docs.python.org/2/distuti
On Wed, Jun 03, 2020 at 08:11:17PM -0400, Dennis Lee Bieber wrote:
> On Tue, 2 Jun 2020 12:26:16 -0500, Albert Chin
> declaimed the following:
>
> >I've built Python 3.8.2 on AIX 5.2, 5.3, 6.1, and 7.1. I am seeing
> >different results for the following Python progr
3,
and 6.1. But, on 7.1, I get "inf".
Anyone know where can I look in the Python source code to investigate
this?
--
albert chin (ch...@thewrittenword.com)
--
https://mail.python.org/mailman/listinfo/python-list
On 22 Oct 2019 11:23, GerritM wrote:
> ImportError: DLL load failed: The specified > procedure could not be found.
I've had the same error before and I solved it by adding the location where the
win32 dlls live to PATH. Maybe PATH gets messed up during the installation of
something.
--
htt
On 18 Oct 2019 20:36, Chris Angelico wrote:
On Sat, Oct 19, 2019 at 5:29 AM Jagga Soorma wrote:
>
> Hello,
>
> I am writing my second python script and got it to work using
> python2.x. However, realized that I should be using python3 and it
> seems to fail with the following message:
>
> --
On 8 Oct 2019 07:49, Frank Millman wrote:
On 2019-10-07 5:30 PM, Albert-Jan Roskam wrote:
> Hi,
>
> I am using sqlalchemy (SA) to access a MS SQL Server database (python 3.5,
> Win 10). I would like to use a temporary table (preferably #local, but
> ##global would also b
pe of the context manager.
Oh, I don't have rights to create a 'real' table. :-(
Thanks!
Albert-Jan
--
https://mail.python.org/mailman/listinfo/python-list
On 26 Sep 2019 10:28, Christian Gollwitzer wrote:
Am 26.09.19 um 08:34 schrieb ast:
> Hello
>
> A line of code which produce itself when executed
>
> >>> s='s=%r;print(s%%s)';print(s%s)
> s='s=%r;print(s%%s)';print(s%s)
>
> Thats funny !
==> Also impressive, a 128-language quine:
https://git
k it's a deliberate design choice that decimal and thousands where
used here as params, and not a 'locale' param? It seems nice to be able to
specify e.g. locale='dutch' and then all the right lc_numeric, lc_monetary,
lc_time where used. Or even locale='nl_NL.1252' and you also wouldn't need
'encoding' as a separate param. Or might that be bad on windows where there's
no locale-gen? Just wondering...
Albert-Jan
--
https://mail.python.org/mailman/listinfo/python-list
On 15 Sep 2019 07:00, Sinardy Gmail wrote:
I understand that we can use pydoc to document procedures how about the
relationship between packages and dependencies ?
==》 Check out snakefood to generate dependency graphs:
http://furius.ca/snakefood/. Also, did you discover sphinx already?
--
On 22 Jul 2019 23:12, Skip Montanaro wrote:
Assuming you're using Python 3, why not use an f-string?
>>> dt = datetime.datetime.now()
>>> dt.strftime("%Y-%m-%d %H:%M")
'2019-07-22 16:10'
>>> f"{dt:%Y-%m-%d %H:%M}"
'2019-07-22 16:10'
===》》 Or if you're running < Python 3.6 (no f strings): form
On 29 Apr 2019 07:18, DL Neil wrote:
On 29/04/19 4:52 PM, Chris Angelico wrote:
> On Mon, Apr 29, 2019 at 2:43 PM DL Neil
> wrote:
>>
>> On 29/04/19 3:55 PM, Chris Angelico wrote:
>>> On Mon, Apr 29, 2019 at 1:43 PM DL Neil
>>> wrote:
Well, seeing you ask: a more HTTP-ish approach *mi
On 18 Nov 2018 20:33, Malcolm Greene wrote:
>Curious to learn what Python related git >pre-commit hooks people are using?
>What >hooks have you found useful and which >hooks have you tried
I use Python to reject large commits (pre-commit hook):
http://code.activestate.com/recipes/578883-git
*sigh*. I'm with Hettinger on this.
https://www.theregister.co.uk/2018/09/11/python_purges_master_and_slave_in_political_pogrom/
--
https://mail.python.org/mailman/listinfo/python-list
> I try to close the thread without closing the GUI is it possible?
Qthread seems to be worth investigating:
https://medium.com/@webmamoffice/getting-started-gui-s-with-python-pyqt-qthread-class-1b796203c18c
--
https://mail.python.org/mailman/listinfo/python-list
this a known bug? Do you have a suggestion how I could emulate the
behavior of the demo mode by other means (not necessarily with IPython)?
TIA and best regards,
Albert
--
https://mail.python.org/mailman/listinfo/python-list
On 5 Jun 2018 09:32, Steven D'Aprano
wrote:
On Mon, 04 Jun 2018 20:13:32 -0700, Sharan Basappa wrote:
> Is there a specific location where user defined modules need to be kept?
> If not, do we need to specify search location so that Python interpreter
> can find it?
Python modules used as s
On May 15, 2018 14:12, mahesh d wrote:
import glob,os
import errno
path = 'C:/Users/A-7993\Desktop/task11/sample emails/'
files = glob.glob(path)
'''for name in files:
print(str(name))
if name.endswith(".txt"):
print(name)'''
for file in os.listdir(path):
print(f
On May 15, 2018 08:54, Steven D'Aprano
wrote:
On Tue, 15 May 2018 11:53:47 +0530, mahesh d wrote:
> Hii.
>
> I have folder.in that folder some files .txt and some files .msg files.
> .
> My requirement is reading those file contents . Extract data in that
> files .
Reading .msg can be done
On Apr 19, 2018 03:03, Skip Montanaro wrote:
>
>
> I really don't like the logging module, but it looks like I'm stuck
> with it. Why aren't simple/obvious things either simple or obvious?
Agreed. One thing that, in my opinion, ought to be added to the docs is sample
code to log uncaught except
On Apr 18, 2018 21:42, TUA wrote:
>
> import re
>
> compval = 'A123456_8'
> regex = '[a-zA-Z]\w{0,7}'
>
> if re.match(regex, compval):
>print('Yes')
> else:
>print('No')
>
>
> My intention is to implement a max. length of 8 for an input string. The
> above works well in all other respect
the docstring of
test_generator? This would make the nosetests output a bit more understandable.
Thanks!
Albert-Jan
import os
import sys
from os.path import splitext
from http import HTTPStatus as status
import nose
from MyFabulousApp import app
app.testing = True
template_folder
On Apr 12, 2018 09:39, jf...@ms4.hinet.net wrote:
>
> Chris Angelico於 2018年4月12日星期四 UTC+8下午1時31分35秒寫道:
> > On Thu, Apr 12, 2018 at 2:16 PM, wrote:
> > > This C function returns a buffer which I declared it as a
> > > ctypes.c_char_p. The buffer has size 0x1 bytes long and the valid
> > > d
On Apr 11, 2018 20:52, zljubi...@gmail.com wrote:
>
> I have a dataframe:
>
> import pandas as pd
> import numpy as np
>
> df = pd.DataFrame( { 'A' : ['a', 'b', '', None, np.nan],
> 'B' : [None, np.nan, 'a', 'b', '']})
>
> A B
> 0 a None
> 1 b NaN
> 2
On Jan 2, 2018 18:27, Rustom Mody wrote:
>
> Someone who works in hadoop asked me:
>
> If our data is in terabytes can we do statistical (ie numpy pandas etc)
> analysis on it?
>
> I said: No (I dont think so at least!) ie I expect numpy (pandas etc)
> to not work if the data does not fit in memo
its cover.
Thanks!
Albert-Jan
--
https://mail.python.org/mailman/listinfo/python-list
(sorry for top posting)
Try:
df1['difference'] = (df1 == df2).all(axis=1)
From: Python-list on
behalf of Smith
Sent: Saturday, July 22, 2017 7:47:59 AM
To: python-list@python.org
Subject: Compare files excel
Hello to all,
I should compare two excel files with p
From: Python-list on
behalf of Dan Sommers
Sent: Friday, July 7, 2017 2:46 AM
To: python-list@python.org
Subject: Re: Test 0 and false since false is 0
On Thu, 06 Jul 2017 19:29:00 -0700, Sayth Renshaw wrote:
> I have tried or conditions of v == False etc but then the 0's being
> false als
From: Python-list on
behalf of Mayling ge
Sent: Tuesday, July 4, 2017 9:01 AM
To: python-list
Subject: memory leak with re.match
Hi,
My function is in the following way to handle file line by line. There are
multiple error patterns defined and need to apply to each line. I us
Hi,
Does your code run on a sample of the data?
Does your code have categorical data in it? If so:
https://pandas.pydata.org/pandas-docs/stable/categorical.html. Also, check out
http://www.pytables.org.
Albert-Jan
From: Python-list on
behalf of Bhaskar
(sorry for top posting)
Yes, I'd try pd.concat([df1, df2]).
Or this:
df['both_names'] = df.apply(lambda row: row.name + ' ' + row.surname, axis=1)
From: Python-list on
behalf of Paul Barry
Sent: Wednesday, June 28, 2017 12:30:25 PM
To: Bhaskar Dhariyal
Cc: python
From: Albert-Jan Roskam
Sent: Saturday, June 24, 2017 11:26:26 AM
To: Paul Barry
Subject: Re: Unable to convert pandas object to string
(sorry for top posting)
Try using fillna('') to convert np.nan into empty strings. df['desc'] =
df.
(sorry for top-posting). UpdateRecords and the other functions need to be
nested so they fall under your class. Right now they are functions, not methods.
AJ
From: Python-list on
behalf of horgan.ant...@gmail.com
Sent: Saturday, April 22, 2017 12:45:09 PM
To: p
From: eryk sun
Sent: Saturday, April 22, 2017 7:59 AM
To: Python Main
Cc: Albert-Jan Roskam
Subject: Re: OrderedDict with kwds
On Fri, Apr 21, 2017 at 6:08 PM, Albert-Jan Roskam
wrote:
> Would the insertion order be preserved if the last line were to be
> replaced with:
>
uteError:
self.__hardroot = _Link()
self.__root = root = _proxy(self.__hardroot)
root.prev = root.next = root
self.__map = {}
self.__update(*args, **kwds)
Thanks!
Albert-Jan
--
https://mail.python.org/mailman/listinfo/python-list
sola dosis facit venenum ~ Paracelsus (1493-1541)
From: Python-list on
behalf of alister
Sent: Monday, January 23, 2017 8:32:49 PM
To: python-list@python.org
Subject: Re: How coding in Python is bad for you
On Tue, 24 Jan 2017 07:19:42 +1100, Chris Angelico wrot
(sorry for top-posting)
I does not appear to be possible in matplolibrc (1). But you can use
matplotlib.cm.register_cmap to register new cmaps (2) such as these (3).
(Note: I did not try this)
(1)http://matplotlib.org/1.4.0/users/customizing.html
(2)http://matplotlib.org/api/cm_api.html
(3)https
(Sorry for top-posting)
Yep, part of the baby's hardware. Also, the interface is not limited to visual
and auditory information:
http://www.scientificamerican.com/article/pheromones-sex-lives/
From: Python-list on
behalf of Steven D'Aprano
Sent: Tuesday, Octob
On Monday, June 6, 2016 at 10:17:35 AM UTC-3, Michael Selik wrote:
> On Sun, Jun 5, 2016 at 3:26 PM Ben Finney <>
> wrote:
>
> > Albert <> writes:
> >
> > > Thank you for your answer Ben,
> >
> > You're welcome. Please note that
://github.com/danielweinmann/unlock
Any suggestion please?
On Saturday, June 4, 2016 at 6:02:51 PM UTC-3, Ben Finney wrote:
> Albert writes:
>
> > Anyone knows a donation app whose code is available on github or
> > similar made in python (could be django, flask, or any other
Hello,
Anyone knows a donation app whose code is available on github or similar made
in python (could be django, flask, or any other web framework).
Thank you very much.
--
https://mail.python.org/mailman/listinfo/python-list
> Date: Sat, 28 May 2016 23:48:16 +0530
> Subject: re.search - Pattern matching review ( Apologies re sending)
> From: ganesh1...@gmail.com
> To: python-list@python.org
>
> Dear Python friends,
>
> I am on Python 2.7 and Linux . I am trying to extract the address
> "1,5,147456:8192" from the bel
> From: eryk...@gmail.com
> Date: Sat, 23 Apr 2016 15:22:35 -0500
> Subject: Re: Remove directory tree without following symlinks
> To: python-list@python.org
>
> On Sat, Apr 23, 2016 at 4:34 AM, Albert-Jan Roskam
> wrote:
>>
>>> From: eryk...@gmail.com
>&
> From: eryk...@gmail.com
> Date: Fri, 22 Apr 2016 13:28:01 -0500
> Subject: Re: Remove directory tree without following symlinks
> To: python-list@python.org
>
> On Fri, Apr 22, 2016 at 12:39 PM, Albert-Jan Roskam
> wrote:
> > FYI, Just today I found out
> From: st...@pearwood.info
> Subject: Re: Remove directory tree without following symlinks
> Date: Sat, 23 Apr 2016 03:14:12 +1000
> To: python-list@python.org
>
> On Sat, 23 Apr 2016 01:09 am, Random832 wrote:
>
> > On Fri, Apr 22, 2016, at 10:56, Steven D'Aprano wrote:
> >> What should I use
> From: ran...@nospam.it
> Subject: read datas from sensors and plotting
> Date: Sun, 17 Apr 2016 18:46:25 +0200
> To: python-list@python.org
>
> I'm reading in python some values from some sensors and I write them in
> a csv file.
> My problem now is to use this datas to plot a realtime graph
> Date: Fri, 1 Apr 2016 13:22:12 -0600
> Subject: extract rar
> From: fanjianl...@gmail.com
> To: python-list@python.org
>
> Hello everyone,
>
> I am wondering is there any way to extract rar files by python without
> WinRAR software?
>
> I tried Archive() and patool, but seems they required t
> Subject: Re: A tool to add diagrams to sphinx docs
> From: irmen.nos...@xs4all.nl
> Date: Fri, 1 Apr 2016 18:26:48 +0200
> To: python-list@python.org
>
> On 1-4-2016 17:59, George Trojan - NOAA Federal wrote:
> > What graphics editor would you recommend to create diagrams that can be
> > inclu
newcommer in Python
> >
> > Can someone give me the right argument to expose ?
>
> You should not bother with object identity for objects other than None.
A little late to the party, but: how about Ellipsis? Shouldn't "is" also be
used for that one? (It's rare, I know :))
Albert-Jan
--
https://mail.python.org/mailman/listinfo/python-list
y-discussion.10968.n7.nabble.com/Implementing-a-quot-find-first-quot-style-function-td33085.htmlI
> don't thonk it's part of numpy yet.
> Albert-Jan
sorry, the correct url is:
http://numpy-discussion.10968.n7.nabble.com/Implementing-a-quot-find-f
m
> 61(s) to 2(s).
>
> I am still very interested in knowing the correct numpy way to do this, but
> till then your fix works great.
Hi, I suppose you have seen this already (in particular the first link):
http://numpy-discussion.10968.n7.nabble.com/Implementing-a-quot-find-first-quot-style-function-td33085.htmlI
don't thonk it's part of numpy yet.
Albert-Jan
--
https://mail.python.org/mailman/listinfo/python-list
(Sorry for top-posting)
No TypeError here:
Python 2.7.2 (default, Nov 2 2015, 01:07:37) [GCC 4.9 20140827 (prerelease)]
on linux4
Type "help", "copyright", "credits" or "license" for more information.
>>> ten = range(10)
>>> reversed(zip(ten, ten))
>>> list(reversed(zip(ten, ten)))
[(9, 9), (
ly there's extra information available on the "Error running
your script" message. You should examine that.
Meanwhile, I think the line "return invalid transaction" provides a clue.
--
Vriendelijke groeten / Kind regards,
Albert Visser
Using Opera's mail client: http://www.opera.com/mail/
--
https://mail.python.org/mailman/listinfo/python-list
(Sorry for top posting)
IIRC, you have to do
sudo apt-get install build-essential python-dev
... then re-compile python
> To: python-list@python.org
> From: k.d.jant...@mailbox.org
> Subject: SQLite
> Date: Sun, 21 Feb 2016 18:11:18 +0100
>
>Hello,
>
>I have downloaded Python3.5.1 as .t
> From: ji...@frontier.com
> To: python-list@python.org
> Subject: libre office
> Date: Tue, 19 Jan 2016 17:01:40 -0600
>
> How do I get data from libre office using python?
Does this help?http://www.openoffice.org/udk/python/python-bridge.html
--
https://m
1 - 100 of 904 matches
Mail list logo