New submission from Maggie Moss :
https://www.python.org/dev/peps/pep-0604/
--
messages: 374535
nosy: maggiemoss
priority: normal
pull_requests: 20811
severity: normal
status: open
title: PEP 604 -- Allow writing union types as X | Y
type: behavior
versions: Python 3.10
Hello
There are two primary types of lines in the log:
60.191.38.xx/
42.120.161.xx /archives/1005
I know how to write regex to match each line, but don't get the good result
with one regex to match both lines.
Can you help?
Thanks,
Maggie
--
https://mail.python.org/mailman
Hello
Can you show me the correct way to programming with graphics?
I want to take some action detection, for instance, recognize dancing etc.
Thanks,
Maggie
--
https://mail.python.org/mailman/listinfo/python-list
paypal wholesale world cup 2010 football jersey England
www.supertrade06.com
paypal wholesale world cup 2010 football jersey France
www.supertrade06.com
paypal wholesale world cup 2010 football jersey New Zealand
paypal wholesale world cup 2010 football jersey Portugal
www.supertrade06.com
hello,
i have a basic script i need to implement. i need below code to read
in a file and perform operation is it designed to do:
#!/usr/bin/python
import sys
feed = sys.stdin.readlines()
for temp in feed:
line = temp.split()
if len(line) == 3:
if (line[0] == xmax or line[0] ==
What would be the best way to plot a small .wav file in python? If
there are any tutorials or sample code, I would really appreciate it!
--
http://mail.python.org/mailman/listinfo/python-list
On Sep 21, 3:07 pm, Rami Chowdhury rami.chowdh...@gmail.com wrote:
On Mon, 21 Sep 2009 11:58:30 -0700, Maggie la.f...@gmail.com wrote:
What would be the best way to plot a small .wav file in python? If
there are any tutorials or sample code, I would really appreciate it!
I'm sorry, what
My code is supposed to enumerate each line of file (1, 2, 3...) and
write the new version into the output file --
#!/usr/bin/python
import os.path
import csv
import sys
#name of output file
filename = OUTPUT.txt
#open the file
test = open (test.txt, r)
#read in all the data into a list
On Sep 8, 11:39 am, MRAB pyt...@mrabarnett.plus.com wrote:
Maggie wrote:
My code is supposed to enumerate each line of file (1, 2, 3...) and
write the new version into the output file --
#!/usr/bin/python
import os.path
import csv
import sys
#name of output file
filename
On Sep 8, 12:35 pm, MRAB pyt...@mrabarnett.plus.com wrote:
Maggie wrote:
On Sep 8, 11:39 am, MRAB pyt...@mrabarnett.plus.com wrote:
Maggie wrote:
My code is supposed to enumerate each line of file (1, 2, 3...) and
write the new version into the output file --
#!/usr/bin/python
import
Building on the code that I posted in one of the previous posts.. I
need to find a cumulative sum of the file of the times in the test
file:
here is the code i have:
#!/usr/bin/python
import os.path
#name of output file
filename = OUTPUT.txt
#open the file
test = open (test.txt, rU)
#read in
code practice:
test = open (test.txt, r)
readData = test.readlines()
#set up a sum
sum = 0;
for item in readData:
sum += int(item)
print sum
test file looks something like this:
34
23
124
432
12
when i am trying to compile this it gives me the error: invalid
literal for int() with base
On Sep 6, 3:58 am, Chris Rebert c...@rebertia.com wrote:
On Sun, Sep 6, 2009 at 12:54 AM, hrishyhris...@yahoo.co.uk wrote:
Hi
sum = 0
for item in readData:
try:
sum += int(item)
except ValueError:
print Oops! That was no valid number. Instead it was:, item
On Sep 6, 4:19 am, Chris Rebert c...@rebertia.com wrote:
On Sun, Sep 6, 2009 at 1:10 AM, Maggiela.f...@gmail.com wrote:
On Sep 6, 3:58 am, Chris Rebert c...@rebertia.com wrote:
On Sun, Sep 6, 2009 at 12:54 AM, hrishyhris...@yahoo.co.uk wrote:
Hi
sum = 0
for item in readData:
On Sep 4, 4:37 pm, Tobiah t...@tobiah.org wrote:
in the terminal i get a very strange permission denied error that might
not have anything to do with the code. I checked permissions for the file
and they are set to read and write so, again, I am really not sure what
going wrong.
Try:
i have event timing stretch of code i need to alter. here is code
below:
--
# we start each run with one full silent trial
# creating a stub with the duration of a full block
# less the discarded acquisitions
stub = block_dur - (distax * tr)
feed = sys.stdin.readlines()
sess = -1
for
16 matches
Mail list logo