> On 30 Aug 2024, at 23:28, dn via Python-list wrote:
>
> Me email (only) client shows a thread of 12 messages.
>
> The OP was @Gilmeh Serda (from an invalid email address). That appears in the
> email thread
>
> @Stefan Ram has had two contributions quoted, but
On 8/30/24 15:28, dn via Python-list wrote:
> The OP was @Gilmeh Serda (from an invalid email address). That appears in the
email thread
>
> @Stefan Ram has had two contributions quoted, but no such original-message
has appeared in the thread.
I can't speak about the archives,
Ethan Furman writes:
> On 8/30/24 15:28, dn via Python-list wrote:
>> The OP was @Gilmeh Serda (from an invalid email address). That appears in
>> the email thread
>>
>> @Stefan Ram has had two contributions quoted, but no such original-message
>> has appeared
On Friday, 30 August 2024 at 23:35, Thomas Passin via Python-list
wrote:
>
>
> On 8/30/2024 3:18 PM, Simon Connah via Python-list wrote:
>
> > I need to write a script that will take some user input (supplied on a
> > website) and then execute a Python scrip
Hello,
I am using Python 2.7 on Windows 10 and I want to launch a process
independently of the rest of the code so that the execution continues while
the started process proceeds. I am using Process().start() from Python 2.7
as follows:
from multiprocessing import Process
def do_something(text):
> On 2 Sep 2024, at 15:00, marc nicole via Python-list
> wrote:
>
> I am using Python 2.7 on Windows 10
Why? Install Python 3.12 and it will be easier to get help and support.
If you have legacy that still needs porting then you can install 3.12 along side
the unsupported 3
reading the console DID display the messages correctly!
Thanks.
Le mar. 3 sept. 2024 à 10:48, Alan Gauld via Tutor a
écrit :
> On 02/09/2024 15:00, marc nicole via Python-list wrote:
> > Hello,
> >
> > I am using Python 2.7 on Windows 10
>
> Others have pointed out th
You can try:
>>> 1,2 == 2,2
(1, True, 2)
Its the same as:
>>> 1, (2 == 2), 2
(1, True, 2)
Hope this helps!
Alan Bawden schrieb:
Python 3.10.5 (v3.10.5:f37715, Jul 10 2022, 00:26:17) [GCC 4.9.2] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>>
Python 3.10.5 (v3.10.5:f37715, Jul 10 2022, 00:26:17) [GCC 4.9.2] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> x,_,z = [1,2,3]
Works as expected.
Now I didn't expect the following to work (but Python sometimes
surprises me!), so I tried:
>>
[email protected] (Stefan Ram) writes:
> marc nicole wrote or quoted:
>>Thanks for the reply, Here's the code I tested for the debug:
>>print("executed")
>>but neither "Hello World" or "Executed" are displayed in the console which
>
> It shouldn't spit out "Executed" 'cause there's a lower
I'm somewhat new to mocking for unit tests.
I have some code like this:
In foo/bar/baz.py I have 2 function I want to mock, one calls the other"
def function1_to_mock():
.
.
.
def function2_to_mock():
function1_to_mock()
In foo/bar/main.py I import 1 of these and call it"
from .baz
as __builtin__.module with
Python 2.7
On 02/09/2024 15:00, marc nicole via Python-list wrote:
> Hello,
>
> I am using Python 2.7 on Windows 10
Others have pointed out that 2.7 is unsupported and has
been for many years now. Its also inferior in most
respects including its error reporting
Hi,
My "Project" is to integrate python support into OpenSCAD. It runs quite
well, but
there are still issues on MacOS. On My MacOS it works, but it crashes when
I ship
the DMG files.
It looks very much like python is not able to find the "startup" python
files and therefore crashes.
Is it possi
> On 4 Sep 2024, at 16:27, Guenther Sohler via Python-list
> wrote:
>
> Is it possible to turn on debugging and to display on the console, where
> python is loading files from ?
>
I assume you have a .app that is then packaged into a .dmg.
It will be the .app that
On 5/09/24 7:48 am, Barry Scott wrote:
Beware that you cannot use print to stdout for a .app as its stdin/stdout do
not go anywhere useful.
You can invoke the executable inside the package from the Terminal.
Normally it's in the .app/Contents/MacOS subdirectory. The name
varies, but there's u
available soon to help with coding.
Kind regards,
Schimon
On Thu, 5 Sep 2024 04:42:20 -
711 Spooky Mart via Python-list wrote:
> from
> https://www.reddit.com/r/bitmessage/comments/1d5ff18/unofficial_pybitmessage_port_to_run_with_python3/
>
> Unofficial PyBitmessage port to run with
Greetings, 711!
This is very good!
Do you know of Plebbit?
It might be good to interoperate with Plebbit too.
https://plebbit.com/
Kind regards,
Schimon
On Thu, 5 Sep 2024 04:53:05 -
711 Spooky Mart via Python-list wrote:
> from https://github.com/813492291816/BitChan
>
> B
Greetings!
I am interested in adding support for Bitmessage to Slixfeed news bot.
Support is currently provided to XMPP and it will be extended to Email,
IRC and Session.
https://git.xmpp-it.net/sch/Slixfeed
Schimon
On Thu, 5 Sep 2024 04:40:10 -
711 Spooky Mart via Python-list wrote
Good day, 711 Spooky Mart!
Did you consider to add support for IRC or XMPP too?
Best regards,
Schimon
On Thu, 5 Sep 2024 04:47:39 -
711 Spooky Mart via Python-list wrote:
> from https://github.com/kashikoibumi/bmwrapper
>
> bmwrapper is a poorly hacked together python scri
Hi there!
A big joint release today. Mostly security fixes but we also have the final
release candidate of 3.13 so let’s start with that!
Python 3.13.0RC2
Final opportunity to test and find any show-stopper bugs before we bless and
release 3.13.0 final on October 1st.
Get it here: Python Releas
Dear all,
unto now I had been thinking this is a wise idiom (in code
that needs not care whether it fails to do what it tries to
do^1):
conn = psycopg2.connection(...)
curs = conn.cursor()
try:
curs.execute(SOME_SQL)
except PSYCOPG2-Exception:
On 07/09/2024 16:48, Karsten Hilbert via Python-list wrote:
Dear all,
unto now I had been thinking this is a wise idiom (in code
that needs not care whether it fails to do what it tries to
do^1):
conn = psycopg2.connection(...)
curs = conn.cursor()
try
Am Sat, Sep 07, 2024 at 09:46:03AM -0700 schrieb Adrian Klaver:
> >unto now I had been thinking this is a wise idiom (in code
> >that needs not care whether it fails to do what it tries to
> >do^1):
> >
> > conn = psycopg2.connection(...)
>
> In the above do you have:
>
> https://www.psycopg.o
Am Sat, Sep 07, 2024 at 01:03:34PM -0700 schrieb Adrian Klaver:
> In the case you show you are doing commit() before the close() so any errors
> in the
> transactions will show up then. My first thought would be to wrap the
> commit() in a
> try/except and deal with error there.
Right, and this
Am Sat, Sep 07, 2024 at 02:09:28PM -0700 schrieb Adrian Klaver:
> >Right, and this was suggested elsewhere ;)
> >
> >And, yeah, the actual code is much more involved :-D
> >
>
> I see that.
>
> The question is does the full code you show fail?
>
> The code sample you show in your original post is
On 8/09/24 9:20 am, Karsten Hilbert wrote:
try:
do something
except:
log something
finally:
.commit()
cadence is fairly Pythonic and elegant in that it ensures the
the .commit() will always be reached regardless of exception
Am Sun, Sep 08, 2024 at 12:48:50PM +1200 schrieb Greg Ewing via Python-list:
> On 8/09/24 9:20 am, Karsten Hilbert wrote:
> > try:
> > do something
> > except:
> > log something
> > finally:
> > .commit(
Am Sun, Sep 08, 2024 at 12:48:50PM +1200 schrieb Greg Ewing via Python-list:
> On 8/09/24 9:20 am, Karsten Hilbert wrote:
> > try:
> > do something
> > except:
> > log something
> > finally:
> > .commit(
On 07/09/2024 22:20, Karsten Hilbert via Python-list wrote:
Am Sat, Sep 07, 2024 at 02:09:28PM -0700 schrieb Adrian Klaver:
Right, and this was suggested elsewhere ;)
And, yeah, the actual code is much more involved :-D
I see that.
The question is does the full code you show fail?
The
Am Sun, Sep 08, 2024 at 02:58:03PM +0100 schrieb Rob Cliffe via Python-list:
> >Ugly:
> >
> > try:
> > do something
> > except:
> > log something
> > finally:
> > try:
> >
On 8/09/24 11:03 pm, Jon Ribbens wrote:
On 2024-09-08, Greg Ewing wrote:
try:
do something
.commit()
except:
log something
.rollback()
What if there's an exception in your exception handler? I'd put the
rollback in the 'finally' handler, so it's always called.
On 9/09/24 2:13 am, Karsten Hilbert wrote:
For what it's worth here's the current state of code:
That code doesn't inspire much confidence in me. It's far too
convoluted with too much micro-management of exceptions.
I would much prefer to have just *one* place where exceptions are
caught and l
Am Mon, Sep 09, 2024 at 01:48:32PM +1200 schrieb Greg Ewing via Python-list:
> That code doesn't inspire much confidence in me. It's far too
> convoluted with too much micro-management of exceptions.
>
> I would much prefer to have just *one* place where exceptions are
>
Am Mon, Sep 09, 2024 at 01:48:32PM +1200 schrieb Greg Ewing via Python-list:
> That code doesn't inspire much confidence in me. It's far too
> convoluted with too much micro-management of exceptions.
It is catching two exceptions, re-raising both of them,
except for re-raisin
On 2024-09-08, Greg Ewing wrote:
> On 8/09/24 9:20 am, Karsten Hilbert wrote:
>> try:
>> do something
>> except:
>> log something
>> finally:
>> .commit()
>>
>> cadence is fairly Pythonic and elegant in that it ensures the
>> the .commit() wil
On 2024-09-09, Lawrence D'Oliveiro wrote:
> On Mon, 9 Sep 2024 09:13:40 - (UTC), Jon Ribbens wrote:
>> On 2024-09-08, Lawrence D'Oliveiro wrote:
>>> On Sun, 8 Sep 2024 11:03:21 - (UTC), Jon Ribbens wrote:
What if there's an exception in your exception handler? I'd put the
rollba
On 2024-09-08, Lawrence D'Oliveiro wrote:
> On Sun, 8 Sep 2024 11:03:21 - (UTC), Jon Ribbens wrote:
>> What if there's an exception in your exception handler? I'd put the
>> rollback in the 'finally' handler, so it's always called. If you've
>> already called 'commit' then the rollback does no
Am Mon, Sep 09, 2024 at 10:00:11AM - schrieb Jon Ribbens via Python-list:
> > The database only needs to commit when it is explicitly told. Anything
> > less -- no commit.
>
> So the Python code is half-way through a transaction when it throws
> a (non-database-relate
Am Mon, Sep 09, 2024 at 10:00:11AM - schrieb Jon Ribbens via Python-list:
> So the Python code is half-way through a transaction when it throws
> a (non-database-related) exception and that thread of execution is
> aborted. The database connection returns to the pool,
How does it
On 2024-09-09, Karsten Hilbert wrote:
> Am Mon, Sep 09, 2024 at 10:00:11AM - schrieb Jon Ribbens via Python-list:
>> So the Python code is half-way through a transaction when it throws
>> a (non-database-related) exception and that thread of execution is
>> aborted. Th
On 2024-09-09, Lawrence D'Oliveiro wrote:
> On Mon, 9 Sep 2024 10:00:11 - (UTC), Jon Ribbens wrote:
>> On 2024-09-09, Lawrence D'Oliveiro wrote:
>>> The database only needs to commit when it is explicitly told. Anything
>>> less -- no commit.
>>
>> So the Python code is half-way through a tr
On 2024-09-09, Lawrence D'Oliveiro wrote:
> On Mon, 9 Sep 2024 21:12:51 - (UTC), Jon Ribbens wrote:
>> On 2024-09-09, Lawrence D'Oliveiro wrote:
>>> On Mon, 9 Sep 2024 10:00:11 - (UTC), Jon Ribbens wrote:
On 2024-09-09, Lawrence D'Oliveiro wrote:
> The database only needs to com
Am Tue, Sep 10, 2024 at 08:38:30AM - schrieb Jon Ribbens via Python-list:
> Ok. So we've moved away from "In any DBMS worth its salt, rollback is
> something that happens automatically"
Nope. The original post asked something entirely different.
> and now you'
On 2024-09-10, Karsten Hilbert wrote:
> Am Tue, Sep 10, 2024 at 08:38:30AM - schrieb Jon Ribbens via Python-list:
>> Ok. So we've moved away from "In any DBMS worth its salt, rollback is
>> something that happens automatically"
>
> Nope. The original pos
On 2024-09-10, Lawrence D'Oliveiro wrote:
> On Tue, 10 Sep 2024 08:38:30 - (UTC), Jon Ribbens wrote:
>
>> On 2024-09-09, Lawrence D'Oliveiro wrote:
>>>
>>> On Mon, 9 Sep 2024 21:12:51 - (UTC), Jon Ribbens wrote:
On 2024-09-09, Lawrence D'Oliveiro wrote:
>
> On Mon, 9 Se
On 2024-09-11, Lawrence D'Oliveiro wrote:
> On Tue, 10 Sep 2024 22:48:36 - (UTC), Jon Ribbens wrote:
>> But what if you tell it the wrong thing ...
>
> To get back to the original point of this thread, all that rigmarole to
> try to ensure to call “rollback” in case of an exception is complet
711 Spooky Mart wrote:
PyBitmessage is not dead.
https://bitmessage.org
It may help with looking "not dead" to have a changelog that has
actually changed within the last 8 years?
--
https://mail.python.org/mailman/listinfo/python-list
I tried to install this software python 3.4.3 to my pc which run windows Xp 32.
i could installed but it doesnot run.it gives this message
"python35-32/python.exe isnot a valid win32 app.Please help me to get solved
this problem
Thanks
Aruna
--
https://mail.python.org/mailman/listinfo/python-li
On 11/25/2015 12:32 AM, Chris Angelico wrote:
On Wed, Nov 25, 2015 at 7:14 PM, Antoon Pardon
wrote:
[snip]
"Oh come on. It's basic arithmetic. You should be able to add 7 and
7... the result's 14!"
"But it's so confusing. Why can't it be 16? It'd be more convenient
for me if it were 16."
N
Your program should contain a function that:
1. Seeks input from the user (via the keyboard);
2. To build a list of student exam results;
3. For each student their name (first and last), student number, and mark
out of 100 should be captured;
4. For full marks regular expressions or similar mechani
Dear supporters,
I tried several times to install the Python 3.5.0 (windows x86 executable
installer) in my PC then in my LT and in both cases I failed. Last time, few
hours ago, I tried it again, then it opened a window with a sole "cancel"
button on it. I waited for 10-15 min without anything
On 12/02/2015 04:08 PM, John Strick wrote:
On Wednesday, December 2, 2015 at 12:58:30 PM UTC-6, Dylan Riley wrote:
hi all,
I have been trying to figure out all day why my code is printing single
characters from my list when i print random elements using random.choice the
elements in the list a
On 12/13/2015 12:05 PM, KP wrote:
On Sunday, 13 December 2015 11:57:57 UTC-8, Laura Creighton wrote:
In a message of Sun, 13 Dec 2015 11:45:19 -0800, KP writes:
Hi all,
f = open("stairs.bin", "rb")
data = list(f.read(16))
print data
returns
['=', '\x04', '\x00', '\x05', '\
On 12/25/2015 06:04 PM, [email protected] wrote:
#i have worked over 2hours only to get this: some-one help please
manipulate_data = []
[snip other incorrect nonsense...]
#this is the instruction:
Create a function manipulate_data that does the following
[snip...]
Let's start with your f
I have version 3.5 of Python for Windows. I have MS Visual C++ and also MS
Visual Studio 2015.
When I enter into the command window "pip install matplotlib", it reads this
below (this is not the full version of it):
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporati
On 1/11/2016 3:45 PM, Travis Griggs wrote:
On Jan 10, 2016, at 9:48 AM, Bernardo Sulzbach
wrote:
Essentially, classes (as modules) are used mainly for organizational purposes.
Although you can solve any problem you would solve using classes
without classes, solutions to some big problems ma
I have downloaded python 2.7 with no problem. It works. I am trying to get
pyserial to work. I have tried many different solutions. I am not sure if it
works or not. How can I be sure? I am using windows 7. I did not see any help
at python.org. Can you help?
PS my goal is make this adafruit
On 01/23/2016 11:43 AM, Steve Petrie, P.Eng. wrote:
[snip]
I'm not sure what your exact problem is, but I can say that it isn't
this; the Unix-style forward slash is perfectly legal under Windows
(and it's even legal to mix and match).
ChrisA
I never knew that the forward slash is legal under
On 1/28/2016 11:57 PM, Steven D'Aprano wrote:
On Fri, 29 Jan 2016 06:04 pm, Mike S wrote:
%matplotlib inline
I get an error on the last line. I am running this code in Idle Python
3.4.4 Shell...
Python 3.4.4 (v3.4.4:737efcadf5a6, Dec 20 2015, 19:28:18) [MSC v.1600 32
bit (Intel)] on win32
Typ
I have installed Python 3.4.4 on XPSP3 and am trying to work my way
through this tutorial.
A Complete Tutorial on Ridge and Lasso Regression in Python
http://www.analyticsvidhya.com/blog/2016/01/complete-tutorial-ridge-lasso-regression-python/
In Step 2 "Why Penalize the Magnitude of Coefficien
On 01/28/2016 04:01 PM, Fillmore wrote:
I learned myself Perl as a scripting language over two decades ago. All through
this time, I
would revert to it from time to time whenever I needed some text manipulation
and data analysis
script.
My problem? maybe I am stupid, but each time I have to g
On 01/30/2016 10:29 PM, Veek. M wrote:
[snip]
Trivial comment (and irrelevant to your question)...
Replace your
print('-')
with the shorter
print('-' * 65)
Of course, feel free to disagree if you think the longer version is
Hi
So I have installed python 3.5.1 (32-bit) for my windows 10 PC. I have also
installed the IDE pycharm 5 to go along with it. Now my problem is when I run
pycharm the 'Modify Setup' window for python keeps popping up everytime I try
to do anything in pycharm. I don't know if i installed it i
Hello,
I'm trying to install the 3.5.1 of Python and am running windows 7. I keep
getting an error about api-ms-win-crt-runtime-|1-1-0.dll not being installed.
Any advice on what is wrong?
--
https://mail.python.org/mailman/listinfo/python-list
On 2/3/2016 1:55 PM, Barrie Taylor wrote:
Hi,
I am attempting to install and run Python3.5.1 on my Windows machine.
After installation on launching I am presented the attached error message.
It reads:
'The program can't start because api-ms-win-crt-runtime-l1-1-0.dll is missing
from your compu
On 2/4/2016 4:39 AM, Prince Thomas wrote:
Hi
I am an computer science engineer. I downloaded the python version 3.5.1.amd64
and just python 3.5.1.
The problem is when I install the program setup is failed and showing
0*80070570-The file or directory is
corrupted and unreadable. I install the n
I have Python 3.4.4 installed on Windows 7, also IPython, scipy, numpy,
statsmodels, and a lot of other modules, and am working through this
tutorial
http://www.analyticsvidhya.com/blog/2016/02/time-series-forecasting-codes-python/
In Ipython notebook I run this code
from statsmodels.tsa.statt
On 2/9/2016 1:33 AM, Mark Lawrence wrote:
On 09/02/2016 04:22, Mike S via Python-list wrote:
I have Python 3.4.4 installed on Windows 7, also IPython, scipy, numpy,
statsmodels, and a lot of other modules, and am working through this
tutorial
http://www.analyticsvidhya.com/blog/2016/02/time
On 02/09/2016 08:41 AM, Fillmore wrote:
Hi, I am having a hard time making my Cygwin run Python 3.5 (or Python 2.7 for
that matter).
The command will hang and nothing happens.
Just curious...
Since Python runs natively in Windows, why are you trying to run it with Cygwin?
I'm not implying t
On 2/9/2016 7:26 PM, Larry Hudson wrote:
On 02/09/2016 08:41 AM, Fillmore wrote:
Hi, I am having a hard time making my Cygwin run Python 3.5 (or Python
2.7 for that matter).
The command will hang and nothing happens.
Just curious...
Since Python runs natively in Windows, why are you trying
On 2/10/2016 5:05 AM, Mark Lawrence wrote:
On 10/02/2016 03:39, Mike S via Python-list wrote:
On 2/9/2016 7:26 PM, Larry Hudson wrote:
On 02/09/2016 08:41 AM, Fillmore wrote:
Hi, I am having a hard time making my Cygwin run Python 3.5 (or Python
2.7 for that matter).
The command will hang
On 2/10/2016 11:46 PM, [email protected] wrote:
On 10/02/2016 23:05, Mike S wrote:
On 2/10/2016 5:05 AM, Mark Lawrence wrote:
[snip]
Have you seen this?
http://www.davidbaumgold.com/tutorials/set-up-python-windows/
I have now, but I'm perfectly happy with the free versions of Visual
On 02/15/2016 07:06 AM, Joel Goldstick wrote:
[snip a lot...]
Learn Python the Hard Way is pretty good some people say. Its online.
Also Diving into Python is online written by the now offline Mark Pilgrim.
I have a couple of "Hard Way" books and personally, I don't like his style of
teachin
On 02/19/2016 10:14 AM, [email protected] wrote:
[snip]
This is precisely reading one character at a time. If not exactly reading one
character, it is effectively looking at each character to assemble the number.
Not a good sign. I guess there might be libraries which will help read nu
On 02/19/2016 06:36 PM, Steven D'Aprano wrote:
On Fri, 19 Feb 2016 02:39 pm, Rustom Mody wrote:
[snip]
But you can't do anything interesting with this language, so it is not
satisfying. On the other hand, here's "Hello World" in another language,
one which is Turing complete so it can do anyt
On 2/19/2016 8:58 PM, Denis Akhiyarov wrote:
On Wednesday, February 17, 2016 at 1:49:44 PM UTC-6, [email protected] wrote:
I am mostly getting positive feedback for Python.
It seems Python is used more for web based applications. Is it equally fine for
creating stand-alone *.exe's? Can the
On 02/20/2016 10:38 AM, [email protected] wrote:
[snip]
How complicated could this get in Python? Reading the numbers is one thing, and
then placing the values in text boxes of the GUI.
If that is the only object of using these values, there is no conversions necessary. The data
is r
This site was recommended by a friend, it looks really well put
together, I thought it might be of interest to people considering online
tutorials.
http://www.python-course.eu/index.php
--
https://mail.python.org/mailman/listinfo/python-list
https://www.reddit.com/r/IAmA/comments/45g8qu/we_are_the_ligo_scientific_collaboration_and_we/czxnlux?imm_mid=0e0d97&cmp=em-data-na-na-newsltr_20160224
--
https://mail.python.org/mailman/listinfo/python-list
On 2/25/2016 7:31 AM, Oscar Benjamin wrote:
On 25 February 2016 at 01:01, Feagans, Mandy wrote:
Hi! I am a student interested in conducting computational analysis of
protein-ligand binding for drug development analysis. Recently, I read of an
individual using a python program for their studie
Pretty nice example code...
https://ggulati.wordpress.com/2016/02/24/coding-jarvis-in-python-3-in-2016/
--
https://mail.python.org/mailman/listinfo/python-list
Hi python stopped working on this error: The debug process never connected back
to Wing IDE: Aborting debug session. See Trouble-shooting Failure to Debug in
the product manual.
can you please show me how to fix this issue, thanks.
--
https://mail.python.org/mailman/listinfo/python-list
On 2/27/2016 10:13 AM, [email protected] wrote:
On Saturday, 27 February 2016 18:08:36 UTC+2, Dietmar Schwertberger wrote:
On 27.02.2016 12:18, [email protected] wrote:
Isn't there any good GUI IDE like Visual Basic? I hope there are some less well
known GUI IDEs which I did n
Hi all,
I am a new learner about python (moving from R to python) and trying read and
count the number of observation by year for each city.
The data set look like
city year x
XC1 2001 10
XC1 2001 20
XC1 2002 20
XC1 2002 10
XC1 2002 10
Yv2 2001 10
Yv2 2002 20
Yv2 2002
> I've been studying Object Oriented Theory using Java. Theoretically, all
> attributes should be private, meaning no one except the methods itself can
> access the attribute;
>
> public class Foo {
> private int bar;
> ...
Why? I mean sure, lots of them should be, but if I am doing some
Thank you very much for the help.
First I want count by city and year.
City year count
Xc1.2001. 1
Xc1.2002. 3
Yv1. 2001. 1
Yv2.2002. 4
This worked fine !
Now I want to count by city only
City. Count
Xc1. 4
Yv2. 5
Then combine these two objects with the original data and
On 03/09/2016 11:54 PM, Rustom Mody wrote:
[...]
In between these two extremes we have many possibilities
- ibus/gchar etc
- compose key
- alternate keyboard layouts
Using all these levels judiciously seems to me a good idea...
FWIW -- in Mint Linux you can select the compose key with the foll
Hi all,
I am made a little progress on using python.
I have five files to read from different sources and concatenate them to one
file. From each file I want only to pick few column (x1, x2 and x3).
However, these columns say x3 was a date in one file it was recorded as a
character
ython.org
> Subject: Re: Replace weird error message?
>
> can you show the complete code? It doesn't start with "{:02} I don't think
>
> On Wed, Mar 16, 2016 at 2:34 PM, the.gerenuk--- via Python-list < python-
> [email protected]> wrote:
>
> > The f
HelloI installed the python 3.5.0(32bit) on 64bit win10 but I dont know how to
install numpy pakage for this? I did not find something good on internet.
could you please guide me?where can I find the suitable numpy for that? and
where is the path and pip and?
best regards.
--
https://mai
Hi all,
I am trying to read sas7bdat file using the following
from sas7bdat import SAS7BDAT
with SAS7BDAT('test.sas7bdat') as f:
for row in f:
print row ### I want print the first 10 row. how can I do that?
I got error message of
from sas7bdat import SAS7BDAT
ImportError: No mo
I didn't see anyone responding to this, so I'll pop in here...
On 03/22/2016 04:05 AM, BartC wrote:
[...]
(Suppose you need both the value and its index in the loop? Then the one-line
for above won't
work. For example, 'something' is [10,20,30] and you want to print:
0: 10
1: 20
2: 30 )
I noticed that the sequence types does not have these methods that the map
types has: get(), items(), keys(), values().
It could seem useless to have them for sequences, but I think it will ease
the creation of functions and methods that allow you to input a generic
iterable as parameter, but nee
Steven D'Aprano wrote:
> The point you might have missed is that treating lists as if they were
> mappings violates at least one critical property of mappings: that the
> relationship between keys and values are stable.
This is true for immutable maps, but for mutable ones, you can simply do
ma
Has anyone done a recent reviews of creating REST services, in Python?
Regards.
David
--
https://mail.python.org/mailman/listinfo/python-list
On 05/31/2015 09:46 PM, fl wrote:
Hi,
When I search solution of reverse a string/number, I came across a short
function online:
def palindrome(num):
return str(num) == str(num)[::-1]
I thought that it is a general function. And with the following variable:
a
'1234_'
parlindr
On 05/31/2015 05:42 AM, Cecil Westerhof wrote:
I help someone that has problems reading. For this I take photo's of
text, use convert from ImageMagick to make a good contrast (original
paper is grey) and use lpr to print it a little bigger.
I''m wondering why you bother to take a photo, which th
I would like to create a Python (stand-alone executable) program on a Windows
machine and deploy the finished product on other Windows machines (of varying
Windows OS versions) and
also on Mac machines (of varying Mac OS versions.) The program would present a
GUI that the user would interact w
I took a look at Ren'Py as suggested by a reply to my previous post entitled
"Create on Win and run on Win or Mac." Thanks for your suggestion. Ren'Py looks
pretty amazing!
Not sure that is a good route since my primary reason for this endeavor is
learning Python scripting (secondarily to creat
I WANT TO install 4.3 version ... but the MSI file is giving a DLL error ..
what should I do :/
please use REPLY ALL .. so that I get the mail to my gmail inbox--
https://mail.python.org/mailman/listinfo/python-list
4801 - 4900 of 5863 matches
Mail list logo