Hi,
As a work-around, you could use the CRAN R package XLConnect, using RPy or
RPy2, to do what you want. IIRC it's based on Java, so it's not extremely fast.
http://cran.r-project.org/web/packages/XLConnect/vignettes/XLConnect.pdf
This is another package I just saw for the first time
http://cra
Hi,
Can anybody recommend a good, preferably recent, book about Spark and Pyspark?
I am using Pyspark now, but I am looking for a book that also gives a thorough
background about Spark itself. I've been looking around on e.g. Amazon but, as
the saying goes, one can't judge a book by its cover.
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
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
Hi,
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 abnormal termination. Is it possible to register multiple
excepthooks, like with atexit.register? Or should I rename/redefine
log_u
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
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 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 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 __setstate__ prior to __init__. I have no
idea how to solve this. Any ideas? See code below.
Tha
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
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 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 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
I sometimes use this trick, which I learnt from a book by Martelli.
Instead of try/except, membership testing with "in" (__contains__) might
be faster. Probably "depends". Matter of measuring.
def somefunc(arg, _cache={}):
if len(_cache) > 10 ** 5:
_cache.pop()
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
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 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
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
[1]
> 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 just started using async functions and I was wondering if there are any
best practices to deal with developments in this area for Python 3.6 and
up. I'm currently using Python 3.6 but I hope I can upgrade to 3.8 soon.
Do I have to worry that my code might break? If so, is it be
>>> [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
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
Hi
I wrote an Ansible .yml to deploy a Flask webapp. I use python 3.6 for the
ansible-playbook executable. The yml starts with some yum installs,
amongst which python-pip. That installs an ancient pip version (v9). Then
I create a virtualenv where I use a requirements.txt for pip ins
> 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
Hi,
I have a Python program that uses Tkinter for its GUI. It's rather slow so I
hope to replace many or all of the non-GUI parts by Julia code. Has anybody
experience with this? Any packages you can recommend? I found three
alternatives:
* https://pyjulia.readthedocs.io/en/latest/usage.html#
Hi all,
Thank you very much for your valuable replies! I will definitely do some
tracing to see where the bottlenecks really are. It's good to know that
pypy is still alive and kicking, I thought it was stuck in py2.7. I will
also write a mini program during the holiday to see how th
I always use NGINX for this. Run Flask/Gunicorn on localhost:5000 and have
NGINX rewrite https requests to localhost requests. In nginx.conf I
automatically redirect every http request to https. Static files are
served by NGINX, not by Gunicorn, which is faster. NGINX also allows you
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
Hi,
I inherited a fairly large codebase that I need to port to Python 3. Since
the program was running quite slow I am also running the unittests against
pypy3.8. It's a long running program that does lots of pairwise
comparisons of string values in two files. Some parts of the progr
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
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 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/
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 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)
Hi,
I'm looking for a convenience function to convert a Marshmallow schema
into a valid Python class definition. That is, I want to generate python
code (class MySchema.. etc) that I could write to a .py file. Does this
exist? I tried the code below, but that is not the intended use
-- 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
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
(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
(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
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
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 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
Hi,
I am writing my first unittests for a Flask app. First modest goal is to test
whether a selected subset of the templates return the expected status 200.
I am using a nose test generator in a class for this. Is the code below the
correct way to do this? And is there a way to dynamically set
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
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 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 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 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
> 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
*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
> 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
> 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
> 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
> 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: 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: 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
>&
> 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
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
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 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 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 Sep 2019 04:27, Cameron Simpson wrote:
On 21Sep2019 20:42, Markos wrote:
>I have a table.csv file with the following structure:
>
>, Polyarene conc ,, mg L-1 ,,,
>Spectrum, Py, Ace, Anth,
>1, "0,456", "0,120", "0,168"
>2, "0,456", "0,040", "0,280"
>3, "0,152", "0,200", "0,280"
>
>I
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
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 be an option) to store results of a time-consuming query. In other
queries I'd like to access the temporary table again in va
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
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 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 Mon, 11/25/13, Jurko Gospodnetić wrote:
Subject: Parallel Python x.y.A and x.y.B installations on a single Windows
machine
To: python-list@python.org
Date: Monday, November 25, 2013, 1:32 PM
Hi all.
I was wondering what is the best way
On Sun, 11/24/13, MRAB wrote:
Subject: Re: cx_Oracle throws: ImportError: DLL load failed: This application
has failed to start ...
To: python-list@python.org
Date: Sunday, November 24, 2013, 7:17 PM
On 24/11/2013 17:12, Ruben van den
Berg wrot
On Mon, 11/25/13, Jurko Gospodnetić wrote:
Subject: Re: Parallel Python x.y.A and x.y.B installations on a single Windows
machine
To: python-list@python.org
Date: Monday, November 25, 2013, 2:57 PM
Hi.
On 25.11.2013. 14:20, Albert-Jan
In Python Cookbook, one of the authors (I forgot who) consistently used the
"L[:]" idiom like below. If the second line simply starts with "L =" (so no
"[:]") only the name "L" would be rebound, not the underlying object. That was
the authorś explanation as far as I can remember. I do not get th
On Sun, 1/12/14, Paulo da Silva wrote:
Subject: Problem writing some strings (UnicodeEncodeError)
To: python-list@python.org
Date: Sunday, January 12, 2014, 4:36 PM
Hi!
I am using a python3 script to produce a bash script from
lots of
filena
On 1/13/2014 4:00 AM, Laszlo Nagy
wrote:
>
>> Unless L is aliased, this is silly code.
> There is another use case. If you intend to modify a
list within a for
> loop that goes over the same list, then you need to
iterate over a copy.
> And this cannot be called an "alias" because it has
On Thu, 1/16/14, Peter Otten <__pete...@web.de> wrote:
Subject: Re: Is it possible to get string from function?
To: python-list@python.org
Date: Thursday, January 16, 2014, 9:52 AM
Roy Smith wrote:
> I realize the subject line is kind of mean
On Thu, 1/16/14, Chris Angelico wrote:
Subject: Re: Guessing the encoding from a BOM
To:
Cc: "python-list@python.org"
Date: Thursday, January 16, 2014, 7:06 PM
On Fri, Jan 17, 2014 at 5:01 AM,
Björn Lindqvist
wrote:
> 2014/1/16 Steven D'Ap
On Fri, 1/17/14, Terry Reedy wrote:
Subject: Re: doctests compatibility for python 2 & python 3
To: python-list@python.org
Date: Friday, January 17, 2014, 10:10 PM
On 1/17/2014 7:14 AM, Robin Becker
wrote:
> I tried this approach with a few m
Hi
(Sorry for topposting)
numpy.ravel is faster than numpy.flatten (no copy)
numpy.empty is faster than numpy.zeros
numpy.fromiter might be useful to avoid the loop (just a hunch)
Albert-Jan
> From: duncan@invalid.invalid
> Subject: counting unique numpy subarrays
> Date: Fri, 4 Dec 2015 19:43:
I think you need to use a raw unicode string, ur
>>> unicodedata.name(ur'\u2122')
'TRADE MARK SIGN'
> Date: Fri, 4 Dec 2015 13:07:38 -0500
> From: da...@vybenetworks.com
> To: python-list@python.org
> Subject: Unicode failure
>
> I thought that going to Python 3.4 would solve my Unicode issues b
Hello,
I'd like to include up-to-date screenshots (of a tkinter app) into my Sphinx
documentation. This looks ok:
https://pypi.python.org/pypi/sphinxcontrib-programscreenshot
BUT I need something that works on Windows (Python 2.7). Can any recommend an
approach? I thought about using PIL:
http:
> To: python-list@python.org
> From: tjre...@udel.edu
> Subject: Re: Screenshots in Sphinx docs
> Date: Mon, 14 Dec 2015 14:01:03 -0500
>
> On 12/14/2015 11:31 AM, Albert-Jan Roskam wrote:
>
> > I'd like to include up-to-date screenshots (of a tkinter app)
&
> 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
(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
(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), (
> Date: Thu, 10 Mar 2016 08:48:48 -0800
> Subject: Re: looping and searching in numpy array
> From: heml...@gmail.com
> To: python-list@python.org
>
> On Thursday, March 10, 2016 at 2:02:57 PM UTC+1, Peter Otten wrote:
> > Heli wrote:
> >
> > > Dear all,
> > >
> > > I need to loop over a numpy
> From: sjeik_ap...@hotmail.com
> To: heml...@gmail.com; python-list@python.org
> Subject: RE: looping and searching in numpy array
> Date: Sun, 13 Mar 2016 13:51:23 +
>
> Hi, I suppose you have seen this already (in particular the first link):
> http://numpy-discussion.10968.n7.nabble.c
> To: python-list@python.org
> From: __pete...@web.de
> Subject: Effects of caching frequently used objects, was Re: Explaining
> names vs variables in Python
> Date: Wed, 2 Mar 2016 10:12:48 +0100
>
> Salvatore DI DIO wrote:
>
> > Hello,
> >
> > I know Python does not have variables, but na
-
On Fri, Oct 24, 2014 5:56 PM CEST Rustom Mody wrote:
>On Friday, October 24, 2014 8:11:12 PM UTC+5:30, Seymore4Head wrote:
>> On Thu, 23 Oct 2014 21:56:31 -0700 (PDT), Rustom Mody wrote:
>>
>> >On Thursday, October 23, 2014 10:33:57 PM UTC+5:30, Seymore4Head wrote:
- Original Message -
> From: Syed Khalid
> To: python-list@python.org
> Cc:
> Sent: Sunday, November 9, 2014 8:58 PM
> Subject: Python script that does batch find and replace in txt files
>
> Python script that does batch find and replace in txt files Need a python
> script
> that
On Sun, Nov 9, 2014 10:51 PM CET Syed Khalid wrote:
>Albert,
>
>Thanks a million for script,
>
>It worked fine after I closed the bracket.
>
>
>import glob, codecs, re, os
>
>regex = re.compile(r"Age: |Sex: |House No: ") # etc etc
>
>for txt in glob.glob("D:/Python/s
Hi,
Why do I get different output for locale.getlocale() in Idle vs. cmd.exe?
# IDLE
Python 2.7.1 (r271:86832, Nov 27 2010, 18:30:46) [MSC v.1500 32 bit (Intel)] on
win32
Type "copyright", "credits" or "license()" for more information.
>>> import locale
>>> locale.getdefaultlocale()
('nl_NL', 'c
- Original Message -
> From: Terry Reedy
> To: python-list@python.org
> Cc:
> Sent: Monday, November 10, 2014 9:31 PM
> Subject: Re: locale.getlocale() in cmd.exe vs. Idle
>
> On 11/10/2014 4:22 AM, Albert-Jan Roskam wrote:
>> Hi,
>>
>
- Original Message -
> From: Ned Batchelder
> To: python-list@python.org
> Cc:
> Sent: Tuesday, November 11, 2014 12:52 PM
> Subject: Re: What is \1 here?
> You need to learn how to find this stuff out for yourself. Ben Finney
> even gave you a pointer to a helpful site for experim
- Original Message -
> From: Ethan Furman
> To: python-list@python.org
> Cc:
> Sent: Tuesday, November 11, 2014 9:08 PM
> Subject: Re: I love assert
>
> On 11/11/2014 11:40 AM, Peter Cacioppi wrote:
>>
>> I get the impression that most Pythonistas aren't as habituated with
> assert
- Original Message -
> From: Ethan Furman
> To: Albert-Jan Roskam
> Cc: "python-list@python.org"
> Sent: Tuesday, November 11, 2014 10:15 PM
> Subject: Re: I love assert
>
> On 11/11/2014 01:09 PM, Albert-Jan Roskam wrote:
>> Ethan Furman wrote
On Fri, Dec 5, 2014 8:54 PM CET Mark Lawrence wrote:
>For those who haven't heard thought this might be of interest
>https://github.com/fijal/jitpy
Interesting, but it is not clear to me when you would use jitpy instead of
pypy. Too bad pypy alone was not included
On Sun, Dec 7, 2014 11:06 AM CET Stefan Behnel wrote:
>Albert-Jan Roskam schrieb am 06.12.2014 um 21:28:
>> On Fri, Dec 5, 2014 8:54 PM CET Mark Lawrence wrote:
>> For those who haven't heard thought this might be of interest
>> http
Hi,
I am new to numpy. I am reading binary data one record at a time (I have to)
and I would like to store all the records in a numpy array which I
pre-allocate. Below I try to fill the empty array with exactly one record, but
it is filled with as many rows as there are columns. Why is this? It
- Original Message -
> From: Steven D'Aprano
> To: python-list@python.org
> Cc:
> Sent: Sunday, December 14, 2014 12:52 AM
> Subject: Re: numpy question (fairly basic, I think)
>
> Albert-Jan Roskam wrote:
>
>> Hi,
>>
>> I am new to
---
On Sun, Dec 14, 2014 4:06 PM CET sir wrote:
>There are two python version in my debian7, one is python2.7 the system
>default version, the other is python3.4 which compiled to install this way.
>
>| apt-get update
> apt-get upgrade
> apt-get install build-essentia
-
On Sun, Dec 28, 2014 8:12 PM CET Dave Angel wrote:
>On 12/28/2014 12:27 PM, Seymore4Head wrote:
>> I need to search through a directory of text files for a string.
>> Here is a short program I made in the past to search through a single
>> text file for a line of tex
1 - 100 of 217 matches
Mail list logo